CommonMessage.h 49 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253
  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. #define ECOM_PANEL_INFO_EXPOSURE_PROPERTIES 43 //addbyys20200114 设置探测器的曝光参数,目前用于Analogic探测器
  328. #define ECOM_PANEL_QUICK_PREVIEW_IMAGE_DATA 44 //快速采集模式预览图图像数据
  329. #define ECOM_PANEL_QUICK_IMAGE_DATA 45 //快速采集模式大图图像数据
  330. #define ECOM_PANEL_DATA_LEVEL_KAIMETA 46 //KAI图像属性数据MetaData,LPARAM是ECOM_IMAGE_METADATA结构体地址
  331. #define ECOM_PANEL_DATA_LEVEL_KAIRAW 47 //KAI原始数据,LPARAM是ECOM_RAWDE_DATA结构体地址
  332. #define ECOM_PANEL_DATA_LEVEL_KAIHARD 48 //KAI硬组织图像,参数类型和用法与ECOM_PANEL_DATA_LEVEL相同
  333. #define ECOM_PANEL_DATA_LEVEL_KAISOFT 49 //KAI软组织图像,参数类型和用法与ECOM_PANEL_DATA_LEVEL相同
  334. #define ECOM_PANEL_DAEC_PARAM_ET 50 //探测器模拟发生器DAEC参数
  335. #define ECOM_PANEL_DAEC_PARAM_FI 51 //探测器模拟发生器DAEC参数
  336. #define ECOM_PANEL_INFO_VIRTUAL_GRID 52 //iRay虚拟栅专用消息,应用虚拟栅算法发TRUE,没有应用虚拟栅算法发FALSE
  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. #define PNL_PARAM_MS 140 //aed模式下,探测器反馈的曝光时长,目前用于Analogic探测器
  382. #define PNL_FRAME_ID 120 //FrameID
  383. //平板状态
  384. #define MSG_PANEL_STATUS WM_ECOM_HW + 3
  385. //WPARAM:
  386. #define PNL_COMM_STATUS 0 ///20130322
  387. #define PNL_READY 1 //panel ready
  388. #define PNL_WINDOWON 2 //x-ray enable window on
  389. #define PNL_WINDOWOFF 3 //x-ray enable window off
  390. #define PNL_READING 4 //正在读图
  391. #define PNL_READING_PROGRESS 41 //读图状态
  392. #define PNL_PREPARE 5 //正在准备,如calibration,结束standby等
  393. #define PNL_STANDBY 6 //standby模式
  394. #define PNL_ABORT 7 //放弃曝光
  395. #define PNL_IMGREADY 8 //传输图像结束;
  396. #define PNL_WAKEBEGIN 9 //正在唤醒
  397. #define PNL_WAKEEND 10 //已经被唤醒
  398. #define PNL_USB_READY 11 //for CTrixellFS23 detector
  399. #define PNL_USB_BUSY 12 //for CTrixellFS23 detector
  400. #define PNL_EXP_OVER 116 //for iRay Vet detector
  401. #define PNL_ENDWORKMODE_OVER 117 //for UIH iRay autoCalibration
  402. #define PNL_GENCALIBMAP_GAIN_START 118 //for UIH iRay autoCalibration
  403. #define PNL_GENCALIBMAP_GAIN_OVER 119 //for UIH iRay autoCalibration
  404. #define PNL_GENCALIBMAP_DEFECT_START 120 //for UIH iRay autoCalibration
  405. #define PNL_GENCALIBMAP_DEFECT_OVER 121 //for UIH iRay autoCalibration
  406. #define PNL_GENCALIBMAP_OFFSET_START 122 //for UIH iRay autoCalibration
  407. #define PNL_GENCALIBMAP_OFFSET_OVER 123 //for UIH iRay autoCalibration
  408. #define PNL_ACTUAL_MODE 13 //indicate panel status 1, Actual connect, 0 demo mode, 2, actual mode, not connected.
  409. #define PNL_OFSBEGIN 14 //add by wangyb 20130625
  410. #define PNL_OFSEND 15
  411. #define PNL_INIT 16
  412. #define PNL_FAKE_EIPON 17
  413. #define PNL_ACQ_PREVIEW 20 // Get the preview image, apply in portable3543
  414. #define PNL_ACQ_FAILED 21 // Failed to acquire image, apply in portable3543
  415. #define PNL_RESET 22 //ReSet panel add code 20121213 by zhang
  416. #define PNL_RECOVER_LASTIMAGE 23
  417. #define PNL_WAKEEND2 24 //Panel2, 已经被唤醒
  418. #define PNL_ERROR 25 //add by song20130912 for FDX4343R communication error
  419. #define PNL_SYNC_MODE 26 //探测器同步模式
  420. #define PNL_DISCONNECT 27 //断开探测器的结果
  421. #define PNL_CONNECT 28 //连接探测器的结果
  422. #define PNL_UNUPLOADED_IMAGE 29 //探测器内部存有未上传的图像
  423. #define PNL_SEQUENCE_BEGIN 30 //康众动态模式序列开始消息
  424. #define PNL_SEQUENCE_END 31 //康众动态模式序列结束消息
  425. #define PNL_ACQ_MODE 32 //康众动态模式Acq模式设置成功后反馈给上层
  426. #define PNL_TRANS_IMG_START 101 //
  427. #define PNL_TRANS_IMG_END 102 //
  428. #define PNL_COMP_CAL_BEGIN 103
  429. #define PNL_COMP_CAL_END 104
  430. #define PNL_GHOST_CAL_END 105 //校正完成,提示上层保持校正按钮变为使能 song20130704
  431. #define PNL_GHOST_CAL_START 106
  432. #define PNL_PANEL_NUMBER 107 //add by song 2016-4-25
  433. #define PNL_SELECT_END 108 //add by song 2016-4-25
  434. #define PNL_SEQUENCE_START 109
  435. #define PNL_SET_WS 110 //UIH table-wire wall-wireless
  436. #define PNL_RECEIVED_XRAY 111 //INX requirement
  437. //探测器同步模式定义
  438. #define PNL_SYNC_HARDWARE 0
  439. #define PNL_SYNC_SOFTWARE 1
  440. #define PNL_SYNC_AUTOTRIGER 2
  441. #define PNL_SYNC_AED 3
  442. #define RESULT_ERROR 0
  443. #define RESULT_OK 1
  444. // add by song
  445. // date:2014-03-24
  446. // 目的: 作为配合PNL_WAKEBEGIN的LParam使用,
  447. //根据这个参数的不同界面上弹出对话框显示的信息会有不同*/
  448. #define WAKE_INITIAL 0 //探测器初始化
  449. #define WAKE_SWITCH_PNL 1 //探测器切换
  450. #define WAKE_SWITCH_XWINDOW 2 //曝光窗口切换
  451. #define WAKE_WAKEUP 3 //探测器唤醒
  452. #define WAKE_OFFSET 4 //探测器做offset
  453. #define WAKE_RECONNECT 5 //探测器重连
  454. #define WAKE_RECOVER_IMAGE 6 //恢复图像
  455. //平板返回的错误信息
  456. #define MSG_PANEL_ERROR WM_ECOM_HW + 4
  457. #define PNL_ERROR_SUCCESS 0
  458. #define PNL_ERROR_INIT 1 //初始化失败 3
  459. #define PNL_ERROR_COMMUNICATION 2 //连接中断或通信失败 3
  460. #define PNL_ERROR_ACQ_NOT_END 3 //曝光失败 2
  461. #define PNL_ERROR_BATTERY 4 //电量低 1
  462. #define PNL_ERROR_WIFI 5 //WIFI低 1
  463. #define PNL_ERROR_TEMPERATURE 6 //温度高 1
  464. #define PNL_ERROR_SELECT_PANEL 7 //切换平板失败 2
  465. #define PNL_ERROR_SLEEPMODE 8 //探测器休眠 2
  466. #define PNL_ERROR_POWEROFF 9 //探测器关闭 3
  467. #define PNL_ERROR_OTHERS 10 //其他 1
  468. #define PNL_ERROR_RECOVER_FAILED 11 //恢复图像失败
  469. #define PNL_ERROR_RECOVER_SUCCESS 12 //恢复图像成功
  470. #define PNL_ERROR_DEFECTMAP_LOST 13
  471. #define PNL_ERROR_GAINMAP_LOST 14
  472. #define PNL_ERROR_DUAL_ACQ_ZERO_IMAGE 15
  473. #define PNL_ERROR_DUAL_ACQ_ONE_IMAGE 16
  474. #define PNL_ERROR_IMAGE_DOSE_LOW 17
  475. #define FPD_RESET_NOTIFY 18
  476. #define PNL_ERROR_IMAGELEFT 19 //探测器有未恢复图像,一般用于Panel模块不知道曝光消息而探测器提示有图的情况
  477. #define PNL_ERROR_EXPOSURE 20 //在禁用曝光的情况下曝光,通过这个消息提示用户要在曝光允许时再曝光
  478. #define PNL_ERROR_NOTSENDIMAGE 21 //因剂量低或其它原因不发送图像,UI需要此消息来停止采集流程
  479. #define PNL_ERROR_CALIBMAP 22 //缺少校正文件或校正文件过期的弹窗消息
  480. #define PNL_ERROR_CALIBPROCESS 23 //校正流程异常需终止校正流程
  481. #define PNL_ERROR_IMAGEDISPOSED 24 //有图像由于未曝光或质量不好而被丢弃,为康众sdk添加
  482. #define PNL_ERROR_CALIBALIGNMENT 26 //KAImaging alignment校正提示
  483. //WPAEAM
  484. //#define WARN_INIT 1
  485. //#define WARN_IGNORE 2
  486. //#define WARN_NOTIFY 3
  487. //LPARAM
  488. //Point of CString for ErrorMessage
  489. //高压发生器的返回的参数设置信息
  490. #define MSG_GEN_PARAM WM_ECOM_HW + 5
  491. //高压发送器返回的曝光同步信息信息
  492. #define MSG_GEN_EXPOSURE WM_ECOM_HW + 6
  493. //WPARAM:
  494. #define GEN_COMM_STATUS 0//
  495. #define PREPRESS 1 //手闸按下 pr1
  496. #define TUBEREADY 2 //球馆准备好 pr2
  497. //#define XRAYON 5 //出现X射线 xr1
  498. //#define XRAYOFF 6 //X射线停止 xr0
  499. #define RELEASE 3 //松开手闸 pr0 //该消息后的参数可取值为0、1;0:表示正常release; 1表示reset发生器Error之后的release。
  500. //#define EXPOUSUCCESS 7 //曝光成功
  501. //#define EXPOUFAILURE 8 //曝光失败
  502. #define STANDBY 9 //松开手闸 pr0
  503. //code begin 20130911
  504. #define PREPRESS_NOREADY 10 //一级手闸按下,但没有球馆没有准备好
  505. #define PRERELEASE 11 //松开一级手闸
  506. #define GEN_SHUTDOWN 12 //发生器通知退出软件并关闭计算机系统 //code 20140328
  507. #define GEN_PCSLEEP 13
  508. #define GEN_PCWAKEUP 15
  509. #define GEN_PAKING 14
  510. //code end 20130911
  511. //code begin 20170502
  512. #define GEN_PERSHUTDOWN 17 //预关机消息 from device(目前增加给OTC模块) 20170502
  513. #define GEN_CANCLESHUTDOWN 18 //取消关机操作(目前增加给OTC模块) 20170502 避免与HANDSWITCHRELEASE重复
  514. //end 20170502
  515. //高压发生器返回的错误信息
  516. #define MSG_GEN_ERR WM_ECOM_HW + 7
  517. #define MSG_GEN_WARN WM_ECOM_HW + 8
  518. #define GEN_WARNING 0 //For sedecal mobileL:AOF1 command,display warning information 20140326
  519. #define GEN_OFFWARNING 1 //For sedecal mobileL:OFF command,display waring information 2014.5.7
  520. #define GEN_WARNING_POWERLOW 2 //For sedecal mobileL:WN025
  521. #define MSG_GEN_ERRWARN WM_ECOM_HW + 27
  522. #define MSG_GEN_INFO WM_ECOM_HW + 30 // code 20131029
  523. #define MSG_GEN_INFO_DISEXP WM_ECOM_HW + 31 // generator exp condition error;Forbid expusore
  524. //code begin 20170906
  525. #define MSG_GEN_INFO_CIRCLE WM_ECOM_HW + 32 // 消息循环
  526. #define MSG_GEN_ERROR_CIRCLE WM_ECOM_HW + 33 // 错误循环
  527. #define MSG_GEN_WARN_CIRCLE WM_ECOM_HW + 34 // 警告循环
  528. #define MSG_GEN_INFO_SINGLE WM_ECOM_HW + 35 // 消息单次
  529. #define MSG_GEN_ERROR_SINGLE WM_ECOM_HW + 36 // 错误单次
  530. #define MSG_GEN_WARN_SINGLE WM_ECOM_HW + 37 // 警告单次
  531. //code end 20170906
  532. //WPAEAM
  533. //point of error code
  534. //LPARAM
  535. //Point of CString for ErrorMessage
  536. #define GEN_SEL_ENABLE 1
  537. #define GEN_SEL_DISABLE 0
  538. #define GEN_AUTO_FOCUS 2
  539. #define GEN_LARGE_FOCUS 1
  540. #define GEN_SMALL_FOCUS 0
  541. #define GEN_ET_MATIME 0
  542. #define GEN_ET_MAS 1
  543. #define GEN_ET_AEC 2 //GEN_ET_AEC3P
  544. #define GEN_ET_AEC3P 2
  545. #define GEN_ET_AEC2P 3
  546. #define GEN_ET_AEC1P 4
  547. #define GEN_ET_AEC1P_REDUCEMA 5
  548. #define GEN_PR_INACTIVE 0
  549. #define GEN_PR_ACTIVE 1
  550. #define GEN_PR_READY 2
  551. #define GEN_AECFIELD_000 0
  552. #define GEN_AECFIELD_001 1
  553. #define GEN_AECFIELD_010 10
  554. #define GEN_AECFIELD_100 100
  555. #define GEN_AECFIELD_011 11
  556. #define GEN_AECFIELD_101 101
  557. #define GEN_AECFIELD_110 110
  558. #define GEN_AECFIELD_111 111
  559. #define GEN_AECFILM_000 0
  560. #define GEN_AECFILM_001 1
  561. #define GEN_AECFILM_010 10
  562. #define GEN_AECFILM_100 100
  563. #define GEN_AECFILM_011 11
  564. #define GEN_AECFILM_101 101
  565. #define GEN_AECFILM_110 110
  566. #define GEN_AECFILM_111 111
  567. #define GEN_WS_TABLE 0
  568. #define GEN_WS_WALL 1
  569. #define GEN_WS_CONVENTIONAL 2
  570. #define GEN_WS_CONVENTIONAL_FREE 2
  571. #define GEN_WS_MOBILE 3
  572. #define GEN_WS_FREE_TABLE 3
  573. #define GEN_WS_TOMO 4
  574. #define GEN_WS_CONVENTIONAL_TABLE 5
  575. #define GEN_WS_CONVENTIONAL_WALL 6
  576. #define GEN_WS_FREE_WALL 7
  577. #define GEN_PARAM_KV 0 //kv
  578. #define GEN_PARAM_MA 1 //ma
  579. #define GEN_PARAM_MS 2 //ms
  580. #define GEN_PARAM_MAS 3 //mas
  581. #define GEN_PARAM_ER 4 //Warning
  582. #define GEN_PARAM_EL 5 //error
  583. #define GEN_PARAM_EC 6 //echo
  584. #define GEN_PARAM_ST 7 //generator status
  585. #define GEN_PARAM_RE 8 //reset
  586. #define GEN_PARAM_WS 9 //workstation
  587. #define GEN_PARAM_BU 10 //bucky state
  588. #define GEN_PARAM_FO 11 //Focus
  589. #define GEN_PARAM_ET 12 //exposure mode: MA/Time mode, Ma/Ms mode,AEC mode
  590. #define GEN_PARAM_PR 13 //Preparation state
  591. //#define GEN_PARAM_PR0 14 //End or Abort Exposure
  592. #define GEN_PARAM_XR 15 //Rad Exposure state
  593. #define GEN_PARAM_FI 16 //AEC Field
  594. #define GEN_PARAM_FS 17 //AEC screen
  595. #define GEN_PARAM_FN 18 //AEC Density
  596. #define GEN_PARAM_AP 19 //Post AP
  597. #define GEN_PARAM_AT 20 //Post Time
  598. #define GEN_PARAM_HE 21 //tube heat
  599. #define GEN_PARAM_TB 22 //-*-Tube number for calibration
  600. #define GEN_PARAM_MC 23 //-*-MA of last calibration
  601. #define GEN_PARAM_FC 24 //-*-Filament Current of last calibration exposure.
  602. #define GEN_PARAM_CWS 25 //-*-Receptor requested
  603. #define GEN_PARAM_CBU 26 //-*-Bucky status for receptor: 0 or 1
  604. #define GEN_PARAM_CTO 27 //-*-Tomo status for receptor
  605. #define GEN_PARAM_CFL 28 //-*-Fluoro status for receptor
  606. #define GEN_PARAM_CSR 29 //-*-Serial Exposure status for receptor
  607. #define GEN_PARAM_CAE 30 //-*-AEC status for receptor
  608. #define GEN_PARAM_CFI 31 //-*-AEC Fields enabled for receptor
  609. #define GEN_PARAM_CFS 32 //-*-AEC Film Screens enabled for receptor
  610. #define GEN_PARAM_KW 33 //Generator KW Rating
  611. #define GEN_PARAM_GC 34 //-*-Generator Configuration
  612. #define GEN_PARAM_HH 35 //-*- Housing Tube Heat
  613. #define GEN_PARAM_GM 36 //-*- programming mode of Generator
  614. //#define GEN_PARAM_CA 37 //-*-Auto Calibration state
  615. #define GEN_PARAM_DAP 37 //-*-Current DAP accumulated value
  616. #define GEN_PARAM_DRF 38 //-*-Current DAP rate value
  617. #define GEN_PARAM_DZERO 39 //-*-Acknowledge zeroing DAP
  618. #define GEN_PARAM_DT 40 //-*-Current DAP test passed or not 0 = Failed,1 = Passed,2 = Test In progress
  619. #define GEN_PARAM_DSTATUS 41 //-*-Current DAP status
  620. #define GEN_PARAM_DV 42 //-*-Last DAP Test Value
  621. #define GEN_PARAM_AK 44 //Post Post KV code 20130202
  622. #define GEN_PARAM_AM 45 //Post Post MA code 20130202
  623. //code begin 20100421
  624. #define GEN_PARAM_OTC_STATUS 43 //gen otc status
  625. //code end 20100421
  626. //#define GEN_PARAM_FNA 44 //add by lv in 20101011, INC DEC AEC Density delete code 20130202
  627. #define GEN_PARAM_AC 48 //Current charge of Capacitor int
  628. //code end 20110408
  629. #define GEN_PARAM_MAMMO_AE 49 //Chao Sun Mammo
  630. #define GEN_PARAM_MAMMO_FT 50 //Chao Sun Mammo
  631. #define GEN_PARAM_MAMMO_FTSZ 51 //Chao Sun Mammo
  632. #define GEN_PARAM_MAMMO_DENSITY 52
  633. #define GEN_PARAM_MAMMO_MULTIPLEENERGY 53
  634. #define GEN_PARAM_MAMMO_EP 54
  635. #define GEN_PARAM_MAMMO_POSITIONCODE 55
  636. #define GEN_PARAM_MAMMO_NEEDENABLE 56
  637. #define GEN_PARAM_MAMMO_NEEDDEPTH 57
  638. #define GEN_PARAM_MAMMO_PRESSURESTATE 58
  639. #define GEN_PARAM_MAMMO_WORKSTATE 59
  640. #define GEN_PARAM_MAMMO_MOVESTATE 60
  641. #define GEN_PARAM_MAMMO_ERRORCODE 61
  642. #define GEN_PARAM_MAMMO_MAMMOSTATE 62
  643. //code begin 20120814
  644. #define GEN_PARAM_BC 63 //check if battery is charging int 0: no charge, 1: charge
  645. #define GEN_BATTERY_CHARGEVOLTSTATE_YES 1 //正在充电
  646. #define GEN_BATTERY_CHARGEVOLTSTATE_NO 0 //未充电
  647. //code begin 20091223
  648. //code begin 20120814
  649. #define GEN_PARAM_KV_V2 64 //KV for version2 send the address of parameter
  650. #define GEN_PARAM_FN_V2 65 //Density for version2 send the address of parameter
  651. #define GEN_PARAM_DAP_V2 66 //DAP for version2 send the address of parameter
  652. #define GEN_PARAM_GENHEAT 67 //Generator heat, no same as HU
  653. #define GEN_PARAM_AECDOSE 68 //Generator AEC dose, for siemens AEC exposure requirment
  654. #define GEN_STATUS_NT 70 //-*-Not connect with the generator
  655. //code end 20091223
  656. #define GEN_PARAM_POST 71 //-*-Not connect with the generator //NUll
  657. //code begin 20130708
  658. //add device status
  659. #define GEN_BATTERY_STATUS 72//发生器电池电量状态
  660. #define GEN_BATTERY_CHARGE_NA 7
  661. #define GEN_BATTERY_OUTOFCHARGE 6
  662. #define GEN_BATTERY_EMERGENCY 5
  663. #define GEN_BATTERY_FULL 4
  664. #define GEN_BATTERY_OVER 3
  665. #define GEN_BATTERY_LOW 2
  666. #define GEN_BATTERY_WARNING 1
  667. #define GEN_BATTERY_NORMAL 0
  668. #define GEN_TUBEHU_STATUS 73//发生器球管热容量状态
  669. #define TUBEHU_TOO_HIGH 2
  670. #define TUBEHU_WARNING 1
  671. #define TUBEHU_NORMAL 0
  672. #define TUBEHU_LOW 3
  673. #define TUBEHU_TOO_LOW 4
  674. #define TUBEHU_NA 5
  675. #define VALUE_NA 0xFF //表示无效数值
  676. #define GEN_GENHU_STATUS 74//发生器热量状态
  677. #define GENHU_TOO_HIGH 2
  678. #define GENHU_WARNING 1
  679. #define GENHU_NORMAL 0
  680. //code end 20130708
  681. #define GEN_PARAM_KV_ADJ 75 //kv Adjustment
  682. #define GEN_PARAM_MA_ADJ 76 //ma Adjustment
  683. #define GEN_PARAM_MS_ADJ 77 //ms Adjustment
  684. #define GEN_PARAM_MAS_ADJ 78 //mas Adjustment
  685. #define GEN_PARAM_FN_ADJ 79 //AEC Density Adjustment
  686. //code begin 20150824
  687. #define GEN_PARAM_PATIENT_BODYSIZE 80 //GEN patient body size
  688. #define PATIENT_BODYSIZE_LARGE 4
  689. #define PATIENT_BODYSIZE_MEDIUM 3
  690. #define PATIENT_BODYSIZE_SMALL 2
  691. #define PATIENT_BODYSIZE_PAEDIATRIC 1
  692. //code end 20150824
  693. //code begin 20160411
  694. #define GEN_PARAM_MAMMO_MAMMOPRESSUREVALUE 81 //压迫器压力
  695. #define GEN_PARAM_MAMMO_MAMMOPRESSUREDECOMP 82//自动释放的设定
  696. #define GEN_PARAM_MAMMO_MAMMOAGD 83 //AGD
  697. #define GEN_PARAM_MAMMO_MAMMOMECHNICALANGLE 84//机架角度
  698. #define GEN_PARAM_MAMMO_MAMMMECHNICALHEIGH 85//机架高度
  699. //code end 20160411
  700. //code 20160416
  701. #define GEN_PARAM_WS_STATUS 86
  702. #define SEND_WS_STATUS_FAIL 0
  703. #define SEND_WS_STATUS_OK 1
  704. //code end 20160416
  705. #define GEN_REMOTECONTROL 87
  706. #define REMOTECONTROL_ENABLE 1
  707. #define REMOTECONTROL_DISABLE 0
  708. #define GEN_PARAM_FIVE_SEL 88
  709. #define VER_NO_FLIP 0
  710. #define VER_AND_FLIP 1
  711. #define HOR_NO_FLIP 10
  712. #define HOR_AND_FLIP 11
  713. #define GEN_PARAM_MAMMO_PADDLEID 89
  714. #define NO_PADDLE 0
  715. #define BIG_PADDLE 1
  716. #define SMALL_PADDLE 2
  717. #define SPOT_PADDLE 3
  718. #define GEN_PARAM_MAMMO_MAG 90
  719. #define GEN_PARAM_MAMMO_DEPRESS 91
  720. //code begin 20200225
  721. #define GEN_STATUS_DISCONN 92 //-*-Not connect with the generator
  722. #define GEN_STATUS_CONN 93 //-*-connect with the generator
  723. //code end 20200225
  724. #define GEN_STATUS_EXP 94 //
  725. #define MSG_POST_DOSE_PARAM WM_ECOM_HW + 20 //2144 //will be implemented soon delegate_ExpPostParamHandler
  726. #define GEN_PD_KVP 0 //kv //LPARAM //int
  727. #define GEN_PD_MA 1 //ma //Point to float
  728. #define GEN_PD_MS 2 //ms //Point to float
  729. #define GEN_PD_MAS 3 //mas //Point to float
  730. #define GEN_PD_DAP 4 //dap //Point to float
  731. //#define GEN_PD_ER 4 //Warning
  732. //#define GEN_PD_EL 5 //error
  733. //#define GEN_PD_EC 6 //echo
  734. #define GEN_EXP_AREA 95 //用于处理ST2回传的曝光区域选择信息
  735. #define GEN_EXP_WEIGHT 96 //用于处理ST2回传的动物体重体长信息
  736. #define ERROR_CLEAR 0
  737. #define ERROR_COMMUNICATION 9999
  738. #define ERROR_COMMUNICATION_TRY 9998
  739. #define ERROR_INITIALIZATION 9997
  740. /////////////////////////////////////////////////////////////////////////////////////////////////////////
  741. //STITCHING:
  742. //Code begin 20091103
  743. //stitching ctrl device message
  744. #define MSG_STITCHING_PARAM WM_ECOM_HW + 28
  745. //Code end 20091103
  746. //Code begin 20091103
  747. #define STITCH_PARAM_SETUP_RECEIVED 0 //Stitching setup received
  748. //Info1: configured distance from detector to detector holder outer surface
  749. #define STITCH_PARAM_SETUP_AVAIABLE 1 //Setup ok: resulting stitching positions are reachable.
  750. #define STITCH_PARAM_SETUP_MOVING 2 //Moving to setup position.
  751. #define STITCH_PARAM_SETUP_STOP 3 //Moving to setup position stopped
  752. #define STITCH_PARAM_SETUP_REACHED 4 //Setup position reached
  753. #define STITCH_PARAM_SETUP_ADJUSTED 5 //Setup position reached and adjusted
  754. #define STITCH_PARAM_SETUP_REJECTED 6 //Setup rejected: stitching target positions not reachable
  755. #define STITCH_PARAM_SETUP_ADJUST_REJECTED 7 //Setup adjust rejected: redefined positions not reachable. After setup received, the user can change length, overlap, ….
  756. #define STITCH_PARAM_SETUP_ADJUST_OK 8 //Setup adjust OK
  757. #define STITCH_PARAM_START 9 //Start: remote controller or GUI start button pressed
  758. #define STITCH_PARAM_READYTOMOVE 10 //Ready to move to next position. Info1: current image. Info2: total number of images.
  759. #define STITCH_PARAM_MOVING_STEP 11 //Moving to next position
  760. #define STITCH_PARAM_POSITION_REACHED 12 //Position reached. Info1=current image. Info2=total number of images
  761. #define STITCH_PARAM_EXP_READY 13 //Ready to expose. Info1=current image. Info2=total number of images
  762. #define STITCH_PARAM_READY_M_EXTRA 14 //Ready to move to extra image
  763. #define STITCH_PARAM_MOVEINFG_EXTRA 15 //Moving to extra image
  764. #define STITCH_PARAM_EXTRA_IMAGE_REACHED 16 //Extra image reached
  765. #define STITCH_PARAM_EXTRA_EXP_READY 17 //Ready to expose extra image
  766. #define STITCH_PARAM_FINISHED 18 //Stitching finished
  767. #define STITCH_PARAM_CANCEL 19 //Stitching Cancel
  768. #define STITCH_PARAM_OFF 20 //Stitching Off
  769. #define STITCH_PARAM_EXP_DONE 21 //Exposure Done
  770. #define STITCH_PARAM_ACCEPT 22 //Image accept button pressed
  771. #define STITCH_PARAM_REJECT 23 //Image reject button pressed
  772. #define STITCH_PARAM_TOTAL_IMAGE 24 //total image count
  773. #define STITCH_PARAM_CUR_IMAGE 25 //Current image number
  774. #define STITCH_PARAM_EXTRA_IMAGE 26 //Extra image number
  775. #define STITCH_PARAM_EXIT 27 //end stitching
  776. #define STITCH_PARAM_DIRECTION 28 //stitching direction
  777. #define STITCH_PARAM_HW_STATUS 29 //hw status, mechanical system status
  778. #define HW_NOT_READY 0
  779. #define HW_READY 1
  780. #define STITCH_PARAM_U_FINISHED 30 //uncompelete finish
  781. #define MSG_OTC_PARAM WM_ECOM_HW + 29
  782. #define OTC_PARAM_ACCEPT 100+1 //Image accept button pressed
  783. #define OTC_PARAM_REJECT 100+2 //Image reject button pressed
  784. #define OTC_PARAM_SELECTEDVIEW 100+3 //Select view
  785. #define OTC_PARAM_SID 100+4 //the sid from otc side
  786. #define OTC_PARAM_ROOM_STATION 100+5 //the workstaton of otc
  787. //add by wang 2013/02 just for GMM's ADLINK DAQ Card
  788. #define OTC_PARAM_WALL_GRID120 100+6
  789. #define OTC_PARAM_WALL_GRID180 100+7
  790. #define OTC_PARAM_WALL_GRIDABSENT 100+8 //No grid
  791. #define OTC_PARAM_WALL_GRIDPARALLEL 100+9 // grid error
  792. #define OTC_PARAM_TABLE_GRID120 100+10
  793. #define OTC_PARAM_TABLE_GRID180 100+11
  794. #define OTC_PARAM_TABLE_GRIDABSENT 100+12
  795. #define OTC_PARAM_TABLE_GRIDPARALLEL 100+13
  796. #define OTC_PARAM_WALL_FPD4335 100+14
  797. #define OTC_PARAM_WALL_FPD3543 100+15
  798. #define OTC_PARAM_WALL_FPDABSENT 100+16
  799. #define OTC_PARAM_WALL_FPDPARALLEL 100+17
  800. #define OTC_PARAM_TABLE_FPD4335 100+18
  801. #define OTC_PARAM_TABLE_FPD3543 100+19
  802. #define OTC_PARAM_TABLE_FPDABSENT 100+20
  803. #define OTC_PARAM_TABLE_FPDPARALLEL 100+21
  804. #define OTC_PARAM_EXPOSTATE 100+22
  805. #define OTC_PARAM_DAPRESET 100+23
  806. //code begin 20141024
  807. #define OTC_PARAM_ANGLE_FLOAT 100+24 //add code 20141021 OTC Angle
  808. #define OTC_PARAM_SID_FLOAT 100+25 //add code 20141021 OTC SID
  809. #define OTC_PARAM_WS 100+26 //add code 20141021 OTC Workstation
  810. #define OTC_PARAM_LONGLOCK_STATE 100+27 //OTC Long LOCK; 1:Active; 0:NoActive
  811. #define OTC_PARAM_LONGLOCK_START 100+28 //OTC LONG LOCK; 1:ON; 0:OFF
  812. #define OTC_PARAM_LONGLOCK_STOP 100+29 //OTC LONG LOCK: 1:ON; 0:OFF
  813. #define OTC_PARAM_TRANSLOCK_STATE 100+30 // OTC Trans Lock; 1:Active; 0:NoActive
  814. #define OTC_PARAM_TRANSLOCK_START 100+31 // OTC Trans LOCK;1:ON; 0:OFF
  815. #define OTC_PARAM_TRANSLOCK_STOP 100+32 // OTC Trans LOCK; 1:ON; 0:OFF
  816. //code end 20141024
  817. #define OTC_PARAM_MOVEBUTTON_KEY 100+33 // OTC MOVE BUTTON KEY
  818. #define OTC_PARAM_SID_STRING 100+34 //add code 20141112 OTC SID
  819. #define OTC_PARAM_AUTOTRACKING 100+35 //add code 20141112 OTC Auto tracking for OTC; 0:No tracking; 1:Tracking;
  820. #define OTC_PARAM_READYSTATUS 100+36 //add code 20141119 OTC STRING
  821. #define OTC_PARAM_READYSTATUS_CODE 100 + 37 //OTC的READY状态 lparam:0(READY),1(NOT READY)
  822. #define OTC_PARAM_FID 100 + 38
  823. #define OTC_PARAM_STITCH_DIRECTION 100 + 39 //ysj++20201013
  824. #define UP_TO_DOWN 1 //拼接方向 上->下
  825. #define DOWN_TO_UP 2 // 下->上
  826. #define OTC_PARAM_COLLIMATOR_INFO 100+40 //OTC 消息传递 遮光器的相关信息
  827. #define REJECT_REASON_TEST 1
  828. #define REJECT_REASON_NOUSE 2
  829. #define REJECT_REASON_OTHER 3
  830. #define OTC_PARAM_UCArmUpdown 100+41 //jk++: UCArm机架升级值
  831. #define OTC_PARAM_UCArmRot 100+42 //jk++: UCArm机架旋转值
  832. #define OTC_PARAM_CONNECTSTATUS 100+43 //means:otc connect status, (0 : disconnect ,1 : connect)
  833. #define OTC_PARAM_COLLIMATOR_MOVE_DIRECTION 100+44 //jk++:机架转发束光器的4个运动方向命令,0表示停止。(innova 遮光器使用)
  834. #define MSG_OTC_ERROR WM_ECOM_HW + 21 //机架模块的错误
  835. #define OTC_ERROR_INIT 1 //初始化失败
  836. #define OTC_ERROR_CONNECT 2 //连接中断
  837. #define OTC_ERROR_RECONNECT 3 //连接恢复
  838. #define OTC_WARN_INFO 998 //警告信息 单条
  839. #define OTC_ERROR_INFO 999 //错误信息 单条
  840. #define MSG_OTC_WARN_SINGLE WM_ECOM_HW + 22 //警告信息 单条 SINGLE
  841. #define MSG_OTC_WARN_CIRCLE WM_ECOM_HW + 23 //警告消息需要循环
  842. #define MSG_OTC_INFO_SINGLE WM_ECOM_HW + 24 //机架模块的错误 SINGLE
  843. #define MSG_OTC_INFO_CIRCLE WM_ECOM_HW + 25 //警告消息需要循环
  844. #define MSG_OTC_ERROR_CIRCLE WM_ECOM_HW + 26 //错误信息 单条
  845. //对应OTC_SetExpoState接口
  846. #define OTC_ENABLE_EXPOSE (0) // 可以曝光
  847. #define OTC_XRAYON (1) // 正在出线
  848. #define OTC_DISABLE_EXPOSE (2) // 禁止曝光
  849. #define OTC_XRAYOFF (3) // 曝光停止
  850. /////////////////////////////////////////////////////////////////////////
  851. //同步模块:
  852. #define MSG_SYN_STATUS WM_ECOM_HW + 9
  853. //WPARAM:
  854. #define SYN_GEN_PREPARE 0 //PR1
  855. #define SYN_GEN_READY 1 //PR2
  856. #define SYN_GEN_OVER 2 //PR0
  857. #define SYN_GEN_EIPON 3 //exposure in progress
  858. #define SYN_GEN_EIPOFF 4 //exposure in progress
  859. //#define SYN_PNL_READY 5 //AC ready
  860. #define SYN_XRAYWINDOW_ON 6 //
  861. #define SYN_XRAYWINDOW_OFF 7 //
  862. #define SYN_PARAM_RE 8 // reset add code 20121213 by zhang
  863. #define SYN_COMM_STATUS 9
  864. #define SYN_RLS_DUALENGRY 10 //针对双能模式下,若仅有单次XPB信号时,在第二次RLS时需要通过该消息,增加HW中的双能曝光次数;
  865. #define SYN_DYN_CMD 20 //for DYN Cmd
  866. #define SYN_DYN_MSG 21 //for DYN Msg
  867. #define SYN_DYN_IO 22 //for DYN IO
  868. #define MSG_SYN_SID WM_ECOM_HW + 10
  869. //WPARAM SID in cm
  870. #define MSG_SYN_COLLIMATOR WM_ECOM_HW + 11
  871. //WPARAM pointer of collimator struct
  872. #define COLLIMATOR_PARAM 1
  873. #define ROI_PARAM 2
  874. #define COLLIMATOR_ZERO 3 //collimator zero whose origin is the left up(0,0) of image;
  875. #define MASK_PARAM 4 //mask 点集
  876. #define MSG_SYN_ERROR WM_ECOM_HW + 12
  877. //WPARAM error code point of code string
  878. #define SYN_RESET_NOTIFY 0
  879. #define MSG_SYN_BUCKY WM_ECOM_HW+13
  880. //WPARAM
  881. #define SYN_BUCKY_PORTRAIT 0
  882. #define SYN_BUCKY_LANDSCAPE 1
  883. #define SYN_BUCKY_UNKNOW 2
  884. //#define SYN_BUCKY_GRID_PRESENT 3 //grid on
  885. //#define SYN_BUCKY_GRID_ABSENT 4 //no grid
  886. #define MSG_SYN_GRID WM_ECOM_HW+16
  887. #define SYN_GRID_ABSENT 0
  888. #define SYN_GRID_PRESENT 1
  889. //#define SYN_GRID_120 3//deleted 20110711
  890. //#define SYN_GRID_180 2//deleted 20110711
  891. #define SYN_GRID_120 2
  892. #define SYN_GRID_180 3
  893. #define SYN_GRID_UNKNOW 4
  894. #define SYN_GRID_120_ROTATE 5
  895. #define SYN_GRID_PARALLEL 6
  896. #define SYN_GRID_100 7
  897. #define SYN_GRID_150 8
  898. #define SYN_GRID_PARTINSERT 9//Grid partially inserted
  899. #define MSG_SYN_STAND WM_ECOM_HW+17
  900. #define SYN_BTCONNECT_LOST 100 // 断开连接
  901. #define SYN_BTCONNECT_CONNECT 101 // 连接
  902. #define MSG_SYN_FILTER WM_ECOM_HW+18
  903. #define SYN_FILTER_0 0
  904. #define SYN_FILTER_1 1
  905. #define SYN_FILTER_2 2
  906. #define SYN_FILTER_3 3
  907. #define SYN_FILTER_4 4
  908. #define SYN_FILTER_5 5
  909. #define SYN_FILTER_6 6
  910. #define MSG_OTC WM_ECOM_HW+19
  911. //WPARAM:
  912. #define OTC_NORMAL 0
  913. #define OTC_MANUAL 1
  914. #define OTC_AUTO 2
  915. #define OTC_READY 2
  916. /////////////////////////////////////////////////////////////////////////////
  917. //Barcode Reader
  918. #define MSG_CODE_ENTER WM_ECOM_HW+14
  919. //WPARAM point of enter string
  920. #define MSG_CODE_ERROR WM_ECOM_HW+15
  921. //WPARAM error code point of code string
  922. //add HW status message
  923. #define MSG_HW_STATUS WM_ECOM_HW+32 // 1: ready; 0: no ready 20150227
  924. //WPARAM error code point of code string
  925. //add Collimator offset value 20160224
  926. #define MSG_SYN_COLLIMATOR_OFFSET WM_ECOM_HW+33 // Collimator offset value
  927. #define MSG_SYN_COLLIMATOR_OFFSET2 WM_ECOM_HW+34 // FixDROC 32bit 硬件分离后,发MSG_SYN_COLLIMATOR_OFFSET会导致硬件进程崩溃
  928. /////////////////////////////////////////////////////////////////////////////
  929. //数据流发送的消息
  930. #define WM_ECOM_DF WM_USER + 1200 //DATA FLOW
  931. //工作列表刷新完毕
  932. #define MSG_DF_WORKLISTREFRESH WM_ECOM_DF + 0
  933. //数据流执行过程中的错误
  934. #define MSG_DF_NOTIFY WM_ECOM_DF + 1
  935. //WPARAM:
  936. //#define ECOM_WARNING 0 //警告,自动处理
  937. //#define ECOM_ERROR 1 //错误,需要处理
  938. #define MSG_FILE_STORED WM_ECOM_DF + 2
  939. //WPARAM
  940. //AETITLE
  941. //LPARAM
  942. //SOPUID
  943. #define MSG_FILE_SEND WM_ECOM_DF + 3
  944. #define MSG_FILM_PRINT WM_ECOM_DF + 4
  945. //WPARAM
  946. //AETITLE
  947. //LPARAM STATIS
  948. #define ECOM_SUCCESS 1
  949. #define ECOM_FAILURE 0
  950. #define MSG_SPACE_OUT WM_ECOM_DF + 5
  951. //WPARAM
  952. //TotleSpace
  953. //LPARAM
  954. //FreeSpace
  955. #define MSG_KILL_SERVICE WM_ECOM_DF + 6
  956. //WPARAM
  957. //WPARAM:
  958. //#define ECOM_BEGIN 1
  959. //#define ECOM_PERFORM 2
  960. //#define ECOM_END 3
  961. //给VET用的消息
  962. #define MSG_VET WM_USER + 1300
  963. //WPARAM:
  964. #define VET_WEIGHT_KG 1
  965. #define VET_DEPTH_CM 2
  966. #define VET_ANIMAL_CODE 3
  967. #define VET_BODY_AREA 4
  968. #define VET_VIEW 5
  969. #define VET_ANIMAL_SIDE 6
  970. #define ECOM_SETVALUE 5 //kv, ma, ms,
  971. //LParam: value
  972. //#define VET_A
  973. //added 2008/08/29
  974. #define MSG_PNL_ACQUISITION (WM_ECOM_HW + 50) // For portable 3543
  975. //Code begin 20100304
  976. #define MSG_DUAL_ENERGY_PARAM (WM_ECOM_HW + 51)//
  977. #define DUALENERGY_ABORT 1//Abort dual energy process
  978. #define SECOND_EXP_BEGIN 2
  979. #define DUALENERGY_EXPOSURE_FIRST 3
  980. #define DUALENERGY_EXPOSURE_SECOND 4
  981. #define DUALENERGY_POSTPROCESS_START 10
  982. //code end 2010304
  983. //code begin 20121219
  984. /* DROC STATUS INFORMATION ----------------------------------------------------------------------------------*/
  985. #define HW_NEIN 0
  986. #define HW_SYSTEM_READY 1
  987. #define HW_NO_PATIENT 2 //DFR not ready because no patient is selected
  988. #define HW_NO_IMAGE_MEMORY 3 /*DFR not ready because there is not enough image memory available */
  989. #define HW_SERVICE_MODE 4 /*DFR not ready because it is in service mode. */
  990. #define HW_FD_ERROR 5 /*DFR not ready because there is an Detektor error. */
  991. #define HW_FLC_ON_ERROR 6 /*DFR not ready because there is an error concerning the FL-C */
  992. #define HW_ACQ_BLOCKED_BY_HIPAA 7 /*DFR is not ready because it is blocked by HIPAA */
  993. #define HW_NO_OGP_SELECTED 8 /*DFR is not ready because no OGP has been selected. */
  994. #define HW_FD_RECOVERING 9 /*DFR is not ready because the FD is recovering. */
  995. #define HW_NO_FLUORO_RAD_MODE_SELECTED 10 /*DFR not ready for fluoro because rad mode is selected. */
  996. #define HW_FD_TOO_HOT 11 /*DFR is not ready because the Detector is too hot. */
  997. #define HW_NO_XRAY_BEC_FOLDER_PROTECTED 12 /* DFR not ready because the patient's folder is protected. */
  998. #define HW_FLC_IN_DOC_MODE 13 /*FL-C is in Documentation mode */
  999. #define HW_FLC_IN_POSTPROC_MODE 14 /*FL-C is in post processing mode */
  1000. #define HW_FD_OFFSET_IN_PROGRESS 15 /*FD offset is in progress */
  1001. #define HW_FD_WLAN_TOO_LOW 16 /*For NRF: WLAN power is too low for acquisition. */
  1002. #define HW_FLC_EXAM_MANAGER_ACTIVE 17 /*FL-C is in mode Exam Manager */
  1003. #define HW_FD_BATTERY_TOO_LOW 18 /*Battery of mobile detector is too low for Acquisition. */
  1004. #define HW_LOW_BATT_ACQ_POSSIBLE 19 /*Battery of wireless FD is low but acquisition still possible (for future use) */
  1005. #define HW_FD_NOT_IN_OP_STATE 20 /*Detector not in operating state */
  1006. #define HW_FD_CONFG_OUT 21 /*Detector configured out */
  1007. #define HW_FD_IMG_RECOV 22 /*Detector image recovery in progress */
  1008. #define HW_NO_FD_CABLE_FOR_ORTHO 23 /*wi-D BK cable not connected for Ortho acquistion */
  1009. #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 */
  1010. /*distributed was not the one to be used for next shot (because acq will start */
  1011. /* with step 1 always */
  1012. /* */
  1013. /*--------------------------------------------------------------------------------------------------------------------*/
  1014. //code end 20121219
  1015. #define MSG_HW_COMM_ENABLE (WM_ECOM_HW + 60)//
  1016. //code begin 20141107
  1017. #define DONGLE_GEN_COMMUNICATION 0x00
  1018. #define DONGLE_GEN_NO_COMMUNICATION 0x01
  1019. #define DONGLE_REMOVEGRID_NOFUNCTION 0
  1020. #define DONGLE_REMOVEGRID_LOW 1
  1021. #define DONGLE_REMOVEGRID_MEDIUM 2
  1022. #define DONGLE_REMOVEGRID_HIGH 3
  1023. #define DONGLE_UMC_GENPARAM_SYNCHR 0x10
  1024. #define DONGLE_UMC_VIEWPROTOCOL_SYNCHR 0x20
  1025. #define DONGLE_UMC_PREVIEW_SYNCHR 0x40
  1026. //code end 20141107
  1027. //////////////////////////////////////////////////////////////////////////
  1028. //测距模块
  1029. #define MSG_MEA_PARAM WM_ECOM_HW + 80
  1030. //WPARAM:
  1031. #define MEA_CALIBRATE 0 //校正值消息
  1032. #define MEA_DATATRANSMODE 1 //距离发送方式 ,0:主动发送, 1:读取才发送
  1033. #define MEA_DISTANCEDATA 2 //模块测到的距离值