void OpenDetail() { if (dgvReport.CurrentRow == null) { return; } string supName = CommonCtrl.IsNullToString(dgvReport.CurrentRow.Cells[colSupName.Name].Value); if (supName.Length == 0) { return; } UCPayableDetail detail = new UCPayableDetail(); detail.supCode = CommonCtrl.IsNullToString(dgvReport.CurrentRow.Cells[colSupCode.Name].Value); detail.supName = supName; detail.supType = CommonCtrl.IsNullToString(cboSup_type.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, "应付账款明细表", "UCPayableDetail", this.Tag.ToString(), this.Name); }