Exemple #1
0
 public AddNewTemplate_Item(Emrtemplet_Item emrtemplet_item, IEmrHost app)
 {
     InitializeComponent();
     m_app             = app;
     m_sqlUtil         = new SQLUtil(app);
     m_emrtemplet_item = null == emrtemplet_item ? new Emrtemplet_Item() : emrtemplet_item;
 }
Exemple #2
0
        /// <summary>
        /// 将页面信息绑定到Emrtemplet实体中
        /// edit by Yanqiao.Cai 2012-11-06
        /// 1、add try ... catch
        /// 2、提示信息
        /// </summary>
        private void BindEmrTemplet()
        {
            try
            {
                string errorStr = CheckItem();
                if (!string.IsNullOrEmpty(errorStr))
                {
                    DrectSoft.Common.Ctrs.DLG.MyMessageBox.Show(errorStr);
                    return;
                }

                m_IsOK                    = true;
                m_emrtemplet_item         = new Emrtemplet_Item();
                m_emrtemplet_item.MrCode  = this.txtMR_Code.Text;
                m_emrtemplet_item.MrClass = this.lookUpEditorMr_class.CodeValue;
                m_emrtemplet_item.MrName  = this.txt_mr_name.Text;
                //m_emrtemplet_item.QcCode = this.txt_qc_code.Text;
                m_emrtemplet_item.DeptId = this.lookUpEditorDepartment.CodeValue;

                //m_emrtemplet_item.WriteTimes = this.radgroupWRITE_TIMES.SelectedIndex;


                this.Close();
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
        }