当前位置: 首页>>代码示例>>C#>>正文


C# WSGestion.WSGestion.UPD_Entrada_Inventario方法代码示例

本文整理汇总了C#中WSGestion.WSGestion.UPD_Entrada_Inventario方法的典型用法代码示例。如果您正苦于以下问题:C# WSGestion.WSGestion.UPD_Entrada_Inventario方法的具体用法?C# WSGestion.WSGestion.UPD_Entrada_Inventario怎么用?C# WSGestion.WSGestion.UPD_Entrada_Inventario使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在WSGestion.WSGestion的用法示例。


在下文中一共展示了WSGestion.WSGestion.UPD_Entrada_Inventario方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: btn_guardar_ServerClick

        protected void btn_guardar_ServerClick(object sender, EventArgs e)
        {
            try
            {
                if (FormAccion == "Agregar")
                {
                    WSGestion.WSGestion wsgest = new WSGestion.WSGestion();
                    wsgest.Url = ConfigurationManager.AppSettings.Get("dirWs");
                    WSGestion.MOD_Entrada_Inventario obj = new WSGestion.MOD_Entrada_Inventario();

                    obj.ENT_inv_id_centro_atencion = Convert.ToInt32(txt_cea_codigo.Value);
                    obj.ENT_inv_id_bodega = Convert.ToInt32(dl_id_bodega.SelectedValue);
                    obj.ENT_inv_id_sucursal = Convert.ToInt32(dl_id_sucursal.SelectedValue);
                    obj.ENT_inv_fecha = Convert.ToDateTime(txt_fecha.Text).ToString("dd/MM/yyyy hh:mm:ss");
                    obj.ENT_inv_aplicada = "N";
                    obj.ENT_inv_origen = "INVENTARIO";

                    wsgest.CRE_Entrada_Inventario(obj);
                    Response.Redirect("frm_Grid_Entrada_Inventario.aspx");
                }

                if (FormAccion == "Editar")
                {
                    WSGestion.WSGestion wsgest = new WSGestion.WSGestion();
                    wsgest.Url = ConfigurationManager.AppSettings.Get("dirWs");
                    WSGestion.MOD_Entrada_Inventario obj = new WSGestion.MOD_Entrada_Inventario();

                    obj.ENT_inv_id_entrada_inventario = Convert.ToInt32(txt_codigo.Value);
                    obj.ENT_inv_id_centro_atencion = Convert.ToInt32(txt_cea_codigo.Value);
                    obj.ENT_inv_id_bodega = Convert.ToInt32(dl_id_bodega.SelectedValue);
                    obj.ENT_inv_id_sucursal = Convert.ToInt32(dl_id_sucursal.SelectedValue);
                    obj.ENT_inv_fecha = Convert.ToDateTime(txt_fecha.Text).ToString("dd/MM/yyyy hh:mm:ss");
                    obj.ENT_inv_aplicada = dl_estado.SelectedValue;

                    wsgest.UPD_Entrada_Inventario(obj);
                    Response.Redirect("frm_Grid_Entrada_Inventario.aspx");
                }
            }

            catch (Exception exc)
            {
                Alert_Mensaje.Attributes["class"] = "alert alert-danger";
                mensaje_alerta = exc.ToString();
                titulo_mensaje_alerta = "Error: ";
                Alert_Mensaje.Visible = true;
            }
        }
开发者ID:juahidma,项目名称:petnet-web,代码行数:47,代码来源:frm_Entrada_Inventario.aspx.cs


注:本文中的WSGestion.WSGestion.UPD_Entrada_Inventario方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。