示例#1
0
        private void m_btnNew_Click(object sender, EventArgs e)
        {
            frmAdjustPriceDetail frmAdj = new frmAdjustPriceDetail(m_strStorageID, m_dtbMedicineDict);

            frmAdj.FormClosed += new FormClosedEventHandler(frmAdj_FormClosed);
            frmAdj.ShowDialog();
        }
示例#2
0
        private void m_btnModify_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;
                clsDS_Adjustment_VO objMain     = ((clsCtl_Adjustment)objController).m_objMain(drCurrent);

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

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