Exemple #1
0
        /// <summary>
        /// 打开销售综合表
        /// </summary>
        void OpenDocument()
        {
            if (dgvReport.CurrentRow == null)
            {
                return;
            }
            string custName = CommonCtrl.IsNullToString(dgvReport.CurrentRow.Cells[colCustName.Name].Value);

            if (custName.Length == 0)
            {
                return;
            }
            UCSaleBillingZongHe zonghe = new UCSaleBillingZongHe();

            zonghe.orderType      = CommonCtrl.IsNullToString(cboorder_type.SelectedValue);
            zonghe.receiptType    = CommonCtrl.IsNullToString(cboreceipt_type.SelectedValue);
            zonghe.balanceWay     = CommonCtrl.IsNullToString(cbobalance_way.SelectedValue);
            zonghe.balanceAccount = CommonCtrl.IsNullToString(cbobalance_account.SelectedValue);
            zonghe.supCode        = CommonCtrl.IsNullToString(dgvReport.CurrentRow.Cells[colCustCode.Name].Value);
            zonghe.supName        = custName;
            zonghe.supType        = CommonCtrl.IsNullToString(cboCust_type.SelectedValue);
            zonghe.whCode         = CommonCtrl.IsNullToString(cbowh_code.SelectedValue);
            zonghe.partsCode      = txtcCust_code.Text;
            zonghe.partsName      = txtPartsName.Caption;
            zonghe.drawingNum     = txtdrawing_num.Caption;
            zonghe.partsBrand     = txtparts_brand.Caption;
            zonghe.stratDate      = dicreate_time.StartDate;
            zonghe.endDate        = dicreate_time.EndDate;
            zonghe.commpany       = CommonCtrl.IsNullToString(cboCompany.SelectedValue);
            zonghe.orgID          = CommonCtrl.IsNullToString(cboorg_id.SelectedValue);
            base.addUserControl(zonghe, "销售综合汇总表", "UCSaleBillingZongHe", this.Tag.ToString(), this.Name);
        }
 /// <summary>
 /// 打开销售综合表
 /// </summary>
 void OpenDocument()
 {
     if (dgvReport.CurrentRow == null)
     {
         return;
     }
     string custName = CommonCtrl.IsNullToString(dgvReport.CurrentRow.Cells[colCustName.Name].Value);
     if (custName.Length == 0)
     {
         return;
     }
     UCSaleBillingZongHe zonghe = new UCSaleBillingZongHe();
     zonghe.orderType = CommonCtrl.IsNullToString(cboorder_type.SelectedValue);
     zonghe.receiptType = CommonCtrl.IsNullToString(cboreceipt_type.SelectedValue);
     zonghe.balanceWay = CommonCtrl.IsNullToString(cbobalance_way.SelectedValue);
     zonghe.balanceAccount = CommonCtrl.IsNullToString(cbobalance_account.SelectedValue);
     zonghe.supCode = CommonCtrl.IsNullToString(dgvReport.CurrentRow.Cells[colCustCode.Name].Value);
     zonghe.supName = custName;
     zonghe.supType = CommonCtrl.IsNullToString(cboCust_type.SelectedValue);
     zonghe.whCode = CommonCtrl.IsNullToString(cbowh_code.SelectedValue);
     zonghe.partsCode = txtcCust_code.Text;
     zonghe.partsName = txtPartsName.Caption;
     zonghe.drawingNum = txtdrawing_num.Caption;
     zonghe.partsBrand = txtparts_brand.Caption;
     zonghe.stratDate = dicreate_time.StartDate;
     zonghe.endDate = dicreate_time.EndDate;
     zonghe.commpany = CommonCtrl.IsNullToString(cboCompany.SelectedValue);
     zonghe.orgID = CommonCtrl.IsNullToString(cboorg_id.SelectedValue);
     base.addUserControl(zonghe, "销售综合汇总表", "UCSaleBillingZongHe", this.Tag.ToString(), this.Name);
 }