common.go 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285
  1. // Copyright 2019 github.com. All rights reserved.
  2. // Use of this source code is governed by github.com.
  3. package consts
  4. const (
  5. PageSize = 10
  6. )
  7. const (
  8. TimeSecondLayOut = "2006-01-02 15:04:05"
  9. )
  10. const (
  11. _ = iota
  12. AttendanceKindIn
  13. AttendanceKindOut
  14. AttendanceKindInOut
  15. AttendanceKindCollect
  16. )
  17. const (
  18. _ = iota
  19. AttendanceSubKindIris
  20. AttendanceSubKindRedFace
  21. AttendanceSubKindLightFace
  22. AttendanceSubKindLightRedFace
  23. AttendanceSubKindLightFaceIris
  24. )
  25. var AttendanceKind = map[int]string{
  26. AttendanceKindIn:"进场设备",
  27. AttendanceKindOut:"出场设备",
  28. AttendanceKindInOut:"进出场设备",
  29. AttendanceKindCollect:"采集设备",
  30. }
  31. var AttendanceSubKind = map[int]string{
  32. AttendanceSubKindIris:"虹膜设备",
  33. AttendanceSubKindRedFace:"红外人脸设备",
  34. AttendanceSubKindLightFace:"可见光人脸设备",
  35. AttendanceSubKindLightRedFace:"可见光+红外人脸设备",
  36. AttendanceSubKindLightFaceIris:"可见光+虹膜设备",
  37. }
  38. const (
  39. DeviceStatusAddAuditting = iota //添加设备待审核
  40. DeviceStatusAddAuditted//添加设备审核通过
  41. DeviceStatusAddAudittedFail//添加设备审核未通过
  42. )
  43. const (
  44. DeviceTypeStatusAddTesting = iota //添加设备类型待对接测试
  45. DeviceTypeStatusAddTestted //对接测试通过
  46. DeviceTypeStatusAddTesttedFail //对接测试未通过
  47. )
  48. const (
  49. DeviceTypeStatusAddAuditting = iota // 待住建部审批
  50. DeviceTypeStatusAddAuditted //住建部审核通过
  51. DeviceTypeStatusAddAudittedFail //住建部审核未通过
  52. )
  53. const (
  54. ProviderStatusAddAuditting = iota
  55. ProviderStatusAddAuditted
  56. ProviderStatusAddAudittedFail
  57. )
  58. const (
  59. CompanyStatusAddAuditting = iota
  60. CompanyStatusAddAuditted
  61. CompanyStatusAddAudittedFail
  62. )
  63. const (
  64. ProjectStatusAddAuditting = iota
  65. ProjectStatusAddAuditted
  66. ProjectStatusAddAudittedFail
  67. )
  68. const (
  69. _ = iota
  70. ProjectUserTypeConstruction //建设
  71. ProjectUserTypeProject //项目
  72. ProjectUserTypeSupervision //监理
  73. )
  74. // 项目类别
  75. const (
  76. ProjectCategoryHouse = 1
  77. ProjectCategoryCity = 2
  78. ProjectCategoryOther = 99
  79. )
  80. var ProjectCategoryM = map[uint32]string{
  81. ProjectCategoryHouse:"房屋建筑工程",
  82. ProjectCategoryCity:"市政工程",
  83. ProjectCategoryOther:"其他",
  84. }
  85. // 建设性质
  86. const (
  87. ProjectConstructTypeBuild = 1
  88. ProjectConstructTypeChange = 2
  89. ProjectConstructTypeIncrease = 3
  90. )
  91. var ProjectConstructTypeM = map[uint32]string{
  92. ProjectConstructTypeBuild:"新建",
  93. ProjectConstructTypeIncrease:"扩建",
  94. ProjectConstructTypeChange:"改建",
  95. }
  96. // 项目状态
  97. const (
  98. ProjectStatusPrepare = 1
  99. ProjectStatusApproval = 2
  100. ProjectStatusBuilding = 3
  101. ProjectStatusFinish = 4
  102. ProjectStatusStop = 5
  103. )
  104. var ProjectStatusM = map[uint32]string{
  105. ProjectStatusPrepare:"筹备",
  106. ProjectStatusApproval:"立项",
  107. ProjectStatusBuilding:"在建",
  108. ProjectStatusFinish:"完工",
  109. ProjectStatusStop:"停工",
  110. }
  111. // 参建单位
  112. const (
  113. ProjectCorpProfesional = 1
  114. ProjectCorpDevice = 2
  115. ProjectCorpMaterial = 3
  116. ProjectCorpLogistics = 4
  117. ProjectCorpSpecialDevice = 5
  118. ProjectCorpLabor = 6
  119. ProjectCorpSupervisor = 7
  120. ProjectCorpConstruction = 8
  121. ProjectCorpContract = 9
  122. ProjectCorpInvestigation = 10
  123. ProjectCorpDesign = 11
  124. ProjectCorpOther = 12
  125. )
  126. var ProjectCorpM = map[uint32]string{
  127. ProjectCorpProfesional:"专业分包",
  128. ProjectCorpDevice :"设备分包",
  129. ProjectCorpMaterial :"材料分包",
  130. ProjectCorpLogistics :"后勤服务",
  131. ProjectCorpSpecialDevice :"特殊设备",
  132. ProjectCorpLabor :"劳务分包",
  133. ProjectCorpConstruction:"建设单位",
  134. ProjectCorpContract:"总承包单位",
  135. ProjectCorpSupervisor:"监理单位",
  136. ProjectCorpInvestigation:"勘察单位",
  137. ProjectCorpDesign:"设计单位",
  138. ProjectCorpOther:"其他",
  139. }
  140. // 人员编码
  141. const (
  142. StaffTypeChiefSupervisor = 1001
  143. StaffTypeDeputyChiefSupervisor = 1002
  144. StaffTypeSafetyChiefSupervisor = 1003
  145. StaffTypeProfessionalSupervisor = 1004
  146. StaffTypeNormalSupervisor = 1005
  147. StaffTypeSupervisor = 1006
  148. StaffTypeSupervisorSafty = 1007
  149. StaffTypeBigEngineer = 1008
  150. StaffTypeManager = 1009
  151. StaffTypeEngineerManager = 1010
  152. StaffTypeTechnical = 1011
  153. StaffTypeEngineer = 1012
  154. StaffTypeAdmin = 1013
  155. StaffTypeDeputyManager = 1014
  156. StaffTypeChiefInspector = 1015
  157. StaffTypeConstructor = 1016
  158. StaffTypeQuality = 1017
  159. StaffTypeSafety = 1018
  160. StaffTypeStandard = 1019
  161. StaffTypeMaterial = 1020
  162. StaffTypeMachine = 1021
  163. StaffTypeLabor = 1022
  164. StaffTypeData = 1023
  165. StaffTypeChiefSupervisorDelegate = 1024
  166. StaffTypeMeasure = 1025
  167. StaffTypeTester = 1026
  168. StaffTypeCost = 1027
  169. StaffTypeQualityResponsible = 1028
  170. StaffTypeSafetyResponsible = 1029
  171. StaffTypeTechnicalResponsible = 1030
  172. StaffTypeProduceManager = 1031
  173. StaffTypeSourceManager = 1032
  174. StaffTypeOther = 1099
  175. )
  176. var StaffTypeM = map[uint32]string{
  177. StaffTypeChiefSupervisor: "总监理工程师",
  178. StaffTypeDeputyChiefSupervisor : "副总监理工程师",
  179. StaffTypeSafetyChiefSupervisor: "安全监理工程师",
  180. StaffTypeProfessionalSupervisor: "专业监理工程师",
  181. StaffTypeNormalSupervisor: "监理工程师",
  182. StaffTypeSupervisor: "监理员",
  183. StaffTypeSupervisorSafty: "监理安全员",
  184. StaffTypeBigEngineer : "项目总工程师",
  185. StaffTypeManager : "项目经理",
  186. StaffTypeEngineerManager : "工程经理",
  187. StaffTypeTechnical: "项目技术负责人",
  188. StaffTypeEngineer : "项目工程师",
  189. StaffTypeAdmin : "项目管理员",
  190. StaffTypeDeputyManager : "项目副经理",
  191. StaffTypeChiefInspector : "项目总监",
  192. StaffTypeConstructor : "施工员",
  193. StaffTypeQuality : "质量员",
  194. StaffTypeSafety : "安全员",
  195. StaffTypeStandard : "标准员",
  196. StaffTypeMaterial : "材料员",
  197. StaffTypeMachine : "机械员",
  198. StaffTypeLabor : "劳务员",
  199. StaffTypeData: "资料员",
  200. StaffTypeChiefSupervisorDelegate : "总监理工程师代表",
  201. StaffTypeMeasure : "测量员",
  202. StaffTypeTester : "试验员",
  203. StaffTypeCost : "造价员",
  204. StaffTypeQualityResponsible : "质量负责人",
  205. StaffTypeSafetyResponsible : "安全负责人",
  206. StaffTypeTechnicalResponsible : "技术负责人",
  207. StaffTypeProduceManager : "生产经理",
  208. StaffTypeSourceManager : "物质材料工程师",
  209. StaffTypeOther : "其他",
  210. }
  211. // 证件类型
  212. const (
  213. CertTypeID = 1
  214. CertTypePassport = 2
  215. )
  216. var CertTypeM = map[uint32]string{
  217. CertTypeID:"身份证",
  218. CertTypePassport:"护照",
  219. }
  220. // 设备状态字典
  221. const (
  222. DeviceStateNormal = 1
  223. DeviceStateDel = 2
  224. DeviceStateOff = 3
  225. )
  226. var DeviceStateM = map[uint32]string{
  227. DeviceStateNormal:"正常",
  228. DeviceStateDel:"已拆机",
  229. DeviceStateOff:"暂停维护",
  230. }
  231. // 扬尘数据类型
  232. const (
  233. DustDataTypeRealTime = iota
  234. DustDataTypeMinute
  235. DustDataTypeHour
  236. DustDataTypeDay
  237. DustDataTypeNight
  238. DustDataTypeTotalDay
  239. DustDataTypeMonth
  240. DustDataTypeYear
  241. DustDataType20Minute
  242. )
  243. var ProvincialVerifyStatus = map[int32]string{
  244. 0:"暂未验证",
  245. 204:"验证结束",
  246. 203:"正在验证",
  247. 205:"等候验证",
  248. 201:"开始处理数据",
  249. }
  250. var ProvincialVerifyResult = map[int32]string{
  251. 0:"成功",
  252. 1:"失败",
  253. }