/// <summary> /// 采购综合汇总表 /// </summary> void OpenDocument() { if (dgvReport.CurrentRow == null) { return; } string supName = CommonCtrl.IsNullToString(dgvReport.CurrentRow.Cells[colSupName.Name].Value); if (supName.Length == 0) { return; } UCPurchaseBillingZongHe zonghe = new UCPurchaseBillingZongHe(); zonghe.orderType = CommonCtrl.IsNullToString(cboorder_type.SelectedValue); zonghe.receiptType = CommonCtrl.IsNullToString(cboreceipt_type.SelectedValue); zonghe.balanceWay = CommonCtrl.IsNullToString(cbobalance_way.SelectedValue); zonghe.balanceAccount = CommonCtrl.IsNullToString(cbobalance_account.SelectedValue); zonghe.supCode = CommonCtrl.IsNullToString(dgvReport.CurrentRow.Cells[colSupCode.Name].Value); zonghe.supName = supName; zonghe.supType = CommonCtrl.IsNullToString(cbosup_type.SelectedValue); zonghe.whCode = CommonCtrl.IsNullToString(cbowh_code.SelectedValue); zonghe.partsCode = txtcsup_code.Text; zonghe.partsName = txtPartsName.Caption; zonghe.drawingNum = txtdrawing_num.Caption; zonghe.partsBrand = txtparts_brand.Caption; zonghe.stratDate = dicreate_time.StartDate; zonghe.endDate = dicreate_time.EndDate; zonghe.commpany = CommonCtrl.IsNullToString(cboCompany.SelectedValue); zonghe.orgID = CommonCtrl.IsNullToString(cboorg_id.SelectedValue); base.addUserControl(zonghe, "采购综合汇总表", "UCPurchaseBillingZongHe", this.Tag.ToString(), this.Name); }