Пример #1
0
        /// <summary>
        /// 打开销售计划明细表
        /// </summary>
        void OpenDocumnet()
        {
            if (dgvSummariz.CurrentRow == null)
            {
                return;
            }
            string partsName = CommonCtrl.IsNullToString(dgvSummariz.CurrentRow.Cells[colPartsNme.Name].Value);

            if (partsName.Length == 0)
            {
                return;
            }
            string           partsCode = CommonCtrl.IsNullToString(dgvSummariz.CurrentRow.Cells[colPartsCode.Name].Value);
            UCSalePlanDetail detail    = new UCSalePlanDetail();

            detail.partsCode  = partsCode;
            detail.partsName  = partsName;
            detail.partsBland = CommonCtrl.IsNullToString(dgvSummariz.CurrentRow.Cells[colParts_brand.Name].Value);
            detail.drawNum    = CommonCtrl.IsNullToString(dgvSummariz.CurrentRow.Cells[colDrawing_num.Name].Value);
            detail.startDate  = dateInterval1.StartDate;
            detail.endDate    = dateInterval1.EndDate;
            detail.company    = CommonCtrl.IsNullToString(cboCompany.SelectedValue);
            detail.orgId      = CommonCtrl.IsNullToString(cboOrg.SelectedValue);
            base.addUserControl(detail, "销售计划明细表", "UCSalePlanDetail" + partsCode, this.Tag.ToString(), this.Name);
        }
Пример #2
0
 /// <summary>
 /// 打开销售计划明细表
 /// </summary>
 void OpenDocumnet()
 {
     if (dgvSummariz.CurrentRow == null)
     {
         return;
     }
     string partsName = CommonCtrl.IsNullToString(dgvSummariz.CurrentRow.Cells[colPartsNme.Name].Value);
     if (partsName.Length == 0)
     {
         return;
     }
     string partsCode = CommonCtrl.IsNullToString(dgvSummariz.CurrentRow.Cells[colPartsCode.Name].Value);
     UCSalePlanDetail detail = new UCSalePlanDetail();
     detail.partsCode = partsCode;
     detail.partsName = partsName;
     detail.partsBland = CommonCtrl.IsNullToString(dgvSummariz.CurrentRow.Cells[colParts_brand.Name].Value);
     detail.drawNum = CommonCtrl.IsNullToString(dgvSummariz.CurrentRow.Cells[colDrawing_num.Name].Value);
     detail.startDate = dateInterval1.StartDate;
     detail.endDate = dateInterval1.EndDate;
     detail.company = CommonCtrl.IsNullToString(cboCompany.SelectedValue);
     detail.orgId = CommonCtrl.IsNullToString(cboOrg.SelectedValue);
     base.addUserControl(detail, "销售计划明细表", "UCSalePlanDetail" + partsCode, this.Tag.ToString(), this.Name);
 }