コード例 #1
0
        /// <summary>
        /// 打开销售商品折扣明细表
        /// </summary>
        void OpenDetail()
        {
            if (dgvReport.CurrentRow == null)
            {
                return;
            }
            string partsName = CommonCtrl.IsNullToString(dgvReport.CurrentRow.Cells[colPartsName.Name].Value);

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

            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        = txtcCust_code.Text;
            detail.supName        = txtCust_name.Caption;
            detail.supType        = CommonCtrl.IsNullToString(cboCust_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, "销售商品折扣明细表", "UCSaleDiscountDetail", this.Tag.ToString(), this.Name);
        }
コード例 #2
0
 /// <summary>
 /// 打开销售商品折扣明细表
 /// </summary>
 void OpenDetail()
 {
     if (dgvReport.CurrentRow == null)
     {
         return;
     }
     string partsName = CommonCtrl.IsNullToString(dgvReport.CurrentRow.Cells[colPartsName.Name].Value);
     if (partsName.Length == 0)
     {
         return;
     }
     UCSaleDiscountDetail detail = new UCSaleDiscountDetail();
     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 = txtcCust_code.Text;
     detail.supName = txtCust_name.Caption;
     detail.supType = CommonCtrl.IsNullToString(cboCust_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, "销售商品折扣明细表", "UCSaleDiscountDetail", this.Tag.ToString(), this.Name);
 }