Ejemplo n.º 1
0
 void OpenDocument()
 {
     if (dgvReport.CurrentRow == null)
     {
         return;
     }
     string account = CommonCtrl.IsNullToString(dgvReport.CurrentRow.Cells[colAccountID.Name].Value);
     if (account.Length == 0)
     {
         return;
     }
     UCBankDetail detail = new UCBankDetail();
     detail.account = account;
     detail.startDate = diDate.StartDate;
     detail.endDate = diDate.EndDate;
     detail.company = CommonCtrl.IsNullToString(cboCompany.SelectedValue);
     base.addUserControl(detail, "现金银行明细表", "UCBankDetail", this.Tag.ToString(), this.Name);
 }
Ejemplo n.º 2
0
        void OpenDocument()
        {
            if (dgvReport.CurrentRow == null)
            {
                return;
            }
            string account = CommonCtrl.IsNullToString(dgvReport.CurrentRow.Cells[colAccountID.Name].Value);

            if (account.Length == 0)
            {
                return;
            }
            UCBankDetail detail = new UCBankDetail();

            detail.account   = account;
            detail.startDate = diDate.StartDate;
            detail.endDate   = diDate.EndDate;
            detail.company   = CommonCtrl.IsNullToString(cboCompany.SelectedValue);
            base.addUserControl(detail, "现金银行明细表", "UCBankDetail", this.Tag.ToString(), this.Name);
        }