Ejemplo n.º 1
0
        void OpenDetail()
        {
            if (dgvReport.CurrentRow == null)
            {
                return;
            }
            string custName = CommonCtrl.IsNullToString(dgvReport.CurrentRow.Cells[colCustName.Name].Value);

            if (custName.Length == 0)
            {
                return;
            }
            UCReceivableDetail detail = new UCReceivableDetail();

            detail.custCode  = CommonCtrl.IsNullToString(dgvReport.CurrentRow.Cells[colCustCode.Name].Value);
            detail.custName  = custName;
            detail.custType  = CommonCtrl.IsNullToString(cboCust_type.SelectedValue);
            detail.is_member = CommonCtrl.IsNullToString(cboIsMember.SelectedValue);
            detail.startDate = dicreate_time.StartDate;
            detail.endDate   = dicreate_time.EndDate;
            detail.company   = CommonCtrl.IsNullToString(cboCompany.SelectedValue);
            detail.orgID     = CommonCtrl.IsNullToString(cboorg_id.SelectedValue);
            base.addUserControl(detail, "应收账款明细表", "UCReceivableDetail", this.Tag.ToString(), this.Name);
        }
Ejemplo n.º 2
0
 void OpenDetail()
 {
     if (dgvReport.CurrentRow == null)
     {
         return;
     }
     string custName = CommonCtrl.IsNullToString(dgvReport.CurrentRow.Cells[colCustName.Name].Value);
     if (custName.Length == 0)
     {
         return;
     }
     UCReceivableDetail detail = new UCReceivableDetail();
     detail.custCode = CommonCtrl.IsNullToString(dgvReport.CurrentRow.Cells[colCustCode.Name].Value);
     detail.custName = custName;
     detail.custType = CommonCtrl.IsNullToString(cboCust_type.SelectedValue);
     detail.is_member = CommonCtrl.IsNullToString(cboIsMember.SelectedValue);
     detail.startDate = dicreate_time.StartDate;
     detail.endDate = dicreate_time.EndDate;
     detail.company = CommonCtrl.IsNullToString(cboCompany.SelectedValue);
     detail.orgID = CommonCtrl.IsNullToString(cboorg_id.SelectedValue);
     base.addUserControl(detail, "应收账款明细表", "UCReceivableDetail", this.Tag.ToString(), this.Name);
 }