예제 #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;
            }
            UCPurchaseDiscountDetail detail = new UCPurchaseDiscountDetail();

            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     = 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, "采购商品折扣明细表", "UCPurchaseDiscountDetail", 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;
     }
     UCPurchaseDiscountDetail detail = new UCPurchaseDiscountDetail();
     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 = 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, "采购商品折扣明细表", "UCPurchaseDiscountDetail", this.Tag.ToString(), this.Name);
 }