예제 #1
0
파일: frmAdjustment.cs 프로젝트: ewin66/HIS
        private void m_cmdNewMake_Click(object sender, EventArgs e)
        {
            frmAdjustmentDetail frmAdj = new frmAdjustmentDetail(m_strStorageID, m_dtbMedicineDict);

            frmAdj.FormClosed += new FormClosedEventHandler(frmAdj_FormClosed);
            frmAdj.Show();
        }
예제 #2
0
파일: frmAdjustment.cs 프로젝트: ewin66/HIS
        private void m_cmdModify_Click(object sender, EventArgs e)
        {
            if (m_dgvMainInfo.CurrentCell != null && m_dgvSubInfo.Rows.Count > 0)
            {
                int                 intRowIndex = m_dgvMainInfo.CurrentCell.RowIndex;
                DataRow             drCurrent   = ((DataRowView)m_dgvMainInfo.Rows[intRowIndex].DataBoundItem).Row;
                clsMS_Adjustment_VO objMain     = ((clsCtl_Adjustment)objController).m_objMain(drCurrent);

                //DataTable dtbSub = m_dgvSubInfo.DataSource as DataTable;
                clsMS_Adjustment_Detail[] objSubArr = ((clsCtl_Adjustment)objController).m_objDetail(objMain.m_lngSERIESID_INT);

                frmAdjustmentDetail frmAdj = new frmAdjustmentDetail(m_strStorageID, m_dtbMedicineDict, objMain, objSubArr);
                //frmAdj.FormClosed += new FormClosedEventHandler(frmAdj_FormClosed);
                frmAdj.Show();//.ShowDialog();
            }
        }