示例#1
0
        private void frmMakeOutStorageOrder_Load(object sender, EventArgs e)
        {
            try
            {
                m_datMakeOrder.Value = clsPub.CurrentDateTimeNow;
                timer1.Start();

                this.m_dgvMedicineOutInfo.AlternatingRowsDefaultCellStyle.BackColor = clsPublic.CustomBackColor;
                this.m_cboStatus.Enter -= new EventHandler(m_cboStatus_Enter);
                if (m_blnNew)
                {
                    DataTable             m_dtRequestDetail = new DataTable();
                    clsDcl_AskForMedicine objDomain         = new clsDcl_AskForMedicine();
                    objDomain.m_lngCheckIsHospital(m_txtApplyDept.AccessibleName, out m_blnIsHospital);
                    objDomain.m_lngGetAskDetailInfoByid(m_blnIsHospital, Convert.ToInt64(m_lngAskSeq), out m_dtRequestDetail);
                    ((clsCtl_MakeOutStorageOrder)objController).m_mthLoadMedicineData(m_lngAskSeq, m_dtRequestDetail, ref m_dtbOutMedicine);
                    this.m_mthShowRetailMoney();
                    this.m_cboStatus.Enter += new EventHandler(m_cboStatus_Enter);
                }
                if (m_dtbOutMedicine != null && m_dtbOutMedicine.Rows.Count == 0)
                {
                    ((clsCtl_MakeOutStorageOrder)objController).m_mthInsertNewMedicineData();
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }