예제 #1
0
        private void m_btnNew_Click(object sender, EventArgs e)
        {
            frmAskForMedDetail frmDetail = new frmAskForMedDetail();

            //frmDetail.frmMain = this;
            frmDetail.ShowDialog();
        }
예제 #2
0
        private void m_dgvMain_DoubleClick(object sender, EventArgs e)
        {
            if (this.m_dgvMain.CurrentCell == null)
            {
                return;
            }
            m_intSeleRowIndex = this.m_dgvMain.CurrentCell.RowIndex;
            frmAskForMedDetail frmDetail = new frmAskForMedDetail();

            frmDetail.m_btnNext.Enabled = false;
            //  frmDetail.frmMain = this;
            frmDetail.IsCanModify = this.m_dgvMain.Rows[this.m_dgvMain.CurrentCell.RowIndex].Cells["m_txtStatus"].Value.ToString() == "新制" ? true : false;

            frmDetail.m_dtApplyMedicine           = (DataTable)this.m_dgvDetail.DataSource;
            frmDetail.m_lngMainSEQ                = Convert.ToInt64(this.m_dgvMain.Rows[this.m_dgvMain.CurrentCell.RowIndex].Cells["m_txtSeq"].Value);
            frmDetail.m_cboAskDept.Text           = this.m_dgvMain.Rows[this.m_dgvMain.CurrentCell.RowIndex].Cells["m_txtAskDeptName"].Value.ToString();
            frmDetail.m_cboAskDept.AccessibleName = this.m_dgvMain.Rows[this.m_dgvMain.CurrentCell.RowIndex].Cells["m_txtDeptid"].Value.ToString();
            frmDetail.m_txtAskBillNo.Text         = this.m_dgvMain.Rows[this.m_dgvMain.CurrentCell.RowIndex].Cells["m_txtBillNo"].Value.ToString();
            frmDetail.m_datApplyDate.Value        = Convert.ToDateTime(this.m_dgvMain.Rows[this.m_dgvMain.CurrentCell.RowIndex].Cells["m_txtAskDate"].Value.ToString());
            frmDetail.m_txtAsker.Text             = this.m_dgvMain.Rows[this.m_dgvMain.CurrentCell.RowIndex].Cells["m_txtAskName"].Value.ToString();
            frmDetail.m_txtAsker.Tag              = this.m_dgvMain.Rows[this.m_dgvMain.CurrentCell.RowIndex].Cells["m_txtAskerid"].Value.ToString();
            frmDetail.m_txtComment.Text           = this.m_dgvMain.Rows[this.m_dgvMain.CurrentCell.RowIndex].Cells["m_txtComment"].Value.ToString();
            frmDetail.FormClosed += new FormClosedEventHandler(frmDetail_FormClosed);
            frmDetail.ShowDialog();
        }
예제 #3
0
        private void m_btnNew_Click(object sender, EventArgs e)
        {
            frmAskForMedDetail frmDetail = new frmAskForMedDetail();

            frmDetail.m_blnIsHospital = m_blnIsHospital;
            frmDetail.frmMain         = this;
            frmDetail.dtExportDept    = ((clsCtl_AskForMedManage)this.objController).m_dtExportDept;
            ((clsCtl_AskForMedicineDetail)frmDetail.objController).m_objMainVoList = new List <com.digitalwave.iCare.ValueObject.clsDS_Ask_VO>();
            frmDetail.FormClosed += new FormClosedEventHandler(frmDetail_FormClosed);
            frmDetail.Show();
        }
예제 #4
0
        private void m_dgvAskMedMain_DoubleClick(object sender, EventArgs e)
        {
            if (this.IsDisposed || this.m_dgvAskMedMain.CurrentCell == null)
            {
                return;
            }
            int m_intSeleRowIndex        = this.m_dgvAskMedMain.CurrentCell.RowIndex;
            frmAskForMedDetail frmDetail = new frmAskForMedDetail();

            frmDetail.m_blnIsHospital = this.m_blnIsHospital;
            //frmDetail.m_btnNext.Enabled = false;
            frmDetail.frmMain      = this;
            frmDetail.dtExportDept = ((clsCtl_AskForMedManage)this.objController).m_dtExportDept;
            //ToDoList:不应根据界面来判断状态
            if (this.m_dgvAskMedMain.Rows[m_intSeleRowIndex].Cells["m_txtStatus"].Value.ToString() == "提交" ||
                this.m_dgvAskMedMain.Rows[m_intSeleRowIndex].Cells["m_txtStatus"].Value.ToString() == "新制")
            {
                frmDetail.IsCanModify = true;
            }
            else
            {
                frmDetail.IsCanModify = false;
            }
            frmDetail.m_dtApplyMedicine              = (DataTable)this.m_dgvAskMedDetail.DataSource;
            frmDetail.m_lngMainSEQ                   = Convert.ToInt64(this.m_dgvAskMedMain.Rows[m_intSeleRowIndex].Cells["m_txtSeq"].Value);
            frmDetail.m_cboAskDept.Text              = this.m_dgvAskMedMain.Rows[m_intSeleRowIndex].Cells["m_txtAskDeptName"].Value.ToString();
            frmDetail.m_cboAskDept.AccessibleName    = this.m_dgvAskMedMain.Rows[m_intSeleRowIndex].Cells["m_txtDeptid"].Value.ToString();
            frmDetail.m_txtAskBillNo.Text            = this.m_dgvAskMedMain.Rows[m_intSeleRowIndex].Cells["m_txtBillNo"].Value.ToString();
            frmDetail.m_datApplyDate.Value           = Convert.ToDateTime(this.m_dgvAskMedMain.Rows[m_intSeleRowIndex].Cells["m_txtAskDate"].Value.ToString());
            frmDetail.m_txtAsker.Text                = this.m_dgvAskMedMain.Rows[m_intSeleRowIndex].Cells["m_txtAskName"].Value.ToString();
            frmDetail.m_txtAsker.AccessibleName      = this.m_dgvAskMedMain.Rows[m_intSeleRowIndex].Cells["m_txtAskerid"].Value.ToString();
            frmDetail.m_txtComment.Text              = this.m_dgvAskMedMain.Rows[m_intSeleRowIndex].Cells["m_txtComment"].Value.ToString();
            frmDetail.m_cboExportDept.Text           = this.m_dgvAskMedMain.Rows[m_intSeleRowIndex].Cells["m_txtExportDeptName"].Value.ToString();
            frmDetail.m_cboExportDept.AccessibleName = this.m_dgvAskMedMain.Rows[m_intSeleRowIndex].Cells["m_txtExportDept"].Value.ToString();
            frmDetail.FormClosed += new FormClosedEventHandler(frmDetail_FormClosed1);
            frmDetail.Show();
        }
예제 #5
0
        /// <summary>
        /// 显示新增请领单
        /// </summary>
        /// <param name="p_dtbData"></param>
        private void ShowAsk(DataTable p_dtbData)
        {
            frmAskForMedDetail frmDetail = new frmAskForMedDetail();

            frmDetail.m_blnIsHospital = m_objViewer.m_blnIsHospital;
            DataTable dtbExportDept = new DataTable();

            m_objDomain.m_lngGetExportDept(out dtbExportDept);
            DataTable dtbApplyDept = new DataTable();

            m_objDomain.m_lngGetApplyDept(out dtbApplyDept);
            frmDetail.dtExportDept = dtbExportDept;
            frmDetail.dtApplyDept  = dtbApplyDept;
            ((clsCtl_AskForMedicineDetail)frmDetail.objController).m_objMainVoList = new List <com.digitalwave.iCare.ValueObject.clsDS_Ask_VO>();
            frmDetail.m_btnNext.Enabled = false;
            frmDetail.IsCanModify       = true;
            frmDetail.MdiParent         = m_objViewer.MdiParent;
            frmDetail.Show();
            frmDetail.m_strDrugStoreID           = m_objStorageBseArr[m_objViewer.m_cboStorage.SelectedIndex].MEDICINEROOMID;
            frmDetail.m_cboAskDept.SelectedValue = frmDetail.m_strDrugStoreID;
            frmDetail.m_cboAskDept.SelectedText  = m_objStorageBseArr[m_objViewer.m_cboStorage.SelectedIndex].MEDICINEROOMNAME;
            frmDetail.m_cboAskDept.Enabled       = false;
            frmDetail.SetDetail(p_dtbData);
        }