private void btnExport_Click(object sender, System.EventArgs e) { string selectedValue = this.dropExportVersions.SelectedValue; if (!string.IsNullOrEmpty(selectedValue) && selectedValue.Length != 0) { bool flag = false; bool @checked = this.chkExportStock.Checked; bool flag2 = true; string text = "http://" + System.Web.HttpContext.Current.Request.Url.Host + ((System.Web.HttpContext.Current.Request.Url.Port == 80) ? "" : (":" + System.Web.HttpContext.Current.Request.Url.Port)) + Globals.ApplicationPath; string applicationPath = Globals.ApplicationPath; System.Data.DataSet exportProducts = SubSiteProducthelper.GetExportProducts(this.GetQuery(), flag, @checked, (string)this.ViewState["RemoveProductIds"]); ExportAdapter exporter = TransferHelper.GetExporter(selectedValue, new object[] { exportProducts, flag, @checked, flag2, text, applicationPath }); exporter.DoExport(); return; } this.ShowMsg("请选择一个导出版本", false); }
private void BindProducts() { DbQueryResult exportProducts = SubSiteProducthelper.GetExportProducts(this.GetQuery(), (string)this.ViewState["RemoveProductIds"]); this.grdProducts.DataSource = exportProducts.Data; this.grdProducts.DataBind(); this.pager.TotalRecords = exportProducts.TotalRecords; this.lblTotals.Text = exportProducts.TotalRecords.ToString(CultureInfo.InvariantCulture); }
private void BindProducts() { AdvancedProductQuery query = this.GetQuery(); DbQueryResult exportProducts = SubSiteProducthelper.GetExportProducts(query, (string)this.ViewState["RemoveProductIds"]); this.grdProducts.DataSource = exportProducts.Data; this.grdProducts.DataBind(); this.pager.TotalRecords = exportProducts.TotalRecords; this.lblTotals.Text = exportProducts.TotalRecords.ToString(System.Globalization.CultureInfo.InvariantCulture); }
private void btnExport_Click(object sender, EventArgs e) { string selectedValue = this.dropExportVersions.SelectedValue; if (string.IsNullOrEmpty(selectedValue) || (selectedValue.Length == 0)) { this.ShowMsg("请选择一个导出版本", false); } else { bool includeCostPrice = false; bool includeStock = this.chkExportStock.Checked; bool flag3 = true; DataSet set = SubSiteProducthelper.GetExportProducts(this.GetQuery(), includeCostPrice, includeStock, (string)this.ViewState["RemoveProductIds"]); TransferHelper.GetExporter(selectedValue, new object[] { set, includeCostPrice, includeStock, flag3 }).DoExport(); } }
private void btnExport_Click(object sender, EventArgs e) { string selectedValue = this.dropExportVersions.SelectedValue; if (string.IsNullOrEmpty(selectedValue) || (selectedValue.Length == 0)) { this.ShowMsg("请选择一个导出版本", false); } else { bool includeCostPrice = false; bool includeStock = this.chkExportStock.Checked; bool flag3 = true; string str2 = "http://" + HttpContext.Current.Request.Url.Host + ((HttpContext.Current.Request.Url.Port == 80) ? "" : (":" + HttpContext.Current.Request.Url.Port)) + Globals.ApplicationPath; string applicationPath = Globals.ApplicationPath; DataSet set = SubSiteProducthelper.GetExportProducts(this.GetQuery(), includeCostPrice, includeStock, (string)this.ViewState["RemoveProductIds"]); TransferHelper.GetExporter(selectedValue, new object[] { set, includeCostPrice, includeStock, flag3, str2, applicationPath }).DoExport(); } }