Exemplo n.º 1
0
        private void m_btnNew_Click(object sender, EventArgs e)
        {
            frmOutStorageMakerOrder objMakeOrder = new frmOutStorageMakerOrder();

            objMakeOrder.m_blnIsHospital = m_blnIsHospital;
            objMakeOrder.frmMain         = this;
            objMakeOrder.FormClosing    += new FormClosingEventHandler(frmOutStorage_FormClosing);
            objMakeOrder.Show();
        }
Exemplo n.º 2
0
        private void m_dgvMain_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (this.m_dgvMain.CurrentCell == null || this.m_dgvMain.CurrentCell.RowIndex == -1)
            {
                return;
            }
            frmOutStorageMakerOrder objMakeOrder = new frmOutStorageMakerOrder();

            objMakeOrder.m_blnIsHospital = m_blnIsHospital;
            objMakeOrder.frmMain         = this;

            //objMakeOrder.m_btnNext.Enabled = false;
            objMakeOrder.m_lngMainSEQ = Convert.ToInt64(this.m_dgvMain.Rows[this.m_dgvMain.CurrentCell.RowIndex].Cells["m_txtSeq"].Value);
            ((clsCtl_OutStorage)this.objController).m_lngCheckStatus(1, objMakeOrder.m_lngMainSEQ, out m_intStatus);
            objMakeOrder.IsCanModify     = m_intStatus == 1 ? true : false;
            objMakeOrder.m_blnIsCommit   = (m_intStatus == 2 || m_intStatus == 3);
            objMakeOrder.m_intEditStatus = m_intStatus;
            //objMakeOrder.IsCanModify = this.m_dgvMain.Rows[this.m_dgvMain.CurrentCell.RowIndex].Cells["m_txtStatus"].Value.ToString() == "新制" ? true : false;
            objMakeOrder.m_datMakeDate.Value          = Convert.ToDateTime(m_dgvMain.Rows[this.m_dgvMain.CurrentCell.RowIndex].Cells["m_txtAskDate"].Value);
            objMakeOrder.m_txtMaker.Text              = m_dgvMain.Rows[this.m_dgvMain.CurrentCell.RowIndex].Cells["m_txtMakeName"].Value.ToString();
            objMakeOrder.m_txtMaker.Tag               = m_dgvMain.Rows[this.m_dgvMain.CurrentCell.RowIndex].Cells["m_txtMakeid"].Value.ToString();
            objMakeOrder.m_cboStatus.Text             = m_dgvMain.Rows[this.m_dgvMain.CurrentCell.RowIndex].Cells["TYPENAME_VCHR"].Value.ToString();
            objMakeOrder.m_cboStatus.AccessibleName   = m_dgvMain.Rows[this.m_dgvMain.CurrentCell.RowIndex].Cells["TYPECODE_VCHR"].Value.ToString();
            objMakeOrder.m_txtFromDept.Text           = Convert.ToString(m_dgvMain.Rows[this.m_dgvMain.CurrentCell.RowIndex].Cells["m_txtFromDept"].Value);
            objMakeOrder.m_txtFromDept.AccessibleName = Convert.ToString(m_dgvMain.Rows[this.m_dgvMain.CurrentCell.RowIndex].Cells["m_txtFromDeptid"].Value);
            objMakeOrder.m_strOriginalDept            = objMakeOrder.m_txtFromDept.AccessibleName;
            objMakeOrder.m_cboMedStore.Text           = Convert.ToString(m_dgvMain.Rows[this.m_dgvMain.CurrentCell.RowIndex].Cells["m_txtMedStoreName"].Value);
            objMakeOrder.m_cboMedStore.AccessibleName = Convert.ToString(m_dgvMain.Rows[this.m_dgvMain.CurrentCell.RowIndex].Cells["m_txtMedStoreid"].Value);
            objMakeOrder.m_txtBillId.Text             = Convert.ToString(m_dgvMain.Rows[this.m_dgvMain.CurrentCell.RowIndex].Cells["m_txtBillNo"].Value);
            m_strBillNo = Convert.ToString(m_dgvMain.Rows[this.m_dgvMain.CurrentCell.RowIndex].Cells["m_txtBillNo"].Value);
            objMakeOrder.m_txtComment.Text      = Convert.ToString(m_dgvMain.Rows[this.m_dgvMain.CurrentCell.RowIndex].Cells["m_txtComment"].Value);
            objMakeOrder.m_lblRetailMoney.Text  = Convert.ToString(m_dgvMain.Rows[this.m_dgvMain.CurrentCell.RowIndex].Cells["summoney"].Value);
            objMakeOrder.m_dtOutStorageMedicine = (DataTable)this.m_dgvDetail.DataSource;
            objMakeOrder.FormClosing           += new FormClosingEventHandler(frmOutStorage_FormClosing);
            objMakeOrder.Show();
        }