示例#1
0
        /// <summary>
        /// 打开销售订单明细表
        /// </summary>
        void OpenDetail()
        {
            if (dgvReport.CurrentRow == null)
            {
                return;
            }
            string supName = CommonCtrl.IsNullToString(dgvReport.CurrentRow.Cells[colSupName.Name].Value);

            if (supName.Length == 0)
            {
                return;
            }
            string            supCode = CommonCtrl.IsNullToString(dgvReport.CurrentRow.Cells[colSupCode.Name].Value);
            UCSaleOrderDetail detail  = new UCSaleOrderDetail();

            detail.supCode    = supCode;
            detail.supName    = supName;
            detail.startDate  = diCreateTime.StartDate;
            detail.endDate    = diCreateTime.EndDate;
            detail.company    = CommonCtrl.IsNullToString(cboCompany.SelectedValue);
            detail.orgId      = CommonCtrl.IsNullToString(cboOrg.SelectedValue);
            detail.partsBrand = txtPartsBrand.Caption.Trim();
            detail.partsCode  = txtcPartsCode.Text;
            detail.partsName  = txtPartsName.Caption;
            detail.partsType  = txtcPartsType.Text;
            detail.drawNum    = txtDrawingNum.Caption;
            base.addUserControl(detail, "销售订单明细表", "UCSaleOrderDetail" + supCode, this.Tag.ToString(), this.Name);
        }
 /// <summary>
 /// 打开销售订单明细表
 /// </summary>
 void OpenDetail()
 {
     if (dgvReport.CurrentRow == null)
     {
         return;
     }
     string supName = CommonCtrl.IsNullToString(dgvReport.CurrentRow.Cells[colSupName.Name].Value);
     if (supName.Length == 0)
     {
         return;
     }
     string supCode = CommonCtrl.IsNullToString(dgvReport.CurrentRow.Cells[colSupCode.Name].Value);
     UCSaleOrderDetail detail = new UCSaleOrderDetail();
     detail.supCode = supCode;
     detail.supName = supName;
     detail.startDate = diCreateTime.StartDate;
     detail.endDate = diCreateTime.EndDate;
     detail.company = CommonCtrl.IsNullToString(cboCompany.SelectedValue);
     detail.orgId = CommonCtrl.IsNullToString(cboOrg.SelectedValue);
     detail.partsBrand = txtPartsBrand.Caption.Trim();
     detail.partsCode = txtcPartsCode.Text;
     detail.partsName = txtPartsName.Caption;
     detail.partsType = txtcPartsType.Text;
     detail.drawNum = txtDrawingNum.Caption;
     base.addUserControl(detail, "销售订单明细表", "UCSaleOrderDetail" + supCode, this.Tag.ToString(), this.Name);
 }