123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197 |
- //---------------------------------------------------------------------------------------
- //
- // Copyright (c) 2005,珠海友通科技有限公司——通用型DROC
- // All rights reserved.
- //
- // 文件名称:CommonMessage.h
- // 文件标识:见配置管理计划书
- // 摘 要:系统之间需要传递的的消息主要有界面消息,硬件消息,数据流消息,以方便模块之间传递消息
- //
- // 当前版本:0.1
- // 作 者:吕国政
- // 完成日期:2005年1月10日
- //
- // 取代版本:
- // 原 作 者:
- // 完成日期:
- //
- //---------------------------------------------------------------------------------------
- #pragma once
- //界面发送的消息:
- #define WM_ECOM_UI WM_USER + 1000 //USER INTERFACE
- //Workflow调用UIInterface的InitView函数,UIInterface显示InitForm,然后向Workflow发送此消息,
- //Workflow开始进行硬件及服务器的连接和初始化。
- #define MSG_UI_INIT WM_ECOM_UI + 0
- //显示登陆界面后,向workflow发送此消息,加载所有的用户信息。
- #define MSG_UI_LOGON_USERALL WM_ECOM_UI + 1
- //在登陆界面选定用户,进入工作状态后,向workflow发送此消息。
- #define MSG_UI_LOGON_USERLOGON WM_ECOM_UI + 2
- //登出界面选择关闭计算机项,向workflow发送此消息。
- #define MSG_UI_LOGOFF WM_ECOM_UI + 3
- //WPARAM:
- #define ECOM_SHOTDOWN 1 //关闭计算机项
- #define ECOM_CHANAGEUSER 2 //更改用户
- #define ECOM_EXITAPP 3 //退出DROC程序
- #define ECOM_RESTARTUP 4 //计算机重起
- //用户管理界面,添加/删除/修改
- #define MSG_UI_MANAGEUSER WM_ECOM_UI + 4
- //WPARAM:
- //#define ECOM_ADD 1 //添加
- //#define ECOM_DELETE 2 //删除
- //#define ECOM_MODIFY 3 //修改
- //
- //#define ECOM_LOAD 1 //加载
- //#define ECOM_REFRESH 2 //刷新
- //#define ECOM_RESUBMIT 3 //重新提交
- //#define ECOM_DELETE 4 //删除
- //#define ECOM_SUSPEND 5 //挂起
- //#define ECOM_ADD 6 //添加
- //#define ECOM_MODIFY 7 //修改
- //本地注册界面,增加
- #define MSG_UI_LOCALREG_ADD WM_ECOM_UI + 5
- //本地注册界面,修改
- #define MSG_UI_LOCALREG_MODIFY WM_ECOM_UI + 6
- //设定检索标准,向workflow发送此消息,检索
- #define MSG_UI_WORKLIST_QUREY WM_ECOM_UI + 7
- //WPARAM:
- #define ECOM_PATIENT_LEVEL 1 //for MANAGEUSER
- #define ECOM_VISIT_LEVEL 2
- #define ECOM_STUDY_LEVEL 3
- #define ECOM_WORK_LEVEL 4
- #define ECOM_IMAGE_LEVEL 5
- #define ECOM_AUTO_LEVEL 6
- //刷新任务清单时,向workflow发送此消息。
- #define MSG_UI_WORKLIST_REFRESH WM_ECOM_UI + 8
- //一个病人的检查
- #define MSG_UI_EXAM WM_ECOM_UI + 9
- //一个STUDY的检查
- #define MSG_UI_WORK WM_ECOM_UI + 10
- //一个VIEW/体位的检查
- #define MSG_UI_VIEW WM_ECOM_UI + 11
- //LPARAM:
- #define ECOM_ACCEPTED 1
- #define ECOM_REFUSED 2
- #define ECOM_NEW 3
- #define ECOM_UPDATE 4
- //WPARAM:
- #define ECOM_BEGIN 1
- #define ECOM_SUSPEND 2
- //#define ECOM_END 3
- #define ECOM_DATA_MODIFIED 4
- #define ECOM_INFO_MODIFIED 5
- //加载View的图像或者信息
- #define MSG_UI_VIEW_LOAD WM_ECOM_UI + 12
- //WPARAM:
- #define ECOM_IMAGE_ICON_LEVEL 1 //加载对应的投照示意图或拍片后的缩略图时
- #define ECOM_IMAGE_INFO_LEVEL 2 //加载对应的曝光,投照信息
- #define ECOM_IMAGE_DATA_LEVEL 3 //加载对应的图像数据,处理参数,LUT数据
- //加载读取平板图像或者假图,不进行真实的曝光
- #define MSG_UI_VIEW_DEMO WM_ECOM_UI + 28
- //改变当前view投照的技术参数,发送此消息
- #define MSG_UI_VIEW_TECH WM_ECOM_UI + 13
- #define MSG_UI_RECOVER_LASTIMAGE WM_ECOM_UI + 50
- //WPARAM:
- //#define GEN_PARAM_KV 0 //kv
- //#define GEN_PARAM_MA 1 //ma
- //#define GEN_PARAM_MS 2 //ms
- //#define GEN_PARAM_MAS 3 //mas
- //#define GEN_PARAM_RE 8 //reset //LPARAM: MSG_GEN_ERR, MSG_PANEL_ERROR, MSG_SYN_ERROR
- //#define GEN_PARAM_WS 9 //workstation
- //#define GEN_PARAM_FO 11 //Focus
- //#define GEN_PARAM_ET 12 //exposure mode: MA/Time mode, Ma/Ms mode,AEC mode//
- //#define GEN_PARAM_FI 16 //AEC Field
- //#define GEN_PARAM_FN 18 //AEC Density
- #define PNL_PARAM_PW 51
- //WPARAM:
- #define ECOM_WAKEUP 1
- #define ECOM_STANDBY 0
- #define PNL_PARAM_XWINDOW 52
- //#define KV 1
- //#define MA 2
- //#define MS 3
- //#define MAS 4
- //#define MODE 5
- //#define RESET 6 //LPARAM: 1 MSG_GEN_ERR: GEN, 2 MSG_PANEL_ERROR: PANEL, 3 MSG_SYN_ERROR: SYN
- //#define FOCUS 7
- //#define AECFIELD 8
- //#define AECDENSITY 9
- #define ECOM_SID 38 //改变SID时
- #define ECOM_COLLIMATOR 39 //设置电动COLLIMATOR时
- #define ECOM_SIZE 40 //改变病人体型后
- #define ECOM_POSTDOSE 41 //AEC模式,曝光后要得到实际曝光的剂量时
- // BUCKY 旋转.
- #define ECOM_BUCKY_ROTATE 61
- //LPARAM:
- #define ECOM_INC 1 //kv, ma, ms, mas 增加
- #define ECOM_DEC 2 ////kv, ma, ms, mas 减小
- #define ECOM_INC_L 3 //kv, ma, ms, mas 增加大步长5
- #define ECOM_DEC_L 4 ////kv, ma, ms, mas 减小大步长5
- #define ECOM_SIZE_SMALL 1
- #define ECOM_SIZE_MIDDLE 2
- #define ECOM_SIZE_LARGE 3
- #define ECOM_SIZE_PAEDIATRIC 4
- //曝光结束生成DICOM图像,或检查结束,或者察看本地数据,需要发送图像时,发送此图像。
- #define MSG_UI_VIEW_DCMSEND WM_ECOM_UI + 14
- //曝光结束生成DICOM图像,或检查结束,或者察看本地数据,需要打印图像时,发送此图像。
- #define MSG_UI_VIEW_DCMPRINT WM_ECOM_UI + 15
- //进入队列管理界面,管理发送队列
- #define MSG_UI_QUEUESEND WM_ECOM_UI + 16
- //进入队列管理界面,管理打印队列
- #define MSG_UI_QUEUEPRINT WM_ECOM_UI + 17
- //WPARAM:
- #define ECOM_LOAD 1 //加载
- #define ECOM_REFRESH 2 //刷新
- #define ECOM_RESUBMIT 3 //重新提交
- #define ECOM_DELETE 4 //删除
- #define ECOM_PAUSE 5 //挂起
- #define ECOM_ADD 6 //添加
- #define ECOM_MODIFY 7 //修改
- //本地图像管理,查询
- #define MSG_UI_IMAGEMANAGE_QUREY WM_ECOM_UI + 18
- //WPARAM:
- //#define PATIENT 1 //for MANAGEUSER
- //#define VISIT 2
- //#define STUDY 3
- //#define WORK 3
- //#define IMAGE 3
- #define MSG_UI_IMAGEMANAGE_WORK WM_ECOM_UI + 19
- //#define ECOM_LOAD 1 //加载
- //#define ECOM_DELETE 4 //删除
- //#define ECOM_MODIFY 7 //修改
- #define ECOM_LOCK 8 //保护
- #define ECOM_UNLOCK 9 //解保护
- #define ECOM_EXPORT 10 //export
- #define MSG_UI_RECYCLEMANAGE_QUREY WM_ECOM_UI + 20
- #define MSG_UI_RECYCLEMANAGE_WORK WM_ECOM_UI + 21
- //#define ECOM_LOAD 1 //加载
- //#define ECOM_DELETE 4 //删除
- //#define ECOM_MODIFY 7 //修改
- //回放当前选择的图像
- #define MSG_UI_IMAGEMENAGE_DCMVIEWER WM_ECOM_UI + 22
- //重新preview当前选择的图像
- #define MSG_UI_IMAGEMENAGE_REPREVIEW WM_ECOM_UI + 23
- //校正界面
- #define MSG_UI_CALIBRATION WM_ECOM_UI + 24
- //WPARAM:
- //#define ECOM_LOAD 1
- #define ECOM_EXIT 2
- //选择某校正参数集校正
- #define MSG_UI_CALIBRATION_MODE WM_ECOM_UI + 25
- // 图像处理参数调整
- #define MSG_UI_IMAGE_PARAM_ADJUST WM_ECOM_UI + 32
- //WPARAM:
- #define ECOM_BEGIN 1
- #define ECOM_PERFORM 2
- #define ECOM_END 3
- #define ECOM_ACCEPT 4
- #define ECOM_REJECTACCEPTED 6 //UI的处理逻辑:先使能continue按钮;再弹出对话框提示,再调用getcalibrationstep
- #define ECOM_DELETEACCEPTED 7
- #define ECOM_ACCEPTDELETEED 8
- #define ECOM_TUBE_WARMUP 9
- //#define ECOM_FCALEXP 10 //用于原厂校正不出图的情况,表示曝光开始 使用PNL_READING代替
- //传统模式时
- #define MSG_UI_CONVENTIONAL WM_ECOM_UI + 26
- //WPARAM:
- //#define ECOM_BEGIN 1
- //#define ECOM_END 3
- //进入找坏点的界面
- #define MSG_BADPIXEL WM_ECOM_UI + 27
- #define MSG_UI_STATISTIC WM_ECOM_UI + 29
- //WPARAM:
- #define ECOM_WORKINFO 1
- #define ECOM_REJECTIMGINFO 2
- #define MSG_UI_AUTOREG_SETTING WM_ECOM_UI + 30
- //影像质量控制
- #define MSG_UI_IMAGE_QC WM_ECOM_UI + 31
- #define MSG_UI_DROC_CONF WM_ECOM_UI + 33
- #define MSG_UI_IMAGE_EXPORT WM_ECOM_UI + 34
- #define MSG_UI_RELOAD_CONF WM_ECOM_UI + 35
- //WPAEAM:
- #define ECOM_LOAD 1
- #define ECOM_SAVE 2
- //硬件发送的消息
- #define WM_ECOM_HW WM_USER + 1100 //HARD WARE
- //曝光序列的状态,综合MSG_PANEL_STATUS和MSG_GEN_EXPOSURE
- #define MSG_HW_SEQUENCE WM_ECOM_HW + 0
- //WPARAM:
- #define HWCOMMSTATUS 0
- #define HWREADY 1 //平板准备好,可以开始曝光,这个消息和MSG_PANEL_STATUS重复
- #define SEQUENCEBEGIN 2 //手闸按下
- #define GENREADY 3 //球馆准备好,可以曝光,平板开始准备开始曝光周期
- #define XRAYWINDOWON 4 //平板曝光窗口打开
- #define XRAYON 5 //出现X射线 //该消息变成了软同步启动流程,通常来自于发生器端
- #define XRAYOFF 6 //X射线停止
- #define XRAYWINDOWOFF 7 //平板曝光窗口关闭
- #define READIMG 8 //读取图像
- #define SEQUENCEEND 9 //序列完成/失败,等待硬件准备
- #define HWPREPARE 10 //平板继续准备,这个消息和MSG_PANEL_STATUS重复
- #define XRAYOFF_DIRECT 11 //传统模式曝光结束
- //code begin 20130911
- #define PREHANDSWITCHPRESS 12 //一级手闸按下,但并没有收到发生器串口发出的球管ready确认的状态 目前仅在dragon使用
- #define PREHANDSWITCHRELEASE 13 //一级手闸松开 目前仅在dragon使用
- //code end 20130911
- #define SHUTDOWN 14 //退出DROC系统,关闭计算机 //code 20140328
- #define HANDSWITCHPRESS 15 //Sedecal专用:一级手闸按下,收到PR1
- #define HANDSWITCHRELEASE 16 //Sedecal专用:一级手闸松开,收到PR0
- #define CANCLESHUTDOWN 17 //停止关机操作 code 20170502
- #define PERSHUTDOWN 18 //预关机操作 code 20170502
- #define XRAYONFROMGEN 19 //出线(备注:专门用于射线,不能参与任何流程)
- #define XRAYOFFFROMGEN 20 //射线停止(备注:专门用于射线,不能参与任何流程)
- //显示硬件错误
- #define MSG_HW_NOTIFY WM_ECOM_HW + 1
- //WPARAM:
- #define ECOM_WARNING 0 //警告,自动处理
- #define ECOM_ERROR 1 //错误,需要处理
- #define ECOM_ERRORWARNING 2 //错误,需要处理
- //code begin 20091117
- #define ECOM_STITCHING_INFO 3 //错误,需要处理
- //code end 20091117
- //#define ECOM_INFO 4 //正常提示
- #define ECOM_DEVICE_AUTO_INFOR 5
- #define ECOM_DEVICE_INFOR 6
- //code begin 20140423
- #define ECOM_RECOVER_P_ERROR 7 //可恢复 需要处理的error
- //code end 20140423
- #define ECOM_DEVICE_INFOR_DISEXP 8 //曝光条件不满足,禁止曝光
- #define ECOM_CONNECT_RESULT 9
- #define ECOM_DEVICE_RESET 30 //reset 错误消息
- #define ECOM_DEVICE_INFOR_ENEXP 31 //曝光条件满足 20151013
- #define ECOM_CURRENT_EXPOSURE_FAIL 32 //曝光失败
- #define ECOM_ERROR_OTHERS 255 //其他错误,界面弹出对话框
- // add by song
- // date:2014-04-21
- // 目的: WPARAM切换workstation时让界面弹出进度条
- #define ECOM_DEVICE_SELECT_WS_BEGIN 131 //切换WS开始
- #define ECOM_DEVICE_SELECT_WS_ING 132 //切换WS过程中
- #define ECOM_DEVICE_SELECT_WS_END 133 //切换WS结束
- //LPARAM根据这个参数进度条上的提示语不一样
- #define SELECT_WS_START 0 //开始
- #define SELECT_WS_GEN 1 //发生器切换中
- #define SELECT_WS_PANEL 2 //探测器切换中
- #define SELECT_WS_FAILED 3 //WS切换失败
- #define SELECT_WS_SUCCESS 4 //切换成功
- //song 2016-04-21 end
- //LPARAM
- //Point of CString for ErrorMessage
- //WPARAM:
- //平板信息,返回平板数据:温度,信息,图像数据
- #define MSG_PANEL_INFO WM_ECOM_HW + 2
- //WPARAM:
- #define ECOM_PANEL_INFO_LEVEL 0 //信息,平板温度等
- #define ECOM_PANEL_DATA_LEVEL 1 //图像数据
- #define ECOM_PANEL_INFO_BATTERY_CHARGE 2 // the charge of the battery
- #define ECOM_PANEL_INFO_WIFI_LEVEL 3 // the level of wifi, int percentage
- #define ECOM_PANEL_INFO_X_WINDOW 4 //the index for x_ray window avaiable time LPARAM: int
- //
- #define ECOM_PANEL_INFO_BATTERY_CHARGING 5//3
- #define BATTERY_CHARGING 1
- #define BATTERY_NOT_CHARGING 0
- //code end 20100330
- #define ECOM_PANEL_WARN_EVENT 6 //point to CString
- #define ECOM_PANEL_ERROR_EVENT 7 //point to CString
- #define ECOM_PANEL_FLAT_IMAGE_CHECK 8 //point to CString
- #define ECOM_PANEL_DARK_IMAGE_CHECK 9
- #define ECOM_PANEL_PREVIEW_DATA_LEVEL 10
- #define ECOM_PANEL_INFO_BATTERY_CHARGE_B 11 //双板中第二块电池的电量消息号
- #define ECOM_PANEL_INFO_WIFI_LEVEL_B 12
- #define ECOM_PANEL_INFO_LEVEL_B 13 //信息,平板温度等
- #define ECOM_PANEL_UNIQUE_INFO_LEVEL 14 //song20130913 平板特有的信息,目前应用于varian
- #define IMAGE_EXI 15
- #define IMAGE_STANDARD_EXI 16
- #define ECOM_PNL_NOTIFY 17
- #define PANEL_ROTATE_X 18
- #define PANEL_ROTATE_Y 19
- #define PANEL_ROTATE_Z 20
- #define PANEL_STOREDIMAGE_LIST 21
- #define ECOM_PANEL_AEC_DATA_LEVEL 22
- #define IMAGE_FACTOR_EXI_UGY 23 //Code 20140808
- #define ECOM_PANEL_CALIB_INFO 24 //校正时,将当前探测器类型及当前校正点,以该消息发给UI
- #define ECOM_PANEL_INFO_TEMPERATURE 25 //第一块探测器温度
- #define ECOM_PANEL_INFO_TEMPERATURE_B 26 //第二块探测器温度
- #define ECOM_PANEL_INFO_ORIENTATION_TABLE 27 //第一块探测器方向
- #define ECOM_PANEL_INFO_ORIENTATION_WALL 28 //第二块探测器方向
- #define ECOM_PANEL_SERIAL_NUMBER 29 //2016-1-108 RPW for flarida
- #define MASK_INFO 30 //MASK INFO
- #define ECOM_PANEL_INFO_A 31 // 探测器共享时所有探测器信息
- #define SHOCK_SENSOR 32 //
- #define SHOCK_SENSOR_CLEAR 33 //
- #define AEC_IMAGE_EXI 34 //
- #define AEC_IMAGE_FACTOR_PERVIEMAN 35 //
- #define ECOM_PANEL_INFO_B 36 // 探测器共享时所有探测器信息
- #define ECOM_PANEL_INFO_C 37 // 探测器共享时所有探测器信息
- #define ECOM_PANEL_IMAGE_DATA 38 //图像数据
- #define ECOM_PANEL_PREVIEW_IMAGE_DATA 39 //图像数据
- #define ECOM_TRANSLATE_IMAGE_END 40
- #define ECOM_PANEL_WINDOW_MODE 41 //设置曝光窗口模式
- #define ECOM_PANEL_PIXEL_SPACE 42 //设置探测器的分辨率
- //addbyys20191224 为DIOS Adapter增加的初始化结果消息
- #define ECOM_PANEL_INFO_INIT 70
- #define ECOM_INIT_OK 1
- #define ECOM_INIT_FAILED 2
- //addend20191224
- //addbyys20201118 为DIOS Adapter增加的offset结果消息
- #define ECOM_PANEL_INFO_OFFSET 71
- #define ECOM_OFFSET_OK 1
- #define ECOM_OFFSET_FAILED 2
- //addend2019201118
- #define ORIENTATION_CLOCKWISE_0 0 //clockwise Retation 0
- #define ORIENTATION_CLOCKWISE_90 1 //clockwise Retation 90
- #define ORIENTATION_CLOCKWISE_180 2 //clockwise Retation 180
- #define ORIENTATION_CLOCKWISE_270 3 //clockwise Retation 270
- #define PNL_TEMPER_STATUS 105//探测器温度状态
- #define TEMPER_TOO_HIGH 1 //禁止曝光
- #define TEMPER_HIGH 2 //不禁止曝光
- #define TEMPER_NORMAL 0
- #define TEMPER_TOO_LOW -1
- #define TEMPER_NA 3
- #define TEMPER_CLEAR 4
- #define PNL_WIFI_STATUS 106//无线信号强度状态
- #define WIFI_TOO_LOW 2 // WIFI太低
- #define WIFI_LOW 1 // WIFI低
- #define WIFI_NORMAL 0 //满格
- #define WIFI_NORMAL_LV1 3 //降一格
- #define WIFI_NORMAL_LV2 4 // 降两格
- #define WIFI_NA 5 // wifi无法获取
- #define WIFI_CLEAR 6 // wifi清空
- #define PNL_BATTERY_STATUS 107//电池电量状态
- #define BATTERY_TOO_LOW 2 // Battery太低
- #define BATTERY_LOW 1 // Battery低
- #define BATTERY_NORMAL 0 //满格
- #define BATTERY_NORMAL_LV1 3 //降一格
- #define BATTERY_NORMAL_LV2 4 // 降两格
- #define BATTERY_CLEAR 5 //连接断开时发这个消息将电量信息清空
- #define BATTERY__NA 6 //电量无法获取
- #define PNL_BATTERY_STATUS_B 108//第二块板的电池电量状态
- #define PNL_TEMPER_STATUS_B 109//第二块板的温度状态
- #define PNL_WIFI_STATUS_B 110//第二块板的WIFI状态
- /*add by song 20140324
- 当探测器的温度只有正常和不正常两种的情况下.
- 收到TEMPER_OK在探测器温度显示图标处显示TEMPER_OK;
- 当收到探测器温度不正常的消息时显示TEMPER_ERROR同时禁止曝光*/
- #define TEMPER_OK 0
- #define TEMPER_ERROR 1 //禁止曝光
- /*add by song 2015-10-9
- //第三块板的状态和值的宏定义*/
- #define ECOM_PANEL_INFO_BATTERY_CHARGE_C 114 //第三块电池的电量消息号
- #define ECOM_PANEL_INFO_WIFI_LEVEL_C 115 //第三块平板的wifi值
- #define ECOM_PANEL_INFO_TEMPERATURE_C 116 //第三块探测器温度
- #define PNL_BATTERY_STATUS_C 117//第三块板的电池电量状态
- #define PNL_TEMPER_STATUS_C 118//第三块板的温度状态
- #define PNL_WIFI_STATUS_C 119//第三块板的WIFI状态
- //平板状态
- #define MSG_PANEL_STATUS WM_ECOM_HW + 3
- //WPARAM:
- #define PNL_COMM_STATUS 0 ///20130322
- #define PNL_READY 1 //panel ready
- #define PNL_WINDOWON 2 //x-ray enable window on
- #define PNL_WINDOWOFF 3 //x-ray enable window off
- #define PNL_READING 4 //正在读图
- #define PNL_READING_PROGRESS 41 //读图状态
- #define PNL_PREPARE 5 //正在准备,如calibration,结束standby等
- #define PNL_STANDBY 6 //standby模式
- #define PNL_ABORT 7 //放弃曝光
- #define PNL_IMGREADY 8 //传输图像结束;
- #define PNL_WAKEBEGIN 9 //正在唤醒
- #define PNL_WAKEEND 10 //已经被唤醒
- #define PNL_USB_READY 11 //for CTrixellFS23 detector
- #define PNL_USB_BUSY 12 //for CTrixellFS23 detector
- //code begin 20101027
- #define PNL_ACTUAL_MODE 13 //indicate panel status 1, Actual connect, 0 demo mode, 2, actual mode, not connected.
- //code end 20101027
- #define PNL_OFSBEGIN 14 //add by wangyb 20130625
- #define PNL_OFSEND 15
- #define PNL_INIT 16
- #define PNL_FAKE_EIPON 17
- //added 2008/08/29
- #define PNL_ACQ_PREVIEW 20 // Get the preview image, apply in portable3543
- //added 2008/09/09
- #define PNL_ACQ_FAILED 21 // Failed to acquire image, apply in portable3543
- #define PNL_RESET 22 //ReSet panel add code 20121213 by zhang
- #define PNL_RECOVER_LASTIMAGE 23
- #define PNL_WAKEEND2 24 //Panel2, 已经被唤醒
- #define PNL_ERROR 25 //add by song20130912 for FDX4343R communication error
- #define PNL_SYNC_MODE 26 //探测器同步模式
- #define PNL_DISCONNECT 27 //断开探测器的结果
- #define PNL_CONNECT 28 //连接探测器的结果
- #define PNL_UNUPLOADED_IMAGE 29 //探测器内部存有未上传的图像
- #define PNL_TRANS_IMG_START 101 //
- #define PNL_TRANS_IMG_END 102 //
- #define PNL_COMP_CAL_BEGIN 103
- #define PNL_COMP_CAL_END 104
- #define PNL_GHOST_CAL_END 105 //校正完成,提示上层保持校正按钮变为使能 song20130704
- #define PNL_GHOST_CAL_START 106
- #define PNL_PANEL_NUMBER 107 //add by song 2016-4-25
- #define PNL_SELECT_END 108 //add by song 2016-4-25
- //探测器同步模式定义
- #define PNL_SYNC_HARDWARE 0
- #define PNL_SYNC_SOFTWARE 1
- #define PNL_SYNC_AUTOTRIGER 2
- #define RESULT_ERROR 0
- #define RESULT_OK 1
- // add by song
- // date:2014-03-24
- // 目的: 作为配合PNL_WAKEBEGIN的LParam使用,
- //根据这个参数的不同界面上弹出对话框显示的信息会有不同*/
- #define WAKE_INITIAL 0 //探测器初始化
- #define WAKE_SWITCH_PNL 1 //探测器切换
- #define WAKE_SWITCH_XWINDOW 2 //曝光窗口切换
- #define WAKE_WAKEUP 3 //探测器唤醒
- #define WAKE_OFFSET 4 //探测器做offset
- #define WAKE_RECONNECT 5 //探测器重连
- #define WAKE_RECOVER_IMAGE 6 //恢复图像
- /*song 2014-03-24 end */
- //平板返回的错误信息
- #define MSG_PANEL_ERROR WM_ECOM_HW + 4
- #define PNL_ERROR_SUCCESS 0
- #define PNL_ERROR_INIT 1 //初始化失败 3
- #define PNL_ERROR_COMMUNICATION 2 //连接中断或通信失败 3
- #define PNL_ERROR_ACQ_NOT_END 3 //曝光失败 2
- #define PNL_ERROR_BATTERY 4 //电量低 1
- #define PNL_ERROR_WIFI 5 //WIFI低 1
- #define PNL_ERROR_TEMPERATURE 6 //温度高 1
- #define PNL_ERROR_SELECT_PANEL 7 //切换平板失败 2
- #define PNL_ERROR_SLEEPMODE 8 //探测器休眠 2
- #define PNL_ERROR_POWEROFF 9 //探测器关闭 3
- #define PNL_ERROR_OTHERS 10 //其他 1
- #define PNL_ERROR_RECOVER_FAILED 11 //恢复图像失败
- #define PNL_ERROR_RECOVER_SUCCESS 12 //恢复图像成功
- #define PNL_ERROR_DEFECTMAP_LOST 13
- #define PNL_ERROR_GAINMAP_LOST 14
- #define PNL_ERROR_DUAL_ACQ_ZERO_IMAGE 15
- #define PNL_ERROR_DUAL_ACQ_ONE_IMAGE 16
- #define PNL_ERROR_IMAGE_DOSE_LOW 17
- #define FPD_RESET_NOTIFY 18
- //WPAEAM
- //#define WARN_INIT 1
- //#define WARN_IGNORE 2
- //#define WARN_NOTIFY 3
- //LPARAM
- //Point of CString for ErrorMessage
- //高压发生器的返回的参数设置信息
- #define MSG_GEN_PARAM WM_ECOM_HW + 5
- //高压发送器返回的曝光同步信息信息
- #define MSG_GEN_EXPOSURE WM_ECOM_HW + 6
- //WPARAM:
- #define GEN_COMM_STATUS 0//
- #define PREPRESS 1 //手闸按下 pr1
- #define TUBEREADY 2 //球馆准备好 pr2
- //#define XRAYON 5 //出现X射线 xr1
- //#define XRAYOFF 6 //X射线停止 xr0
- #define RELEASE 3 //松开手闸 pr0 //该消息后的参数可取值为0、1;0:表示正常release; 1表示reset发生器Error之后的release。
- //#define EXPOUSUCCESS 7 //曝光成功
- //#define EXPOUFAILURE 8 //曝光失败
- #define STANDBY 9 //松开手闸 pr0
- //code begin 20130911
- #define PREPRESS_NOREADY 10 //一级手闸按下,但没有球馆没有准备好
- #define PRERELEASE 11 //松开一级手闸
- #define GEN_SHUTDOWN 12 //发生器通知退出软件并关闭计算机系统 //code 20140328
- #define GEN_PCSLEEP 13
- #define GEN_PCWAKEUP 15
- #define GEN_PAKING 14
- //code end 20130911
- //code begin 20170502
- #define GEN_PERSHUTDOWN 17 //预关机消息 from device(目前增加给OTC模块) 20170502
- #define GEN_CANCLESHUTDOWN 18 //取消关机操作(目前增加给OTC模块) 20170502 避免与HANDSWITCHRELEASE重复
- //end 20170502
- //高压发生器返回的错误信息
- #define MSG_GEN_ERR WM_ECOM_HW + 7
- #define MSG_GEN_WARN WM_ECOM_HW + 8
- #define GEN_WARNING 0 //For sedecal mobileL:AOF1 command,display warning information 20140326
- #define GEN_OFFWARNING 1 //For sedecal mobileL:OFF command,display waring information 2014.5.7
- #define MSG_GEN_ERRWARN WM_ECOM_HW + 27
- #define MSG_GEN_INFO WM_ECOM_HW + 30 // code 20131029
- #define MSG_GEN_INFO_DISEXP WM_ECOM_HW + 31 // generator exp condition error;Forbid expusore
- //code begin 20170906
- #define MSG_GEN_INFO_CIRCLE WM_ECOM_HW + 32 // 消息循环
- #define MSG_GEN_ERROR_CIRCLE WM_ECOM_HW + 33 // 错误循环
- #define MSG_GEN_WARN_CIRCLE WM_ECOM_HW + 34 // 警告循环
- #define MSG_GEN_INFO_SINGLE WM_ECOM_HW + 35 // 消息单次
- #define MSG_GEN_ERROR_SINGLE WM_ECOM_HW + 36 // 错误单次
- #define MSG_GEN_WARN_SINGLE WM_ECOM_HW + 37 // 警告单次
- //code end 20170906
- //WPAEAM
- //point of error code
- //LPARAM
- //Point of CString for ErrorMessage
- #define GEN_SEL_ENABLE 1
- #define GEN_SEL_DISABLE 0
- #define GEN_AUTO_FOCUS 2
- #define GEN_LARGE_FOCUS 1
- #define GEN_SMALL_FOCUS 0
- #define GEN_ET_MATIME 0
- #define GEN_ET_MAS 1
- #define GEN_ET_AEC 2 //GEN_ET_AEC3P
- #define GEN_ET_AEC3P 2
- #define GEN_ET_AEC2P 3
- #define GEN_ET_AEC1P 4
- #define GEN_ET_AEC1P_REDUCEMA 5
- #define GEN_PR_INACTIVE 0
- #define GEN_PR_ACTIVE 1
- #define GEN_PR_READY 2
- #define GEN_AECFIELD_000 0
- #define GEN_AECFIELD_001 1
- #define GEN_AECFIELD_010 10
- #define GEN_AECFIELD_100 100
- #define GEN_AECFIELD_011 11
- #define GEN_AECFIELD_101 101
- #define GEN_AECFIELD_110 110
- #define GEN_AECFIELD_111 111
- #define GEN_AECFILM_000 0
- #define GEN_AECFILM_001 1
- #define GEN_AECFILM_010 10
- #define GEN_AECFILM_100 100
- #define GEN_AECFILM_011 11
- #define GEN_AECFILM_101 101
- #define GEN_AECFILM_110 110
- #define GEN_AECFILM_111 111
- #define GEN_WS_TABLE 0
- #define GEN_WS_WALL 1
- #define GEN_WS_CONVENTIONAL 2
- #define GEN_WS_CONVENTIONAL_FREE 2
- #define GEN_WS_MOBILE 3
- #define GEN_WS_FREE_TABLE 3
- #define GEN_WS_TOMO 4
- #define GEN_WS_CONVENTIONAL_TABLE 5
- #define GEN_WS_CONVENTIONAL_WALL 6
- #define GEN_WS_FREE_WALL 7
- #define GEN_PARAM_KV 0 //kv
- #define GEN_PARAM_MA 1 //ma
- #define GEN_PARAM_MS 2 //ms
- #define GEN_PARAM_MAS 3 //mas
- #define GEN_PARAM_ER 4 //Warning
- #define GEN_PARAM_EL 5 //error
- #define GEN_PARAM_EC 6 //echo
- #define GEN_PARAM_ST 7 //generator status
- #define GEN_PARAM_RE 8 //reset
- #define GEN_PARAM_WS 9 //workstation
- #define GEN_PARAM_BU 10 //bucky state
- #define GEN_PARAM_FO 11 //Focus
- #define GEN_PARAM_ET 12 //exposure mode: MA/Time mode, Ma/Ms mode,AEC mode
- #define GEN_PARAM_PR 13 //Preparation state
- //#define GEN_PARAM_PR0 14 //End or Abort Exposure
- #define GEN_PARAM_XR 15 //Rad Exposure state
- #define GEN_PARAM_FI 16 //AEC Field
- #define GEN_PARAM_FS 17 //AEC screen
- #define GEN_PARAM_FN 18 //AEC Density
- #define GEN_PARAM_AP 19 //Post AP
- #define GEN_PARAM_AT 20 //Post Time
- #define GEN_PARAM_HE 21 //tube heat
- #define GEN_PARAM_TB 22 //-*-Tube number for calibration
- #define GEN_PARAM_MC 23 //-*-MA of last calibration
- #define GEN_PARAM_FC 24 //-*-Filament Current of last calibration exposure.
- #define GEN_PARAM_CWS 25 //-*-Receptor requested
- #define GEN_PARAM_CBU 26 //-*-Bucky status for receptor: 0 or 1
- #define GEN_PARAM_CTO 27 //-*-Tomo status for receptor
- #define GEN_PARAM_CFL 28 //-*-Fluoro status for receptor
- #define GEN_PARAM_CSR 29 //-*-Serial Exposure status for receptor
- #define GEN_PARAM_CAE 30 //-*-AEC status for receptor
- #define GEN_PARAM_CFI 31 //-*-AEC Fields enabled for receptor
- #define GEN_PARAM_CFS 32 //-*-AEC Film Screens enabled for receptor
- #define GEN_PARAM_KW 33 //Generator KW Rating
- #define GEN_PARAM_GC 34 //-*-Generator Configuration
- #define GEN_PARAM_HH 35 //-*- Housing Tube Heat
- #define GEN_PARAM_GM 36 //-*- programming mode of Generator
- //#define GEN_PARAM_CA 37 //-*-Auto Calibration state
- #define GEN_PARAM_DAP 37 //-*-Current DAP accumulated value
- #define GEN_PARAM_DRF 38 //-*-Current DAP rate value
- #define GEN_PARAM_DZERO 39 //-*-Acknowledge zeroing DAP
- #define GEN_PARAM_DT 40 //-*-Current DAP test passed or not 0 = Failed,1 = Passed,2 = Test In progress
- #define GEN_PARAM_DSTATUS 41 //-*-Current DAP status
- #define GEN_PARAM_DV 42 //-*-Last DAP Test Value
- #define GEN_PARAM_AK 44 //Post Post KV code 20130202
- #define GEN_PARAM_AM 45 //Post Post MA code 20130202
- //code begin 20100421
- #define GEN_PARAM_OTC_STATUS 43 //gen otc status
- //code end 20100421
- //#define GEN_PARAM_FNA 44 //add by lv in 20101011, INC DEC AEC Density delete code 20130202
- #define GEN_PARAM_AC 48 //Current charge of Capacitor int
- //code end 20110408
- #define GEN_PARAM_MAMMO_AE 49 //Chao Sun Mammo
- #define GEN_PARAM_MAMMO_FT 50 //Chao Sun Mammo
- #define GEN_PARAM_MAMMO_FTSZ 51 //Chao Sun Mammo
- #define GEN_PARAM_MAMMO_DENSITY 52
- #define GEN_PARAM_MAMMO_MULTIPLEENERGY 53
- #define GEN_PARAM_MAMMO_EP 54
- #define GEN_PARAM_MAMMO_POSITIONCODE 55
- #define GEN_PARAM_MAMMO_NEEDENABLE 56
- #define GEN_PARAM_MAMMO_NEEDDEPTH 57
- #define GEN_PARAM_MAMMO_PRESSURESTATE 58
- #define GEN_PARAM_MAMMO_WORKSTATE 59
- #define GEN_PARAM_MAMMO_MOVESTATE 60
- #define GEN_PARAM_MAMMO_ERRORCODE 61
- #define GEN_PARAM_MAMMO_MAMMOSTATE 62
- //code begin 20120814
- #define GEN_PARAM_BC 63 //check if battery is charging int 0: no charge, 1: charge
- #define GEN_BATTERY_CHARGEVOLTSTATE_YES 1 //正在充电
- #define GEN_BATTERY_CHARGEVOLTSTATE_NO 0 //未充电
- //code begin 20091223
- //code begin 20120814
- #define GEN_PARAM_KV_V2 64 //KV for version2 send the address of parameter
- #define GEN_PARAM_FN_V2 65 //Density for version2 send the address of parameter
- #define GEN_PARAM_DAP_V2 66 //DAP for version2 send the address of parameter
- #define GEN_PARAM_GENHEAT 67 //Generator heat, no same as HU
- #define GEN_PARAM_AECDOSE 68 //Generator AEC dose, for siemens AEC exposure requirment
- #define GEN_STATUS_NT 70 //-*-Not connect with the generator
- //code end 20091223
- #define GEN_PARAM_POST 71 //-*-Not connect with the generator //NUll
- //code begin 20130708
- //add device status
- #define GEN_BATTERY_STATUS 72//发生器电池电量状态
- #define GEN_BATTERY_CHARGE_NA 7
- #define GEN_BATTERY_OUTOFCHARGE 6
- #define GEN_BATTERY_EMERGENCY 5
- #define GEN_BATTERY_FULL 4
- #define GEN_BATTERY_OVER 3
- #define GEN_BATTERY_LOW 2
- #define GEN_BATTERY_WARNING 1
- #define GEN_BATTERY_NORMAL 0
- #define GEN_TUBEHU_STATUS 73//发生器球管热容量状态
- #define TUBEHU_TOO_HIGH 2
- #define TUBEHU_WARNING 1
- #define TUBEHU_NORMAL 0
- #define TUBEHU_LOW 3
- #define TUBEHU_TOO_LOW 4
- #define TUBEHU_NA 5
- #define VALUE_NA 0xFF //表示无效数值
- #define GEN_GENHU_STATUS 74//发生器热量状态
- #define GENHU_TOO_HIGH 2
- #define GENHU_WARNING 1
- #define GENHU_NORMAL 0
- //code end 20130708
- #define GEN_PARAM_KV_ADJ 75 //kv Adjustment
- #define GEN_PARAM_MA_ADJ 76 //ma Adjustment
- #define GEN_PARAM_MS_ADJ 77 //ms Adjustment
- #define GEN_PARAM_MAS_ADJ 78 //mas Adjustment
- #define GEN_PARAM_FN_ADJ 79 //AEC Density Adjustment
- //code begin 20150824
- #define GEN_PARAM_PATIENT_BODYSIZE 80 //GEN patient body size
- #define PATIENT_BODYSIZE_LARGE 4
- #define PATIENT_BODYSIZE_MEDIUM 3
- #define PATIENT_BODYSIZE_SMALL 2
- #define PATIENT_BODYSIZE_PAEDIATRIC 1
- //code end 20150824
- //code begin 20160411
- #define GEN_PARAM_MAMMO_MAMMOPRESSUREVALUE 81 //压迫器压力
- #define GEN_PARAM_MAMMO_MAMMOPRESSUREDECOMP 82//自动释放的设定
- #define GEN_PARAM_MAMMO_MAMMOAGD 83 //AGD
- #define GEN_PARAM_MAMMO_MAMMOMECHNICALANGLE 84//机架角度
- #define GEN_PARAM_MAMMO_MAMMMECHNICALHEIGH 85//机架高度
- //code end 20160411
- //code 20160416
- #define GEN_PARAM_WS_STATUS 86
- #define SEND_WS_STATUS_FAIL 0
- #define SEND_WS_STATUS_OK 1
- //code end 20160416
- #define GEN_REMOTECONTROL 87
- #define REMOTECONTROL_ENABLE 1
- #define REMOTECONTROL_DISABLE 0
- #define GEN_PARAM_FIVE_SEL 88
- #define VER_NO_FLIP 0
- #define VER_AND_FLIP 1
- #define HOR_NO_FLIP 10
- #define HOR_AND_FLIP 11
- #define GEN_PARAM_MAMMO_PADDLEID 89
- #define NO_PADDLE 0
- #define BIG_PADDLE 1
- #define SMALL_PADDLE 2
- #define SPOT_PADDLE 3
- #define MSG_POST_DOSE_PARAM WM_ECOM_HW + 20 //2144 //will be implemented soon delegate_ExpPostParamHandler
- #define GEN_PD_KVP 0 //kv //LPARAM //int
- #define GEN_PD_MA 1 //ma //Point to float
- #define GEN_PD_MS 2 //ms //Point to float
- #define GEN_PD_MAS 3 //mas //Point to float
- #define GEN_PD_DAP 4 //dap //Point to float
- //#define GEN_PD_ER 4 //Warning
- //#define GEN_PD_EL 5 //error
- //#define GEN_PD_EC 6 //echo
- #define ERROR_CLEAR 0
- #define ERROR_COMMUNICATION 9999
- #define ERROR_COMMUNICATION_TRY 9998
- #define ERROR_INITIALIZATION 9997
- /////////////////////////////////////////////////////////////////////////////////////////////////////////
- //STITCHING:
- //Code begin 20091103
- //stitching ctrl device message
- #define MSG_STITCHING_PARAM WM_ECOM_HW + 28
- //Code end 20091103
- //Code begin 20091103
- #define STITCH_PARAM_SETUP_RECEIVED 0 //Stitching setup received
- //Info1: configured distance from detector to detector holder outer surface
- #define STITCH_PARAM_SETUP_AVAIABLE 1 //Setup ok: resulting stitching positions are reachable.
- #define STITCH_PARAM_SETUP_MOVING 2 //Moving to setup position.
- #define STITCH_PARAM_SETUP_STOP 3 //Moving to setup position stopped
- #define STITCH_PARAM_SETUP_REACHED 4 //Setup position reached
- #define STITCH_PARAM_SETUP_ADJUSTED 5 //Setup position reached and adjusted
- #define STITCH_PARAM_SETUP_REJECTED 6 //Setup rejected: stitching target positions not reachable
- #define STITCH_PARAM_SETUP_ADJUST_REJECTED 7 //Setup adjust rejected: redefined positions not reachable. After setup received, the user can change length, overlap, ….
- #define STITCH_PARAM_SETUP_ADJUST_OK 8 //Setup adjust OK
- #define STITCH_PARAM_START 9 //Start: remote controller or GUI start button pressed
- #define STITCH_PARAM_READYTOMOVE 10 //Ready to move to next position. Info1: current image. Info2: total number of images.
- #define STITCH_PARAM_MOVING_STEP 11 //Moving to next position
- #define STITCH_PARAM_POSITION_REACHED 12 //Position reached. Info1=current image. Info2=total number of images
- #define STITCH_PARAM_EXP_READY 13 //Ready to expose. Info1=current image. Info2=total number of images
- #define STITCH_PARAM_READY_M_EXTRA 14 //Ready to move to extra image
- #define STITCH_PARAM_MOVEINFG_EXTRA 15 //Moving to extra image
- #define STITCH_PARAM_EXTRA_IMAGE_REACHED 16 //Extra image reached
- #define STITCH_PARAM_EXTRA_EXP_READY 17 //Ready to expose extra image
- #define STITCH_PARAM_FINISHED 18 //Stitching finished
- #define STITCH_PARAM_CANCEL 19 //Stitching Cancel
- #define STITCH_PARAM_OFF 20 //Stitching Off
- #define STITCH_PARAM_EXP_DONE 21 //Exposure Done
- #define STITCH_PARAM_ACCEPT 22 //Image accept button pressed
- #define STITCH_PARAM_REJECT 23 //Image reject button pressed
- #define STITCH_PARAM_TOTAL_IMAGE 24 //total image count
- #define STITCH_PARAM_CUR_IMAGE 25 //Current image number
- #define STITCH_PARAM_EXTRA_IMAGE 26 //Extra image number
- #define STITCH_PARAM_EXIT 27 //end stitching
- #define STITCH_PARAM_DIRECTION 28 //stitching direction
- #define STITCH_PARAM_HW_STATUS 29 //hw status, mechanical system status
- #define HW_NOT_READY 0
- #define HW_READY 1
- #define STITCH_PARAM_U_FINISHED 30 //uncompelete finish
- #define MSG_OTC_PARAM WM_ECOM_HW + 29
- #define OTC_PARAM_ACCEPT 100+1 //Image accept button pressed
- #define OTC_PARAM_REJECT 100+2 //Image reject button pressed
- #define OTC_PARAM_SELECTEDVIEW 100+3 //Select view
- #define OTC_PARAM_SID 100+4 //the sid from otc side
- #define OTC_PARAM_ROOM_STATION 100+5 //the workstaton of otc
- //add by wang 2013/02 just for GMM's ADLINK DAQ Card
- #define OTC_PARAM_WALL_GRID120 100+6
- #define OTC_PARAM_WALL_GRID180 100+7
- #define OTC_PARAM_WALL_GRIDABSENT 100+8 //No grid
- #define OTC_PARAM_WALL_GRIDPARALLEL 100+9 // grid error
- #define OTC_PARAM_TABLE_GRID120 100+10
- #define OTC_PARAM_TABLE_GRID180 100+11
- #define OTC_PARAM_TABLE_GRIDABSENT 100+12
- #define OTC_PARAM_TABLE_GRIDPARALLEL 100+13
- #define OTC_PARAM_WALL_FPD4335 100+14
- #define OTC_PARAM_WALL_FPD3543 100+15
- #define OTC_PARAM_WALL_FPDABSENT 100+16
- #define OTC_PARAM_WALL_FPDPARALLEL 100+17
- #define OTC_PARAM_TABLE_FPD4335 100+18
- #define OTC_PARAM_TABLE_FPD3543 100+19
- #define OTC_PARAM_TABLE_FPDABSENT 100+20
- #define OTC_PARAM_TABLE_FPDPARALLEL 100+21
- #define OTC_PARAM_EXPOSTATE 100+22
- #define OTC_PARAM_DAPRESET 100+23
- //code begin 20141024
- #define OTC_PARAM_ANGLE_FLOAT 100+24 //add code 20141021 OTC Angle
- #define OTC_PARAM_SID_FLOAT 100+25 //add code 20141021 OTC SID
- #define OTC_PARAM_WS 100+26 //add code 20141021 OTC Workstation
- #define OTC_PARAM_LONGLOCK_STATE 100+27 //OTC Long LOCK; 1:Active; 0:NoActive
- #define OTC_PARAM_LONGLOCK_START 100+28 //OTC LONG LOCK; 1:ON; 0:OFF
- #define OTC_PARAM_LONGLOCK_STOP 100+29 //OTC LONG LOCK: 1:ON; 0:OFF
- #define OTC_PARAM_TRANSLOCK_STATE 100+30 // OTC Trans Lock; 1:Active; 0:NoActive
- #define OTC_PARAM_TRANSLOCK_START 100+31 // OTC Trans LOCK;1:ON; 0:OFF
- #define OTC_PARAM_TRANSLOCK_STOP 100+32 // OTC Trans LOCK; 1:ON; 0:OFF
- //code end 20141024
- #define OTC_PARAM_MOVEBUTTON_KEY 100+33 // OTC MOVE BUTTON KEY
- #define OTC_PARAM_SID_STRING 100+34 //add code 20141112 OTC SID
- #define OTC_PARAM_AUTOTRACKING 100+35 //add code 20141112 OTC Auto tracking for OTC; 0:No tracking; 1:Tracking;
- #define OTC_PARAM_READYSTATUS 100+36 //add code 20141119 OTC STRING
- #define OTC_PARAM_READYSTATUS_CODE 100 + 37 //OTC的READY状态 lparam:0(READY),1(NOT READY)
- #define OTC_PARAM_FID 100 + 38
- #define REJECT_REASON_TEST 1
- #define REJECT_REASON_NOUSE 2
- #define REJECT_REASON_OTHER 3
- #define MSG_OTC_ERROR WM_ECOM_HW + 21 //机架模块的错误
- #define OTC_ERROR_INIT 1 //初始化失败
- #define OTC_ERROR_CONNECT 2 //连接中断
- #define OTC_ERROR_RECONNECT 3 //连接恢复
- #define OTC_WARN_INFO 998 //警告信息 单条
- #define OTC_ERROR_INFO 999 //错误信息 单条
- #define MSG_OTC_WARN_SINGLE WM_ECOM_HW + 22 //警告信息 单条 SINGLE
- #define MSG_OTC_WARN_CIRCLE WM_ECOM_HW + 23 //警告消息需要循环
- #define MSG_OTC_INFO_SINGLE WM_ECOM_HW + 24 //机架模块的错误 SINGLE
- #define MSG_OTC_INFO_CIRCLE WM_ECOM_HW + 25 //警告消息需要循环
- #define MSG_OTC_ERROR_CIRCLE WM_ECOM_HW + 26 //错误信息 单条
- //对应OTC_SetExpoState接口
- #define OTC_ENABLE_EXPOSE (0) // 可以曝光
- #define OTC_XRAYON (1) // 正在出线
- #define OTC_DISABLE_EXPOSE (2) // 禁止曝光
- #define OTC_XRAYOFF (3) // 曝光停止
- /////////////////////////////////////////////////////////////////////////
- //同步模块:
- #define MSG_SYN_STATUS WM_ECOM_HW + 9
- //WPARAM:
- #define SYN_GEN_PREPARE 0 //PR1
- #define SYN_GEN_READY 1 //PR2
- #define SYN_GEN_OVER 2 //PR0
- #define SYN_GEN_EIPON 3 //exposure in progress
- #define SYN_GEN_EIPOFF 4 //exposure in progress
- //#define SYN_PNL_READY 5 //AC ready
- #define SYN_XRAYWINDOW_ON 6 //
- #define SYN_XRAYWINDOW_OFF 7 //
- #define SYN_PARAM_RE 8 // reset add code 20121213 by zhang
- #define SYN_COMM_STATUS 9
- #define SYN_RLS_DUALENGRY 10 //针对双能模式下,若仅有单次XPB信号时,在第二次RLS时需要通过该消息,增加HW中的双能曝光次数;
- #define SYN_DYN_CMD 20 //for DYN Cmd
- #define SYN_DYN_MSG 21 //for DYN Msg
- #define SYN_DYN_IO 22 //for DYN IO
- #define MSG_SYN_SID WM_ECOM_HW + 10
- //WPARAM SID in cm
- #define MSG_SYN_COLLIMATOR WM_ECOM_HW + 11
- //WPARAM pointer of collimator struct
- #define COLLIMATOR_PARAM 1
- #define ROI_PARAM 2
- #define COLLIMATOR_ZERO 3 //collimator zero whose origin is the left up(0,0) of image;
- #define MASK_PARAM 4 //mask 点集
- #define MSG_SYN_ERROR WM_ECOM_HW + 12
- //WPARAM error code point of code string
- #define SYN_RESET_NOTIFY 0
- #define MSG_SYN_BUCKY WM_ECOM_HW+13
- //WPARAM
- #define SYN_BUCKY_PORTRAIT 0
- #define SYN_BUCKY_LANDSCAPE 1
- #define SYN_BUCKY_UNKNOW 2
- //#define SYN_BUCKY_GRID_PRESENT 3 //grid on
- //#define SYN_BUCKY_GRID_ABSENT 4 //no grid
- #define MSG_SYN_GRID WM_ECOM_HW+16
- #define SYN_GRID_ABSENT 0
- #define SYN_GRID_PRESENT 1
- //#define SYN_GRID_120 3//deleted 20110711
- //#define SYN_GRID_180 2//deleted 20110711
- #define SYN_GRID_120 2
- #define SYN_GRID_180 3
- #define SYN_GRID_UNKNOW 4
- #define SYN_GRID_120_ROTATE 5
- #define SYN_GRID_PARALLEL 6
- #define SYN_GRID_100 7
- #define SYN_GRID_150 8
- #define SYN_GRID_PARTINSERT 9//Grid partially inserted
- #define MSG_SYN_STAND WM_ECOM_HW+17
- #define SYN_BTCONNECT_LOST 100 // 断开连接
- #define SYN_BTCONNECT_CONNECT 101 // 连接
- #define MSG_SYN_FILTER WM_ECOM_HW+18
- #define SYN_FILTER_0 0
- #define SYN_FILTER_1 1
- #define SYN_FILTER_2 2
- #define SYN_FILTER_3 3
- #define SYN_FILTER_4 4
- #define SYN_FILTER_5 5
- #define SYN_FILTER_6 6
- #define MSG_OTC WM_ECOM_HW+19
- //WPARAM:
- #define OTC_NORMAL 0
- #define OTC_MANUAL 1
- #define OTC_AUTO 2
- #define OTC_READY 2
- /////////////////////////////////////////////////////////////////////////////
- //Barcode Reader
- #define MSG_CODE_ENTER WM_ECOM_HW+14
- //WPARAM point of enter string
- #define MSG_CODE_ERROR WM_ECOM_HW+15
- //WPARAM error code point of code string
- //add HW status message
- #define MSG_HW_STATUS WM_ECOM_HW+32 // 1: ready; 0: no ready 20150227
- //WPARAM error code point of code string
- //add Collimator offset value 20160224
- #define MSG_SYN_COLLIMATOR_OFFSET WM_ECOM_HW+33 // Collimator offset value
- /////////////////////////////////////////////////////////////////////////////
- //数据流发送的消息
- #define WM_ECOM_DF WM_USER + 1200 //DATA FLOW
- //工作列表刷新完毕
- #define MSG_DF_WORKLISTREFRESH WM_ECOM_DF + 0
- //数据流执行过程中的错误
- #define MSG_DF_NOTIFY WM_ECOM_DF + 1
- //WPARAM:
- //#define ECOM_WARNING 0 //警告,自动处理
- //#define ECOM_ERROR 1 //错误,需要处理
- #define MSG_FILE_STORED WM_ECOM_DF + 2
- //WPARAM
- //AETITLE
- //LPARAM
- //SOPUID
- #define MSG_FILE_SEND WM_ECOM_DF + 3
- #define MSG_FILM_PRINT WM_ECOM_DF + 4
- //WPARAM
- //AETITLE
- //LPARAM STATIS
- #define ECOM_SUCCESS 1
- #define ECOM_FAILURE 0
- #define MSG_SPACE_OUT WM_ECOM_DF + 5
- //WPARAM
- //TotleSpace
- //LPARAM
- //FreeSpace
- #define MSG_KILL_SERVICE WM_ECOM_DF + 6
- //WPARAM
- //WPARAM:
- //#define ECOM_BEGIN 1
- //#define ECOM_PERFORM 2
- //#define ECOM_END 3
- //给VET用的消息
- #define MSG_VET WM_USER + 1300
- //WPARAM:
- #define VET_WEIGHT_KG 1
- #define VET_DEPTH_CM 2
- #define VET_ANIMAL_CODE 3
- #define VET_BODY_AREA 4
- #define VET_VIEW 5
- #define VET_ANIMAL_SIDE 6
- #define ECOM_SETVALUE 5 //kv, ma, ms,
- //LParam: value
- //#define VET_A
- //added 2008/08/29
- #define MSG_PNL_ACQUISITION (WM_ECOM_HW + 50) // For portable 3543
- //Code begin 20100304
- #define MSG_DUAL_ENERGY_PARAM (WM_ECOM_HW + 51)//
- #define DUALENERGY_ABORT 1//Abort dual energy process
- #define SECOND_EXP_BEGIN 2
- #define DUALENERGY_EXPOSURE_FIRST 3
- #define DUALENERGY_EXPOSURE_SECOND 4
- #define DUALENERGY_POSTPROCESS_START 10
- //code end 2010304
- //code begin 20121219
- /* DROC STATUS INFORMATION ----------------------------------------------------------------------------------*/
- #define HW_NEIN 0
- #define HW_SYSTEM_READY 1
- #define HW_NO_PATIENT 2 //DFR not ready because no patient is selected
- #define HW_NO_IMAGE_MEMORY 3 /*DFR not ready because there is not enough image memory available */
- #define HW_SERVICE_MODE 4 /*DFR not ready because it is in service mode. */
- #define HW_FD_ERROR 5 /*DFR not ready because there is an Detektor error. */
- #define HW_FLC_ON_ERROR 6 /*DFR not ready because there is an error concerning the FL-C */
- #define HW_ACQ_BLOCKED_BY_HIPAA 7 /*DFR is not ready because it is blocked by HIPAA */
- #define HW_NO_OGP_SELECTED 8 /*DFR is not ready because no OGP has been selected. */
- #define HW_FD_RECOVERING 9 /*DFR is not ready because the FD is recovering. */
- #define HW_NO_FLUORO_RAD_MODE_SELECTED 10 /*DFR not ready for fluoro because rad mode is selected. */
- #define HW_FD_TOO_HOT 11 /*DFR is not ready because the Detector is too hot. */
- #define HW_NO_XRAY_BEC_FOLDER_PROTECTED 12 /* DFR not ready because the patient's folder is protected. */
- #define HW_FLC_IN_DOC_MODE 13 /*FL-C is in Documentation mode */
- #define HW_FLC_IN_POSTPROC_MODE 14 /*FL-C is in post processing mode */
- #define HW_FD_OFFSET_IN_PROGRESS 15 /*FD offset is in progress */
- #define HW_FD_WLAN_TOO_LOW 16 /*For NRF: WLAN power is too low for acquisition. */
- #define HW_FLC_EXAM_MANAGER_ACTIVE 17 /*FL-C is in mode Exam Manager */
- #define HW_FD_BATTERY_TOO_LOW 18 /*Battery of mobile detector is too low for Acquisition. */
- #define HW_LOW_BATT_ACQ_POSSIBLE 19 /*Battery of wireless FD is low but acquisition still possible (for future use) */
- #define HW_FD_NOT_IN_OP_STATE 20 /*Detector not in operating state */
- #define HW_FD_CONFG_OUT 21 /*Detector configured out */
- #define HW_FD_IMG_RECOV 22 /*Detector image recovery in progress */
- #define HW_NO_FD_CABLE_FOR_ORTHO 23 /*wi-D BK cable not connected for Ortho acquistion */
- #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 */
- /*distributed was not the one to be used for next shot (because acq will start */
- /* with step 1 always */
- /* */
- /*--------------------------------------------------------------------------------------------------------------------*/
- //code end 20121219
- #define MSG_HW_COMM_ENABLE (WM_ECOM_HW + 60)//
- //code begin 20141107
- #define DONGLE_GEN_COMMUNICATION 0x00
- #define DONGLE_GEN_NO_COMMUNICATION 0x01
- #define DONGLE_REMOVEGRID_NOFUNCTION 0
- #define DONGLE_REMOVEGRID_LOW 1
- #define DONGLE_REMOVEGRID_MEDIUM 2
- #define DONGLE_REMOVEGRID_HIGH 3
- #define DONGLE_UMC_GENPARAM_SYNCHR 0x10
- #define DONGLE_UMC_VIEWPROTOCOL_SYNCHR 0x20
- #define DONGLE_UMC_PREVIEW_SYNCHR 0x40
- //code end 20141107
|