public void ReportView() { try { var dsDiseño = new dsWarehouse(); var pResult = ""; var dsEjecucion = objWarehouse.GetWarehouseActive(Session["connectionString"].ToString(), ref pResult); if (pResult == "") { for (var i = 0; i < dsEjecucion.Tables[0].Rows.Count; i++) { var row = dsDiseño.SWIFT_WAREHOUSES.NewRow(); row[0] = dsEjecucion.Tables[0].Rows[i]["CODE_WAREHOUSE"]; row[1] = dsEjecucion.Tables[0].Rows[i]["DESCRIPTION_WAREHOUSE"]; row[2] = dsEjecucion.Tables[0].Rows[i]["WEATHER_WAREHOUSE"]; row[4] = dsEjecucion.Tables[0].Rows[i]["NAME_DISTRIBUTION_CENTER"]; row[5] = dsEjecucion.Tables[0].Rows[i]["CODE_WAREHOUSE_3PL"]; dsDiseño.SWIFT_WAREHOUSES.Rows.Add(row); } var reporte = new Report.ReportWarehouse { DataSource = dsDiseño }; Session["DSDISEÑO"] = dsDiseño; ASPxDocumentViewer1.DataBind(); ASPxDocumentViewer1.Report = reporte; } else { ScriptManager.RegisterStartupScript(this, GetType(), "ErrorText", "CallError('" + pResult + "');", true); } } catch (Exception ex) { ScriptManager.RegisterStartupScript(this, GetType(), "ErrorText", "CallError('Error: " + ex.Message + "');", true); } }
private void LlenarListaBodegas() { try { var svBodegas = new WSWarehouse.SwiftExpressWSWarehouse(); var pResult = ""; var ds = svBodegas.GetWarehouseActive(Session["connectionString"].ToString(), ref pResult); //ds = objIncome.getSKU(Session["connectionString"].ToString()); if (pResult == "") { Session["UiListaBodega"] = ds; UiListaBodega.DataSource = ds; UiListaBodega.DataBind(); UiListaBodegaErp.DataSource = ds; UiListaBodegaErp.DataBind(); } else { ScriptManager.RegisterStartupScript(this, GetType(), "ErrorText", "CallError('" + pResult + "');", true); } svBodegas.Dispose(); } catch (Exception ex) { ScriptManager.RegisterStartupScript(this, GetType(), "ErrorText", "CallError('Error: " + ex.Message + "');", true); } }