/*
         * //是编辑页面还是延期页面
         * public MedicalRecordEditAndDelay(IEmrHost app, object obj, int type)
         * {
         *  m_app = app;
         *  InitializeComponent();
         *  CApplyObject tempobj = (CApplyObject)obj;
         *  m_sApplyId = tempobj.m_sApply;
         *  m_sApplyDocId = tempobj.m_sApplyDocId;
         *  this.txtDept.Text = tempobj.m_sDepartmentName;
         *  this.txtName.Text = tempobj.m_sName;
         *  this.txtNumber.Text = tempobj.m_sNoOfInpat;
         *  this.txtTimes.Text = tempobj.m_iApplyTimes.ToString();
         *  this.memoReason.Text = tempobj.m_sApplyContent;
         *  m_dealyMaxTime = ComponentCommand.GetDealyMaxTime();
         *  //最大延迟次数
         *  m_delaymaxTimes = ComponentCommand.GetDealyTimes();
         *  //最大时间
         *  m_readMaxTime = ComponentCommand.GetReadTime();
         *  m_iType = type;
         *  if (type == 1)
         *  {
         *      this.labelMessage.Text = "延期原因";
         *      this.labelSubMessage.Text = "延期时间";
         *      this.Text = "申请延期";
         *      labelDay.Text = "天(*)最大不超过:" + m_dealyMaxTime + "天";
         *  }
         *  else if (type == 0)
         *  {
         *      this.labelMessage.Text = "借阅目的";
         *      this.labelSubMessage.Text = "借阅期限";
         *      this.Text = "借阅编辑";
         *      labelDay.Text = "天(*)最大不超过:" + m_readMaxTime + "天";
         *  }
         *  else if (type == 2)
         *  {
         *      this.btnSave.Enabled = false;
         *      this.btnSubmit.Enabled = false;
         *      this.txtTimes.Enabled = false;
         *      this.memoReason.Enabled = false;
         *      this.labelMessage.Text = "审核信息";
         *      this.labelSubMessage.Text = "审核日期";
         *      labelDay.Visible = false;
         *      this.txtTimes.Text = tempobj.m_sApproveDate;
         *      this.memoReason.Text = tempobj.m_sApproveContent;
         *      this.Text = "查看原因";
         *  }
         * }
         */
        #endregion

        /// <summary>
        /// 是编辑页面还是延期页面
        /// </summary>
        /// <param name="obj"></param>
        /// <param name="type"></param>
        public MedicalRecordApplyBackEditAndDelay(object obj, int type)
        {
            try
            {
                InitializeComponent();
                WriteUpObject tempobj = (WriteUpObject)obj;
                m_sNoOfInpat      = tempobj.m_sNoOfInpat;
                m_sApplyId        = tempobj.m_sApply;
                m_sApplyDocId     = tempobj.m_sApplyDocId;
                this.txtDept.Text = tempobj.m_sDepartmentName;
                this.txtName.Text = tempobj.m_sName;
                //this.txtNumber.Text = tempobj.m_sNoOfInpat;主键
                this.txtNumber.Text = tempobj.m_sPatid;//add by zjy 2013-6-16 修改成住院号
                m_dealyMaxTime      = ComponentCommand.GetDealyMaxTime();
                //最大延迟次数
                m_delaymaxTimes = ComponentCommand.GetDealyTimes();
                //最大时间
                m_readMaxTime = ComponentCommand.GetReadTime();
                m_iType       = type;
                if (type == 1)
                {
                    this.labelMessage.Text    = "延期原因:";
                    this.labelSubMessage.Text = "延期天数:";
                    this.Text     = "申请延期";
                    labelDay.Text = "天(*)最大不超过:" + m_dealyMaxTime + "天;" + "延期次数不超过:" + m_delaymaxTimes + "次";
                    this.txtTimes.Properties.MaxValue = m_dealyMaxTime;
                }
                else if (type == 0)
                {
                    this.labelMessage.Text    = "借阅目的:";
                    this.labelSubMessage.Text = "借阅期限:";
                    this.Text          = "借阅编辑";
                    labelDay.Text      = "天(*)最大不超过:" + m_readMaxTime + "天";
                    this.txtTimes.Text = tempobj.m_iApplyTimes.ToString();
                    this.txtTimes.Properties.MaxValue = m_readMaxTime;
                    this.memoReason.Text = tempobj.m_sApplyContent;
                }
                else if (type == 2)
                {
                    this.btnSave.Enabled        = false;
                    this.btnSubmit.Enabled      = false;
                    this.txtTimes.Visible       = false;
                    this.txtApproveDate.Visible = true;
                    this.txtApproveDate.Enabled = false;
                    this.memoReason.Enabled     = false;
                    this.labelMessage.Text      = "审核信息:";
                    this.labelSubMessage.Text   = "审核日期:";
                    labelDay.Visible            = false;
                    this.txtApproveDate.Text    = tempobj.m_sApproveDate;
                    this.memoReason.Text        = tempobj.m_sApproveContent;
                    this.Text = "查看原因";
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Beispiel #2
0
 private void MedicalRecordCfg_Load(object sender, EventArgs e)
 {
     try
     {
         this.txtDelay.Text      = ComponentCommand.GetDealyMaxTime().ToString();
         this.txtDelayTimes.Text = ComponentCommand.GetDealyTimes().ToString();
         this.txtReadAmount.Text = ComponentCommand.GetApplyLimit().ToString();
         this.txtReadTime.Text   = ComponentCommand.GetReadTime().ToString();
         this.txtRemind.Text     = ComponentCommand.GetRemindTime().ToString();
     }
     catch (Exception)
     {
         throw;
     }
 }
Beispiel #3
0
 public MedicalRecordApply()
 {
     try
     {
         InitializeComponent();
         InitializeParameters();
         InitializeGrid();
         m_readMaxTime   = ComponentCommand.GetReadTime();
         m_readMax       = ComponentCommand.GetApplyLimit();
         labelLimit.Text = "注:最大不超过 " + m_readMaxTime + "天;" + "批次申请选择记录数不超过" + m_readMax + "条";
         this.txtTimes.Properties.MaxValue = m_readMaxTime;
         m_sUser = ComponentCommand.GetCurrentDoctor();
         ComponentCommand.InitializeDepartment(ref this.lookUpEditorDepartment, ref this.lookUpWindowDepartment);
         ComponentCommand.InitializeDiagnosis(ref this.lookUpEditorDiagnosis, ref this.lookUpWindowDiagnosis);
         //ComponentCommand.InitializePurpose(ref this.lookUpEditorPurpose, ref this.lookUpWindowPurpose);
     }
     catch (Exception)
     {
         throw;
     }
 }
Beispiel #4
0
        public MedicalRecordApply(IEmrHost app)
        {
            try
            {
                InitializeComponent();
                InitializeParameters();
                InitializeGrid();
                m_readMaxTime   = ComponentCommand.GetReadTime();
                m_readMax       = ComponentCommand.GetApplyLimit();
                labelLimit.Text = "天(*)最大不超过: " + m_readMaxTime + "天;" + "批次申请选择记录数不超过:" + m_readMax + "条";
                m_sUser         = ComponentCommand.GetCurrentDoctor();
                SqlUtil.App     = app;
                ComponentCommand.InitializeDepartment(ref this.lookUpEditorDepartment, ref this.lookUpWindowDepartment);
                ComponentCommand.InitializeDiagnosis(ref this.lookUpEditorDiagnosis, ref this.lookUpWindowDiagnosis);

                // ComponentCommand.InitializePurpose(ref this.lookUpEditorPurpose, ref this.lookUpWindowPurpose);
            }
            catch (Exception)
            {
                throw;
            }
        }