本文整理汇总了C#中WSGestion.WSGestion.SEL_GRID_Bodega_Articulo方法的典型用法代码示例。如果您正苦于以下问题:C# WSGestion.WSGestion.SEL_GRID_Bodega_Articulo方法的具体用法?C# WSGestion.WSGestion.SEL_GRID_Bodega_Articulo怎么用?C# WSGestion.WSGestion.SEL_GRID_Bodega_Articulo使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类WSGestion.WSGestion
的用法示例。
在下文中一共展示了WSGestion.WSGestion.SEL_GRID_Bodega_Articulo方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Carga_Lineas_Editar
private void Carga_Lineas_Editar()
{
DataTable dt = new DataTable();
dt.Columns.Add("Línea", Type.GetType("System.String"));
dt.Columns.Add("Artículo", Type.GetType("System.String"));
dt.Columns.Add("Descripción", Type.GetType("System.String"));
dt.Columns.Add("Cantidad", Type.GetType("System.String"));
WSGestion.WSGestion wsgest = new WSGestion.WSGestion();
wsgest.Url = ConfigurationManager.AppSettings.Get("dirWs");
List<WSGestion.MOD_Bodega_Articulo> lista_editar = wsgest.SEL_GRID_Bodega_Articulo(centro_seleccionado, sucursal_seleccionado, bodega_seleccionado,"NONE").ToList();
for (int i = 0; i < lista_editar.Count; i++)
{
dt.Rows.Add();
dt.Rows[dt.Rows.Count - 1]["Línea"] = (i + 1).ToString();
dt.Rows[dt.Rows.Count - 1]["Artículo"] = lista_editar[i].BXA_id_articulo;
dt.Rows[dt.Rows.Count - 1]["Descripción"] = lista_editar[i].ART_descripcion;
dt.Rows[dt.Rows.Count - 1]["Cantidad"] = lista_editar[i].BXA_cantidad;
}
gridview_lineas.DataSource = dt;
gridview_lineas.DataBind();
Session[wsgest.Get_usu_id_session(Session.SessionID.ToString())+"Lineas"] = dt;
Session[wsgest.Get_usu_id_session(Session.SessionID.ToString())+"ULT_Linea"] = dt.Rows.Count.ToString();
}
示例2: Carga_Grid
private void Carga_Grid()
{
DataTable dt = new DataTable();
dt.Columns.Add("Id Bodega", Type.GetType("System.String"));
dt.Columns.Add("Bodega", Type.GetType("System.String"));
dt.Columns.Add("Id Sucursal", Type.GetType("System.String"));
dt.Columns.Add("Sucursal", Type.GetType("System.String"));
dt.Columns.Add("Id Artículo", Type.GetType("System.String"));
dt.Columns.Add("Descripción", Type.GetType("System.String"));
dt.Columns.Add("Cantidad", Type.GetType("System.String"));
int cont = dt.Columns.Count;
WSGestion.WSGestion wsgest = new WSGestion.WSGestion();
wsgest.Url = ConfigurationManager.AppSettings.Get("dirWs");
List<WSGestion.MOD_Bodega_Articulo> lista = wsgest.SEL_GRID_Bodega_Articulo(centro_seleccionado, sucursal_seleccionado, codigo_seleccionado, buscar).ToList();
for (int i = 0; i < lista.Count; i++)
{
dt.Rows.Add();
dt.Rows[dt.Rows.Count - 1]["Id Bodega"] = lista[i].BXA_id_bodega;
dt.Rows[dt.Rows.Count - 1]["Bodega"] = lista[i].BOD_descripcion;
dt.Rows[dt.Rows.Count - 1]["Id Sucursal"] = lista[i].BXA_id_sucursal;
dt.Rows[dt.Rows.Count - 1]["Sucursal"] = lista[i].SUC_nombre;
dt.Rows[dt.Rows.Count - 1]["Id Artículo"] = lista[i].BXA_id_articulo;
dt.Rows[dt.Rows.Count - 1]["Descripción"] = lista[i].ART_descripcion;
dt.Rows[dt.Rows.Count - 1]["Cantidad"] = lista[i].BXA_cantidad;
}
gridview.DataSource = dt;
gridview.DataBind();
//codigo_seleccionado = 0;
}