ConfigModel.cs 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367
  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 PaintDotNet.Base.SettingModel
  8. {
  9. /// <summary>
  10. /// 设置 - 系统配置
  11. /// </summary>
  12. [XmlRoot("ROOT")]
  13. public class ConfigModel
  14. {
  15. /// <summary>
  16. /// 语言1中文 2英文 3德文
  17. /// </summary>
  18. [XmlElement("Language")]
  19. public int Language { get; set; }
  20. /// <summary>
  21. /// 当前条目名称
  22. /// </summary>
  23. [XmlElement("CurrentName")]
  24. public string CurrentName { get; set; }
  25. /// <summary>
  26. /// 当前自定义文本
  27. /// </summary>
  28. [XmlElement("customTxt")]
  29. public string customTxt { get; set; }
  30. /// <summary>
  31. /// 名称前缀
  32. /// </summary>
  33. [XmlElement("NamePrefix")]
  34. public String NamePrefix { get; set; }
  35. /// <summary>
  36. /// 名称格式
  37. /// </summary>
  38. [XmlElement("NameFormat")]
  39. public string NameFormat { get; set; }
  40. /// <summary>
  41. /// 数值位数
  42. /// </summary>
  43. [XmlElement("NumberNum")]
  44. public int NumberNum { get; set; }
  45. /// <summary>
  46. /// 名称状态 1 延续 2 重置
  47. /// </summary>
  48. [XmlElement("NameStatus")]
  49. public int NameStatus { get; set; }
  50. /// <summary>
  51. /// 延续数值
  52. /// </summary>
  53. [XmlElement("ContinueNum")]
  54. public int ContinueNum { get; set; }
  55. /// <summary>
  56. /// 名称前缀
  57. /// </summary>
  58. [XmlElement("CharZ1")]
  59. public String CharZ1 { get; set; }
  60. /// <summary>
  61. /// 名称格式
  62. /// </summary>
  63. [XmlElement("CharZ2")]
  64. public string CharZ2 { get; set; }
  65. /// <summary>
  66. /// 点距设置的数据库主键
  67. /// </summary>
  68. [XmlElement("DotPitchId")]
  69. public int DotPitchId { get; set; }
  70. /// <summary>
  71. /// 相机数据库主键
  72. /// </summary>
  73. [XmlElement("Camera")]
  74. public int Camera { get; set; }
  75. /// <summary>
  76. /// 系统复位的标记
  77. /// </summary>
  78. [XmlElement("SystemReset")]
  79. public int SystemReset { get; set; }
  80. /// <summary>
  81. /// 标尺表的id,表示用户选定的标尺
  82. /// </summary>
  83. [XmlElement("RulerId")]
  84. public int RulerId { get; set; }
  85. /// <summary>
  86. /// 当前系统选定的单位,对应程序里面的单位枚举,默认微米
  87. /// </summary>
  88. [XmlElement("Unit")]
  89. public int Unit { get; set; }
  90. /// <summary>
  91. /// 用户选择的水印样式的配置文件名
  92. /// </summary>
  93. [XmlElement("Watermark")]
  94. public string Watermark { get; set; }
  95. /// <summary>
  96. /// 用户选择的工型样式的配置文件名
  97. /// </summary>
  98. [XmlElement("WorkType")]
  99. public string WorkType { get; set; }
  100. /// <summary>
  101. /// 用户选择的标尺样式的配置文件名
  102. /// </summary>
  103. [XmlElement("RulerStyle")]
  104. public string RulerStyle { get; set; }
  105. /// <summary>
  106. /// 用户选择的标注样式的配置文件名
  107. /// </summary>
  108. [XmlElement("LabelStyle")]
  109. public string LabelStyle { get; set; }
  110. /// <summary>
  111. /// 用户选择的测量样式的配置文件名
  112. /// </summary>
  113. [XmlElement("MeasurementStyle")]
  114. public string MeasurementStyle { get; set; }
  115. /// <summary>
  116. /// 启动图像状态 1 未勾选 2 已勾选
  117. /// </summary>
  118. [XmlElement("StartImgStatus")]
  119. public int StartImgStatus { get; set; }
  120. /// <summary>
  121. /// 默认启动图像
  122. /// </summary>
  123. [XmlElement("DefaultStartImg")]
  124. public string DefaultStartImg { get; set; }
  125. /// <summary>
  126. /// 启动图像
  127. /// </summary>
  128. [XmlElement("StartImg")]
  129. public string StartImg { get; set; }
  130. /// <summary>
  131. /// 常规操作
  132. /// </summary>
  133. [XmlElement("NormalOperation")]
  134. public string NormalOperation { get; set; }
  135. /// <summary>
  136. /// 通用分析
  137. /// </summary>
  138. [XmlElement("GeneralAnalysis")]
  139. public string GeneralAnalysis { get; set; }
  140. /// <summary>
  141. /// 专用分析
  142. /// </summary>
  143. [XmlElement("DedicatedAnalysis")]
  144. public string DedicatedAnalysis { get; set; }
  145. /// <summary>
  146. /// 是否自动添加ZEN标尺 1是 2否
  147. /// </summary>
  148. [XmlElement("AddZEN")]
  149. public int AddZEN { get; set; }
  150. /// <summary>
  151. /// 是否自动添加AxioVision标尺 1是 2否
  152. /// </summary>
  153. [XmlElement("AddAxioVision")]
  154. public int AddAxioVision { get; set; }
  155. /// <summary>
  156. /// 标注信息配置初始化的标记 0不复位 1复位
  157. /// </summary>
  158. [XmlElement("LabelInformationReset")]
  159. public int LabelInformationReset { get; set; }
  160. /// <summary>
  161. /// 测量信息配置初始化的标记 0不复位 1复位
  162. /// </summary>
  163. [XmlElement("MeasurementInformationReset")]
  164. public int MeasurementInformationReset { get; set; }
  165. /// <summary>
  166. /// log信息初始化的标记 0不复位 1复位
  167. /// </summary>
  168. [XmlElement("LogReset")]
  169. public int LogReset { get; set; }
  170. /// <summary>
  171. /// 快捷栏功能初始化的标记 0不复位 1复位
  172. /// </summary>
  173. [XmlElement("ShortcutBarReset")]
  174. public int ShortcutBarReset { get; set; }
  175. /// <summary>
  176. /// 工具栏初始化的标记 0不复位 1复位
  177. /// </summary>
  178. [XmlElement("ToolbarReset")]
  179. public int ToolbarReset { get; set; }
  180. /// <summary>
  181. /// 快捷键功能初始化的标记 0不复位 1复位
  182. /// </summary>
  183. [XmlElement("HotKeyReset")]
  184. public int HotKeyReset { get; set; }
  185. /// <summary>
  186. /// 用户选择的二值提取的参数配置
  187. /// </summary>
  188. [XmlElement("BinaryParameter")]
  189. public string BinaryParameter { get; set; }
  190. /// <summary>
  191. /// 方向设置Z轴运动方向 0上 1下
  192. /// </summary>
  193. [XmlElement("ZMovementDirection")]
  194. public int ZMovementDirection { get; set; }
  195. /// <summary>
  196. /// 方向设置X轴左运动方向 0正 1负
  197. /// </summary>
  198. [XmlElement("XLeftMovementDirection")]
  199. public int XLeftMovementDirection { get; set; }
  200. /// <summary>
  201. /// 方向设置X轴右运动方向 0正 1负
  202. /// </summary>
  203. [XmlElement("XRighttMovementDirection")]
  204. public int XRighttMovementDirection { get; set; }
  205. /// <summary>
  206. /// 方向设置Y轴左运动方向 0正 1负
  207. /// </summary>
  208. [XmlElement("YLeftMovementDirection")]
  209. public int YLeftMovementDirection { get; set; }
  210. /// <summary>
  211. /// 方向设置Y轴右运动方向 0正 1负
  212. /// </summary>
  213. [XmlElement("YRighttMovementDirection")]
  214. public int YRighttMovementDirection { get; set; }
  215. /// <summary>
  216. /// 是否生成配置文件-另存窗口 0否 1是
  217. /// </summary>
  218. [XmlElement("WhetherGenerateConfig")]
  219. public int WhetherGenerateConfig { get; set; }
  220. /// <summary>
  221. /// 保存后是否关闭图像-另存窗口 0否 1是
  222. /// </summary>
  223. [XmlElement("WhetherCloseAfterSave")]
  224. public int WhetherCloseAfterSave { get; set; }
  225. /// <summary>
  226. /// 保存时是否保存网格数据-另存窗口 0否 1是
  227. /// </summary>
  228. [XmlElement("WhetherSaveGridData")]
  229. public int WhetherSaveGridData { get; set; }
  230. /// <summary>
  231. /// 标注及测量信息是否嵌入图像-另存窗口 0否 1是
  232. /// </summary>
  233. [XmlElement("WhetherLabelMeasureInsert")]
  234. public int WhetherLabelMeasureInsert { get; set; }
  235. /// <summary>
  236. /// 相信息是否嵌入图像-另存窗口 0否 1是
  237. /// </summary>
  238. [XmlElement("PhaseInsert")]
  239. public int PhaseInsert { get; set; }
  240. /// <summary>
  241. /// 是否使用压缩比例-另存窗口 0否 1是
  242. /// </summary>
  243. [XmlElement("WhetherCompression")]
  244. public int WhetherCompression { get; set; }
  245. /// <summary>
  246. /// 压缩比例数值-另存窗口
  247. /// </summary>
  248. [XmlElement("CompressionRatio")]
  249. public decimal CompressionRatio { get; set; }
  250. /// <summary>
  251. /// 时间间隔-聚焦参数
  252. /// </summary>
  253. [XmlElement("TimeLag")]
  254. public int TimeLag { get; set; }
  255. /// <summary>
  256. /// 步长-聚焦参数
  257. /// </summary>
  258. [XmlElement("StepLength")]
  259. public int StepLength { get; set; }
  260. /// <summary>
  261. /// 项目工程里的项目编号的计数
  262. /// </summary>
  263. [XmlElement("ProjectCodeNum")]
  264. public int ProjectCodeNum { get; set; }
  265. /// <summary>
  266. /// 常规设置-网格信息-选中的网格样式名称
  267. /// </summary>
  268. [XmlElement("GridName")]
  269. public string GridName { get; set; }
  270. /// <summary>
  271. /// 标记点大小
  272. /// </summary>
  273. [XmlElement("MarkpointWidth")]
  274. public int MarkpointWidth { get; set; }
  275. /// <summary>
  276. /// 命名空间集合
  277. /// </summary>
  278. [XmlElement("LstNaming")]
  279. public List<NamingMethod> LstNaming { get; set; }
  280. /// <summary>
  281. /// 自定义文本
  282. /// </summary>
  283. [XmlElement("LstCustomTxt")]
  284. public CustomTxtModel LstCustomTxt { get; set; }
  285. /// <summary>
  286. /// 当前自定义文本T1
  287. /// </summary>
  288. [XmlElement("Txt1")]
  289. public string Txt1 { get; set; }
  290. /// <summary>
  291. /// 当前自定义文本T2
  292. /// </summary>
  293. [XmlElement("Txt2")]
  294. public string Txt2 { get; set; }
  295. /// <summary>
  296. /// 当前自定义文本T3
  297. /// </summary>
  298. [XmlElement("Txt3")]
  299. public string Txt3 { get; set; }
  300. /// <summary>
  301. /// 卡规设置
  302. /// </summary>
  303. [XmlElement("calipersSetModel")]
  304. public CalipersSetModel calipersSetModel { get; set; }
  305. /// <summary>
  306. /// 保存拍照图片 1位是否保存,2位是否打开图片
  307. /// </summary>
  308. public int CaptureSaveMode { get; set; }
  309. /// <summary>
  310. /// 拍照带标尺否
  311. /// </summary>
  312. public bool CaptureHasRoler { get; set; }
  313. }
  314. }