本文整理汇总了C#中WSGestion.WSGestion.SEL_GRID_BY_ID_Entrada_Inventario方法的典型用法代码示例。如果您正苦于以下问题:C# WSGestion.WSGestion.SEL_GRID_BY_ID_Entrada_Inventario方法的具体用法?C# WSGestion.WSGestion.SEL_GRID_BY_ID_Entrada_Inventario怎么用?C# WSGestion.WSGestion.SEL_GRID_BY_ID_Entrada_Inventario使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类WSGestion.WSGestion
的用法示例。
在下文中一共展示了WSGestion.WSGestion.SEL_GRID_BY_ID_Entrada_Inventario方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Cargar_Datos
private void Cargar_Datos()
{
try
{
WSGestion.WSGestion wsgest = new WSGestion.WSGestion();
wsgest.Url = ConfigurationManager.AppSettings.Get("dirWs");
WSGestion.MOD_Entrada_Inventario obj = new WSGestion.MOD_Entrada_Inventario();
obj = wsgest.SEL_GRID_BY_ID_Entrada_Inventario(codigo_seleccionado,centro_seleccionado);
lbl_id_entradad.Text = obj.ENT_inv_id_entrada_inventario.ToString();
lbl_codigo_titulo.Text = lbl_id_entradad.Text;
lbl_centro_atencion.Text = obj.ENT_inv_id_centro_atencion.ToString() + " " + obj.CEA_nombre;
lbl_sucursal.Text = obj.ENT_inv_id_sucursal.ToString() + " " + obj.SUC_nombre;
lbl_bodega.Text = obj.ENT_inv_id_bodega.ToString() + " " + obj.BOD_descripcion;
lbl_fecha.Text = obj.ENT_inv_fecha.ToString();
if (obj.ENT_inv_aplicada == "S")
{
btn_agregar_linea.Enabled = false;
btn_eliminar.Disabled = true;
txt_articulo.Disabled = true;
txt_cantidad.Disabled = true;
btn_aplicar.Disabled = true;
}
}
catch (Exception exc)
{
WSGestion.WSGestion wsgest = new WSGestion.WSGestion();
wsgest.Url = ConfigurationManager.AppSettings.Get("dirWs");
Session[wsgest.Get_usu_id_session(Session.SessionID.ToString())+"Codigo_Select"] = "0";
Alert_Mensaje.Attributes["class"] = "alert alert-danger";
mensaje_alerta = exc.ToString();
titulo_mensaje_alerta = "Error: ";
Alert_Mensaje.Visible = true;
}
}
示例2: Carga_Editar
private void Carga_Editar()
{
try
{
WSGestion.WSGestion wsgest = new WSGestion.WSGestion();
wsgest.Url = ConfigurationManager.AppSettings.Get("dirWs");
WSGestion.MOD_Entrada_Inventario obj = new WSGestion.MOD_Entrada_Inventario();
obj = wsgest.SEL_GRID_BY_ID_Entrada_Inventario(codigo_seleccionado, centro_seleccionado);
txt_codigo.Value = obj.ENT_inv_id_entrada_inventario.ToString();
dl_id_sucursal.Text = obj.ENT_inv_id_sucursal.ToString();
dl_id_bodega.Text = obj.ENT_inv_id_bodega.ToString();
DateTime Fecha = Convert.ToDateTime(obj.ENT_inv_fecha);
Fecha_Formato = Fecha.ToString("MM/dd/yyyy hh:mm:ss tt");
txt_fecha.Text = Fecha_Formato;
dl_estado.Text = obj.ENT_inv_aplicada.ToString();
txt_codigo.Disabled = true;
dl_id_bodega.Enabled = false;
dl_id_sucursal.Enabled = false;
}
catch (Exception exc)
{
WSGestion.WSGestion wsgest = new WSGestion.WSGestion();
wsgest.Url = ConfigurationManager.AppSettings.Get("dirWs");
Session[wsgest.Get_usu_id_session(Session.SessionID.ToString())+"Codigo_Select"] = "0";
Alert_Mensaje.Attributes["class"] = "alert alert-danger";
mensaje_alerta = exc.ToString();
titulo_mensaje_alerta = "Error: ";
Alert_Mensaje.Visible = true;
}
}