oilsupplier.go 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526
  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. }
  209. type OilSupplierSelect struct {
  210. Id int //Oilsupplier表id
  211. CertId int
  212. AccessCardNo string //准入证号
  213. SupplierName string //企业名称
  214. OldSupplierName string //企业曾用名
  215. SupplierTypeCode string //准入类别编号
  216. LegalPerson string //法定代表人姓名
  217. RegCapital float64 //注册资本
  218. Mobile string //移动电话
  219. AuditDate time.Time //最后一次年审
  220. ApplyTime time.Time //申请时间
  221. EffectEndTime time.Time //有效期至
  222. InFlag string //状态
  223. ContactName string //联系人姓名
  224. CommercialNo string //统一社会信用代码
  225. DepositBank string //开户银行
  226. HseTraining string //是否需要进行HSE审查培训
  227. CompanyType string //公司类型
  228. SetupTime time.Time //成立时间
  229. Address string //注册详细地址
  230. Province string //注册省
  231. City string //注册市
  232. Street string //注册区
  233. LinkAddress string //通信详细地址
  234. LinkProvince string //通信地址省
  235. LinkCity string //通信地址市
  236. LinkStreet string //通信地址区
  237. BusinessScope string //营业范围
  238. NeedFileType string //资质
  239. CerSubName string //准入范围
  240. InStyle string //准入方式
  241. FullName string //专业科室审批
  242. CheckUnitName string //推荐单位
  243. Remark string
  244. }
  245. type OilSupplierContrast struct {
  246. Id int //Oilsupplier表id
  247. CertId int
  248. AccessCardNo string //准入证号
  249. SupplierName string //企业名称
  250. SupplierTypeCode string //准入类别编号
  251. LegalPerson string //法定代表人姓名
  252. RegCapital float64 //注册资本
  253. Mobile string //移动电话
  254. InFlag string //状态
  255. ContactName string //联系人姓名
  256. CommercialNo string //统一社会信用代码
  257. DepositBank string //开户银行
  258. HseTraining string //是否需要进行HSE审查培训
  259. CompanyType string //公司类型
  260. SetupTime time.Time //成立时间
  261. Address string //注册详细地址
  262. Province string //注册省
  263. City string //注册市
  264. Street string //注册区
  265. LinkAddress string //通信详细地址
  266. LinkProvince string //通信地址省
  267. LinkCity string //通信地址市
  268. LinkStreet string //通信地址区
  269. BusinessScope string //营业范围
  270. NeedFileType string //资质
  271. CerSubName string //准入范围
  272. InStyle string //准入方式
  273. Remark string
  274. SubCnt int
  275. NoSubCnt int
  276. HeaderCodes string
  277. SubNames string
  278. CertSubCodes string
  279. SubClassIds string
  280. Checked string // 0没问题 1缺资质
  281. MinClassId string // subclassid的最小值
  282. OneTwoCount int // 1变2
  283. TwoOneCount int // 2变1
  284. IsDelete int // 2变1
  285. ZzName string // 缺少的资质名
  286. }
  287. //type NeedFileTypeStruct struct {
  288. // NeedFileType []string
  289. // CertSubName string
  290. //}
  291. type RegCapitalRange struct {
  292. RegCapital1 string
  293. RegCapital2 string
  294. }
  295. type OilSupplierApply struct {
  296. Id int `xorm:"not null pk autoincr INT(10)"`
  297. SupplierName string `xorm:"comment('企业名称') VARCHAR(255)"`
  298. OilCertificateNo string `xorm:"comment('中石油供应商证书号') VARCHAR(50)"`
  299. Grade string `xorm:"comment('级别') VARCHAR(2)"`
  300. MgrUnit string `xorm:"comment('管理单位') VARCHAR(50)"`
  301. OperType string `xorm:"comment('经营方式') VARCHAR(50)"`
  302. Country string `xorm:"comment('国家') VARCHAR(20)"`
  303. MaunAgent string `xorm:"comment('所代理制造商名称') VARCHAR(100)"`
  304. ConstructTeam string `xorm:"comment('施工队伍名称') VARCHAR(100)"`
  305. CredentialFlag string `xorm:"default '1' comment('证件合一标志') VARCHAR(5)"`
  306. CommercialNo string `xorm:"comment('工商注册号') VARCHAR(50)"`
  307. OrganCode string `xorm:"comment('组织机构代码') VARCHAR(50)"`
  308. CountryTaxNo string `xorm:"comment('税务登记证国税编号') VARCHAR(50)"`
  309. LocalTaxNo string `xorm:"comment('税务登记证地税编号') VARCHAR(50)"`
  310. Address string `xorm:"comment('单位地址') VARCHAR(500)"`
  311. Province string `xorm:"comment('省直辖市') VARCHAR(20)"`
  312. City string `xorm:"comment('地市区县') VARCHAR(20)"`
  313. Street string `xorm:"comment('街道') VARCHAR(20)"`
  314. HouseNo string `xorm:"comment('门牌号') VARCHAR(10)"`
  315. ZipCode string `xorm:"comment('邮编') VARCHAR(20)"`
  316. LinkAddress string `xorm:"comment('通信地址-单位地址') VARCHAR(500)"`
  317. LinkProvince string `xorm:"comment('通信地址-省直辖市') VARCHAR(20)"`
  318. LinkCity string `xorm:"comment('通信地址-地市区县') VARCHAR(20)"`
  319. LinkStreet string `xorm:"comment('通信地址-街道') VARCHAR(20)"`
  320. LinkHouseNo string `xorm:"comment('通信地址-门牌号') VARCHAR(10)"`
  321. LinkZipCode string `xorm:"comment('通信地址-邮编') VARCHAR(20)"`
  322. HseTraining string `xorm:"comment('是否需要进行HSE审查培训') VARCHAR(2)"`
  323. QualitySystemCert string `xorm:"comment('质量管理体系认证情况及认证机构') VARCHAR(200)"`
  324. ProductQualityCert string `xorm:"comment('产品质量认证情况及认证机构') VARCHAR(200)"`
  325. MaunLicense string `xorm:"comment('生产制造许可证获证情况及编号') VARCHAR(200)"`
  326. QualifCert string `xorm:"comment('企业资质证书编号') VARCHAR(200)"`
  327. QualifCertLevel string `xorm:"comment('企业资质证书级别') VARCHAR(10)"`
  328. SafetyLicense string `xorm:"comment('安全生产许可证') VARCHAR(200)"`
  329. TechServiceLic string `xorm:"comment('技术服务类准入许可证') VARCHAR(200)"`
  330. TjinNotify string `xorm:"comment('外地企业进津备案通知书') VARCHAR(50)"`
  331. SpecIndustryCert string `xorm:"comment('行业特殊要求的认证证书') VARCHAR(200)"`
  332. BusinessScope string `xorm:"comment('营业范围') TEXT"`
  333. LegalPerson string `xorm:"comment('法定代表人姓名') VARCHAR(20)"`
  334. CategoryCode string `xorm:"comment('行业类别代码') VARCHAR(10)"`
  335. CategoryName string `xorm:"comment('行业类别名称') VARCHAR(20)"`
  336. RegCapital float64 `xorm:"default 0 comment('注册资本') FLOAT"`
  337. Currency string `xorm:"comment('币种') VARCHAR(10)"`
  338. ContactName string `xorm:"comment('联系人姓名') VARCHAR(20)"`
  339. CompanyType string `xorm:"comment('公司类型') VARCHAR(20)"`
  340. SetupTime time.Time `xorm:"comment('成立时间') Date"`
  341. DepositBank string `xorm:"comment('开户银行') VARCHAR(50)"`
  342. BankAccount string `xorm:"comment('银行账号') VARCHAR(50)"`
  343. EMail string `xorm:"comment('电子邮箱') VARCHAR(50)"`
  344. BankCreditRating string `xorm:"comment('银行信用等级') VARCHAR(10)"`
  345. Mobile string `xorm:"comment('移动电话') VARCHAR(20)"`
  346. Telphone string `xorm:"comment('固定电话') VARCHAR(20)"`
  347. Fax string `xorm:"comment('传真') VARCHAR(20)"`
  348. CompanyTel string `xorm:"comment('公司电话') VARCHAR(20)"`
  349. QQ string `xorm:"comment('QQ号码') VARCHAR(20)"`
  350. CompanyUrl string `xorm:"comment('公司网址') VARCHAR(20)"`
  351. SpecSupplier string `xorm:"default '0' comment('是否特殊业务供应商(可不招标)') VARCHAR(2)"`
  352. SpecTypeCode string `xorm:"comment('业务类型(1战略合作,2内部多经,3区域关键,4专业化实施)') VARCHAR(2)"`
  353. SpecTypeName string `xorm:"comment('业务类型(1战略合作,2内部多经,3区域关键,4专业化实施)') VARCHAR(20)"`
  354. WZAccessCardNo string `xorm:"comment('准入证编码--物质') VARCHAR(20)"`
  355. JSAccessCardNo string `xorm:"comment('准入证编码--基建') VARCHAR(20)"`
  356. JFAccessCardNo string `xorm:"comment('准入证编码--技术服务类') VARCHAR(20)"`
  357. Remark string `xorm:"comment('备注') VARCHAR(500)"`
  358. IsDelete int `xorm:"default 0 comment('删除状态,0正常,1已删除') INT(10)"`
  359. CreateOn time.Time `xorm:"DATETIME"`
  360. CreateUserId int `xorm:"INT(10)"`
  361. CreateBy string `xorm:"VARCHAR(50)"`
  362. ModifiedOn time.Time `xorm:"DATETIME"`
  363. ModifiedUserId int `xorm:"INT(10)"`
  364. ModifiedBy string `xorm:"VARCHAR(50)"`
  365. PACNumber string `xorm:"comment('中石油准入证编号') VARCHAR(50)"`
  366. SupplierCertificate string `xorm:"comment('中石油物资供应商证书') VARCHAR(200)"`
  367. InFlag string `xorm:"default '0' comment('准入标识') VARCHAR(10)"`
  368. Status string `xorm:"not null default '0' comment('状态标识(0未申请,1办理完毕)') VARCHAR(10)"`
  369. }
  370. type ExpireFile struct {
  371. Id int
  372. SupplierName string
  373. Mobile string
  374. NeedAllFile string
  375. CreateBy string
  376. ContactName string
  377. CreateUserId int
  378. }
  379. type ManualDelete struct {
  380. Code string
  381. Name string
  382. Operation string
  383. }
  384. type ExpireFileList struct {
  385. Id int
  386. SupplierName string
  387. Mobile string
  388. SupplierTypeCode string
  389. }
  390. type InterfaceData struct {
  391. Id int
  392. SupplierName string
  393. RegCapital time.Time
  394. ExpireAllFile string
  395. }
  396. type SupplierInfoInte struct {
  397. Id int `xorm:"not null pk autoincr INT(10)"`
  398. SupplierName string `xorm:"comment('企业名称') VARCHAR(255)"`
  399. OilCertificateNo string `xorm:"comment('中石油供应商证书号') VARCHAR(50)"`
  400. Grade string `xorm:"comment('级别') VARCHAR(2)"`
  401. MgrUnit string `xorm:"comment('管理单位') VARCHAR(50)"`
  402. OperType string `xorm:"comment('经营方式') VARCHAR(50)"`
  403. Country string `xorm:"comment('国家') VARCHAR(20)"`
  404. MaunAgent string `xorm:"comment('所代理制造商名称') VARCHAR(100)"`
  405. ConstructTeam string `xorm:"comment('施工队伍名称') VARCHAR(100)"`
  406. CredentialFlag string `xorm:"default '1' comment('证件合一标志') VARCHAR(5)"`
  407. CommercialNo string `xorm:"comment('工商注册号') VARCHAR(50)"`
  408. OrganCode string `xorm:"comment('组织机构代码') VARCHAR(50)"`
  409. CountryTaxNo string `xorm:"comment('税务登记证国税编号') VARCHAR(50)"`
  410. LocalTaxNo string `xorm:"comment('税务登记证地税编号') VARCHAR(50)"`
  411. Address string `xorm:"comment('单位地址') VARCHAR(500)"`
  412. AllAddress string `xorm:"comment('注册地址') VARCHAR(500)"`
  413. LinkAllAddress string `xorm:"comment('通信地址') VARCHAR(500)"`
  414. Province string `xorm:"comment('省直辖市') VARCHAR(20)"`
  415. City string `xorm:"comment('地市区县') VARCHAR(20)"`
  416. Street string `xorm:"comment('街道') VARCHAR(20)"`
  417. HouseNo string `xorm:"comment('门牌号') VARCHAR(10)"`
  418. ZipCode string `xorm:"comment('邮编') VARCHAR(20)"`
  419. LinkAddress string `xorm:"comment('通信地址-单位地址') VARCHAR(500)"`
  420. LinkProvince string `xorm:"comment('通信地址-省直辖市') VARCHAR(20)"`
  421. LinkCity string `xorm:"comment('通信地址-地市区县') VARCHAR(20)"`
  422. LinkStreet string `xorm:"comment('通信地址-街道') VARCHAR(20)"`
  423. LinkHouseNo string `xorm:"comment('通信地址-门牌号') VARCHAR(10)"`
  424. LinkZipCode string `xorm:"comment('通信地址-邮编') VARCHAR(20)"`
  425. HseTraining string `xorm:"comment('是否需要进行HSE审查培训') VARCHAR(2)"`
  426. QualitySystemCert string `xorm:"comment('质量管理体系认证情况及认证机构') VARCHAR(200)"`
  427. ProductQualityCert string `xorm:"comment('产品质量认证情况及认证机构') VARCHAR(200)"`
  428. MaunLicense string `xorm:"comment('生产制造许可证获证情况及编号') VARCHAR(200)"`
  429. QualifCert string `xorm:"comment('企业资质证书编号') VARCHAR(200)"`
  430. QualifCertLevel string `xorm:"comment('企业资质证书级别') VARCHAR(10)"`
  431. SafetyLicense string `xorm:"comment('安全生产许可证') VARCHAR(200)"`
  432. TechServiceLic string `xorm:"comment('技术服务类准入许可证') VARCHAR(200)"`
  433. TjinNotify string `xorm:"comment('外地企业进津备案通知书') VARCHAR(50)"`
  434. SpecIndustryCert string `xorm:"comment('行业特殊要求的认证证书') VARCHAR(200)"`
  435. BusinessScope string `xorm:"comment('营业范围') TEXT"`
  436. LegalPerson string `xorm:"comment('法定代表人姓名') VARCHAR(20)"`
  437. CategoryCode string `xorm:"comment('行业类别代码') VARCHAR(10)"`
  438. CategoryName string `xorm:"comment('行业类别名称') VARCHAR(20)"`
  439. RegCapital float64 `xorm:"default 0 comment('注册资本') FLOAT"`
  440. Currency string `xorm:"comment('币种') VARCHAR(10)"`
  441. ContactName string `xorm:"comment('联系人姓名') VARCHAR(20)"`
  442. CompanyType string `xorm:"comment('公司类型') VARCHAR(20)"`
  443. SetupTime time.Time `xorm:"comment('成立时间') Date"`
  444. DepositBank string `xorm:"comment('开户银行') VARCHAR(50)"`
  445. BankAccount string `xorm:"comment('银行账号') VARCHAR(50)"`
  446. EMail string `xorm:"comment('电子邮箱') VARCHAR(50)"`
  447. BankCreditRating string `xorm:"comment('银行信用等级') VARCHAR(10)"`
  448. Mobile string `xorm:"comment('移动电话') VARCHAR(20)"`
  449. Telphone string `xorm:"comment('固定电话') VARCHAR(20)"`
  450. Fax string `xorm:"comment('传真') VARCHAR(20)"`
  451. CompanyTel string `xorm:"comment('公司电话') VARCHAR(20)"`
  452. QQ string `xorm:"comment('QQ号码') VARCHAR(20)"`
  453. CompanyUrl string `xorm:"comment('公司网址') VARCHAR(20)"`
  454. SpecSupplier string `xorm:"default '0' comment('是否特殊业务供应商(可不招标)') VARCHAR(2)"`
  455. SpecTypeCode string `xorm:"comment('业务类型(1战略合作,2内部多经,3区域关键,4专业化实施)') VARCHAR(2)"`
  456. SpecTypeName string `xorm:"comment('业务类型(1战略合作,2内部多经,3区域关键,4专业化实施)') VARCHAR(20)"`
  457. WZAccessCardNo string `xorm:"comment('准入证编码--物质') VARCHAR(20)"`
  458. JSAccessCardNo string `xorm:"comment('准入证编码--基建') VARCHAR(20)"`
  459. JFAccessCardNo string `xorm:"comment('准入证编码--技术服务类') VARCHAR(20)"`
  460. WZStatus string `xorm:"comment('准入状态--物质') VARCHAR(20)"`
  461. JSStatus string `xorm:"comment('准入状态--基建') VARCHAR(20)"`
  462. JFStatus string `xorm:"comment('准入状态--技术服务类') VARCHAR(20)"`
  463. WZDate string `xorm:"comment('有效期--物质') VARCHAR(20)"`
  464. JSDate string `xorm:"comment('有效期--基建') VARCHAR(20)"`
  465. JFDate string `xorm:"comment('有效期--技术服务类') VARCHAR(20)"`
  466. Remark string `xorm:"comment('备注') VARCHAR(500)"`
  467. PACNumber string `xorm:"comment('中石油准入证编号') VARCHAR(50)"`
  468. SupplierCertificate string `xorm:"comment('中石油物资供应商证书') VARCHAR(200)"`
  469. }
  470. type OilSupplierCertSubInte struct {
  471. SupplierTypeCode string `xorm:"not null default '' comment('准入类别代码') VARCHAR(5)"`
  472. Code string `xorm:"not null default '' comment('分类编码') VARCHAR(8)"`
  473. Name string `xorm:"not null default '' comment('分类名称') VARCHAR(50)"`
  474. Remark string `xorm:"comment('备注') VARCHAR(500)"`
  475. }
  476. type OilSupplierInte struct {
  477. SupplierInfo SupplierInfoInte
  478. WZsub []OilSupplierCertSubInte // 物资类
  479. JFsub []OilSupplierCertSubInte // 技术服务类
  480. JSsub []OilSupplierCertSubInte // 基建类
  481. }
  482. const (
  483. // 管理单位
  484. MGRUNIT string = "大港油田分公司"
  485. BIDDING_BOOK_NAME string = "招标中标结果"
  486. // 企业信息-级别
  487. GRADE_1 string = "一级"
  488. // 企业信息-级别
  489. GRADE_2 string = "二级"
  490. // 准入物资-级别
  491. GOODS_LEVEL_1 string = "1"
  492. // 准入物资-级别
  493. GOODS_LEVEL_2 string = "2"
  494. // 准入方式
  495. IN_STYPE_REVIEW string = "1" // 评审准入
  496. IN_STYPE_GOODS_LEVEL_1 string = "2" // 一级物资备案准入
  497. IN_STYPE_GOODS_LEVEL_2 string = "3" // 二级物资备案准入
  498. IN_STYPE_STRATEGIC string = "4" // 战略合作准入
  499. IN_STYPE_PLURALISM string = "5" // 内部多元准入
  500. IN_STYPE_BIDDING string = "6" // 招标准入
  501. //准入类型 SupplierTypeCode
  502. SUPPLIER_TYPE_GOODS string = "01" // 物资类
  503. SUPPLIER_TYPE_BASIC string = "02" // 基建类
  504. SUPPLIER_TYPE_TECHNOLOGY string = "03" // 技术服务类
  505. )