本文整理汇总了C#中WSGestion.WSGestion.UPD_Detalle_Entrada_Inventario方法的典型用法代码示例。如果您正苦于以下问题:C# WSGestion.WSGestion.UPD_Detalle_Entrada_Inventario方法的具体用法?C# WSGestion.WSGestion.UPD_Detalle_Entrada_Inventario怎么用?C# WSGestion.WSGestion.UPD_Detalle_Entrada_Inventario使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类WSGestion.WSGestion
的用法示例。
在下文中一共展示了WSGestion.WSGestion.UPD_Detalle_Entrada_Inventario方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Editar_Lineas
private void Editar_Lineas()
{
WSGestion.WSGestion wsgest = new WSGestion.WSGestion();
wsgest.Url = ConfigurationManager.AppSettings.Get("dirWs");
DataTable dt = new DataTable();
dt = (DataTable)Session[wsgest.Get_usu_id_session(Session.SessionID.ToString())+"Lineas"];
try
{
WSGestion.MOD_Articulo obj = new WSGestion.MOD_Articulo();
obj = wsgest.SEL_GRID_BY_ID_Articulo_For_Inventario(buscar, centro_seleccionado, sucursal_seleccionado, bodega_seleccionado);
if (obj.CEA_nombre != null)
{
WSGestion.MOD_Detalle_Entrada_Inventario obj2 = new WSGestion.MOD_Detalle_Entrada_Inventario();
obj2.DET_ent_inv_id_linea = Convert.ToInt32 (txt_linea.Value);
obj2.DET_ent_inv_id_entrada_inventario = codigo_seleccionado;
obj2.DET_ent_inv_id_centro_atencion = centro_seleccionado;
obj2.DET_ent_inv_id_articulo = obj.ART_id_articulo;
obj2.DET_ent_inv_cantidad = Convert.ToDouble(txt_cantidad.Value, CultureInfo.CreateSpecificCulture("en-US"));
wsgest.UPD_Detalle_Entrada_Inventario(obj2);
dt.Rows[Convert.ToInt32(txt_linea.Value) - 1]["Artículo"] = obj.ART_id_articulo.ToString();
dt.Rows[Convert.ToInt32(txt_linea.Value) - 1]["Descripción"] = obj.ART_descripcion.ToString();
dt.Rows[Convert.ToInt32(txt_linea.Value) - 1]["Cantidad"] = txt_cantidad.Value.ToString(CultureInfo.CreateSpecificCulture("en-US"));
}
else
{
Session[wsgest.Get_usu_id_session(Session.SessionID.ToString())+"Error"] = "Artículo digitado no se encuentra en la base de datos";
}
gridview_lineas.DataSource = dt;
gridview_lineas.DataBind();
}
catch (Exception exc)
{
Session[wsgest.Get_usu_id_session(Session.SessionID.ToString())+"Error"] = exc.ToString();
}
}