oilsupplier.go 33 KB

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