private void m_dgvAccountPeriod_DoubleClick(object sender, EventArgs e) { clsDS_AccountPeriodVO objAP = ((clsCtl_AccountPeriod)objController).m_objGetAccount(); if (objAP == null) { return; } frmAccount frmAcc = new frmAccount(this.m_strDrugStoreid, objAP); frmAcc.FormClosed += new FormClosedEventHandler(frmAcc_FormClosed); frmAcc.ShowDialog(); }
private void m_btnTransfer_Click(object sender, EventArgs e) { DateTime dtmBeginDate = ((clsCtl_AccountPeriod)objController).m_dtmGetBeginDate(); if (dtmBeginDate == DateTime.MinValue) { MessageBox.Show("获取帐务期结转开始时间失败", "药房帐务期结转", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } frmAccount frmAcc = new frmAccount(this.m_strDrugStoreid, dtmBeginDate); frmAcc.FormClosed += new FormClosedEventHandler(frmAcc_FormClosed); frmAcc.ShowDialog(); }