本文整理汇总了C#中WSGestion.WSGestion.SEL_GRID_Salida_Inventario方法的典型用法代码示例。如果您正苦于以下问题:C# WSGestion.WSGestion.SEL_GRID_Salida_Inventario方法的具体用法?C# WSGestion.WSGestion.SEL_GRID_Salida_Inventario怎么用?C# WSGestion.WSGestion.SEL_GRID_Salida_Inventario使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类WSGestion.WSGestion
的用法示例。
在下文中一共展示了WSGestion.WSGestion.SEL_GRID_Salida_Inventario方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Carga_Grid
private void Carga_Grid()
{
DateTime Fecha;
DataTable dt = new DataTable();
dt.Columns.Add("Código", Type.GetType("System.String"));
dt.Columns.Add("Id Centro", Type.GetType("System.String"));
dt.Columns.Add("Centro Atención", 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 Bodega", Type.GetType("System.String"));
dt.Columns.Add("Bodega", Type.GetType("System.String"));
dt.Columns.Add("Fecha", Type.GetType("System.String"));
dt.Columns.Add("Aplicada", Type.GetType("System.String"));
int cont = dt.Columns.Count;
WSGestion.WSGestion wsgest = new WSGestion.WSGestion();
wsgest.Url = ConfigurationManager.AppSettings.Get("dirWs");
List<WSGestion.MOD_Salida_Inventario> lista = wsgest.SEL_GRID_Salida_Inventario(centro, buscar).ToList();
for (int i = 0; i < lista.Count; i++)
{
dt.Rows.Add();
dt.Rows[dt.Rows.Count - 1]["Código"] = lista[i].SAL_inv_id_salida_inventario;
dt.Rows[dt.Rows.Count - 1]["Id Centro"] = lista[i].SAL_inv_id_centro_atencion;
dt.Rows[dt.Rows.Count - 1]["Centro Atención"] = lista[i].CEA_nombre;
dt.Rows[dt.Rows.Count - 1]["Id Sucursal"] = lista[i].SAL_inv_id_sucursal;
dt.Rows[dt.Rows.Count - 1]["Sucursal"] = lista[i].SUC_nombre;
dt.Rows[dt.Rows.Count - 1]["Id Bodega"] = lista[i].SAL_inv_id_bodega;
dt.Rows[dt.Rows.Count - 1]["Bodega"] = lista[i].BOD_descripcion;
Fecha = Convert.ToDateTime(lista[i].SAL_inv_fecha);
dt.Rows[dt.Rows.Count - 1]["Fecha"] = Fecha.ToString("dd/MM/yyyy hh:mm tt");
dt.Rows[dt.Rows.Count - 1]["Aplicada"] = lista[i].SAL_inv_aplicada;
}
gridview.DataSource = dt;
gridview.DataBind();
codigo_seleccionado = 0;
}