Enums.cs 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.ComponentModel;
  6. namespace Ant.Service.Common.Enums
  7. {
  8. /// <summary>
  9. /// 枚举独特类
  10. /// add 作者: 季健国 QQ:181589805 by 2016-10-10
  11. /// </summary>
  12. public class EnumsClass
  13. {
  14. /// <summary>
  15. /// 枚举value
  16. /// </summary>
  17. public int Value { get; set; }
  18. /// <summary>
  19. /// 枚举显示值
  20. /// </summary>
  21. public string Name { get; set; }
  22. /// <summary>
  23. /// 枚举说明
  24. /// </summary>
  25. public string Text { get; set; }
  26. }
  27. #region 系统管理相关
  28. /// <summary>
  29. /// 系统操作枚举
  30. /// </summary>
  31. public enum enumOperator
  32. {
  33. /// <summary>
  34. /// 无
  35. /// </summary>
  36. [Description("无")]
  37. None,
  38. /// <summary>
  39. /// 查询
  40. /// </summary>
  41. [Description("查询")]
  42. Select,
  43. /// <summary>
  44. /// 添加
  45. /// </summary>
  46. [Description("添加")]
  47. Add,
  48. /// <summary>
  49. /// 修改
  50. /// </summary>
  51. [Description("修改")]
  52. Edit,
  53. /// <summary>
  54. /// 移除
  55. /// </summary>
  56. [Description("移除")]
  57. Remove,
  58. /// <summary>
  59. /// 登录
  60. /// </summary>
  61. [Description("登录")]
  62. Login,
  63. /// <summary>
  64. /// 登出
  65. /// </summary>
  66. [Description("登出")]
  67. LogOut,
  68. /// <summary>
  69. /// 导出
  70. /// </summary>
  71. [Description("导出")]
  72. Export,
  73. /// <summary>
  74. /// 导入
  75. /// </summary>
  76. [Description("导入")]
  77. Import,
  78. /// <summary>
  79. /// 审核
  80. /// </summary>
  81. [Description("审核")]
  82. Audit,
  83. /// <summary>
  84. /// 回复
  85. /// </summary>
  86. [Description("回复")]
  87. Reply,
  88. /// <summary>
  89. /// 下载
  90. /// </summary>
  91. [Description("下载")]
  92. Download,
  93. /// <summary>
  94. /// 上传
  95. /// </summary>
  96. [Description("上传")]
  97. Upload,
  98. /// <summary>
  99. /// 分配
  100. /// </summary>
  101. [Description("分配")]
  102. Allocation,
  103. /// <summary>
  104. /// 文件
  105. /// </summary>
  106. [Description("文件")]
  107. Files,
  108. /// <summary>
  109. /// 流程
  110. /// </summary>
  111. [Description("流程")]
  112. Flow
  113. }
  114. /// <summary>
  115. /// log4net枚举
  116. /// </summary>
  117. public enum enumLog4net
  118. {
  119. [Description("普通")]
  120. INFO,
  121. [Description("警告")]
  122. WARN,
  123. [Description("错误")]
  124. ERROR,
  125. [Description("异常")]
  126. FATAL
  127. }
  128. /// <summary>
  129. /// 模块类别枚举,对应TBSYS_Module表的ModuleType字段
  130. /// </summary>
  131. public enum enumModuleType
  132. {
  133. 无页面 = 1,
  134. 列表页 = 2,
  135. 弹出页 = 3
  136. }
  137. /// <summary>
  138. /// 部门类型
  139. /// </summary>
  140. public enum enumDepartmentType
  141. {
  142. 胜利石油管理局 = 1,
  143. 施工队=2,
  144. 工程部 = 3,
  145. 计划科=4,
  146. 其他单位=5
  147. }
  148. #endregion
  149. #region 流程枚举
  150. /// <summary>
  151. /// 流程枚举
  152. /// </summary>
  153. public enum FLowEnums
  154. {
  155. /// <summary>
  156. /// 空白
  157. /// </summary>
  158. [Description("空白")]
  159. Blank = 0,
  160. /// <summary>
  161. /// 草稿
  162. /// </summary>
  163. [Description("草稿")]
  164. Draft = 1,
  165. /// <summary>
  166. /// 运行中
  167. /// </summary>
  168. [Description("运行中")]
  169. Runing = 2,
  170. /// <summary>
  171. /// 已完成
  172. /// </summary>
  173. [Description("已完成")]
  174. Complete = 3,
  175. /// <summary>
  176. /// 挂起
  177. /// </summary>
  178. [Description("挂起")]
  179. HungUp = 4,
  180. /// <summary>
  181. /// 退回
  182. /// </summary>
  183. [Description("退回")]
  184. ReturnSta = 5,
  185. /// <summary>
  186. /// 转发(移交)
  187. /// </summary>
  188. [Description("移交")]
  189. Shift = 6,
  190. /// <summary>
  191. /// 删除(逻辑删除状态)
  192. /// </summary>
  193. [Description("删除")]
  194. Delete = 7,
  195. /// <summary>
  196. /// 加签
  197. /// </summary>
  198. [Description("加签")]
  199. Askfor = 8,
  200. /// <summary>
  201. /// 冻结
  202. /// </summary>
  203. [Description("冻结")]
  204. Fix = 9,
  205. /// <summary>
  206. /// 批处理
  207. /// </summary>
  208. [Description("批处理")]
  209. Batch = 10,
  210. /// <summary>
  211. /// 加签回复状态
  212. /// </summary>
  213. [Description("加签回复")]
  214. AskForReplay = 11
  215. }
  216. #endregion
  217. #region 系统字典
  218. /// <summary>
  219. /// 类描述:系统字典
  220. /// 创建标识:add by 季健国 2013-8-8 14:14
  221. /// </summary>
  222. public class ClsDic
  223. {
  224. /// <summary>
  225. /// 根据DicKey值获取value
  226. /// </summary>
  227. public static string GetDicValueByKey(string key, Dictionary<string, string> p)
  228. {
  229. if (p == null || p.Count == 0) return "";
  230. var dic = p.GetEnumerator();
  231. while (dic.MoveNext())
  232. {
  233. var obj = dic.Current;
  234. if (key == obj.Key)
  235. return obj.Value;
  236. }
  237. return "";
  238. }
  239. /// <summary>
  240. /// 根据DICValue获取Key
  241. /// </summary>
  242. public static string GetDicKeyByValue(string value, Dictionary<string, string> p)
  243. {
  244. if (p == null || p.Count == 0) return "";
  245. var dic = p.GetEnumerator();
  246. while (dic.MoveNext())
  247. {
  248. var obj = dic.Current;
  249. if (obj.Value == value)
  250. return obj.Key;
  251. }
  252. return "";
  253. }
  254. /// <summary>
  255. /// 描述:实体与编码对应字典,在验证数据权限时,通过此处字典来枚举实体编号
  256. /// <author>创建标识: add by 季健国 2013-8-8 14:18</author>
  257. /// </summary>
  258. public static Dictionary<string, string> DicEntity
  259. {
  260. get
  261. {
  262. Dictionary<string, string> _dic = new Dictionary<string, string>();
  263. _dic.Add("日志", "");
  264. _dic.Add("用户", "18da4207-3bfc-49ea-90f7-16867721805c");
  265. return _dic;
  266. }
  267. }
  268. /// <summary>
  269. /// 描述:存放特别的角色编号字典,在验证操作权限时用到
  270. /// 创建标识:add by 季健国 2013-8-9 9:56
  271. /// </summary>
  272. public static Dictionary<string, int> DicRole
  273. {
  274. get
  275. {
  276. Dictionary<string, int> _dic = new Dictionary<string, int>();
  277. _dic.Add("超级管理员", 1);
  278. return _dic;
  279. }
  280. }
  281. /// <summary>
  282. /// 字典类型
  283. /// </summary>
  284. public static Dictionary<string, string> DicCodeType
  285. {
  286. get
  287. {
  288. Dictionary<string, string> _dic = new Dictionary<string, string>();
  289. try
  290. {
  291. string dicStr = Utils.GetFileContent(System.Web.HttpContext.Current.Server.MapPath("/Models/DicType.txt"), false);
  292. var diclist = dicStr.TrimEnd(',').TrimStart(',').Split(',').ToList();
  293. if (diclist.Count>0)
  294. {
  295. foreach (var item in diclist)
  296. {
  297. _dic.Add(item.Split('-')[0], item.Split('-')[1]);
  298. }
  299. }
  300. }
  301. catch { }
  302. return _dic;
  303. }
  304. }
  305. /// <summary>
  306. /// 附件上传路径
  307. /// 创建标识:add by 季健国 2013-8-21 13:58
  308. /// </summary>
  309. public static Dictionary<string, string> DicAttachmentPath
  310. {
  311. get
  312. {
  313. Dictionary<string, string> _dic = new Dictionary<string, string>();
  314. _dic.Add("上传路径", System.Configuration.ConfigurationManager.AppSettings["upfile"]);
  315. _dic.Add("档案简历", System.Configuration.ConfigurationManager.AppSettings["upfile"]);
  316. _dic.Add("手机文件", System.Configuration.ConfigurationManager.AppSettings["upphone"]);
  317. _dic.Add("手机照片", System.Configuration.ConfigurationManager.AppSettings["photofile"]);
  318. _dic.Add("技术文件", System.Configuration.ConfigurationManager.AppSettings["upTsfile"]);
  319. _dic.Add("工程图", System.Configuration.ConfigurationManager.AppSettings["UploadFiles"]);
  320. _dic.Add("档案头像", System.Configuration.ConfigurationManager.AppSettings["upfile"]);
  321. return _dic;
  322. }
  323. }
  324. /// <summary>
  325. /// 业务办理图片宽高
  326. /// 创建标识:add by 季健国 2013-8-21 13:58
  327. /// </summary>
  328. public static Dictionary<string, string> DicImageWH
  329. {
  330. get
  331. {
  332. Dictionary<string, string> _dic = new Dictionary<string, string>();
  333. _dic.Add("图片宽度", System.Configuration.ConfigurationManager.AppSettings["imgWidth"]);
  334. _dic.Add("图片高度", System.Configuration.ConfigurationManager.AppSettings["imgHeight"]);
  335. _dic.Add("手机用户头像高", System.Configuration.ConfigurationManager.AppSettings["UserPhotoHeight"]);
  336. _dic.Add("手机用户头像宽", System.Configuration.ConfigurationManager.AppSettings["UserPhotoWidth"]);
  337. _dic.Add("用户头像高", System.Configuration.ConfigurationManager.AppSettings["PolicePhotoHeight"]);
  338. _dic.Add("用户头像宽", System.Configuration.ConfigurationManager.AppSettings["PolicePhotoWidth"]);
  339. return _dic;
  340. }
  341. }
  342. /// <summary>
  343. /// 警务室图片宽高
  344. /// 创建标识:add by 季健国 2013-8-21 13:58
  345. /// </summary>
  346. public static Dictionary<string, string> DicPoliceHouseImageWH
  347. {
  348. get
  349. {
  350. Dictionary<string, string> _dic = new Dictionary<string, string>();
  351. _dic.Add("图片宽度", System.Configuration.ConfigurationManager.AppSettings["imgPoliceWidth"]);
  352. _dic.Add("图片高度", System.Configuration.ConfigurationManager.AppSettings["imgPoliceHeight"]);
  353. return _dic;
  354. }
  355. }
  356. /// <summary>
  357. /// OracleReportData
  358. /// 创建标识:add by 季健国 2013-8-21 13:58
  359. /// </summary>
  360. public static Dictionary<string, string> OracleReportData
  361. {
  362. get
  363. {
  364. Dictionary<string, string> _dic = new Dictionary<string, string>();
  365. _dic.Add("OrcalReport", System.Configuration.ConfigurationManager.AppSettings["connectionString"]);
  366. return _dic;
  367. }
  368. }
  369. /// <summary>
  370. /// 手机客户端命名
  371. /// 创建标识:add by 季健国 2013-8-21 13:58
  372. /// </summary>
  373. public static Dictionary<string, string> DicPhone
  374. {
  375. get
  376. {
  377. Dictionary<string, string> _dic = new Dictionary<string, string>();
  378. _dic.Add("安卓程序", System.Configuration.ConfigurationManager.AppSettings["AndroidName"]);
  379. _dic.Add("苹果程序", System.Configuration.ConfigurationManager.AppSettings["IOSName"]);
  380. return _dic;
  381. }
  382. }
  383. /// <summary>
  384. /// 功能描述:记录Cookie的Key值
  385. /// 创建标识:徐戈
  386. /// </summary>
  387. public static Dictionary<string, string> DicCookie
  388. {
  389. get
  390. {
  391. Dictionary<string, string> _dic = new Dictionary<string, string>();
  392. _dic.Add("Session中存储的帐号和CookieID", "AccountCookieID_Session");
  393. _dic.Add("Cookie中存储的帐号和CookieID", "AccountCookieIDNew");
  394. return _dic;
  395. }
  396. }
  397. /// <summary>
  398. /// 功能描述:记录Cookie的Key值
  399. /// 创建标识:徐戈
  400. /// </summary>
  401. public static Dictionary<string, string> DicCookieTimeout
  402. {
  403. get
  404. {
  405. Dictionary<string, string> _dic = new Dictionary<string, string>();
  406. _dic.Add("帐号过期时间", "30");
  407. return _dic;
  408. }
  409. }
  410. }
  411. #endregion
  412. #region 业务相关
  413. /// <summary>
  414. /// 计划流转状态
  415. /// </summary>
  416. public enum enumHCA_RecognitionProgramProcessType
  417. {
  418. 上报 = 1,
  419. 同意 = 2,
  420. 不同意 = 3
  421. }
  422. /// <summary>
  423. /// 上传文件类型
  424. /// </summary>
  425. public enum enumFileType
  426. {
  427. 其他 = 0,
  428. Word = 1,
  429. Excel = 2,
  430. 图片 = 3,
  431. PPT = 4,
  432. PDF = 5,
  433. RAR=6
  434. }
  435. /// <summary>
  436. ///路单状态
  437. /// </summary>
  438. public enum enumWAYBILLSTATE
  439. {
  440. 分派 = 1,
  441. 打印 = 2,
  442. 数据录入 = 3,
  443. 数据填报=4,
  444. 车队审核回收=5,
  445. 删除=6,
  446. 作废=7,
  447. 交接=8,
  448. 纳入结算=9,
  449. 完成结算=10
  450. }
  451. /// <summary>
  452. /// 来源
  453. /// </summary>
  454. public enum enumORIGIN
  455. {
  456. 自建 = 1,
  457. 任务 = 2,
  458. 外委申请 = 3
  459. }
  460. /// <summary>
  461. /// 应急物资规格型号
  462. /// </summary>
  463. public enum enumReliefGoodsModel
  464. {
  465. 规格型号1 = 1,
  466. 规格型号2 = 2,
  467. 规格型号3 = 3
  468. }
  469. /// <summary>
  470. /// 应急抢险救援物资类别
  471. /// </summary>
  472. public enum enumReliefGoodsType
  473. {
  474. 溢油 = 1,
  475. 防汛 = 2
  476. }
  477. /// <summary>
  478. /// 业务咨询枚举,对应业务咨询表的bptype字段
  479. /// </summary>
  480. public enum enumBptType
  481. {
  482. 在线咨询 = 401002,
  483. 身份证 = 501001,
  484. 户籍 = 501002,
  485. 治安管理 = 501003,
  486. 出入境 = 501004,
  487. 消防 = 501005,
  488. 其他业务 = 501006,
  489. 交警 = 501007,
  490. 网安 = 501008,
  491. 法制 = 501009
  492. }
  493. public enum enumNewsType
  494. {
  495. 警务信息 = 301001,
  496. 警方公告 = 301002,
  497. 防范提示 = 101501
  498. }
  499. /// <summary>
  500. /// 上传文件类型
  501. /// </summary>
  502. public enum enumBusType
  503. {
  504. 车辆图片上传 = 100001,
  505. 套管图片上传 = 103002,
  506. 三通图片上传 = 103003,
  507. 阀门图片上传 = 103004,
  508. 占压图片上传 = 103005,
  509. }
  510. /// <summary>
  511. /// 管道维修应急预案级别
  512. /// </summary>
  513. public enum enumEmergencyPlanLevel
  514. {
  515. 中石化 = 1,
  516. 油田 = 2,
  517. 总厂 = 3,
  518. 分厂 = 4
  519. }
  520. /// <summary>
  521. /// 阳极材料
  522. /// </summary>
  523. public enum enumAnodeMaterial
  524. {
  525. 未知 = 0,
  526. 镀铂阳极 = 1,
  527. 磁性氧化铁 = 2,
  528. 混合金属氧化物 = 3,
  529. 镁 = 4,
  530. 锌 = 5,
  531. 铂 = 6,
  532. 高硅铸铁 = 7,
  533. 石墨 = 8,
  534. 废钢铁 = 9,
  535. 碳 = 10,
  536. 铝合金 = 11,
  537. 其它 = 99
  538. }
  539. /// <summary>
  540. /// 业务咨询处理状态枚举,对应业务咨询表的requesStatus字段
  541. /// </summary>
  542. public enum enumBussinessType
  543. {
  544. 后台办理本部门业务 = 1,
  545. 手机办理本部门业务 = 2,
  546. 手机业务 = 3,
  547. 社区民警 = 4
  548. }
  549. /// <summary>
  550. /// 业务咨询处理状态枚举,对应业务咨询表的requesStatus字段
  551. /// </summary>
  552. public enum enumRequesStatus
  553. {
  554. 用户提交 = 0,
  555. 指定处理 = 1,
  556. 处理完成 = 2
  557. }
  558. public enum enumWorkType
  559. {
  560. 未指定 = -1,
  561. 手机方式 = 0,
  562. 电脑Web = 1
  563. }
  564. public enum enumIsBool
  565. {
  566. 是 = 1,
  567. 否 = 2
  568. }
  569. public enum enumPhoneUserType
  570. {
  571. 注册用户 = 1,
  572. 匿名用户 = 2
  573. }
  574. public enum enumReplyType
  575. {
  576. 未处理 = 0,
  577. 审核通过 = 1,
  578. 审核不通过 = 2
  579. }
  580. public enum enumBlogType
  581. {
  582. 新浪微博 = 0,
  583. 腾讯微博 = 1,
  584. 东营公安局的腾讯微博 = 2
  585. }
  586. #endregion
  587. }