Exemple #1
0
        /// <summary>
        /// 销售开单明细表
        /// </summary>
        void OpenDocument()
        {
            if (dgvReport.CurrentRow == null)
            {
                return;
            }
            partsName = CommonCtrl.IsNullToString(dgvReport.CurrentRow.Cells[colPartsName.Name].Value);
            if (partsName.Length == 0)
            {
                return;
            }
            UCSaleBillingDetail detail = new UCSaleBillingDetail();

            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, "销售开单明细表", "UCSaleBillingDetail", 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;
     }
     UCSaleBillingDetail detail = new UCSaleBillingDetail();
     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, "销售开单明细表", "UCSaleBillingDetail", this.Tag.ToString(), this.Name);
 }