ConfigModel.cs 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.Xml.Serialization;
  7. namespace SmartCoalApplication.Base.SettingModel
  8. {
  9. /// <summary>
  10. /// 设置 - 系统配置
  11. /// </summary>
  12. [XmlRoot("ROOT")]
  13. public class ConfigModel
  14. {
  15. /// <summary>
  16. /// 语言1 简体中文 2繁体中文
  17. /// </summary>
  18. [XmlElement("Language")]
  19. public int Language { get; set; }
  20. /// <summary>
  21. /// 名称前缀
  22. /// </summary>
  23. [XmlElement("NamePrefix")]
  24. public String NamePrefix { get; set; }
  25. /// <summary>
  26. /// 名称格式
  27. /// </summary>
  28. [XmlElement("NameFormat")]
  29. public string NameFormat { get; set; }
  30. /// <summary>
  31. /// 数值位数
  32. /// </summary>
  33. [XmlElement("NumberNum")]
  34. public int NumberNum { get; set; }
  35. /// <summary>
  36. /// 名称状态 1 延续 2 重置
  37. /// </summary>
  38. [XmlElement("NameStatus")]
  39. public int NameStatus { get; set; }
  40. /// <summary>
  41. /// 延续数值
  42. /// </summary>
  43. [XmlElement("ContinueNum")]
  44. public int ContinueNum { get; set; }
  45. /// <summary>
  46. /// 点距设置的数据库主键
  47. /// </summary>
  48. [XmlElement("DotPitchId")]
  49. public int DotPitchId { get; set; }
  50. /// <summary>
  51. /// 相机数据库主键
  52. /// </summary>
  53. [XmlElement("Camera")]
  54. public int Camera { get; set; }
  55. /// <summary>
  56. /// 系统复位的标记
  57. /// </summary>
  58. [XmlElement("SystemReset")]
  59. public int SystemReset { get; set; }
  60. /// <summary>
  61. /// 标尺表的id,表示用户选定的标尺
  62. /// </summary>
  63. [XmlElement("RulerId")]
  64. public int RulerId { get; set; }
  65. /// <summary>
  66. /// 当前系统选定的单位,对应程序里面的单位枚举,默认微米
  67. /// </summary>
  68. [XmlElement("Unit")]
  69. public int Unit { get; set; }
  70. /// <summary>
  71. /// 用户选择的水印样式的配置文件名
  72. /// </summary>
  73. [XmlElement("Watermark")]
  74. public string Watermark { get; set; }
  75. /// <summary>
  76. /// 用户选择的工型样式的配置文件名
  77. /// </summary>
  78. [XmlElement("WorkType")]
  79. public string WorkType { get; set; }
  80. /// <summary>
  81. /// 用户选择的标尺样式的配置文件名
  82. /// </summary>
  83. [XmlElement("RulerStyle")]
  84. public string RulerStyle { get; set; }
  85. /// <summary>
  86. /// 用户选择的标注样式的配置文件名
  87. /// </summary>
  88. [XmlElement("LabelStyle")]
  89. public string LabelStyle { get; set; }
  90. /// <summary>
  91. /// 用户选择的测量样式的配置文件名
  92. /// </summary>
  93. [XmlElement("MeasurementStyle")]
  94. public string MeasurementStyle { get; set; }
  95. /// <summary>
  96. /// 用户选择的测量区域的配置文件名
  97. /// </summary>
  98. [XmlElement("MeasurementArea")]
  99. public string MeasurementArea { get; set; }
  100. /// <summary>
  101. /// 启动图像状态 1 未勾选 2 已勾选
  102. /// </summary>
  103. [XmlElement("StartImgStatus")]
  104. public int StartImgStatus { get; set; }
  105. /// <summary>
  106. /// 默认启动图像
  107. /// </summary>
  108. [XmlElement("DefaultStartImg")]
  109. public string DefaultStartImg { get; set; }
  110. /// <summary>
  111. /// 启动图像
  112. /// </summary>
  113. [XmlElement("StartImg")]
  114. public string StartImg { get; set; }
  115. /// <summary>
  116. /// 常规操作
  117. /// </summary>
  118. [XmlElement("NormalOperation")]
  119. public string NormalOperation { get; set; }
  120. /// <summary>
  121. /// 通用分析
  122. /// </summary>
  123. [XmlElement("GeneralAnalysis")]
  124. public string GeneralAnalysis { get; set; }
  125. /// <summary>
  126. /// 专用分析
  127. /// </summary>
  128. [XmlElement("DedicatedAnalysis")]
  129. public string DedicatedAnalysis { get; set; }
  130. /// <summary>
  131. /// 是否自动添加ZEN标尺 1是 2否
  132. /// </summary>
  133. [XmlElement("AddZEN")]
  134. public int AddZEN { get; set; }
  135. /// <summary>
  136. /// 是否自动添加AxioVision标尺 1是 2否
  137. /// </summary>
  138. [XmlElement("AddAxioVision")]
  139. public int AddAxioVision { get; set; }
  140. /// <summary>
  141. /// 标注信息配置初始化的标记 0不复位 1复位
  142. /// </summary>
  143. [XmlElement("LabelInformationReset")]
  144. public int LabelInformationReset { get; set; }
  145. /// <summary>
  146. /// 测量信息配置初始化的标记 0不复位 1复位
  147. /// </summary>
  148. [XmlElement("MeasurementInformationReset")]
  149. public int MeasurementInformationReset { get; set; }
  150. /// <summary>
  151. /// log信息初始化的标记 0不复位 1复位
  152. /// </summary>
  153. [XmlElement("LogReset")]
  154. public int LogReset { get; set; }
  155. /// <summary>
  156. /// 快捷栏功能初始化的标记 0不复位 1复位
  157. /// </summary>
  158. [XmlElement("ShortcutBarReset")]
  159. public int ShortcutBarReset { get; set; }
  160. /// <summary>
  161. /// 工具栏初始化的标记 0不复位 1复位
  162. /// </summary>
  163. [XmlElement("ToolbarReset")]
  164. public int ToolbarReset { get; set; }
  165. /// <summary>
  166. /// 快捷键功能初始化的标记 0不复位 1复位
  167. /// </summary>
  168. [XmlElement("HotKeyReset")]
  169. public int HotKeyReset { get; set; }
  170. /// <summary>
  171. /// 用户选择的二值提取的参数配置
  172. /// </summary>
  173. [XmlElement("BinaryParameter")]
  174. public string BinaryParameter { get; set; }
  175. /// <summary>
  176. /// 方向设置Z轴运动方向 0上 1下
  177. /// </summary>
  178. [XmlElement("ZMovementDirection")]
  179. public int ZMovementDirection { get; set; }
  180. /// <summary>
  181. /// 方向设置X轴左运动方向 0正 1负
  182. /// </summary>
  183. [XmlElement("XLeftMovementDirection")]
  184. public int XLeftMovementDirection { get; set; }
  185. /// <summary>
  186. /// 方向设置X轴右运动方向 0正 1负
  187. /// </summary>
  188. [XmlElement("XRighttMovementDirection")]
  189. public int XRighttMovementDirection { get; set; }
  190. /// <summary>
  191. /// 方向设置Y轴左运动方向 0正 1负
  192. /// </summary>
  193. [XmlElement("YLeftMovementDirection")]
  194. public int YLeftMovementDirection { get; set; }
  195. /// <summary>
  196. /// 方向设置Y轴右运动方向 0正 1负
  197. /// </summary>
  198. [XmlElement("YRighttMovementDirection")]
  199. public int YRighttMovementDirection { get; set; }
  200. /// <summary>
  201. /// 是否生成配置文件-另存窗口 0否 1是
  202. /// </summary>
  203. [XmlElement("WhetherGenerateConfig")]
  204. public int WhetherGenerateConfig { get; set; }
  205. /// <summary>
  206. /// 保存后是否关闭图像-另存窗口 0否 1是
  207. /// </summary>
  208. [XmlElement("WhetherCloseAfterSave")]
  209. public int WhetherCloseAfterSave { get; set; }
  210. /// <summary>
  211. /// 保存时是否保存网格数据-另存窗口 0否 1是
  212. /// </summary>
  213. [XmlElement("WhetherSaveGridData")]
  214. public int WhetherSaveGridData { get; set; }
  215. /// <summary>
  216. /// 标注及测量信息是否嵌入图像-另存窗口 0否 1是
  217. /// </summary>
  218. [XmlElement("WhetherLabelMeasureInsert")]
  219. public int WhetherLabelMeasureInsert { get; set; }
  220. /// <summary>
  221. /// 相信息是否嵌入图像-另存窗口 0否 1是
  222. /// </summary>
  223. [XmlElement("PhaseInsert")]
  224. public int PhaseInsert { get; set; }
  225. /// <summary>
  226. /// 是否使用压缩比例-另存窗口 0否 1是
  227. /// </summary>
  228. [XmlElement("WhetherCompression")]
  229. public int WhetherCompression { get; set; }
  230. /// <summary>
  231. /// 压缩比例数值-另存窗口
  232. /// </summary>
  233. [XmlElement("CompressionRatio")]
  234. public decimal CompressionRatio { get; set; }
  235. /// <summary>
  236. /// 时间间隔-聚焦参数
  237. /// </summary>
  238. [XmlElement("TimeLag")]
  239. public int TimeLag { get; set; }
  240. /// <summary>
  241. /// 步长-聚焦参数
  242. /// </summary>
  243. [XmlElement("StepLength")]
  244. public int StepLength { get; set; }
  245. /// <summary>
  246. /// 项目工程里的项目编号的计数
  247. /// </summary>
  248. [XmlElement("ProjectCodeNum")]
  249. public int ProjectCodeNum { get; set; }
  250. /// <summary>
  251. /// 常规设置-网格信息-选中的网格样式名称
  252. /// </summary>
  253. [XmlElement("GridName")]
  254. public string GridName { get; set; }
  255. /// <summary>
  256. /// 标记点大小
  257. /// </summary>
  258. [XmlElement("MarkpointWidth")]
  259. public int MarkpointWidth { get; set; }
  260. /// <summary>
  261. /// 用户名
  262. /// </summary>
  263. [XmlElement("UserName")]
  264. public string UserName { get; set; }
  265. /// <summary>
  266. /// 密码
  267. /// </summary>
  268. [XmlElement("PassWord")]
  269. public string PassWord { get; set; }
  270. /// <summary>
  271. /// 設備編號
  272. /// </summary>
  273. [XmlElement("EquId")]
  274. public string EquId { get; set; }
  275. /// <summary>
  276. /// 组ID
  277. /// </summary>
  278. [XmlElement("GroupId")]
  279. public string GroupId { get; set; }
  280. /// <summary>
  281. /// FunId
  282. /// </summary>
  283. [XmlElement("FunId")]
  284. public string FunId { get; set; }
  285. /// <summary>
  286. /// FunId
  287. /// </summary>
  288. [XmlElement("FunId2")]
  289. public string FunId2 { get; set; }
  290. /// <summary>
  291. /// FunId
  292. /// </summary>
  293. [XmlElement("FunId3")]
  294. public string FunId3 { get; set; }
  295. /// <summary>
  296. /// FunId4
  297. /// </summary>
  298. [XmlElement("FunId4")]
  299. public string FunId4 { get; set; }
  300. /// <summary>
  301. /// FTPUserName
  302. /// </summary>
  303. [XmlElement("FTPUserName")]
  304. public string FTPUserName { get; set; }
  305. /// <summary>
  306. /// FTPPassword
  307. /// </summary>
  308. [XmlElement("FTPPassword")]
  309. public string FTPPassword { get; set; }
  310. /// <summary>
  311. /// FTPURL
  312. /// </summary>
  313. [XmlElement("FTPURL")]
  314. public string FTPURL { get; set; }
  315. /// <summary>
  316. /// FTPFilePath
  317. /// </summary>
  318. [XmlElement("FTPFilePath")]
  319. public string FTPFilePath { get; set; }
  320. /// <summary>
  321. /// FTPURL
  322. /// </summary>
  323. [XmlElement("decimalPlacesNum")]
  324. public int decimalPlacesNum { get; set; }
  325. /// <summary>
  326. /// 是否压缩
  327. /// </summary>
  328. [XmlElement("isCompression")]
  329. public bool isCompression { get; set; }
  330. /// <summary>
  331. /// 是否自动打开自动量测
  332. /// </summary>
  333. [XmlElement("autoOpenDialog")]
  334. public bool autoOpenDialog { get; set; }
  335. /// <summary>
  336. /// 是否上传
  337. /// </summary>
  338. [XmlElement("autoUpload")]
  339. public int autoUpload { get; set; }
  340. /// <summary>
  341. /// 是否上传
  342. /// </summary>
  343. [XmlElement("autoSPCUpload")]
  344. public int autoSPCUpload { get; set; }
  345. /// <summary>
  346. /// 是否下拉
  347. /// </summary>
  348. [XmlElement("autoDownload")]
  349. public bool autoDownload { get; set; }
  350. /// <summary>
  351. /// 孔铜位置 true 上 false xia1
  352. /// </summary>
  353. [XmlElement("autoPosition")]
  354. public bool autoPosition { get; set; }
  355. /// <summary>
  356. /// 接口密码
  357. /// </summary>
  358. [XmlElement("interfacePassWord")]
  359. public string interfacePassWord { get; set; }
  360. /// <summary>
  361. /// 辅助线线条样式
  362. /// </summary>
  363. [XmlElement("girdLineStyle")]
  364. public int girdLineStyle { get; set; }
  365. /// <summary>
  366. /// 辅助线颜色
  367. /// </summary>
  368. [XmlElement("girdLineColour")]
  369. public int girdLineColour { get; set; }
  370. /// <summary>
  371. /// 辅助线线宽
  372. /// </summary>
  373. [XmlElement("girdLineWidth")]
  374. public int girdLineWidth { get; set; }
  375. }
  376. }