Ejemplo n.º 1
0
        private void m_dgvAccountData_DoubleClick(object sender, EventArgs e)
        {
            clsMS_AccountPeriodVO objAP = ((clsCtl_AccountPeriod)objController).m_objGetAccount();

            if (objAP == null)
            {
                return;
            }

            frmAccount frmAcc = new frmAccount(m_strStorageID, objAP);

            frmAcc.FormClosed += new FormClosedEventHandler(frmAcc_FormClosed);
            frmAcc.ShowDialog();
        }
Ejemplo n.º 2
0
        private void frmAcc_FormClosed(object sender, FormClosedEventArgs e)
        {
            frmAccount frmAcc = sender as frmAccount;

            if (frmAcc == null)
            {
                return;
            }

            if (!m_bgwGetData.IsBusy)
            {
                m_bgwGetData.RunWorkerAsync();
            }
        }
Ejemplo n.º 3
0
        private void m_cmdAccount_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(m_strStorageID, dtmBeginDate);

            frmAcc.FormClosed += new FormClosedEventHandler(frmAcc_FormClosed);
            frmAcc.ShowDialog();
        }