Ejemplo n.º 1
0
        /// <summary>
        /// 打开采购开单明细表
        /// </summary>
        void OpenDocument()
        {
            if (dgvReport.CurrentRow == null)
            {
                return;
            }
            string partsName = CommonCtrl.IsNullToString(dgvReport.CurrentRow.Cells[colPartsName.Name].Value);

            if (partsName.Length == 0)
            {
                return;
            }
            UCPurchaseBillingDetail detail = new UCPurchaseBillingDetail();

            detail.orderType      = CommonCtrl.IsNullToString(cboorder_type.SelectedValue);
            detail.receiptType    = CommonCtrl.IsNullToString(cboreceipt_type.SelectedValue);
            detail.balanceWay     = CommonCtrl.IsNullToString(cbobalance_way.SelectedValue);
            detail.balanceAccount = CommonCtrl.IsNullToString(cbobalance_account.SelectedValue);
            detail.supCode        = txtcsup_code.Text;
            detail.supName        = txtsup_name.Caption;
            detail.supType        = CommonCtrl.IsNullToString(cbosup_type.SelectedValue);
            detail.whCode         = CommonCtrl.IsNullToString(cbowh_code.SelectedValue);
            detail.partsCode      = CommonCtrl.IsNullToString(dgvReport.CurrentRow.Cells[colPartsCode.Name].Value);
            detail.partsName      = partsName;
            detail.drawingNum     = CommonCtrl.IsNullToString(dgvReport.CurrentRow.Cells[colDrawingNum.Name].Value);
            detail.partsBrand     = CommonCtrl.IsNullToString(dgvReport.CurrentRow.Cells[colPartsBrand.Name].Value);
            detail.stratDate      = dicreate_time.StartDate;
            detail.endDate        = dicreate_time.EndDate;
            detail.commpany       = CommonCtrl.IsNullToString(cboCompany.SelectedValue);
            detail.orgID          = CommonCtrl.IsNullToString(cboorg_id.SelectedValue);
            base.addUserControl(detail, "采购开单明细表", "UCPurchaseBillingDetail", this.Tag.ToString(), this.Name);
        }
 /// <summary>
 /// 打开采购开单明细表
 /// </summary>
 void OpenDocument()
 {
     if (dgvReport.CurrentRow == null)
     {
         return;
     }
     string partsName = CommonCtrl.IsNullToString(dgvReport.CurrentRow.Cells[colPartsName.Name].Value);
     if (partsName.Length == 0)
     {
         return;
     }
     UCPurchaseBillingDetail detail = new UCPurchaseBillingDetail();
     detail.supCode = txtcsup_code.Text;
     detail.supName = txtsup_name.Caption;
     detail.supType = CommonCtrl.IsNullToString(cbosup_type.SelectedValue);
     detail.whCode = CommonCtrl.IsNullToString(cbowh_code.SelectedValue);
     detail.partsCode = CommonCtrl.IsNullToString(dgvReport.CurrentRow.Cells[colPartsCode.Name].Value);
     detail.partsName = partsName;
     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);
     base.addUserControl(detail, "采购开单明细表", "UCPurchaseBillingDetail", this.Tag.ToString(), this.Name);
 }