CommonMessage.h 44 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197
  1. //---------------------------------------------------------------------------------------
  2. //
  3. // Copyright (c) 2005,珠海友通科技有限公司——通用型DROC
  4. // All rights reserved.
  5. //
  6. // 文件名称:CommonMessage.h
  7. // 文件标识:见配置管理计划书
  8. // 摘 要:系统之间需要传递的的消息主要有界面消息,硬件消息,数据流消息,以方便模块之间传递消息
  9. //
  10. // 当前版本:0.1
  11. // 作 者:吕国政
  12. // 完成日期:2005年1月10日
  13. //
  14. // 取代版本:
  15. // 原 作 者:
  16. // 完成日期:
  17. //
  18. //---------------------------------------------------------------------------------------
  19. #pragma once
  20. //界面发送的消息:
  21. #define WM_ECOM_UI WM_USER + 1000 //USER INTERFACE
  22. //Workflow调用UIInterface的InitView函数,UIInterface显示InitForm,然后向Workflow发送此消息,
  23. //Workflow开始进行硬件及服务器的连接和初始化。
  24. #define MSG_UI_INIT WM_ECOM_UI + 0
  25. //显示登陆界面后,向workflow发送此消息,加载所有的用户信息。
  26. #define MSG_UI_LOGON_USERALL WM_ECOM_UI + 1
  27. //在登陆界面选定用户,进入工作状态后,向workflow发送此消息。
  28. #define MSG_UI_LOGON_USERLOGON WM_ECOM_UI + 2
  29. //登出界面选择关闭计算机项,向workflow发送此消息。
  30. #define MSG_UI_LOGOFF WM_ECOM_UI + 3
  31. //WPARAM:
  32. #define ECOM_SHOTDOWN 1 //关闭计算机项
  33. #define ECOM_CHANAGEUSER 2 //更改用户
  34. #define ECOM_EXITAPP 3 //退出DROC程序
  35. #define ECOM_RESTARTUP 4 //计算机重起
  36. //用户管理界面,添加/删除/修改
  37. #define MSG_UI_MANAGEUSER WM_ECOM_UI + 4
  38. //WPARAM:
  39. //#define ECOM_ADD 1 //添加
  40. //#define ECOM_DELETE 2 //删除
  41. //#define ECOM_MODIFY 3 //修改
  42. //
  43. //#define ECOM_LOAD 1 //加载
  44. //#define ECOM_REFRESH 2 //刷新
  45. //#define ECOM_RESUBMIT 3 //重新提交
  46. //#define ECOM_DELETE 4 //删除
  47. //#define ECOM_SUSPEND 5 //挂起
  48. //#define ECOM_ADD 6 //添加
  49. //#define ECOM_MODIFY 7 //修改
  50. //本地注册界面,增加
  51. #define MSG_UI_LOCALREG_ADD WM_ECOM_UI + 5
  52. //本地注册界面,修改
  53. #define MSG_UI_LOCALREG_MODIFY WM_ECOM_UI + 6
  54. //设定检索标准,向workflow发送此消息,检索
  55. #define MSG_UI_WORKLIST_QUREY WM_ECOM_UI + 7
  56. //WPARAM:
  57. #define ECOM_PATIENT_LEVEL 1 //for MANAGEUSER
  58. #define ECOM_VISIT_LEVEL 2
  59. #define ECOM_STUDY_LEVEL 3
  60. #define ECOM_WORK_LEVEL 4
  61. #define ECOM_IMAGE_LEVEL 5
  62. #define ECOM_AUTO_LEVEL 6
  63. //刷新任务清单时,向workflow发送此消息。
  64. #define MSG_UI_WORKLIST_REFRESH WM_ECOM_UI + 8
  65. //一个病人的检查
  66. #define MSG_UI_EXAM WM_ECOM_UI + 9
  67. //一个STUDY的检查
  68. #define MSG_UI_WORK WM_ECOM_UI + 10
  69. //一个VIEW/体位的检查
  70. #define MSG_UI_VIEW WM_ECOM_UI + 11
  71. //LPARAM:
  72. #define ECOM_ACCEPTED 1
  73. #define ECOM_REFUSED 2
  74. #define ECOM_NEW 3
  75. #define ECOM_UPDATE 4
  76. //WPARAM:
  77. #define ECOM_BEGIN 1
  78. #define ECOM_SUSPEND 2
  79. //#define ECOM_END 3
  80. #define ECOM_DATA_MODIFIED 4
  81. #define ECOM_INFO_MODIFIED 5
  82. //加载View的图像或者信息
  83. #define MSG_UI_VIEW_LOAD WM_ECOM_UI + 12
  84. //WPARAM:
  85. #define ECOM_IMAGE_ICON_LEVEL 1 //加载对应的投照示意图或拍片后的缩略图时
  86. #define ECOM_IMAGE_INFO_LEVEL 2 //加载对应的曝光,投照信息
  87. #define ECOM_IMAGE_DATA_LEVEL 3 //加载对应的图像数据,处理参数,LUT数据
  88. //加载读取平板图像或者假图,不进行真实的曝光
  89. #define MSG_UI_VIEW_DEMO WM_ECOM_UI + 28
  90. //改变当前view投照的技术参数,发送此消息
  91. #define MSG_UI_VIEW_TECH WM_ECOM_UI + 13
  92. #define MSG_UI_RECOVER_LASTIMAGE WM_ECOM_UI + 50
  93. //WPARAM:
  94. //#define GEN_PARAM_KV 0 //kv
  95. //#define GEN_PARAM_MA 1 //ma
  96. //#define GEN_PARAM_MS 2 //ms
  97. //#define GEN_PARAM_MAS 3 //mas
  98. //#define GEN_PARAM_RE 8 //reset //LPARAM: MSG_GEN_ERR, MSG_PANEL_ERROR, MSG_SYN_ERROR
  99. //#define GEN_PARAM_WS 9 //workstation
  100. //#define GEN_PARAM_FO 11 //Focus
  101. //#define GEN_PARAM_ET 12 //exposure mode: MA/Time mode, Ma/Ms mode,AEC mode//
  102. //#define GEN_PARAM_FI 16 //AEC Field
  103. //#define GEN_PARAM_FN 18 //AEC Density
  104. #define PNL_PARAM_PW 51
  105. //WPARAM:
  106. #define ECOM_WAKEUP 1
  107. #define ECOM_STANDBY 0
  108. #define PNL_PARAM_XWINDOW 52
  109. //#define KV 1
  110. //#define MA 2
  111. //#define MS 3
  112. //#define MAS 4
  113. //#define MODE 5
  114. //#define RESET 6 //LPARAM: 1 MSG_GEN_ERR: GEN, 2 MSG_PANEL_ERROR: PANEL, 3 MSG_SYN_ERROR: SYN
  115. //#define FOCUS 7
  116. //#define AECFIELD 8
  117. //#define AECDENSITY 9
  118. #define ECOM_SID 38 //改变SID时
  119. #define ECOM_COLLIMATOR 39 //设置电动COLLIMATOR时
  120. #define ECOM_SIZE 40 //改变病人体型后
  121. #define ECOM_POSTDOSE 41 //AEC模式,曝光后要得到实际曝光的剂量时
  122. // BUCKY 旋转.
  123. #define ECOM_BUCKY_ROTATE 61
  124. //LPARAM:
  125. #define ECOM_INC 1 //kv, ma, ms, mas 增加
  126. #define ECOM_DEC 2 ////kv, ma, ms, mas 减小
  127. #define ECOM_INC_L 3 //kv, ma, ms, mas 增加大步长5
  128. #define ECOM_DEC_L 4 ////kv, ma, ms, mas 减小大步长5
  129. #define ECOM_SIZE_SMALL 1
  130. #define ECOM_SIZE_MIDDLE 2
  131. #define ECOM_SIZE_LARGE 3
  132. #define ECOM_SIZE_PAEDIATRIC 4
  133. //曝光结束生成DICOM图像,或检查结束,或者察看本地数据,需要发送图像时,发送此图像。
  134. #define MSG_UI_VIEW_DCMSEND WM_ECOM_UI + 14
  135. //曝光结束生成DICOM图像,或检查结束,或者察看本地数据,需要打印图像时,发送此图像。
  136. #define MSG_UI_VIEW_DCMPRINT WM_ECOM_UI + 15
  137. //进入队列管理界面,管理发送队列
  138. #define MSG_UI_QUEUESEND WM_ECOM_UI + 16
  139. //进入队列管理界面,管理打印队列
  140. #define MSG_UI_QUEUEPRINT WM_ECOM_UI + 17
  141. //WPARAM:
  142. #define ECOM_LOAD 1 //加载
  143. #define ECOM_REFRESH 2 //刷新
  144. #define ECOM_RESUBMIT 3 //重新提交
  145. #define ECOM_DELETE 4 //删除
  146. #define ECOM_PAUSE 5 //挂起
  147. #define ECOM_ADD 6 //添加
  148. #define ECOM_MODIFY 7 //修改
  149. //本地图像管理,查询
  150. #define MSG_UI_IMAGEMANAGE_QUREY WM_ECOM_UI + 18
  151. //WPARAM:
  152. //#define PATIENT 1 //for MANAGEUSER
  153. //#define VISIT 2
  154. //#define STUDY 3
  155. //#define WORK 3
  156. //#define IMAGE 3
  157. #define MSG_UI_IMAGEMANAGE_WORK WM_ECOM_UI + 19
  158. //#define ECOM_LOAD 1 //加载
  159. //#define ECOM_DELETE 4 //删除
  160. //#define ECOM_MODIFY 7 //修改
  161. #define ECOM_LOCK 8 //保护
  162. #define ECOM_UNLOCK 9 //解保护
  163. #define ECOM_EXPORT 10 //export
  164. #define MSG_UI_RECYCLEMANAGE_QUREY WM_ECOM_UI + 20
  165. #define MSG_UI_RECYCLEMANAGE_WORK WM_ECOM_UI + 21
  166. //#define ECOM_LOAD 1 //加载
  167. //#define ECOM_DELETE 4 //删除
  168. //#define ECOM_MODIFY 7 //修改
  169. //回放当前选择的图像
  170. #define MSG_UI_IMAGEMENAGE_DCMVIEWER WM_ECOM_UI + 22
  171. //重新preview当前选择的图像
  172. #define MSG_UI_IMAGEMENAGE_REPREVIEW WM_ECOM_UI + 23
  173. //校正界面
  174. #define MSG_UI_CALIBRATION WM_ECOM_UI + 24
  175. //WPARAM:
  176. //#define ECOM_LOAD 1
  177. #define ECOM_EXIT 2
  178. //选择某校正参数集校正
  179. #define MSG_UI_CALIBRATION_MODE WM_ECOM_UI + 25
  180. // 图像处理参数调整
  181. #define MSG_UI_IMAGE_PARAM_ADJUST WM_ECOM_UI + 32
  182. //WPARAM:
  183. #define ECOM_BEGIN 1
  184. #define ECOM_PERFORM 2
  185. #define ECOM_END 3
  186. #define ECOM_ACCEPT 4
  187. #define ECOM_REJECTACCEPTED 6 //UI的处理逻辑:先使能continue按钮;再弹出对话框提示,再调用getcalibrationstep
  188. #define ECOM_DELETEACCEPTED 7
  189. #define ECOM_ACCEPTDELETEED 8
  190. #define ECOM_TUBE_WARMUP 9
  191. //#define ECOM_FCALEXP 10 //用于原厂校正不出图的情况,表示曝光开始 使用PNL_READING代替
  192. //传统模式时
  193. #define MSG_UI_CONVENTIONAL WM_ECOM_UI + 26
  194. //WPARAM:
  195. //#define ECOM_BEGIN 1
  196. //#define ECOM_END 3
  197. //进入找坏点的界面
  198. #define MSG_BADPIXEL WM_ECOM_UI + 27
  199. #define MSG_UI_STATISTIC WM_ECOM_UI + 29
  200. //WPARAM:
  201. #define ECOM_WORKINFO 1
  202. #define ECOM_REJECTIMGINFO 2
  203. #define MSG_UI_AUTOREG_SETTING WM_ECOM_UI + 30
  204. //影像质量控制
  205. #define MSG_UI_IMAGE_QC WM_ECOM_UI + 31
  206. #define MSG_UI_DROC_CONF WM_ECOM_UI + 33
  207. #define MSG_UI_IMAGE_EXPORT WM_ECOM_UI + 34
  208. #define MSG_UI_RELOAD_CONF WM_ECOM_UI + 35
  209. //WPAEAM:
  210. #define ECOM_LOAD 1
  211. #define ECOM_SAVE 2
  212. //硬件发送的消息
  213. #define WM_ECOM_HW WM_USER + 1100 //HARD WARE
  214. //曝光序列的状态,综合MSG_PANEL_STATUS和MSG_GEN_EXPOSURE
  215. #define MSG_HW_SEQUENCE WM_ECOM_HW + 0
  216. //WPARAM:
  217. #define HWCOMMSTATUS 0
  218. #define HWREADY 1 //平板准备好,可以开始曝光,这个消息和MSG_PANEL_STATUS重复
  219. #define SEQUENCEBEGIN 2 //手闸按下
  220. #define GENREADY 3 //球馆准备好,可以曝光,平板开始准备开始曝光周期
  221. #define XRAYWINDOWON 4 //平板曝光窗口打开
  222. #define XRAYON 5 //出现X射线 //该消息变成了软同步启动流程,通常来自于发生器端
  223. #define XRAYOFF 6 //X射线停止
  224. #define XRAYWINDOWOFF 7 //平板曝光窗口关闭
  225. #define READIMG 8 //读取图像
  226. #define SEQUENCEEND 9 //序列完成/失败,等待硬件准备
  227. #define HWPREPARE 10 //平板继续准备,这个消息和MSG_PANEL_STATUS重复
  228. #define XRAYOFF_DIRECT 11 //传统模式曝光结束
  229. //code begin 20130911
  230. #define PREHANDSWITCHPRESS 12 //一级手闸按下,但并没有收到发生器串口发出的球管ready确认的状态 目前仅在dragon使用
  231. #define PREHANDSWITCHRELEASE 13 //一级手闸松开 目前仅在dragon使用
  232. //code end 20130911
  233. #define SHUTDOWN 14 //退出DROC系统,关闭计算机 //code 20140328
  234. #define HANDSWITCHPRESS 15 //Sedecal专用:一级手闸按下,收到PR1
  235. #define HANDSWITCHRELEASE 16 //Sedecal专用:一级手闸松开,收到PR0
  236. #define CANCLESHUTDOWN 17 //停止关机操作 code 20170502
  237. #define PERSHUTDOWN 18 //预关机操作 code 20170502
  238. #define XRAYONFROMGEN 19 //出线(备注:专门用于射线,不能参与任何流程)
  239. #define XRAYOFFFROMGEN 20 //射线停止(备注:专门用于射线,不能参与任何流程)
  240. //显示硬件错误
  241. #define MSG_HW_NOTIFY WM_ECOM_HW + 1
  242. //WPARAM:
  243. #define ECOM_WARNING 0 //警告,自动处理
  244. #define ECOM_ERROR 1 //错误,需要处理
  245. #define ECOM_ERRORWARNING 2 //错误,需要处理
  246. //code begin 20091117
  247. #define ECOM_STITCHING_INFO 3 //错误,需要处理
  248. //code end 20091117
  249. //#define ECOM_INFO 4 //正常提示
  250. #define ECOM_DEVICE_AUTO_INFOR 5
  251. #define ECOM_DEVICE_INFOR 6
  252. //code begin 20140423
  253. #define ECOM_RECOVER_P_ERROR 7 //可恢复 需要处理的error
  254. //code end 20140423
  255. #define ECOM_DEVICE_INFOR_DISEXP 8 //曝光条件不满足,禁止曝光
  256. #define ECOM_CONNECT_RESULT 9
  257. #define ECOM_DEVICE_RESET 30 //reset 错误消息
  258. #define ECOM_DEVICE_INFOR_ENEXP 31 //曝光条件满足 20151013
  259. #define ECOM_CURRENT_EXPOSURE_FAIL 32 //曝光失败
  260. #define ECOM_ERROR_OTHERS 255 //其他错误,界面弹出对话框
  261. // add by song
  262. // date:2014-04-21
  263. // 目的: WPARAM切换workstation时让界面弹出进度条
  264. #define ECOM_DEVICE_SELECT_WS_BEGIN 131 //切换WS开始
  265. #define ECOM_DEVICE_SELECT_WS_ING 132 //切换WS过程中
  266. #define ECOM_DEVICE_SELECT_WS_END 133 //切换WS结束
  267. //LPARAM根据这个参数进度条上的提示语不一样
  268. #define SELECT_WS_START 0 //开始
  269. #define SELECT_WS_GEN 1 //发生器切换中
  270. #define SELECT_WS_PANEL 2 //探测器切换中
  271. #define SELECT_WS_FAILED 3 //WS切换失败
  272. #define SELECT_WS_SUCCESS 4 //切换成功
  273. //song 2016-04-21 end
  274. //LPARAM
  275. //Point of CString for ErrorMessage
  276. //WPARAM:
  277. //平板信息,返回平板数据:温度,信息,图像数据
  278. #define MSG_PANEL_INFO WM_ECOM_HW + 2
  279. //WPARAM:
  280. #define ECOM_PANEL_INFO_LEVEL 0 //信息,平板温度等
  281. #define ECOM_PANEL_DATA_LEVEL 1 //图像数据
  282. #define ECOM_PANEL_INFO_BATTERY_CHARGE 2 // the charge of the battery
  283. #define ECOM_PANEL_INFO_WIFI_LEVEL 3 // the level of wifi, int percentage
  284. #define ECOM_PANEL_INFO_X_WINDOW 4 //the index for x_ray window avaiable time LPARAM: int
  285. //
  286. #define ECOM_PANEL_INFO_BATTERY_CHARGING 5//3
  287. #define BATTERY_CHARGING 1
  288. #define BATTERY_NOT_CHARGING 0
  289. //code end 20100330
  290. #define ECOM_PANEL_WARN_EVENT 6 //point to CString
  291. #define ECOM_PANEL_ERROR_EVENT 7 //point to CString
  292. #define ECOM_PANEL_FLAT_IMAGE_CHECK 8 //point to CString
  293. #define ECOM_PANEL_DARK_IMAGE_CHECK 9
  294. #define ECOM_PANEL_PREVIEW_DATA_LEVEL 10
  295. #define ECOM_PANEL_INFO_BATTERY_CHARGE_B 11 //双板中第二块电池的电量消息号
  296. #define ECOM_PANEL_INFO_WIFI_LEVEL_B 12
  297. #define ECOM_PANEL_INFO_LEVEL_B 13 //信息,平板温度等
  298. #define ECOM_PANEL_UNIQUE_INFO_LEVEL 14 //song20130913 平板特有的信息,目前应用于varian
  299. #define IMAGE_EXI 15
  300. #define IMAGE_STANDARD_EXI 16
  301. #define ECOM_PNL_NOTIFY 17
  302. #define PANEL_ROTATE_X 18
  303. #define PANEL_ROTATE_Y 19
  304. #define PANEL_ROTATE_Z 20
  305. #define PANEL_STOREDIMAGE_LIST 21
  306. #define ECOM_PANEL_AEC_DATA_LEVEL 22
  307. #define IMAGE_FACTOR_EXI_UGY 23 //Code 20140808
  308. #define ECOM_PANEL_CALIB_INFO 24 //校正时,将当前探测器类型及当前校正点,以该消息发给UI
  309. #define ECOM_PANEL_INFO_TEMPERATURE 25 //第一块探测器温度
  310. #define ECOM_PANEL_INFO_TEMPERATURE_B 26 //第二块探测器温度
  311. #define ECOM_PANEL_INFO_ORIENTATION_TABLE 27 //第一块探测器方向
  312. #define ECOM_PANEL_INFO_ORIENTATION_WALL 28 //第二块探测器方向
  313. #define ECOM_PANEL_SERIAL_NUMBER 29 //2016-1-108 RPW for flarida
  314. #define MASK_INFO 30 //MASK INFO
  315. #define ECOM_PANEL_INFO_A 31 // 探测器共享时所有探测器信息
  316. #define SHOCK_SENSOR 32 //
  317. #define SHOCK_SENSOR_CLEAR 33 //
  318. #define AEC_IMAGE_EXI 34 //
  319. #define AEC_IMAGE_FACTOR_PERVIEMAN 35 //
  320. #define ECOM_PANEL_INFO_B 36 // 探测器共享时所有探测器信息
  321. #define ECOM_PANEL_INFO_C 37 // 探测器共享时所有探测器信息
  322. #define ECOM_PANEL_IMAGE_DATA 38 //图像数据
  323. #define ECOM_PANEL_PREVIEW_IMAGE_DATA 39 //图像数据
  324. #define ECOM_TRANSLATE_IMAGE_END 40
  325. #define ECOM_PANEL_WINDOW_MODE 41 //设置曝光窗口模式
  326. #define ECOM_PANEL_PIXEL_SPACE 42 //设置探测器的分辨率
  327. //addbyys20191224 为DIOS Adapter增加的初始化结果消息
  328. #define ECOM_PANEL_INFO_INIT 70
  329. #define ECOM_INIT_OK 1
  330. #define ECOM_INIT_FAILED 2
  331. //addend20191224
  332. //addbyys20201118 为DIOS Adapter增加的offset结果消息
  333. #define ECOM_PANEL_INFO_OFFSET 71
  334. #define ECOM_OFFSET_OK 1
  335. #define ECOM_OFFSET_FAILED 2
  336. //addend2019201118
  337. #define ORIENTATION_CLOCKWISE_0 0 //clockwise Retation 0
  338. #define ORIENTATION_CLOCKWISE_90 1 //clockwise Retation 90
  339. #define ORIENTATION_CLOCKWISE_180 2 //clockwise Retation 180
  340. #define ORIENTATION_CLOCKWISE_270 3 //clockwise Retation 270
  341. #define PNL_TEMPER_STATUS 105//探测器温度状态
  342. #define TEMPER_TOO_HIGH 1 //禁止曝光
  343. #define TEMPER_HIGH 2 //不禁止曝光
  344. #define TEMPER_NORMAL 0
  345. #define TEMPER_TOO_LOW -1
  346. #define TEMPER_NA 3
  347. #define TEMPER_CLEAR 4
  348. #define PNL_WIFI_STATUS 106//无线信号强度状态
  349. #define WIFI_TOO_LOW 2 // WIFI太低
  350. #define WIFI_LOW 1 // WIFI低
  351. #define WIFI_NORMAL 0 //满格
  352. #define WIFI_NORMAL_LV1 3 //降一格
  353. #define WIFI_NORMAL_LV2 4 // 降两格
  354. #define WIFI_NA 5 // wifi无法获取
  355. #define WIFI_CLEAR 6 // wifi清空
  356. #define PNL_BATTERY_STATUS 107//电池电量状态
  357. #define BATTERY_TOO_LOW 2 // Battery太低
  358. #define BATTERY_LOW 1 // Battery低
  359. #define BATTERY_NORMAL 0 //满格
  360. #define BATTERY_NORMAL_LV1 3 //降一格
  361. #define BATTERY_NORMAL_LV2 4 // 降两格
  362. #define BATTERY_CLEAR 5 //连接断开时发这个消息将电量信息清空
  363. #define BATTERY__NA 6 //电量无法获取
  364. #define PNL_BATTERY_STATUS_B 108//第二块板的电池电量状态
  365. #define PNL_TEMPER_STATUS_B 109//第二块板的温度状态
  366. #define PNL_WIFI_STATUS_B 110//第二块板的WIFI状态
  367. /*add by song 20140324
  368. 当探测器的温度只有正常和不正常两种的情况下.
  369. 收到TEMPER_OK在探测器温度显示图标处显示TEMPER_OK;
  370. 当收到探测器温度不正常的消息时显示TEMPER_ERROR同时禁止曝光*/
  371. #define TEMPER_OK 0
  372. #define TEMPER_ERROR 1 //禁止曝光
  373. /*add by song 2015-10-9
  374. //第三块板的状态和值的宏定义*/
  375. #define ECOM_PANEL_INFO_BATTERY_CHARGE_C 114 //第三块电池的电量消息号
  376. #define ECOM_PANEL_INFO_WIFI_LEVEL_C 115 //第三块平板的wifi值
  377. #define ECOM_PANEL_INFO_TEMPERATURE_C 116 //第三块探测器温度
  378. #define PNL_BATTERY_STATUS_C 117//第三块板的电池电量状态
  379. #define PNL_TEMPER_STATUS_C 118//第三块板的温度状态
  380. #define PNL_WIFI_STATUS_C 119//第三块板的WIFI状态
  381. //平板状态
  382. #define MSG_PANEL_STATUS WM_ECOM_HW + 3
  383. //WPARAM:
  384. #define PNL_COMM_STATUS 0 ///20130322
  385. #define PNL_READY 1 //panel ready
  386. #define PNL_WINDOWON 2 //x-ray enable window on
  387. #define PNL_WINDOWOFF 3 //x-ray enable window off
  388. #define PNL_READING 4 //正在读图
  389. #define PNL_READING_PROGRESS 41 //读图状态
  390. #define PNL_PREPARE 5 //正在准备,如calibration,结束standby等
  391. #define PNL_STANDBY 6 //standby模式
  392. #define PNL_ABORT 7 //放弃曝光
  393. #define PNL_IMGREADY 8 //传输图像结束;
  394. #define PNL_WAKEBEGIN 9 //正在唤醒
  395. #define PNL_WAKEEND 10 //已经被唤醒
  396. #define PNL_USB_READY 11 //for CTrixellFS23 detector
  397. #define PNL_USB_BUSY 12 //for CTrixellFS23 detector
  398. //code begin 20101027
  399. #define PNL_ACTUAL_MODE 13 //indicate panel status 1, Actual connect, 0 demo mode, 2, actual mode, not connected.
  400. //code end 20101027
  401. #define PNL_OFSBEGIN 14 //add by wangyb 20130625
  402. #define PNL_OFSEND 15
  403. #define PNL_INIT 16
  404. #define PNL_FAKE_EIPON 17
  405. //added 2008/08/29
  406. #define PNL_ACQ_PREVIEW 20 // Get the preview image, apply in portable3543
  407. //added 2008/09/09
  408. #define PNL_ACQ_FAILED 21 // Failed to acquire image, apply in portable3543
  409. #define PNL_RESET 22 //ReSet panel add code 20121213 by zhang
  410. #define PNL_RECOVER_LASTIMAGE 23
  411. #define PNL_WAKEEND2 24 //Panel2, 已经被唤醒
  412. #define PNL_ERROR 25 //add by song20130912 for FDX4343R communication error
  413. #define PNL_SYNC_MODE 26 //探测器同步模式
  414. #define PNL_DISCONNECT 27 //断开探测器的结果
  415. #define PNL_CONNECT 28 //连接探测器的结果
  416. #define PNL_UNUPLOADED_IMAGE 29 //探测器内部存有未上传的图像
  417. #define PNL_TRANS_IMG_START 101 //
  418. #define PNL_TRANS_IMG_END 102 //
  419. #define PNL_COMP_CAL_BEGIN 103
  420. #define PNL_COMP_CAL_END 104
  421. #define PNL_GHOST_CAL_END 105 //校正完成,提示上层保持校正按钮变为使能 song20130704
  422. #define PNL_GHOST_CAL_START 106
  423. #define PNL_PANEL_NUMBER 107 //add by song 2016-4-25
  424. #define PNL_SELECT_END 108 //add by song 2016-4-25
  425. //探测器同步模式定义
  426. #define PNL_SYNC_HARDWARE 0
  427. #define PNL_SYNC_SOFTWARE 1
  428. #define PNL_SYNC_AUTOTRIGER 2
  429. #define RESULT_ERROR 0
  430. #define RESULT_OK 1
  431. // add by song
  432. // date:2014-03-24
  433. // 目的: 作为配合PNL_WAKEBEGIN的LParam使用,
  434. //根据这个参数的不同界面上弹出对话框显示的信息会有不同*/
  435. #define WAKE_INITIAL 0 //探测器初始化
  436. #define WAKE_SWITCH_PNL 1 //探测器切换
  437. #define WAKE_SWITCH_XWINDOW 2 //曝光窗口切换
  438. #define WAKE_WAKEUP 3 //探测器唤醒
  439. #define WAKE_OFFSET 4 //探测器做offset
  440. #define WAKE_RECONNECT 5 //探测器重连
  441. #define WAKE_RECOVER_IMAGE 6 //恢复图像
  442. /*song 2014-03-24 end */
  443. //平板返回的错误信息
  444. #define MSG_PANEL_ERROR WM_ECOM_HW + 4
  445. #define PNL_ERROR_SUCCESS 0
  446. #define PNL_ERROR_INIT 1 //初始化失败 3
  447. #define PNL_ERROR_COMMUNICATION 2 //连接中断或通信失败 3
  448. #define PNL_ERROR_ACQ_NOT_END 3 //曝光失败 2
  449. #define PNL_ERROR_BATTERY 4 //电量低 1
  450. #define PNL_ERROR_WIFI 5 //WIFI低 1
  451. #define PNL_ERROR_TEMPERATURE 6 //温度高 1
  452. #define PNL_ERROR_SELECT_PANEL 7 //切换平板失败 2
  453. #define PNL_ERROR_SLEEPMODE 8 //探测器休眠 2
  454. #define PNL_ERROR_POWEROFF 9 //探测器关闭 3
  455. #define PNL_ERROR_OTHERS 10 //其他 1
  456. #define PNL_ERROR_RECOVER_FAILED 11 //恢复图像失败
  457. #define PNL_ERROR_RECOVER_SUCCESS 12 //恢复图像成功
  458. #define PNL_ERROR_DEFECTMAP_LOST 13
  459. #define PNL_ERROR_GAINMAP_LOST 14
  460. #define PNL_ERROR_DUAL_ACQ_ZERO_IMAGE 15
  461. #define PNL_ERROR_DUAL_ACQ_ONE_IMAGE 16
  462. #define PNL_ERROR_IMAGE_DOSE_LOW 17
  463. #define FPD_RESET_NOTIFY 18
  464. //WPAEAM
  465. //#define WARN_INIT 1
  466. //#define WARN_IGNORE 2
  467. //#define WARN_NOTIFY 3
  468. //LPARAM
  469. //Point of CString for ErrorMessage
  470. //高压发生器的返回的参数设置信息
  471. #define MSG_GEN_PARAM WM_ECOM_HW + 5
  472. //高压发送器返回的曝光同步信息信息
  473. #define MSG_GEN_EXPOSURE WM_ECOM_HW + 6
  474. //WPARAM:
  475. #define GEN_COMM_STATUS 0//
  476. #define PREPRESS 1 //手闸按下 pr1
  477. #define TUBEREADY 2 //球馆准备好 pr2
  478. //#define XRAYON 5 //出现X射线 xr1
  479. //#define XRAYOFF 6 //X射线停止 xr0
  480. #define RELEASE 3 //松开手闸 pr0 //该消息后的参数可取值为0、1;0:表示正常release; 1表示reset发生器Error之后的release。
  481. //#define EXPOUSUCCESS 7 //曝光成功
  482. //#define EXPOUFAILURE 8 //曝光失败
  483. #define STANDBY 9 //松开手闸 pr0
  484. //code begin 20130911
  485. #define PREPRESS_NOREADY 10 //一级手闸按下,但没有球馆没有准备好
  486. #define PRERELEASE 11 //松开一级手闸
  487. #define GEN_SHUTDOWN 12 //发生器通知退出软件并关闭计算机系统 //code 20140328
  488. #define GEN_PCSLEEP 13
  489. #define GEN_PCWAKEUP 15
  490. #define GEN_PAKING 14
  491. //code end 20130911
  492. //code begin 20170502
  493. #define GEN_PERSHUTDOWN 17 //预关机消息 from device(目前增加给OTC模块) 20170502
  494. #define GEN_CANCLESHUTDOWN 18 //取消关机操作(目前增加给OTC模块) 20170502 避免与HANDSWITCHRELEASE重复
  495. //end 20170502
  496. //高压发生器返回的错误信息
  497. #define MSG_GEN_ERR WM_ECOM_HW + 7
  498. #define MSG_GEN_WARN WM_ECOM_HW + 8
  499. #define GEN_WARNING 0 //For sedecal mobileL:AOF1 command,display warning information 20140326
  500. #define GEN_OFFWARNING 1 //For sedecal mobileL:OFF command,display waring information 2014.5.7
  501. #define MSG_GEN_ERRWARN WM_ECOM_HW + 27
  502. #define MSG_GEN_INFO WM_ECOM_HW + 30 // code 20131029
  503. #define MSG_GEN_INFO_DISEXP WM_ECOM_HW + 31 // generator exp condition error;Forbid expusore
  504. //code begin 20170906
  505. #define MSG_GEN_INFO_CIRCLE WM_ECOM_HW + 32 // 消息循环
  506. #define MSG_GEN_ERROR_CIRCLE WM_ECOM_HW + 33 // 错误循环
  507. #define MSG_GEN_WARN_CIRCLE WM_ECOM_HW + 34 // 警告循环
  508. #define MSG_GEN_INFO_SINGLE WM_ECOM_HW + 35 // 消息单次
  509. #define MSG_GEN_ERROR_SINGLE WM_ECOM_HW + 36 // 错误单次
  510. #define MSG_GEN_WARN_SINGLE WM_ECOM_HW + 37 // 警告单次
  511. //code end 20170906
  512. //WPAEAM
  513. //point of error code
  514. //LPARAM
  515. //Point of CString for ErrorMessage
  516. #define GEN_SEL_ENABLE 1
  517. #define GEN_SEL_DISABLE 0
  518. #define GEN_AUTO_FOCUS 2
  519. #define GEN_LARGE_FOCUS 1
  520. #define GEN_SMALL_FOCUS 0
  521. #define GEN_ET_MATIME 0
  522. #define GEN_ET_MAS 1
  523. #define GEN_ET_AEC 2 //GEN_ET_AEC3P
  524. #define GEN_ET_AEC3P 2
  525. #define GEN_ET_AEC2P 3
  526. #define GEN_ET_AEC1P 4
  527. #define GEN_ET_AEC1P_REDUCEMA 5
  528. #define GEN_PR_INACTIVE 0
  529. #define GEN_PR_ACTIVE 1
  530. #define GEN_PR_READY 2
  531. #define GEN_AECFIELD_000 0
  532. #define GEN_AECFIELD_001 1
  533. #define GEN_AECFIELD_010 10
  534. #define GEN_AECFIELD_100 100
  535. #define GEN_AECFIELD_011 11
  536. #define GEN_AECFIELD_101 101
  537. #define GEN_AECFIELD_110 110
  538. #define GEN_AECFIELD_111 111
  539. #define GEN_AECFILM_000 0
  540. #define GEN_AECFILM_001 1
  541. #define GEN_AECFILM_010 10
  542. #define GEN_AECFILM_100 100
  543. #define GEN_AECFILM_011 11
  544. #define GEN_AECFILM_101 101
  545. #define GEN_AECFILM_110 110
  546. #define GEN_AECFILM_111 111
  547. #define GEN_WS_TABLE 0
  548. #define GEN_WS_WALL 1
  549. #define GEN_WS_CONVENTIONAL 2
  550. #define GEN_WS_CONVENTIONAL_FREE 2
  551. #define GEN_WS_MOBILE 3
  552. #define GEN_WS_FREE_TABLE 3
  553. #define GEN_WS_TOMO 4
  554. #define GEN_WS_CONVENTIONAL_TABLE 5
  555. #define GEN_WS_CONVENTIONAL_WALL 6
  556. #define GEN_WS_FREE_WALL 7
  557. #define GEN_PARAM_KV 0 //kv
  558. #define GEN_PARAM_MA 1 //ma
  559. #define GEN_PARAM_MS 2 //ms
  560. #define GEN_PARAM_MAS 3 //mas
  561. #define GEN_PARAM_ER 4 //Warning
  562. #define GEN_PARAM_EL 5 //error
  563. #define GEN_PARAM_EC 6 //echo
  564. #define GEN_PARAM_ST 7 //generator status
  565. #define GEN_PARAM_RE 8 //reset
  566. #define GEN_PARAM_WS 9 //workstation
  567. #define GEN_PARAM_BU 10 //bucky state
  568. #define GEN_PARAM_FO 11 //Focus
  569. #define GEN_PARAM_ET 12 //exposure mode: MA/Time mode, Ma/Ms mode,AEC mode
  570. #define GEN_PARAM_PR 13 //Preparation state
  571. //#define GEN_PARAM_PR0 14 //End or Abort Exposure
  572. #define GEN_PARAM_XR 15 //Rad Exposure state
  573. #define GEN_PARAM_FI 16 //AEC Field
  574. #define GEN_PARAM_FS 17 //AEC screen
  575. #define GEN_PARAM_FN 18 //AEC Density
  576. #define GEN_PARAM_AP 19 //Post AP
  577. #define GEN_PARAM_AT 20 //Post Time
  578. #define GEN_PARAM_HE 21 //tube heat
  579. #define GEN_PARAM_TB 22 //-*-Tube number for calibration
  580. #define GEN_PARAM_MC 23 //-*-MA of last calibration
  581. #define GEN_PARAM_FC 24 //-*-Filament Current of last calibration exposure.
  582. #define GEN_PARAM_CWS 25 //-*-Receptor requested
  583. #define GEN_PARAM_CBU 26 //-*-Bucky status for receptor: 0 or 1
  584. #define GEN_PARAM_CTO 27 //-*-Tomo status for receptor
  585. #define GEN_PARAM_CFL 28 //-*-Fluoro status for receptor
  586. #define GEN_PARAM_CSR 29 //-*-Serial Exposure status for receptor
  587. #define GEN_PARAM_CAE 30 //-*-AEC status for receptor
  588. #define GEN_PARAM_CFI 31 //-*-AEC Fields enabled for receptor
  589. #define GEN_PARAM_CFS 32 //-*-AEC Film Screens enabled for receptor
  590. #define GEN_PARAM_KW 33 //Generator KW Rating
  591. #define GEN_PARAM_GC 34 //-*-Generator Configuration
  592. #define GEN_PARAM_HH 35 //-*- Housing Tube Heat
  593. #define GEN_PARAM_GM 36 //-*- programming mode of Generator
  594. //#define GEN_PARAM_CA 37 //-*-Auto Calibration state
  595. #define GEN_PARAM_DAP 37 //-*-Current DAP accumulated value
  596. #define GEN_PARAM_DRF 38 //-*-Current DAP rate value
  597. #define GEN_PARAM_DZERO 39 //-*-Acknowledge zeroing DAP
  598. #define GEN_PARAM_DT 40 //-*-Current DAP test passed or not 0 = Failed,1 = Passed,2 = Test In progress
  599. #define GEN_PARAM_DSTATUS 41 //-*-Current DAP status
  600. #define GEN_PARAM_DV 42 //-*-Last DAP Test Value
  601. #define GEN_PARAM_AK 44 //Post Post KV code 20130202
  602. #define GEN_PARAM_AM 45 //Post Post MA code 20130202
  603. //code begin 20100421
  604. #define GEN_PARAM_OTC_STATUS 43 //gen otc status
  605. //code end 20100421
  606. //#define GEN_PARAM_FNA 44 //add by lv in 20101011, INC DEC AEC Density delete code 20130202
  607. #define GEN_PARAM_AC 48 //Current charge of Capacitor int
  608. //code end 20110408
  609. #define GEN_PARAM_MAMMO_AE 49 //Chao Sun Mammo
  610. #define GEN_PARAM_MAMMO_FT 50 //Chao Sun Mammo
  611. #define GEN_PARAM_MAMMO_FTSZ 51 //Chao Sun Mammo
  612. #define GEN_PARAM_MAMMO_DENSITY 52
  613. #define GEN_PARAM_MAMMO_MULTIPLEENERGY 53
  614. #define GEN_PARAM_MAMMO_EP 54
  615. #define GEN_PARAM_MAMMO_POSITIONCODE 55
  616. #define GEN_PARAM_MAMMO_NEEDENABLE 56
  617. #define GEN_PARAM_MAMMO_NEEDDEPTH 57
  618. #define GEN_PARAM_MAMMO_PRESSURESTATE 58
  619. #define GEN_PARAM_MAMMO_WORKSTATE 59
  620. #define GEN_PARAM_MAMMO_MOVESTATE 60
  621. #define GEN_PARAM_MAMMO_ERRORCODE 61
  622. #define GEN_PARAM_MAMMO_MAMMOSTATE 62
  623. //code begin 20120814
  624. #define GEN_PARAM_BC 63 //check if battery is charging int 0: no charge, 1: charge
  625. #define GEN_BATTERY_CHARGEVOLTSTATE_YES 1 //正在充电
  626. #define GEN_BATTERY_CHARGEVOLTSTATE_NO 0 //未充电
  627. //code begin 20091223
  628. //code begin 20120814
  629. #define GEN_PARAM_KV_V2 64 //KV for version2 send the address of parameter
  630. #define GEN_PARAM_FN_V2 65 //Density for version2 send the address of parameter
  631. #define GEN_PARAM_DAP_V2 66 //DAP for version2 send the address of parameter
  632. #define GEN_PARAM_GENHEAT 67 //Generator heat, no same as HU
  633. #define GEN_PARAM_AECDOSE 68 //Generator AEC dose, for siemens AEC exposure requirment
  634. #define GEN_STATUS_NT 70 //-*-Not connect with the generator
  635. //code end 20091223
  636. #define GEN_PARAM_POST 71 //-*-Not connect with the generator //NUll
  637. //code begin 20130708
  638. //add device status
  639. #define GEN_BATTERY_STATUS 72//发生器电池电量状态
  640. #define GEN_BATTERY_CHARGE_NA 7
  641. #define GEN_BATTERY_OUTOFCHARGE 6
  642. #define GEN_BATTERY_EMERGENCY 5
  643. #define GEN_BATTERY_FULL 4
  644. #define GEN_BATTERY_OVER 3
  645. #define GEN_BATTERY_LOW 2
  646. #define GEN_BATTERY_WARNING 1
  647. #define GEN_BATTERY_NORMAL 0
  648. #define GEN_TUBEHU_STATUS 73//发生器球管热容量状态
  649. #define TUBEHU_TOO_HIGH 2
  650. #define TUBEHU_WARNING 1
  651. #define TUBEHU_NORMAL 0
  652. #define TUBEHU_LOW 3
  653. #define TUBEHU_TOO_LOW 4
  654. #define TUBEHU_NA 5
  655. #define VALUE_NA 0xFF //表示无效数值
  656. #define GEN_GENHU_STATUS 74//发生器热量状态
  657. #define GENHU_TOO_HIGH 2
  658. #define GENHU_WARNING 1
  659. #define GENHU_NORMAL 0
  660. //code end 20130708
  661. #define GEN_PARAM_KV_ADJ 75 //kv Adjustment
  662. #define GEN_PARAM_MA_ADJ 76 //ma Adjustment
  663. #define GEN_PARAM_MS_ADJ 77 //ms Adjustment
  664. #define GEN_PARAM_MAS_ADJ 78 //mas Adjustment
  665. #define GEN_PARAM_FN_ADJ 79 //AEC Density Adjustment
  666. //code begin 20150824
  667. #define GEN_PARAM_PATIENT_BODYSIZE 80 //GEN patient body size
  668. #define PATIENT_BODYSIZE_LARGE 4
  669. #define PATIENT_BODYSIZE_MEDIUM 3
  670. #define PATIENT_BODYSIZE_SMALL 2
  671. #define PATIENT_BODYSIZE_PAEDIATRIC 1
  672. //code end 20150824
  673. //code begin 20160411
  674. #define GEN_PARAM_MAMMO_MAMMOPRESSUREVALUE 81 //压迫器压力
  675. #define GEN_PARAM_MAMMO_MAMMOPRESSUREDECOMP 82//自动释放的设定
  676. #define GEN_PARAM_MAMMO_MAMMOAGD 83 //AGD
  677. #define GEN_PARAM_MAMMO_MAMMOMECHNICALANGLE 84//机架角度
  678. #define GEN_PARAM_MAMMO_MAMMMECHNICALHEIGH 85//机架高度
  679. //code end 20160411
  680. //code 20160416
  681. #define GEN_PARAM_WS_STATUS 86
  682. #define SEND_WS_STATUS_FAIL 0
  683. #define SEND_WS_STATUS_OK 1
  684. //code end 20160416
  685. #define GEN_REMOTECONTROL 87
  686. #define REMOTECONTROL_ENABLE 1
  687. #define REMOTECONTROL_DISABLE 0
  688. #define GEN_PARAM_FIVE_SEL 88
  689. #define VER_NO_FLIP 0
  690. #define VER_AND_FLIP 1
  691. #define HOR_NO_FLIP 10
  692. #define HOR_AND_FLIP 11
  693. #define GEN_PARAM_MAMMO_PADDLEID 89
  694. #define NO_PADDLE 0
  695. #define BIG_PADDLE 1
  696. #define SMALL_PADDLE 2
  697. #define SPOT_PADDLE 3
  698. #define MSG_POST_DOSE_PARAM WM_ECOM_HW + 20 //2144 //will be implemented soon delegate_ExpPostParamHandler
  699. #define GEN_PD_KVP 0 //kv //LPARAM //int
  700. #define GEN_PD_MA 1 //ma //Point to float
  701. #define GEN_PD_MS 2 //ms //Point to float
  702. #define GEN_PD_MAS 3 //mas //Point to float
  703. #define GEN_PD_DAP 4 //dap //Point to float
  704. //#define GEN_PD_ER 4 //Warning
  705. //#define GEN_PD_EL 5 //error
  706. //#define GEN_PD_EC 6 //echo
  707. #define ERROR_CLEAR 0
  708. #define ERROR_COMMUNICATION 9999
  709. #define ERROR_COMMUNICATION_TRY 9998
  710. #define ERROR_INITIALIZATION 9997
  711. /////////////////////////////////////////////////////////////////////////////////////////////////////////
  712. //STITCHING:
  713. //Code begin 20091103
  714. //stitching ctrl device message
  715. #define MSG_STITCHING_PARAM WM_ECOM_HW + 28
  716. //Code end 20091103
  717. //Code begin 20091103
  718. #define STITCH_PARAM_SETUP_RECEIVED 0 //Stitching setup received
  719. //Info1: configured distance from detector to detector holder outer surface
  720. #define STITCH_PARAM_SETUP_AVAIABLE 1 //Setup ok: resulting stitching positions are reachable.
  721. #define STITCH_PARAM_SETUP_MOVING 2 //Moving to setup position.
  722. #define STITCH_PARAM_SETUP_STOP 3 //Moving to setup position stopped
  723. #define STITCH_PARAM_SETUP_REACHED 4 //Setup position reached
  724. #define STITCH_PARAM_SETUP_ADJUSTED 5 //Setup position reached and adjusted
  725. #define STITCH_PARAM_SETUP_REJECTED 6 //Setup rejected: stitching target positions not reachable
  726. #define STITCH_PARAM_SETUP_ADJUST_REJECTED 7 //Setup adjust rejected: redefined positions not reachable. After setup received, the user can change length, overlap, ….
  727. #define STITCH_PARAM_SETUP_ADJUST_OK 8 //Setup adjust OK
  728. #define STITCH_PARAM_START 9 //Start: remote controller or GUI start button pressed
  729. #define STITCH_PARAM_READYTOMOVE 10 //Ready to move to next position. Info1: current image. Info2: total number of images.
  730. #define STITCH_PARAM_MOVING_STEP 11 //Moving to next position
  731. #define STITCH_PARAM_POSITION_REACHED 12 //Position reached. Info1=current image. Info2=total number of images
  732. #define STITCH_PARAM_EXP_READY 13 //Ready to expose. Info1=current image. Info2=total number of images
  733. #define STITCH_PARAM_READY_M_EXTRA 14 //Ready to move to extra image
  734. #define STITCH_PARAM_MOVEINFG_EXTRA 15 //Moving to extra image
  735. #define STITCH_PARAM_EXTRA_IMAGE_REACHED 16 //Extra image reached
  736. #define STITCH_PARAM_EXTRA_EXP_READY 17 //Ready to expose extra image
  737. #define STITCH_PARAM_FINISHED 18 //Stitching finished
  738. #define STITCH_PARAM_CANCEL 19 //Stitching Cancel
  739. #define STITCH_PARAM_OFF 20 //Stitching Off
  740. #define STITCH_PARAM_EXP_DONE 21 //Exposure Done
  741. #define STITCH_PARAM_ACCEPT 22 //Image accept button pressed
  742. #define STITCH_PARAM_REJECT 23 //Image reject button pressed
  743. #define STITCH_PARAM_TOTAL_IMAGE 24 //total image count
  744. #define STITCH_PARAM_CUR_IMAGE 25 //Current image number
  745. #define STITCH_PARAM_EXTRA_IMAGE 26 //Extra image number
  746. #define STITCH_PARAM_EXIT 27 //end stitching
  747. #define STITCH_PARAM_DIRECTION 28 //stitching direction
  748. #define STITCH_PARAM_HW_STATUS 29 //hw status, mechanical system status
  749. #define HW_NOT_READY 0
  750. #define HW_READY 1
  751. #define STITCH_PARAM_U_FINISHED 30 //uncompelete finish
  752. #define MSG_OTC_PARAM WM_ECOM_HW + 29
  753. #define OTC_PARAM_ACCEPT 100+1 //Image accept button pressed
  754. #define OTC_PARAM_REJECT 100+2 //Image reject button pressed
  755. #define OTC_PARAM_SELECTEDVIEW 100+3 //Select view
  756. #define OTC_PARAM_SID 100+4 //the sid from otc side
  757. #define OTC_PARAM_ROOM_STATION 100+5 //the workstaton of otc
  758. //add by wang 2013/02 just for GMM's ADLINK DAQ Card
  759. #define OTC_PARAM_WALL_GRID120 100+6
  760. #define OTC_PARAM_WALL_GRID180 100+7
  761. #define OTC_PARAM_WALL_GRIDABSENT 100+8 //No grid
  762. #define OTC_PARAM_WALL_GRIDPARALLEL 100+9 // grid error
  763. #define OTC_PARAM_TABLE_GRID120 100+10
  764. #define OTC_PARAM_TABLE_GRID180 100+11
  765. #define OTC_PARAM_TABLE_GRIDABSENT 100+12
  766. #define OTC_PARAM_TABLE_GRIDPARALLEL 100+13
  767. #define OTC_PARAM_WALL_FPD4335 100+14
  768. #define OTC_PARAM_WALL_FPD3543 100+15
  769. #define OTC_PARAM_WALL_FPDABSENT 100+16
  770. #define OTC_PARAM_WALL_FPDPARALLEL 100+17
  771. #define OTC_PARAM_TABLE_FPD4335 100+18
  772. #define OTC_PARAM_TABLE_FPD3543 100+19
  773. #define OTC_PARAM_TABLE_FPDABSENT 100+20
  774. #define OTC_PARAM_TABLE_FPDPARALLEL 100+21
  775. #define OTC_PARAM_EXPOSTATE 100+22
  776. #define OTC_PARAM_DAPRESET 100+23
  777. //code begin 20141024
  778. #define OTC_PARAM_ANGLE_FLOAT 100+24 //add code 20141021 OTC Angle
  779. #define OTC_PARAM_SID_FLOAT 100+25 //add code 20141021 OTC SID
  780. #define OTC_PARAM_WS 100+26 //add code 20141021 OTC Workstation
  781. #define OTC_PARAM_LONGLOCK_STATE 100+27 //OTC Long LOCK; 1:Active; 0:NoActive
  782. #define OTC_PARAM_LONGLOCK_START 100+28 //OTC LONG LOCK; 1:ON; 0:OFF
  783. #define OTC_PARAM_LONGLOCK_STOP 100+29 //OTC LONG LOCK: 1:ON; 0:OFF
  784. #define OTC_PARAM_TRANSLOCK_STATE 100+30 // OTC Trans Lock; 1:Active; 0:NoActive
  785. #define OTC_PARAM_TRANSLOCK_START 100+31 // OTC Trans LOCK;1:ON; 0:OFF
  786. #define OTC_PARAM_TRANSLOCK_STOP 100+32 // OTC Trans LOCK; 1:ON; 0:OFF
  787. //code end 20141024
  788. #define OTC_PARAM_MOVEBUTTON_KEY 100+33 // OTC MOVE BUTTON KEY
  789. #define OTC_PARAM_SID_STRING 100+34 //add code 20141112 OTC SID
  790. #define OTC_PARAM_AUTOTRACKING 100+35 //add code 20141112 OTC Auto tracking for OTC; 0:No tracking; 1:Tracking;
  791. #define OTC_PARAM_READYSTATUS 100+36 //add code 20141119 OTC STRING
  792. #define OTC_PARAM_READYSTATUS_CODE 100 + 37 //OTC的READY状态 lparam:0(READY),1(NOT READY)
  793. #define OTC_PARAM_FID 100 + 38
  794. #define REJECT_REASON_TEST 1
  795. #define REJECT_REASON_NOUSE 2
  796. #define REJECT_REASON_OTHER 3
  797. #define MSG_OTC_ERROR WM_ECOM_HW + 21 //机架模块的错误
  798. #define OTC_ERROR_INIT 1 //初始化失败
  799. #define OTC_ERROR_CONNECT 2 //连接中断
  800. #define OTC_ERROR_RECONNECT 3 //连接恢复
  801. #define OTC_WARN_INFO 998 //警告信息 单条
  802. #define OTC_ERROR_INFO 999 //错误信息 单条
  803. #define MSG_OTC_WARN_SINGLE WM_ECOM_HW + 22 //警告信息 单条 SINGLE
  804. #define MSG_OTC_WARN_CIRCLE WM_ECOM_HW + 23 //警告消息需要循环
  805. #define MSG_OTC_INFO_SINGLE WM_ECOM_HW + 24 //机架模块的错误 SINGLE
  806. #define MSG_OTC_INFO_CIRCLE WM_ECOM_HW + 25 //警告消息需要循环
  807. #define MSG_OTC_ERROR_CIRCLE WM_ECOM_HW + 26 //错误信息 单条
  808. //对应OTC_SetExpoState接口
  809. #define OTC_ENABLE_EXPOSE (0) // 可以曝光
  810. #define OTC_XRAYON (1) // 正在出线
  811. #define OTC_DISABLE_EXPOSE (2) // 禁止曝光
  812. #define OTC_XRAYOFF (3) // 曝光停止
  813. /////////////////////////////////////////////////////////////////////////
  814. //同步模块:
  815. #define MSG_SYN_STATUS WM_ECOM_HW + 9
  816. //WPARAM:
  817. #define SYN_GEN_PREPARE 0 //PR1
  818. #define SYN_GEN_READY 1 //PR2
  819. #define SYN_GEN_OVER 2 //PR0
  820. #define SYN_GEN_EIPON 3 //exposure in progress
  821. #define SYN_GEN_EIPOFF 4 //exposure in progress
  822. //#define SYN_PNL_READY 5 //AC ready
  823. #define SYN_XRAYWINDOW_ON 6 //
  824. #define SYN_XRAYWINDOW_OFF 7 //
  825. #define SYN_PARAM_RE 8 // reset add code 20121213 by zhang
  826. #define SYN_COMM_STATUS 9
  827. #define SYN_RLS_DUALENGRY 10 //针对双能模式下,若仅有单次XPB信号时,在第二次RLS时需要通过该消息,增加HW中的双能曝光次数;
  828. #define SYN_DYN_CMD 20 //for DYN Cmd
  829. #define SYN_DYN_MSG 21 //for DYN Msg
  830. #define SYN_DYN_IO 22 //for DYN IO
  831. #define MSG_SYN_SID WM_ECOM_HW + 10
  832. //WPARAM SID in cm
  833. #define MSG_SYN_COLLIMATOR WM_ECOM_HW + 11
  834. //WPARAM pointer of collimator struct
  835. #define COLLIMATOR_PARAM 1
  836. #define ROI_PARAM 2
  837. #define COLLIMATOR_ZERO 3 //collimator zero whose origin is the left up(0,0) of image;
  838. #define MASK_PARAM 4 //mask 点集
  839. #define MSG_SYN_ERROR WM_ECOM_HW + 12
  840. //WPARAM error code point of code string
  841. #define SYN_RESET_NOTIFY 0
  842. #define MSG_SYN_BUCKY WM_ECOM_HW+13
  843. //WPARAM
  844. #define SYN_BUCKY_PORTRAIT 0
  845. #define SYN_BUCKY_LANDSCAPE 1
  846. #define SYN_BUCKY_UNKNOW 2
  847. //#define SYN_BUCKY_GRID_PRESENT 3 //grid on
  848. //#define SYN_BUCKY_GRID_ABSENT 4 //no grid
  849. #define MSG_SYN_GRID WM_ECOM_HW+16
  850. #define SYN_GRID_ABSENT 0
  851. #define SYN_GRID_PRESENT 1
  852. //#define SYN_GRID_120 3//deleted 20110711
  853. //#define SYN_GRID_180 2//deleted 20110711
  854. #define SYN_GRID_120 2
  855. #define SYN_GRID_180 3
  856. #define SYN_GRID_UNKNOW 4
  857. #define SYN_GRID_120_ROTATE 5
  858. #define SYN_GRID_PARALLEL 6
  859. #define SYN_GRID_100 7
  860. #define SYN_GRID_150 8
  861. #define SYN_GRID_PARTINSERT 9//Grid partially inserted
  862. #define MSG_SYN_STAND WM_ECOM_HW+17
  863. #define SYN_BTCONNECT_LOST 100 // 断开连接
  864. #define SYN_BTCONNECT_CONNECT 101 // 连接
  865. #define MSG_SYN_FILTER WM_ECOM_HW+18
  866. #define SYN_FILTER_0 0
  867. #define SYN_FILTER_1 1
  868. #define SYN_FILTER_2 2
  869. #define SYN_FILTER_3 3
  870. #define SYN_FILTER_4 4
  871. #define SYN_FILTER_5 5
  872. #define SYN_FILTER_6 6
  873. #define MSG_OTC WM_ECOM_HW+19
  874. //WPARAM:
  875. #define OTC_NORMAL 0
  876. #define OTC_MANUAL 1
  877. #define OTC_AUTO 2
  878. #define OTC_READY 2
  879. /////////////////////////////////////////////////////////////////////////////
  880. //Barcode Reader
  881. #define MSG_CODE_ENTER WM_ECOM_HW+14
  882. //WPARAM point of enter string
  883. #define MSG_CODE_ERROR WM_ECOM_HW+15
  884. //WPARAM error code point of code string
  885. //add HW status message
  886. #define MSG_HW_STATUS WM_ECOM_HW+32 // 1: ready; 0: no ready 20150227
  887. //WPARAM error code point of code string
  888. //add Collimator offset value 20160224
  889. #define MSG_SYN_COLLIMATOR_OFFSET WM_ECOM_HW+33 // Collimator offset value
  890. /////////////////////////////////////////////////////////////////////////////
  891. //数据流发送的消息
  892. #define WM_ECOM_DF WM_USER + 1200 //DATA FLOW
  893. //工作列表刷新完毕
  894. #define MSG_DF_WORKLISTREFRESH WM_ECOM_DF + 0
  895. //数据流执行过程中的错误
  896. #define MSG_DF_NOTIFY WM_ECOM_DF + 1
  897. //WPARAM:
  898. //#define ECOM_WARNING 0 //警告,自动处理
  899. //#define ECOM_ERROR 1 //错误,需要处理
  900. #define MSG_FILE_STORED WM_ECOM_DF + 2
  901. //WPARAM
  902. //AETITLE
  903. //LPARAM
  904. //SOPUID
  905. #define MSG_FILE_SEND WM_ECOM_DF + 3
  906. #define MSG_FILM_PRINT WM_ECOM_DF + 4
  907. //WPARAM
  908. //AETITLE
  909. //LPARAM STATIS
  910. #define ECOM_SUCCESS 1
  911. #define ECOM_FAILURE 0
  912. #define MSG_SPACE_OUT WM_ECOM_DF + 5
  913. //WPARAM
  914. //TotleSpace
  915. //LPARAM
  916. //FreeSpace
  917. #define MSG_KILL_SERVICE WM_ECOM_DF + 6
  918. //WPARAM
  919. //WPARAM:
  920. //#define ECOM_BEGIN 1
  921. //#define ECOM_PERFORM 2
  922. //#define ECOM_END 3
  923. //给VET用的消息
  924. #define MSG_VET WM_USER + 1300
  925. //WPARAM:
  926. #define VET_WEIGHT_KG 1
  927. #define VET_DEPTH_CM 2
  928. #define VET_ANIMAL_CODE 3
  929. #define VET_BODY_AREA 4
  930. #define VET_VIEW 5
  931. #define VET_ANIMAL_SIDE 6
  932. #define ECOM_SETVALUE 5 //kv, ma, ms,
  933. //LParam: value
  934. //#define VET_A
  935. //added 2008/08/29
  936. #define MSG_PNL_ACQUISITION (WM_ECOM_HW + 50) // For portable 3543
  937. //Code begin 20100304
  938. #define MSG_DUAL_ENERGY_PARAM (WM_ECOM_HW + 51)//
  939. #define DUALENERGY_ABORT 1//Abort dual energy process
  940. #define SECOND_EXP_BEGIN 2
  941. #define DUALENERGY_EXPOSURE_FIRST 3
  942. #define DUALENERGY_EXPOSURE_SECOND 4
  943. #define DUALENERGY_POSTPROCESS_START 10
  944. //code end 2010304
  945. //code begin 20121219
  946. /* DROC STATUS INFORMATION ----------------------------------------------------------------------------------*/
  947. #define HW_NEIN 0
  948. #define HW_SYSTEM_READY 1
  949. #define HW_NO_PATIENT 2 //DFR not ready because no patient is selected
  950. #define HW_NO_IMAGE_MEMORY 3 /*DFR not ready because there is not enough image memory available */
  951. #define HW_SERVICE_MODE 4 /*DFR not ready because it is in service mode. */
  952. #define HW_FD_ERROR 5 /*DFR not ready because there is an Detektor error. */
  953. #define HW_FLC_ON_ERROR 6 /*DFR not ready because there is an error concerning the FL-C */
  954. #define HW_ACQ_BLOCKED_BY_HIPAA 7 /*DFR is not ready because it is blocked by HIPAA */
  955. #define HW_NO_OGP_SELECTED 8 /*DFR is not ready because no OGP has been selected. */
  956. #define HW_FD_RECOVERING 9 /*DFR is not ready because the FD is recovering. */
  957. #define HW_NO_FLUORO_RAD_MODE_SELECTED 10 /*DFR not ready for fluoro because rad mode is selected. */
  958. #define HW_FD_TOO_HOT 11 /*DFR is not ready because the Detector is too hot. */
  959. #define HW_NO_XRAY_BEC_FOLDER_PROTECTED 12 /* DFR not ready because the patient's folder is protected. */
  960. #define HW_FLC_IN_DOC_MODE 13 /*FL-C is in Documentation mode */
  961. #define HW_FLC_IN_POSTPROC_MODE 14 /*FL-C is in post processing mode */
  962. #define HW_FD_OFFSET_IN_PROGRESS 15 /*FD offset is in progress */
  963. #define HW_FD_WLAN_TOO_LOW 16 /*For NRF: WLAN power is too low for acquisition. */
  964. #define HW_FLC_EXAM_MANAGER_ACTIVE 17 /*FL-C is in mode Exam Manager */
  965. #define HW_FD_BATTERY_TOO_LOW 18 /*Battery of mobile detector is too low for Acquisition. */
  966. #define HW_LOW_BATT_ACQ_POSSIBLE 19 /*Battery of wireless FD is low but acquisition still possible (for future use) */
  967. #define HW_FD_NOT_IN_OP_STATE 20 /*Detector not in operating state */
  968. #define HW_FD_CONFG_OUT 21 /*Detector configured out */
  969. #define HW_FD_IMG_RECOV 22 /*Detector image recovery in progress */
  970. #define HW_NO_FD_CABLE_FOR_ORTHO 23 /*wi-D BK cable not connected for Ortho acquistion */
  971. #define HW_DFR_ORTHO_UI_NOT_IN_STEP_1 24 /* The Ortho UI (on FLC) is not in step 1; therefore the latest iOrgDaten being */
  972. /*distributed was not the one to be used for next shot (because acq will start */
  973. /* with step 1 always */
  974. /* */
  975. /*--------------------------------------------------------------------------------------------------------------------*/
  976. //code end 20121219
  977. #define MSG_HW_COMM_ENABLE (WM_ECOM_HW + 60)//
  978. //code begin 20141107
  979. #define DONGLE_GEN_COMMUNICATION 0x00
  980. #define DONGLE_GEN_NO_COMMUNICATION 0x01
  981. #define DONGLE_REMOVEGRID_NOFUNCTION 0
  982. #define DONGLE_REMOVEGRID_LOW 1
  983. #define DONGLE_REMOVEGRID_MEDIUM 2
  984. #define DONGLE_REMOVEGRID_HIGH 3
  985. #define DONGLE_UMC_GENPARAM_SYNCHR 0x10
  986. #define DONGLE_UMC_VIEWPROTOCOL_SYNCHR 0x20
  987. #define DONGLE_UMC_PREVIEW_SYNCHR 0x40
  988. //code end 20141107