/// <summary> /// 绑定Grid /// </summary> public override void BindGrid() { IOFormRule rule = new IOFormRule(); gridView1.GridControl.DataSource = rule.RShowDts(HTDataConditionStr, ProcessGrid.GetQueryField(gridView1)); gridView1.GridControl.Show(); }
/// <summary> /// 绑定Grid /// </summary> public override void BindGrid() { IOFormRule rule = new IOFormRule(); DataTable dt = rule.RShowDts(HTDataConditionStr, ProcessGrid.GetQueryField(gridView1).Replace("SQty", "0.00 SQty")); SetGridView(dt); gridView1.GridControl.DataSource = dt; gridView1.GridControl.Show(); }
private void BindGrid() { if (HTFormStatus != FormStatus.新增 && HTFormStatus != FormStatus.修改) { IOFormRule rule = new IOFormRule(); gridView2.GridControl.DataSource = rule.RShowDts(GetCondition(), ProcessGrid.GetQueryField(gridView2)); gridView2.GridControl.Show(); } }
/// <summary> /// 绑定Grid /// </summary> public override void BindGrid() { IOFormRule rule = new IOFormRule(); DataTable dt = rule.RShowDts(HTDataConditionStr, ProcessGrid.GetQueryField(gridView1).Replace("DtsVendorName", "'' DtsVendorName")); if (SysConvert.ToBoolean(ProductParamSet.GetIntValueByID(6425)))//查询带出订单客户 { SetGirdDataSource(dt); } gridView1.GridControl.DataSource = dt; gridView1.GridControl.Show(); }
/// <summary> /// 绑定Grid /// </summary> public override void BindGrid() { IOFormRule rule = new IOFormRule(); DataTable dt = rule.RShowDts(HTDataConditionStr, ProcessGrid.GetQueryField(gridView1).Replace("AQty", "ISNULL(Qty,0)+ISNULL(YQQty,0) AQty").Replace("NOKPQty", "0.00 NOKPQty").Replace("NoKPAmount", "0.00 NoKPAmount")); SetGrid(dt); if (chkYKP.Checked) { SetGrid2(dt); } gridView1.GridControl.DataSource = dt; gridView1.GridControl.Show(); }
/// <summary> /// 绑定Grid /// </summary> public override void BindGrid() { IOFormRule rule = new IOFormRule(); DataTable dt = rule.RShowDts(HTDataConditionStr, ProcessGrid.GetQueryField(gridView1).Replace("SelectFlag", "0 SelectFlag").Replace("DZFlagStr", "'' DZFlagStr").Replace("DZRemark", "'' DZRemark").Replace("NoDZQty", "0.00 NoDZQty").Replace("InvoiceFlagStr", "'' InvoiceFlagStr").Replace("InvoiceRemark", "'' InvoiceRemark")); if (m_DZFlag == 1) { SetDZGridView(dt); } if (m_InvoiceFlag == 1) { SetInvoiceGridView(dt); } SetWHQty(dt); gridView1.GridControl.DataSource = dt; gridView1.GridControl.Show(); }
/// <summary> /// 打印共用条码 /// </summary> /// <returns></returns> bool btnPrintAbount(int p_ReportPrintType) { this.BaseFocusLabel.Focus(); DevComponents.DotNetBar.ComboBoxItem ci = this.ToolBarCItemGet(-1, ToolButtonName.drpPrintFile.ToString()); if (ci.SelectedItem == null) { this.ShowMessage("请选择报表模板"); return(false); } int tempReportID = SysConvert.ToInt32(((DevComponents.Editors.ComboItem)ci.SelectedItem).Tag); if (tempReportID == 1) { this.ShowMessage("请选择报表模板"); return(false); } IOFormRule rule = new IOFormRule(); DataTable dt = rule.RShowDts(HTDataConditionStr, "*"); SetGrid(dt); DataTable dtnew = dt.Clone(); if (gridView1.RowFilter != string.Empty) { DataRow[] rows = dt.Select(gridView1.RowFilter); foreach (DataRow row in rows) { dtnew.ImportRow(row); } } else { dtnew = dt; } FastReportX.ReportRunTable(tempReportID, p_ReportPrintType, dtnew); return(true); }
void work_DoWork(object sender, DoWorkEventArgs e) { IOFormRule rule = new IOFormRule(); GridView1Table = rule.RShowDts(HTDataConditionStr, ProcessGrid.GetQueryField(gridView1)); }