void OpenDetail() { if (dgvReport.CurrentRow == null) { return; } string custName = CommonCtrl.IsNullToString(dgvReport.CurrentRow.Cells[colCustName.Name].Value); if (custName.Length == 0) { return; } UCReceivableDanDetail detail = new UCReceivableDanDetail(); 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.receivableType = CommonCtrl.IsNullToString(cboPaymentType.SelectedValue); detail.balanceWay = CommonCtrl.IsNullToString(cboBalanceWay.SelectedValue); detail.account = CommonCtrl.IsNullToString(cboPaymentAccount.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, "应收款单明细表", "UCReceivableDanDetail", this.Tag.ToString(), this.Name); }