oilsupplier.go 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546
  1. package supplier
  2. import (
  3. "time"
  4. )
  5. type OilSupplier struct {
  6. Id int `xorm:"not null pk autoincr INT(10)"`
  7. SupplierName string `xorm:"comment('企业名称') VARCHAR(255)"`
  8. OldSupplierName string `xorm:"comment('曾用名') VARCHAR(255)"`
  9. OilCertificateNo string `xorm:"comment('中石油供应商证书号') VARCHAR(50)"`
  10. Grade string `xorm:"comment('级别') VARCHAR(2)"`
  11. MgrUnit string `xorm:"comment('管理单位') VARCHAR(50)"`
  12. OperType string `xorm:"comment('经营方式') VARCHAR(50)"`
  13. Country string `xorm:"comment('国家') VARCHAR(20)"`
  14. MaunAgent string `xorm:"comment('所代理制造商名称') VARCHAR(100)"`
  15. ConstructTeam string `xorm:"comment('施工队伍名称') VARCHAR(100)"`
  16. CredentialFlag string `xorm:"default '1' comment('证件合一标志') VARCHAR(5)"`
  17. CommercialNo string `xorm:"comment('工商注册号') VARCHAR(50)"`
  18. OrganCode string `xorm:"comment('组织机构代码') VARCHAR(50)"`
  19. CountryTaxNo string `xorm:"comment('税务登记证国税编号') VARCHAR(50)"`
  20. LocalTaxNo string `xorm:"comment('税务登记证地税编号') VARCHAR(50)"`
  21. Address string `xorm:"comment('单位地址') VARCHAR(500)"`
  22. AllAddress string `xorm:"comment('注册地址') VARCHAR(500)"`
  23. LinkAllAddress string `xorm:"comment('通信地址') VARCHAR(500)"`
  24. Province string `xorm:"comment('省直辖市') VARCHAR(20)"`
  25. City string `xorm:"comment('地市区县') VARCHAR(20)"`
  26. Street string `xorm:"comment('街道') VARCHAR(20)"`
  27. HouseNo string `xorm:"comment('门牌号') VARCHAR(10)"`
  28. ZipCode string `xorm:"comment('邮编') VARCHAR(20)"`
  29. LinkAddress string `xorm:"comment('通信地址-单位地址') VARCHAR(500)"`
  30. LinkProvince string `xorm:"comment('通信地址-省直辖市') VARCHAR(20)"`
  31. LinkCity string `xorm:"comment('通信地址-地市区县') VARCHAR(20)"`
  32. LinkStreet string `xorm:"comment('通信地址-街道') VARCHAR(20)"`
  33. LinkHouseNo string `xorm:"comment('通信地址-门牌号') VARCHAR(10)"`
  34. LinkZipCode string `xorm:"comment('通信地址-邮编') VARCHAR(20)"`
  35. HseTraining string `xorm:"comment('是否需要进行HSE审查培训') VARCHAR(2)"`
  36. QualitySystemCert string `xorm:"comment('质量管理体系认证情况及认证机构') VARCHAR(200)"`
  37. ProductQualityCert string `xorm:"comment('产品质量认证情况及认证机构') VARCHAR(200)"`
  38. MaunLicense string `xorm:"comment('生产制造许可证获证情况及编号') VARCHAR(200)"`
  39. QualifCert string `xorm:"comment('企业资质证书编号') VARCHAR(200)"`
  40. QualifCertLevel string `xorm:"comment('企业资质证书级别') VARCHAR(10)"`
  41. SafetyLicense string `xorm:"comment('安全生产许可证') VARCHAR(200)"`
  42. TechServiceLic string `xorm:"comment('技术服务类准入许可证') VARCHAR(200)"`
  43. TjinNotify string `xorm:"comment('外地企业进津备案通知书') VARCHAR(50)"`
  44. SpecIndustryCert string `xorm:"comment('行业特殊要求的认证证书') VARCHAR(200)"`
  45. BusinessScope string `xorm:"comment('营业范围') TEXT"`
  46. LegalPerson string `xorm:"comment('法定代表人姓名') VARCHAR(20)"`
  47. CategoryCode string `xorm:"comment('行业类别代码') VARCHAR(10)"`
  48. CategoryName string `xorm:"comment('行业类别名称') VARCHAR(20)"`
  49. RegCapital float64 `xorm:"default 0 comment('注册资本') FLOAT"`
  50. Currency string `xorm:"comment('币种') VARCHAR(10)"`
  51. ContactName string `xorm:"comment('联系人姓名') VARCHAR(20)"`
  52. CompanyType string `xorm:"comment('公司类型') VARCHAR(20)"`
  53. SetupTime time.Time `xorm:"comment('成立时间') Date"`
  54. DepositBank string `xorm:"comment('开户银行') VARCHAR(50)"`
  55. BankAccount string `xorm:"comment('银行账号') VARCHAR(50)"`
  56. EMail string `xorm:"comment('电子邮箱') VARCHAR(50)"`
  57. BankCreditRating string `xorm:"comment('银行信用等级') VARCHAR(10)"`
  58. Mobile string `xorm:"comment('移动电话') VARCHAR(20)"`
  59. Telphone string `xorm:"comment('固定电话') VARCHAR(20)"`
  60. Fax string `xorm:"comment('传真') VARCHAR(20)"`
  61. CompanyTel string `xorm:"comment('公司电话') VARCHAR(20)"`
  62. QQ string `xorm:"comment('QQ号码') VARCHAR(20)"`
  63. CompanyUrl string `xorm:"comment('公司网址') VARCHAR(20)"`
  64. SpecSupplier string `xorm:"default '0' comment('是否特殊业务供应商(可不招标)') VARCHAR(2)"`
  65. SpecTypeCode string `xorm:"comment('业务类型(1战略合作,2内部多经,3区域关键,4专业化实施)') VARCHAR(2)"`
  66. SpecTypeName string `xorm:"comment('业务类型(1战略合作,2内部多经,3区域关键,4专业化实施)') VARCHAR(20)"`
  67. WZAccessCardNo string `xorm:"comment('准入证编码--物质') VARCHAR(20)"`
  68. JSAccessCardNo string `xorm:"comment('准入证编码--基建') VARCHAR(20)"`
  69. JFAccessCardNo string `xorm:"comment('准入证编码--技术服务类') VARCHAR(20)"`
  70. Remark string `xorm:"comment('备注') VARCHAR(500)"`
  71. IsDelete int `xorm:"default 0 comment('删除状态,0正常,1已删除') INT(10)"`
  72. CreateOn time.Time `xorm:"DATETIME"`
  73. CreateUserId int `xorm:"INT(10)"`
  74. CreateBy string `xorm:"VARCHAR(50)"`
  75. ModifiedOn time.Time `xorm:"DATETIME"`
  76. ModifiedUserId int `xorm:"INT(10)"`
  77. ModifiedBy string `xorm:"VARCHAR(50)"`
  78. PACNumber string `xorm:"comment('中石油准入证编号') VARCHAR(50)"`
  79. SupplierCertificate string `xorm:"comment('中石油物资供应商证书') VARCHAR(200)"`
  80. }
  81. type Del_OilSupplier struct {
  82. Id int `xorm:"not null pk autoincr INT(10)"`
  83. SupplierName string `xorm:"comment('企业名称') VARCHAR(255)"`
  84. OilCertificateNo string `xorm:"comment('中石油供应商证书号') VARCHAR(50)"`
  85. Grade string `xorm:"comment('级别') VARCHAR(2)"`
  86. MgrUnit string `xorm:"comment('管理单位') VARCHAR(50)"`
  87. OperType string `xorm:"comment('经营方式') VARCHAR(50)"`
  88. Country string `xorm:"comment('国家') VARCHAR(20)"`
  89. MaunAgent string `xorm:"comment('所代理制造商名称') VARCHAR(100)"`
  90. ConstructTeam string `xorm:"comment('施工队伍名称') VARCHAR(100)"`
  91. CredentialFlag string `xorm:"default '1' comment('证件合一标志') VARCHAR(5)"`
  92. CommercialNo string `xorm:"comment('工商注册号') VARCHAR(50)"`
  93. OrganCode string `xorm:"comment('组织机构代码') VARCHAR(50)"`
  94. CountryTaxNo string `xorm:"comment('税务登记证国税编号') VARCHAR(50)"`
  95. LocalTaxNo string `xorm:"comment('税务登记证地税编号') VARCHAR(50)"`
  96. Address string `xorm:"comment('单位地址') VARCHAR(500)"`
  97. AllAddress string `xorm:"comment('注册地址') VARCHAR(500)"`
  98. LinkAllAddress string `xorm:"comment('通信地址') VARCHAR(500)"`
  99. Province string `xorm:"comment('省直辖市') VARCHAR(20)"`
  100. City string `xorm:"comment('地市区县') VARCHAR(20)"`
  101. Street string `xorm:"comment('街道') VARCHAR(20)"`
  102. HouseNo string `xorm:"comment('门牌号') VARCHAR(10)"`
  103. ZipCode string `xorm:"comment('邮编') VARCHAR(20)"`
  104. LinkAddress string `xorm:"comment('通信地址-单位地址') VARCHAR(500)"`
  105. LinkProvince string `xorm:"comment('通信地址-省直辖市') VARCHAR(20)"`
  106. LinkCity string `xorm:"comment('通信地址-地市区县') VARCHAR(20)"`
  107. LinkStreet string `xorm:"comment('通信地址-街道') VARCHAR(20)"`
  108. LinkHouseNo string `xorm:"comment('通信地址-门牌号') VARCHAR(10)"`
  109. LinkZipCode string `xorm:"comment('通信地址-邮编') VARCHAR(20)"`
  110. HseTraining string `xorm:"comment('是否需要进行HSE审查培训') VARCHAR(2)"`
  111. QualitySystemCert string `xorm:"comment('质量管理体系认证情况及认证机构') VARCHAR(200)"`
  112. ProductQualityCert string `xorm:"comment('产品质量认证情况及认证机构') VARCHAR(200)"`
  113. MaunLicense string `xorm:"comment('生产制造许可证获证情况及编号') VARCHAR(200)"`
  114. QualifCert string `xorm:"comment('企业资质证书编号') VARCHAR(200)"`
  115. QualifCertLevel string `xorm:"comment('企业资质证书级别') VARCHAR(10)"`
  116. SafetyLicense string `xorm:"comment('安全生产许可证') VARCHAR(200)"`
  117. TechServiceLic string `xorm:"comment('技术服务类准入许可证') VARCHAR(200)"`
  118. TjinNotify string `xorm:"comment('外地企业进津备案通知书') VARCHAR(50)"`
  119. SpecIndustryCert string `xorm:"comment('行业特殊要求的认证证书') VARCHAR(200)"`
  120. BusinessScope string `xorm:"comment('营业范围') TEXT"`
  121. LegalPerson string `xorm:"comment('法定代表人姓名') VARCHAR(20)"`
  122. CategoryCode string `xorm:"comment('行业类别代码') VARCHAR(10)"`
  123. CategoryName string `xorm:"comment('行业类别名称') VARCHAR(20)"`
  124. RegCapital float64 `xorm:"default 0 comment('注册资本') FLOAT"`
  125. Currency string `xorm:"comment('币种') VARCHAR(10)"`
  126. ContactName string `xorm:"comment('联系人姓名') VARCHAR(20)"`
  127. CompanyType string `xorm:"comment('公司类型') VARCHAR(20)"`
  128. SetupTime time.Time `xorm:"comment('成立时间') Date"`
  129. DepositBank string `xorm:"comment('开户银行') VARCHAR(50)"`
  130. BankAccount string `xorm:"comment('银行账号') VARCHAR(50)"`
  131. EMail string `xorm:"comment('电子邮箱') VARCHAR(50)"`
  132. BankCreditRating string `xorm:"comment('银行信用等级') VARCHAR(10)"`
  133. Mobile string `xorm:"comment('移动电话') VARCHAR(20)"`
  134. Telphone string `xorm:"comment('固定电话') VARCHAR(20)"`
  135. Fax string `xorm:"comment('传真') VARCHAR(20)"`
  136. CompanyTel string `xorm:"comment('公司电话') VARCHAR(20)"`
  137. QQ string `xorm:"comment('QQ号码') VARCHAR(20)"`
  138. CompanyUrl string `xorm:"comment('公司网址') VARCHAR(20)"`
  139. SpecSupplier string `xorm:"default '0' comment('是否特殊业务供应商(可不招标)') VARCHAR(2)"`
  140. SpecTypeCode string `xorm:"comment('业务类型(1战略合作,2内部多经,3区域关键,4专业化实施)') VARCHAR(2)"`
  141. SpecTypeName string `xorm:"comment('业务类型(1战略合作,2内部多经,3区域关键,4专业化实施)') VARCHAR(20)"`
  142. WZAccessCardNo string `xorm:"comment('准入证编码--物质') VARCHAR(20)"`
  143. JSAccessCardNo string `xorm:"comment('准入证编码--基建') VARCHAR(20)"`
  144. JFAccessCardNo string `xorm:"comment('准入证编码--技术服务类') VARCHAR(20)"`
  145. Remark string `xorm:"comment('备注') VARCHAR(500)"`
  146. IsDelete int `xorm:"default 0 comment('删除状态,0正常,1已删除') INT(10)"`
  147. CreateOn time.Time `xorm:"DATETIME"`
  148. CreateUserId int `xorm:"INT(10)"`
  149. CreateBy string `xorm:"VARCHAR(50)"`
  150. ModifiedOn time.Time `xorm:"DATETIME"`
  151. ModifiedUserId int `xorm:"INT(10)"`
  152. ModifiedBy string `xorm:"VARCHAR(50)"`
  153. PACNumber string `xorm:"comment('中石油准入证编号') VARCHAR(50)"`
  154. SupplierCertificate string `xorm:"comment('中石油物资供应商证书') VARCHAR(200)"`
  155. DeleteDate time.Time `xorm:"DATETIME"`
  156. }
  157. type OilSupplierView struct {
  158. OilSupplier `xorm:"extends"`
  159. CertId string
  160. AccessCardNo string
  161. SupplierTypeCode string
  162. SupplierTypeName string
  163. Step int
  164. WorkerTotal int `xorm:"default 0 comment('企业员工总数') INT(10)"`
  165. ContractNum int `xorm:"default 0 comment('合同化用工数量') INT(10)"`
  166. UniversityNum int `xorm:"default 0 comment('大学及以上学历人员数量') INT(10)"`
  167. TechnicalNum int `xorm:"default 0 comment('技术、管理人员数量') INT(10)"`
  168. AboveProfNum int `xorm:"default 0 comment('高级及以上职称人员数量') INT(10)"`
  169. MiddleProfNum int `xorm:"default 0 comment('中级职称人员数量') INT(10)"`
  170. NationalRegNum int `xorm:"default 0 comment('具有国家注册执业资格人员数量') INT(10)"`
  171. NationalCertTotal int `xorm:"default 0 comment('具有国家注册执业资格证书总数') INT(10)"`
  172. DesignerTotal int `xorm:"default 0 comment('设计人员总数') INT(10)"`
  173. SkillerTotal int `xorm:"default 0 comment('技术工人总数') INT(10)"`
  174. Status string `xorm:"not null default '0' comment('状态标识(0未申请,1办理完毕)') VARCHAR(10)"`
  175. WorkflowId string `xorm:"default '0' comment('工作流的ID') VARCHAR(255)"`
  176. RecUnitReason string `xorm:"comment('推荐单位的推荐意见') VARCHAR(800)"`
  177. RecUnitPerson string `xorm:"comment('推荐单位负责人') VARCHAR(20)"`
  178. RecDate time.Time `xorm:"comment('推荐日期') DATETIME"`
  179. RecUnitId string `xorm:"comment('推荐单位编码') VARCHAR(10)"`
  180. RecUnitName string `xorm:"comment('推荐单位名称') VARCHAR(50)"`
  181. BackReason string `xorm:"comment('退回原因') VARCHAR(50)"`
  182. InFlag string `xorm:"default '0' comment('准入标识') VARCHAR(10)"`
  183. InStyle string `xorm:"default '1' comment('准入方式') VARCHAR(10)"`
  184. EffectStartTime time.Time `xorm:"comment('有效期起') DATETIME"`
  185. EffectEndTime time.Time `xorm:"comment('有效期止') DATETIME"`
  186. AuditProcessNote string `xorm:"comment('办理过程备注') VARCHAR(100)"`
  187. AuditDate time.Time `xorm:"comment('审核日期') DATETIME"`
  188. PayNotice string `xorm:"default '0' comment('交费通知') VARCHAR(2)"`
  189. SupplierStatus string `xorm:"comment('供应商状态(null:正常,1中止,2终止)') VARCHAR(255)"`
  190. MgrType string `xorm:"comment('供应商管理类型') VARCHAR(255)"`
  191. Type string `xorm:"comment('供应商类型') VARCHAR(255)"`
  192. AddinTime string `xorm:"comment('准入日期') VARCHAR(255)"`
  193. EffectTime string `xorm:"comment('生效日期') VARCHAR(255)"`
  194. ApplyTime time.Time `xorm:"comment('年审日期') DATETIME"`
  195. SupplierNo string `xorm:"comment('供应商准入证编号') VARCHAR(255)"`
  196. MdmFlag string `xorm:"default '0' comment('MDM标志') VARCHAR(2)"`
  197. InternalFlag string `xorm:"comment('国内采购') VARCHAR(255)"`
  198. ImportFlag string `xorm:"comment('进口采购') VARCHAR(255)"`
  199. OutsideFlog string `xorm:"comment('境外项目') VARCHAR(255)"`
  200. ThirdAudit string `xorm:"comment('备注') VARCHAR(500)"`
  201. IsDelete int `xorm:"default 0 comment('删除状态,0正常,1已删除') INT(10)"`
  202. IsRestrict int `xorm:"INT(11)"`
  203. CommitComId string `xorm:"default '0' comment('提交二级单位Id') VARCHAR(50)"`
  204. BusinessKey string `xorm:"VARCHAR(255)"`
  205. AuditIndex int `xorm:"INT(10)"`
  206. ProcessKey string `xorm:"VARCHAR(255)"`
  207. BackRemark string `xorm:"VARCHAR(255)"`
  208. Remark string `xorm:"VARCHAR(255)"`
  209. Remark1 string `xorm:"VARCHAR(255)"`
  210. }
  211. type OilSupplierSelect struct {
  212. Id int //Oilsupplier表id
  213. CertId int
  214. AccessCardNo string //准入证号
  215. SupplierName string //企业名称
  216. OldSupplierName string //企业曾用名
  217. SupplierTypeCode string //准入类别编号
  218. LegalPerson string //法定代表人姓名
  219. RegCapital float64 //注册资本
  220. Mobile string //移动电话
  221. AuditDate time.Time //最后一次年审
  222. ApplyTime time.Time //申请时间
  223. EffectEndTime time.Time //有效期至
  224. InFlag string //状态
  225. ContactName string //联系人姓名
  226. CommercialNo string //统一社会信用代码
  227. DepositBank string //开户银行
  228. HseTraining string //是否需要进行HSE审查培训
  229. CompanyType string //公司类型
  230. SetupTime time.Time //成立时间
  231. Address string //注册详细地址
  232. Province string //注册省
  233. City string //注册市
  234. Street string //注册区
  235. LinkAddress string //通信详细地址
  236. LinkProvince string //通信地址省
  237. LinkCity string //通信地址市
  238. LinkStreet string //通信地址区
  239. BusinessScope string //营业范围
  240. NeedFileType string //资质
  241. CerSubName string //准入范围
  242. InStyle string //准入方式
  243. FullName string //专业科室审批
  244. CheckUnitName string //推荐单位
  245. Remark string
  246. }
  247. type OilSupplierContrast struct {
  248. Id int //Oilsupplier表id
  249. CertId int
  250. AccessCardNo string //准入证号
  251. SupplierName string //企业名称
  252. SupplierTypeCode string //准入类别编号
  253. LegalPerson string //法定代表人姓名
  254. RegCapital float64 //注册资本
  255. Mobile string //移动电话
  256. InFlag string //状态
  257. ContactName string //联系人姓名
  258. CommercialNo string //统一社会信用代码
  259. DepositBank string //开户银行
  260. HseTraining string //是否需要进行HSE审查培训
  261. CompanyType string //公司类型
  262. SetupTime time.Time //成立时间
  263. Address string //注册详细地址
  264. Province string //注册省
  265. City string //注册市
  266. Street string //注册区
  267. LinkAddress string //通信详细地址
  268. LinkProvince string //通信地址省
  269. LinkCity string //通信地址市
  270. LinkStreet string //通信地址区
  271. BusinessScope string //营业范围
  272. NeedFileType string //资质
  273. CerSubName string //准入范围
  274. InStyle string //准入方式
  275. Remark string
  276. SubCnt int
  277. NoSubCnt int
  278. HeaderCodes string
  279. SubNames string
  280. CertSubCodes string
  281. SubClassIds string
  282. Checked string // 0没问题 1缺资质
  283. MinClassId string // subclassid的最小值
  284. OneTwoCount int // 1变2
  285. TwoOneCount int // 2变1
  286. IsDelete int // 2变1
  287. ZzName string // 缺少的资质名
  288. }
  289. //type NeedFileTypeStruct struct {
  290. // NeedFileType []string
  291. // CertSubName string
  292. //}
  293. type RegCapitalRange struct {
  294. RegCapital1 string
  295. RegCapital2 string
  296. }
  297. type OilSupplierApply struct {
  298. Id int `xorm:"not null pk autoincr INT(10)"`
  299. SupplierName string `xorm:"comment('企业名称') VARCHAR(255)"`
  300. OilCertificateNo string `xorm:"comment('中石油供应商证书号') VARCHAR(50)"`
  301. Grade string `xorm:"comment('级别') VARCHAR(2)"`
  302. MgrUnit string `xorm:"comment('管理单位') VARCHAR(50)"`
  303. OperType string `xorm:"comment('经营方式') VARCHAR(50)"`
  304. Country string `xorm:"comment('国家') VARCHAR(20)"`
  305. MaunAgent string `xorm:"comment('所代理制造商名称') VARCHAR(100)"`
  306. ConstructTeam string `xorm:"comment('施工队伍名称') VARCHAR(100)"`
  307. CredentialFlag string `xorm:"default '1' comment('证件合一标志') VARCHAR(5)"`
  308. CommercialNo string `xorm:"comment('工商注册号') VARCHAR(50)"`
  309. OrganCode string `xorm:"comment('组织机构代码') VARCHAR(50)"`
  310. CountryTaxNo string `xorm:"comment('税务登记证国税编号') VARCHAR(50)"`
  311. LocalTaxNo string `xorm:"comment('税务登记证地税编号') VARCHAR(50)"`
  312. Address string `xorm:"comment('单位地址') VARCHAR(500)"`
  313. Province string `xorm:"comment('省直辖市') VARCHAR(20)"`
  314. City string `xorm:"comment('地市区县') VARCHAR(20)"`
  315. Street string `xorm:"comment('街道') VARCHAR(20)"`
  316. HouseNo string `xorm:"comment('门牌号') VARCHAR(10)"`
  317. ZipCode string `xorm:"comment('邮编') VARCHAR(20)"`
  318. LinkAddress string `xorm:"comment('通信地址-单位地址') VARCHAR(500)"`
  319. LinkProvince string `xorm:"comment('通信地址-省直辖市') VARCHAR(20)"`
  320. LinkCity string `xorm:"comment('通信地址-地市区县') VARCHAR(20)"`
  321. LinkStreet string `xorm:"comment('通信地址-街道') VARCHAR(20)"`
  322. LinkHouseNo string `xorm:"comment('通信地址-门牌号') VARCHAR(10)"`
  323. LinkZipCode string `xorm:"comment('通信地址-邮编') VARCHAR(20)"`
  324. HseTraining string `xorm:"comment('是否需要进行HSE审查培训') VARCHAR(2)"`
  325. QualitySystemCert string `xorm:"comment('质量管理体系认证情况及认证机构') VARCHAR(200)"`
  326. ProductQualityCert string `xorm:"comment('产品质量认证情况及认证机构') VARCHAR(200)"`
  327. MaunLicense string `xorm:"comment('生产制造许可证获证情况及编号') VARCHAR(200)"`
  328. QualifCert string `xorm:"comment('企业资质证书编号') VARCHAR(200)"`
  329. QualifCertLevel string `xorm:"comment('企业资质证书级别') VARCHAR(10)"`
  330. SafetyLicense string `xorm:"comment('安全生产许可证') VARCHAR(200)"`
  331. TechServiceLic string `xorm:"comment('技术服务类准入许可证') VARCHAR(200)"`
  332. TjinNotify string `xorm:"comment('外地企业进津备案通知书') VARCHAR(50)"`
  333. SpecIndustryCert string `xorm:"comment('行业特殊要求的认证证书') VARCHAR(200)"`
  334. BusinessScope string `xorm:"comment('营业范围') TEXT"`
  335. LegalPerson string `xorm:"comment('法定代表人姓名') VARCHAR(20)"`
  336. CategoryCode string `xorm:"comment('行业类别代码') VARCHAR(10)"`
  337. CategoryName string `xorm:"comment('行业类别名称') VARCHAR(20)"`
  338. RegCapital float64 `xorm:"default 0 comment('注册资本') FLOAT"`
  339. Currency string `xorm:"comment('币种') VARCHAR(10)"`
  340. ContactName string `xorm:"comment('联系人姓名') VARCHAR(20)"`
  341. CompanyType string `xorm:"comment('公司类型') VARCHAR(20)"`
  342. SetupTime time.Time `xorm:"comment('成立时间') Date"`
  343. DepositBank string `xorm:"comment('开户银行') VARCHAR(50)"`
  344. BankAccount string `xorm:"comment('银行账号') VARCHAR(50)"`
  345. EMail string `xorm:"comment('电子邮箱') VARCHAR(50)"`
  346. BankCreditRating string `xorm:"comment('银行信用等级') VARCHAR(10)"`
  347. Mobile string `xorm:"comment('移动电话') VARCHAR(20)"`
  348. Telphone string `xorm:"comment('固定电话') VARCHAR(20)"`
  349. Fax string `xorm:"comment('传真') VARCHAR(20)"`
  350. CompanyTel string `xorm:"comment('公司电话') VARCHAR(20)"`
  351. QQ string `xorm:"comment('QQ号码') VARCHAR(20)"`
  352. CompanyUrl string `xorm:"comment('公司网址') VARCHAR(20)"`
  353. SpecSupplier string `xorm:"default '0' comment('是否特殊业务供应商(可不招标)') VARCHAR(2)"`
  354. SpecTypeCode string `xorm:"comment('业务类型(1战略合作,2内部多经,3区域关键,4专业化实施)') VARCHAR(2)"`
  355. SpecTypeName string `xorm:"comment('业务类型(1战略合作,2内部多经,3区域关键,4专业化实施)') VARCHAR(20)"`
  356. WZAccessCardNo string `xorm:"comment('准入证编码--物质') VARCHAR(20)"`
  357. JSAccessCardNo string `xorm:"comment('准入证编码--基建') VARCHAR(20)"`
  358. JFAccessCardNo string `xorm:"comment('准入证编码--技术服务类') VARCHAR(20)"`
  359. Remark string `xorm:"comment('备注') VARCHAR(500)"`
  360. IsDelete int `xorm:"default 0 comment('删除状态,0正常,1已删除') INT(10)"`
  361. CreateOn time.Time `xorm:"DATETIME"`
  362. CreateUserId int `xorm:"INT(10)"`
  363. CreateBy string `xorm:"VARCHAR(50)"`
  364. ModifiedOn time.Time `xorm:"DATETIME"`
  365. ModifiedUserId int `xorm:"INT(10)"`
  366. ModifiedBy string `xorm:"VARCHAR(50)"`
  367. PACNumber string `xorm:"comment('中石油准入证编号') VARCHAR(50)"`
  368. SupplierCertificate string `xorm:"comment('中石油物资供应商证书') VARCHAR(200)"`
  369. InFlag string `xorm:"default '0' comment('准入标识') VARCHAR(10)"`
  370. Status string `xorm:"not null default '0' comment('状态标识(0未申请,1办理完毕)') VARCHAR(10)"`
  371. }
  372. type ExpireFile struct {
  373. Id int
  374. SupplierName string
  375. Mobile string
  376. NeedAllFile string
  377. CreateBy string
  378. ContactName string
  379. CreateUserId int
  380. }
  381. type ManualDelete struct {
  382. Code string
  383. Name string
  384. Operation string
  385. }
  386. type ExpireFileList struct {
  387. Id int
  388. SupplierName string
  389. Mobile string
  390. SupplierTypeCode string
  391. }
  392. type InterfaceData struct {
  393. Id int
  394. SupplierName string
  395. RegCapital time.Time
  396. ExpireAllFile string
  397. }
  398. type SupplierInfoInte struct {
  399. Id int `xorm:"not null pk autoincr INT(10)"`
  400. SupplierName string `xorm:"comment('企业名称') VARCHAR(255)"`
  401. OilCertificateNo string `xorm:"comment('中石油供应商证书号') VARCHAR(50)"`
  402. Grade string `xorm:"comment('级别') VARCHAR(2)"`
  403. MgrUnit string `xorm:"comment('管理单位') VARCHAR(50)"`
  404. OperType string `xorm:"comment('经营方式') VARCHAR(50)"`
  405. Country string `xorm:"comment('国家') VARCHAR(20)"`
  406. MaunAgent string `xorm:"comment('所代理制造商名称') VARCHAR(100)"`
  407. ConstructTeam string `xorm:"comment('施工队伍名称') VARCHAR(100)"`
  408. CredentialFlag string `xorm:"default '1' comment('证件合一标志') VARCHAR(5)"`
  409. CommercialNo string `xorm:"comment('工商注册号') VARCHAR(50)"`
  410. OrganCode string `xorm:"comment('组织机构代码') VARCHAR(50)"`
  411. CountryTaxNo string `xorm:"comment('税务登记证国税编号') VARCHAR(50)"`
  412. LocalTaxNo string `xorm:"comment('税务登记证地税编号') VARCHAR(50)"`
  413. Address string `xorm:"comment('单位地址') VARCHAR(500)"`
  414. AllAddress string `xorm:"comment('注册地址') VARCHAR(500)"`
  415. LinkAllAddress string `xorm:"comment('通信地址') VARCHAR(500)"`
  416. Province string `xorm:"comment('省直辖市') VARCHAR(20)"`
  417. City string `xorm:"comment('地市区县') VARCHAR(20)"`
  418. Street string `xorm:"comment('街道') VARCHAR(20)"`
  419. HouseNo string `xorm:"comment('门牌号') VARCHAR(10)"`
  420. ZipCode string `xorm:"comment('邮编') VARCHAR(20)"`
  421. LinkAddress string `xorm:"comment('通信地址-单位地址') VARCHAR(500)"`
  422. LinkProvince string `xorm:"comment('通信地址-省直辖市') VARCHAR(20)"`
  423. LinkCity string `xorm:"comment('通信地址-地市区县') VARCHAR(20)"`
  424. LinkStreet string `xorm:"comment('通信地址-街道') VARCHAR(20)"`
  425. LinkHouseNo string `xorm:"comment('通信地址-门牌号') VARCHAR(10)"`
  426. LinkZipCode string `xorm:"comment('通信地址-邮编') VARCHAR(20)"`
  427. HseTraining string `xorm:"comment('是否需要进行HSE审查培训') VARCHAR(2)"`
  428. QualitySystemCert string `xorm:"comment('质量管理体系认证情况及认证机构') VARCHAR(200)"`
  429. ProductQualityCert string `xorm:"comment('产品质量认证情况及认证机构') VARCHAR(200)"`
  430. MaunLicense string `xorm:"comment('生产制造许可证获证情况及编号') VARCHAR(200)"`
  431. QualifCert string `xorm:"comment('企业资质证书编号') VARCHAR(200)"`
  432. QualifCertLevel string `xorm:"comment('企业资质证书级别') VARCHAR(10)"`
  433. SafetyLicense string `xorm:"comment('安全生产许可证') VARCHAR(200)"`
  434. TechServiceLic string `xorm:"comment('技术服务类准入许可证') VARCHAR(200)"`
  435. TjinNotify string `xorm:"comment('外地企业进津备案通知书') VARCHAR(50)"`
  436. SpecIndustryCert string `xorm:"comment('行业特殊要求的认证证书') VARCHAR(200)"`
  437. BusinessScope string `xorm:"comment('营业范围') TEXT"`
  438. LegalPerson string `xorm:"comment('法定代表人姓名') VARCHAR(20)"`
  439. CategoryCode string `xorm:"comment('行业类别代码') VARCHAR(10)"`
  440. CategoryName string `xorm:"comment('行业类别名称') VARCHAR(20)"`
  441. RegCapital float64 `xorm:"default 0 comment('注册资本') FLOAT"`
  442. Currency string `xorm:"comment('币种') VARCHAR(10)"`
  443. ContactName string `xorm:"comment('联系人姓名') VARCHAR(20)"`
  444. CompanyType string `xorm:"comment('公司类型') VARCHAR(20)"`
  445. SetupTime time.Time `xorm:"comment('成立时间') Date"`
  446. DepositBank string `xorm:"comment('开户银行') VARCHAR(50)"`
  447. BankAccount string `xorm:"comment('银行账号') VARCHAR(50)"`
  448. EMail string `xorm:"comment('电子邮箱') VARCHAR(50)"`
  449. BankCreditRating string `xorm:"comment('银行信用等级') VARCHAR(10)"`
  450. Mobile string `xorm:"comment('移动电话') VARCHAR(20)"`
  451. Telphone string `xorm:"comment('固定电话') VARCHAR(20)"`
  452. Fax string `xorm:"comment('传真') VARCHAR(20)"`
  453. CompanyTel string `xorm:"comment('公司电话') VARCHAR(20)"`
  454. QQ string `xorm:"comment('QQ号码') VARCHAR(20)"`
  455. CompanyUrl string `xorm:"comment('公司网址') VARCHAR(20)"`
  456. SpecSupplier string `xorm:"default '0' comment('是否特殊业务供应商(可不招标)') VARCHAR(2)"`
  457. SpecTypeCode string `xorm:"comment('业务类型(1战略合作,2内部多经,3区域关键,4专业化实施)') VARCHAR(2)"`
  458. SpecTypeName string `xorm:"comment('业务类型(1战略合作,2内部多经,3区域关键,4专业化实施)') VARCHAR(20)"`
  459. WZAccessCardNo string `xorm:"comment('准入证编码--物质') VARCHAR(20)"`
  460. JSAccessCardNo string `xorm:"comment('准入证编码--基建') VARCHAR(20)"`
  461. JFAccessCardNo string `xorm:"comment('准入证编码--技术服务类') VARCHAR(20)"`
  462. WZStatus string `xorm:"comment('准入状态--物质') VARCHAR(20)"`
  463. JSStatus string `xorm:"comment('准入状态--基建') VARCHAR(20)"`
  464. JFStatus string `xorm:"comment('准入状态--技术服务类') VARCHAR(20)"`
  465. WZDate string `xorm:"comment('有效期--物质') VARCHAR(20)"`
  466. JSDate string `xorm:"comment('有效期--基建') VARCHAR(20)"`
  467. JFDate string `xorm:"comment('有效期--技术服务类') VARCHAR(20)"`
  468. Remark string `xorm:"comment('备注') VARCHAR(500)"`
  469. PACNumber string `xorm:"comment('中石油准入证编号') VARCHAR(50)"`
  470. SupplierCertificate string `xorm:"comment('中石油物资供应商证书') VARCHAR(200)"`
  471. }
  472. type OilSupplierCertSubInte struct {
  473. SupplierTypeCode string `xorm:"not null default '' comment('准入类别代码') VARCHAR(5)"`
  474. Code string `xorm:"not null default '' comment('分类编码') VARCHAR(8)"`
  475. Name string `xorm:"not null default '' comment('分类名称') VARCHAR(50)"`
  476. Remark string `xorm:"comment('备注') VARCHAR(500)"`
  477. }
  478. type OilSupplierInte struct {
  479. SupplierInfo SupplierInfoInte
  480. WZsub []OilSupplierCertSubInte // 物资类
  481. JFsub []OilSupplierCertSubInte // 技术服务类
  482. JSsub []OilSupplierCertSubInte // 基建类
  483. }
  484. type OilCertIds struct {
  485. Ids string
  486. }
  487. type OilSupplierOldName struct {
  488. Id int `xorm:"not null pk autoincr INT(11)"`
  489. Name string `xorm:"comment('企业名称') VARCHAR(255)"`
  490. OldName string `xorm:"comment('曾用名') VARCHAR(255)"`
  491. SupplierId int `xorm:" INT(11)"`
  492. GfId int `xorm:" INT(11)"`
  493. CreateOn time.Time `xorm:"DATETIME"`
  494. CreateUserId int `xorm:"INT(10)"`
  495. CreateBy string `xorm:"VARCHAR(50)"`
  496. ModifiedOn time.Time `xorm:"DATETIME"`
  497. ModifiedUserId int `xorm:"INT(10)"`
  498. ModifiedBy string `xorm:"VARCHAR(50)"`
  499. }
  500. const (
  501. // 管理单位
  502. MGRUNIT string = "大港油田分公司"
  503. BIDDING_BOOK_NAME string = "招标中标结果"
  504. // 企业信息-级别
  505. GRADE_1 string = "一级"
  506. // 企业信息-级别
  507. GRADE_2 string = "二级"
  508. // 准入物资-级别
  509. GOODS_LEVEL_1 string = "1"
  510. // 准入物资-级别
  511. GOODS_LEVEL_2 string = "2"
  512. // 准入方式
  513. IN_STYPE_REVIEW string = "1" // 评审准入
  514. IN_STYPE_GOODS_LEVEL_1 string = "2" // 一级物资备案准入
  515. IN_STYPE_GOODS_LEVEL_2 string = "3" // 二级物资备案准入
  516. IN_STYPE_STRATEGIC string = "4" // 战略合作准入
  517. IN_STYPE_PLURALISM string = "5" // 内部多元准入
  518. IN_STYPE_BIDDING string = "6" // 招标准入
  519. //准入类型 SupplierTypeCode
  520. SUPPLIER_TYPE_GOODS string = "01" // 物资类
  521. SUPPLIER_TYPE_BASIC string = "02" // 基建类
  522. SUPPLIER_TYPE_TECHNOLOGY string = "03" // 技术服务类
  523. )