/// <summary> /// 打开销售毛利明细表 /// </summary> void OpenDetail() { if (dgvReport.CurrentRow == null) { return; } string custName = CommonCtrl.IsNullToString(dgvReport.CurrentRow.Cells[Column2.Name].Value); if (custName.Length == 0) { return; } UCSaleProfitDetail detail = new UCSaleProfitDetail(); detail.custCode = txtcCust_code.Text; detail.custName = txtCust_name.Caption; detail.custType = CommonCtrl.IsNullToString(cboCust_type.SelectedValue); detail.isMember = CommonCtrl.IsNullToString(cboIsMember.SelectedValue); detail.orderType = CommonCtrl.IsNullToString(cboorder_type.SelectedValue); detail.whCode = CommonCtrl.IsNullToString(cbowh_code.SelectedValue); detail.partsType = txtcPartsType.Text; detail.vehicleModels = txtcVehicleModels.Text; detail.custCode = CommonCtrl.IsNullToString(dgvReport.CurrentRow.Cells[Column1.Name].Value); detail.custName = custName; detail.drawingNum = txtdrawing_num.Caption; detail.partsBrand = txtparts_brand.Caption; detail.stratDate = dicreate_time.StartDate; detail.endDate = dicreate_time.EndDate; detail.commpany = CommonCtrl.IsNullToString(cboCompany.SelectedValue); detail.orgID = CommonCtrl.IsNullToString(cboorg_id.SelectedValue); detail.isGift = chbGift.Checked; base.addUserControl(detail, "销售毛利明细表", "UCSaleProfitDetail", this.Tag.ToString(), this.Name); }