#pragma once #include "Generator.BasicMoulds.hpp" namespace nsGEN = DIOS::Dev::Detail::Generator; // CGenDlg 对话框 //namespace DIOS::Dev::Detail::Generator //{ class CGeneratorDlg : public CDiosBasicDlg { DECLARE_DYNAMIC(CGeneratorDlg) public: CGeneratorDlg(CWnd* pParent = nullptr); // 标准构造函数 ~CGeneratorDlg(); void SetMagMap() override; //设置消息对照表 void InitPageElements(bool act) override; void ShowPageElements(bool init = FALSE, bool exit = FALSE, bool cfg = FALSE, int pointMode = 0, bool general = FALSE); virtual void SetToolTipsMsgMap() override; // 对话框数据 #ifdef AFX_DESIGN_TIME enum { IDD = IDD_DIALOG1 }; #endif protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持 bool AppInitial(bool act); //初始化模块 bool GetInitData(); //获取设备初始值 // 生成的消息映射函数 virtual BOOL OnInitDialog(); //类属性 //Generator //Rad int m_nKV{ 0 }; double m_fMA{ 0 }; double m_fMS{ 0 }; double m_fMAS{ 0 }; double m_fpostMAS{ 0 }; double m_fpostMS{ 0 }; double m_fpostMA{ 0 }; double m_fpostKV{ 0 }; int m_nET{ 0 }; int m_nFO{ 0 }; double m_nFOSize{ 0 }; int m_nAECDensity{ 0 }; int m_nAECField{ 0 }; int m_nAECFilm{ 0 }; int m_nWS{ 0 }; bool m_bExpEnable{ false }; string m_bExpMode{ "Single" }; double m_bRADFrameRate{ 0.0 }; //Fluoro int m_nFluKV{ 0 }; double m_fFluMA{ 0 }; double m_fPPS{ 0 }; int m_nPluseWidth{ 0 }; int m_nFluMode{ 0 }; int m_nABSMode{ 0 }; int m_nABSCurve{ 0 }; int m_nDoseLever{ 0 }; int m_nCurrEXI{ 0 }; int m_nTarEXI{ 0 }; int m_nMag{ 0 }; int m_nResetTime{ 0 }; int m_nFluPre{ 0 }; int m_nFluEXP{ 0 }; int m_nFluIntTimer{ 0 }; int m_nFluAccTimer{ 0 }; int m_nHandSwitch{ 0 }; int m_nFootSwitch{ 0 }; public: //Rad CEdit m_Edit_KV; CEdit m_Edit_MA; CEdit m_Edit_MS; CEdit m_Edit_MAS; CEdit m_Edit_Density; CEdit m_Edit_Field; CEdit m_Edit_Film; CButton m_radio_fo_small; CButton m_radio_fo_large; CEdit m_Edit_FocusSize; CButton m_radio_et_noAEC2P; CButton m_radio_et_noAEC3P; CButton m_radio_et_noAECMASMA; CButton m_radio_et_AEC1P; CButton m_radio_et_AEC2P; CButton m_radio_et_AEC3P; CButton m_radio_et_AECMASMA; CButton m_radio_ws_table; CButton m_radio_ws_wall; CButton m_radio_ws_conventional; CButton m_radio_ws_mobile; CButton m_radio_ws_free; CButton m_radio_ws_tomo; CEdit m_Edit_postmas; CEdit m_Edit_postkv; CEdit m_Edit_postms; CEdit m_Edit_postma; CEdit m_Edit_tubeheat; CEdit m_Edit_gensynstate; CEdit m_Edit_genEXPstate; CEdit m_Edit_genstate; CEdit m_Edit_expmode; CEdit m_Edit_exammode; CEdit m_Edit_tubetargetmaterial; CEdit m_Edit_tubeangle; CEdit m_Edit_RadFrameRate; //Fluoro CEdit m_Edit_FluKV; CEdit m_Edit_FluMA; CEdit m_Edit_FluPPS; CEdit m_Edit_FluPluseWidth; CEdit m_Edit_FluABSCurve; CEdit m_Edit_FluDoseLever; CEdit m_Edit_FluCurrEXI; CEdit m_Edit_FluTarEXI; CEdit m_Edit_FluMag; CEdit m_Edit_FluResetTime; CButton m_radio_FluMode_Not; CButton m_radio_FluMode_CF; CButton m_radio_FluMode_PF; CButton m_radio_FluMode_HCF; CButton m_radio_FluMode_HPF; CButton m_radio_ABS_OFF; CButton m_radio_ABS_OnKV; CButton m_radio_ABS_OnKVMA; CEdit m_Edit_FluHandSwitch; CEdit m_Edit_FluFootSwitch; CEdit m_Edit_FluPre; CEdit m_Edit_FluEXP; CEdit m_Edit_FluIntTimer; CEdit m_Edit_FluAccTimer; //text CEdit m_Edit_DirectlyNotifyKey; CEdit m_Edit_DirectlyNotifyValue; CEdit m_Edit_DirectlyCMD; //统一修改接口 void SetFocus(nsGEN::AttrKey::FOCUS_TYPE type); void SetTechMode(nsGEN::AttrKey::TECHMODE_TYPE type); void SetWorkStation(nsGEN::AttrKey::GENWS_TYPE type); void SetGenSynStatus(nsGEN::AttrKey::GENERATOR_SYNC type); void SetGenStatus(nsGEN::AttrKey::GENERATOR_STATUS type); void SetFluMode(nsGEN::AttrKey::GENERATOR_FLUMode type); void SetABSMode(nsGEN::AttrKey::GENERATOR_ABSStatus type); //按钮 afx_msg void OnBnClickedButton3();//选择配置 afx_msg void OnBnClickedButton1();//初始化 afx_msg void OnBnClickedButton2();//退出 afx_msg void OnBnClickedButton4();//set KV afx_msg void OnBnClickedButton5();//KV- afx_msg void OnBnClickedButton6();//KV+ afx_msg void OnBnClickedButton7();//set MAS afx_msg void OnBnClickedButton8();//MAS- afx_msg void OnBnClickedButton9();//MAS+ afx_msg void OnBnClickedButton10();//set MA afx_msg void OnBnClickedButton11();//MA- afx_msg void OnBnClickedButton12();//MA+ afx_msg void OnBnClickedButton13();//set MS afx_msg void OnBnClickedButton14();//MS- afx_msg void OnBnClickedButton15();//MS+ afx_msg void OnBnClickedButton16();//set Density afx_msg void OnBnClickedButton17();//Density- afx_msg void OnBnClickedButton18();//Density+ afx_msg void OnBnClickedButton19();//set Field afx_msg void OnBnClickedButton20();//set Film afx_msg void OnBnClickedButton21();//Exp enable afx_msg void OnBnClickedButton22();//Reset afx_msg void OnBnClickedButton23();//SetAPR afx_msg void OnBnClickedButton28();//软同步曝光 afx_msg void OnBnClickedButton25();//设置曝光模式 afx_msg void OnBnClickedButton36();//设置点片帧率 afx_msg void OnBnClickedButton37();//SetFluKV afx_msg void OnBnClickedButton38();//FluKV- afx_msg void OnBnClickedButton39();//FluKV+ afx_msg void OnBnClickedButton40();//SetFluMA afx_msg void OnBnClickedButton41();//FluMA- afx_msg void OnBnClickedButton42();//FluMA+ afx_msg void OnBnClickedButton43();//SetPPS afx_msg void OnBnClickedButton44();//PluseWidth afx_msg void OnBnClickedButton45();//ABSCurve afx_msg void OnBnClickedButton46();//DoseLever afx_msg void OnBnClickedButton47();//SetCurrEXI afx_msg void OnBnClickedButton48();//TargetEXI afx_msg void OnBnClickedButton49();//SetMAG afx_msg void OnBnClickedButton50();//ResetTime afx_msg void OnBnClickedButton52();//SetAPF afx_msg void OnBnClickedButton53();//FluPre afx_msg void OnBnClickedButton54();//FluEXP afx_msg void OnBnClickedButton59();//DirectlyNotify afx_msg void OnBnClickedButton60();//DirectlyCMD //单选框 afx_msg void OnBnClickedRadio1();//small Focus afx_msg void OnBnClickedRadio2();//big Focus afx_msg void OnBnClickedRadio3();//NoAEC2P afx_msg void OnBnClickedRadio4();//NoAEC3P afx_msg void OnBnClickedRadio8();//NoAECMAS+MA afx_msg void OnBnClickedRadio5();//AEC1P afx_msg void OnBnClickedRadio6();//AEC2P afx_msg void OnBnClickedRadio7();//AEC3P afx_msg void OnBnClickedRadio9();//AECMAS+MA afx_msg void OnBnClickedRadio10();//Table afx_msg void OnBnClickedRadio11();//Wall afx_msg void OnBnClickedRadio12();//Conventional afx_msg void OnBnClickedRadio13();//Mobile afx_msg void OnBnClickedRadio14();//Free afx_msg void OnBnClickedRadio15();//Tomo afx_msg void OnBnClickedRadio16();//ABSOff afx_msg void OnBnClickedRadio17();//ABSOnKV afx_msg void OnBnClickedRadio18();//ABSOnKVMA afx_msg void OnBnClickedRadio19();//FluModeNot afx_msg void OnBnClickedRadio20();//FluModeCF afx_msg void OnBnClickedRadio21();//FluModePF afx_msg void OnBnClickedRadio22();//FluModeHCF afx_msg void OnBnClickedRadio23();//FluModeHPF //文本框 afx_msg void OnEnKillfocusEdit1();//KV_Value afx_msg void OnEnKillfocusEdit2();//MAS_Value afx_msg void OnEnKillfocusEdit3();//MA_Value afx_msg void OnEnKillfocusEdit4();//MS_Value afx_msg void OnEnKillfocusEdit5();//Density_Value afx_msg void OnEnKillfocusEdit6();//Field_Value afx_msg void OnEnKillfocusEdit7();//Film_Value afx_msg void OnEnKillfocusEdit9();//EXPmode_Value afx_msg void OnEnKillfocusEdit20();//RADFrameRate_Value afx_msg void OnEnKillfocusEdit22();//FluKV_Value afx_msg void OnEnKillfocusEdit23();//FluMA_Value afx_msg void OnEnKillfocusEdit24();//PPS_Value afx_msg void OnEnKillfocusEdit25();//PluseWidth_Value afx_msg void OnEnKillfocusEdit26();//ABSCurve_Value afx_msg void OnEnKillfocusEdit27();//DoseLever_Value afx_msg void OnEnKillfocusEdit28();//CurrEXI_Value afx_msg void OnEnKillfocusEdit29();//TargetEXI_Value afx_msg void OnEnKillfocusEdit30();//MAG_Value afx_msg void OnEnKillfocusEdit31();//ResetTime_Value afx_msg void OnEnKillfocusEdit33();//FluPre_Value afx_msg void OnEnKillfocusEdit34();//FluEXP_Value DECLARE_MESSAGE_MAP() }; //}