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


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

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


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

示例1: btn_agregar_Click

 protected void btn_agregar_Click(object sender, EventArgs e)
 {
     WSGestion.WSGestion wsgest = new WSGestion.WSGestion();
     wsgest.Url = ConfigurationManager.AppSettings.Get("dirWs");
     if ((txt_articulo.Value != "") && (txt_articulo.Value != "NONE")&&(txt_cantidad.Value != "0") && (txt_cantidad.Value != ""))
     {
         buscar = txt_articulo.Value;
         Carga_Lineas();
         if (Session[wsgest.Get_usu_id_session(Session.SessionID.ToString())+"Error"] != null)
         {
             Alert_Mensaje.Attributes["class"] = "alert alert-danger";
             mensaje_alerta = Session[wsgest.Get_usu_id_session(Session.SessionID.ToString())+"Error"].ToString();
             titulo_mensaje_alerta = "Error: ";
             Alert_Mensaje.Visible = true;
             Session[wsgest.Get_usu_id_session(Session.SessionID.ToString())+"Error"] = null;
         }
         txt_cantidad.Value = "1";
         txt_articulo.Value = "";
     }
     else
     {
         Alert_Mensaje.Attributes["class"] = "alert alert-warning";
         mensaje_alerta = "No se ha digitado ningún código de artículo o cantidad inválida";
         titulo_mensaje_alerta = "Advertencia: ";
         Alert_Mensaje.Visible = true;
     }
 }
开发者ID:juahidma,项目名称:petnet-web,代码行数:27,代码来源:frm_Ejecutar_Cita.aspx.cs

示例2: btn_detalle_ServerClick

        protected void btn_detalle_ServerClick(object sender, EventArgs e)
        {
            try
            {
                WSGestion.WSGestion wsgest = new WSGestion.WSGestion();
                wsgest.Url = ConfigurationManager.AppSettings.Get("dirWs");
                if (codigo_seleccionado == 0)
                {
                    Alert_Mensaje.Attributes["class"] = "alert alert-warning";
                    mensaje_alerta = "No se ha seleccionado ningún registro";
                    titulo_mensaje_alerta = "Advertencia: ";
                    Alert_Mensaje.Visible = true;
                }
                else
                {
                    Session[wsgest.Get_usu_id_session(Session.SessionID.ToString())+"Codigo_Expediente"] = codigo_seleccionado.ToString();
                    Session[wsgest.Get_usu_id_session(Session.SessionID.ToString())+"Centro_Expediente"] = centro_seleccionado.ToString();
                    Session[wsgest.Get_usu_id_session(Session.SessionID.ToString())+"Centro"] = centro;
                    Session[wsgest.Get_usu_id_session(Session.SessionID.ToString())+"Perfil"] = perfil;
                    codigo_seleccionado = 0;
                    Response.Redirect("frm_Grid_Detalle_Expediente.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,代码行数:32,代码来源:frm_Grid_Expediente.aspx.cs

示例3: btn_editar_ServerClick

        protected void btn_editar_ServerClick(object sender, EventArgs e)
        {
            try
            {
                if (codigo_seleccionado == 0)
                {
                    Alert_Mensaje.Attributes["class"] = "alert alert-warning";
                    mensaje_alerta = "No se ha seleccionado ningún registro";
                    titulo_mensaje_alerta = "Advertencia: ";
                    Alert_Mensaje.Visible = true;
                }
                else
                {
                    WSGestion.WSGestion wsgest = new WSGestion.WSGestion();
                    wsgest.Url = ConfigurationManager.AppSettings.Get("dirWs");
                    Session[wsgest.Get_usu_id_session(Session.SessionID.ToString())+"Codigo_Select"] = codigo_seleccionado.ToString();
                    codigo_seleccionado = 0;
                    Session[wsgest.Get_usu_id_session(Session.SessionID.ToString())+"FormAccion"] = "Editar";
                    Response.Redirect("frm_Medico_Veterinario.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,代码行数:30,代码来源:frm_Grid_Medico_Veterinario.aspx.cs

示例4: btn_agregar_ServerClick

 protected void btn_agregar_ServerClick(object sender, EventArgs e)
 {
     WSGestion.WSGestion wsgest = new WSGestion.WSGestion();
     wsgest.Url = ConfigurationManager.AppSettings.Get("dirWs");
     Session[wsgest.Get_usu_id_session(Session.SessionID.ToString())+"FormAccion"] = "Agregar";
     Session[wsgest.Get_usu_id_session(Session.SessionID.ToString())+"Codigo_Expediente"] = codigo_expediente;
     Session[wsgest.Get_usu_id_session(Session.SessionID.ToString())+"Centro_Expediente"] = centro_expediente;
     Response.Redirect("frm_Detalle_Expediente.aspx");
 }
开发者ID:juahidma,项目名称:petnet-web,代码行数:9,代码来源:frm_Grid_Detalle_Expediente.aspx.cs

示例5: btn_agregar_ServerClick

 protected void btn_agregar_ServerClick(object sender, EventArgs e)
 {
     WSGestion.WSGestion wsgest = new WSGestion.WSGestion();
     wsgest.Url = ConfigurationManager.AppSettings.Get("dirWs");
     Session[wsgest.Get_usu_id_session(Session.SessionID.ToString())+"FormAccion"] = "Agregar";
     Session[wsgest.Get_usu_id_session(Session.SessionID.ToString())+"Codigo_Select_Mascota"] = Codigo_Mascota.ToString();
     Session[wsgest.Get_usu_id_session(Session.SessionID.ToString())+"Codigo_Select"] = 0;
     Session[wsgest.Get_usu_id_session(Session.SessionID.ToString())+"Centro"] = centro;
     Response.Redirect("frm_Certificado_Vacunacion.aspx");
 }
开发者ID:juahidma,项目名称:petnet-web,代码行数:10,代码来源:frm_Grid_Certificado_Vacuna.aspx.cs

示例6: Page_Load

 protected void Page_Load(object sender, EventArgs e)
 {
     WSGestion.WSGestion wsgest = new WSGestion.WSGestion();
     wsgest.Url = ConfigurationManager.AppSettings.Get("dirWs");
     if (Session[wsgest.Get_usu_id_session(Session.SessionID.ToString()) + "Codigo"] == null)
     {
         Response.Redirect("frm_Index.aspx");
     }
     if (Session[wsgest.Get_usu_id_session(Session.SessionID.ToString())+"FormAccion"] != null)
     {
         FormAccion = Session[wsgest.Get_usu_id_session(Session.SessionID.ToString())+"FormAccion"].ToString();
     }
     if (Session[wsgest.Get_usu_id_session(Session.SessionID.ToString())+"Centro"] != null)
     {
         centro = Convert.ToInt32(Session[wsgest.Get_usu_id_session(Session.SessionID.ToString())+"Centro"]);
     }
     if (Session[wsgest.Get_usu_id_session(Session.SessionID.ToString())+"Codigo_Select"] != null)
     {
         codigo_seleccionado = Convert.ToInt32(Session[wsgest.Get_usu_id_session(Session.SessionID.ToString())+"Codigo_Select"]);
     }
     if (Session[wsgest.Get_usu_id_session(Session.SessionID.ToString())+"Codigo_Select_Dueno"] != null)
     {
         codigo_seleccionado_dueno = Convert.ToInt32(Session[wsgest.Get_usu_id_session(Session.SessionID.ToString())+"Codigo_Select_Dueno"]);
     }
     if (!IsPostBack)
     {
         Cargar();
         Carga_Detallle();
     }
 }
开发者ID:juahidma,项目名称:petnet-web,代码行数:30,代码来源:frm_Reporte_Expediente_Imprimir.aspx.cs

示例7: btn_regresar_ServerClick

 protected void btn_regresar_ServerClick(object sender, EventArgs e)
 {
     WSGestion.WSGestion wsgest = new WSGestion.WSGestion();
     wsgest.Url = ConfigurationManager.AppSettings.Get("dirWs");
     Response.Redirect(Accion_Viene);
     Session[wsgest.Get_usu_id_session(Session.SessionID.ToString())+"Viene"] = null;
 }
开发者ID:juahidma,项目名称:petnet-web,代码行数:7,代码来源:rpt_Salida_Inventario.aspx.cs

示例8: lbkUsuarios_Click

 protected void lbkUsuarios_Click(object sender, EventArgs e)
 {
     WSGestion.WSGestion wsgest = new WSGestion.WSGestion();
     wsgest.Url = ConfigurationManager.AppSettings.Get("dirWs");
     Response.Redirect("frm_Home.aspx");
     Session[wsgest.Get_usu_id_session(Session.SessionID.ToString())+"Viene"] = null;
 }
开发者ID:juahidma,项目名称:petnet-web,代码行数:7,代码来源:rpt_Salida_Inventario.aspx.cs

示例9: btn_Salir_Click

 protected void btn_Salir_Click(object sender, EventArgs e)
 {
     WSGestion.WSGestion wsgest = new WSGestion.WSGestion();
     wsgest.Url = ConfigurationManager.AppSettings.Get("dirWs");
     Session[wsgest.Get_usu_id_session(Session.SessionID.ToString()) + "usu_id_usuario"] = null;
     wsgest.UPD_Usuario_Session(codigo_usuario, "N", Session.SessionID.ToString());
     Response.Redirect("frm_Index.aspx");
 }
开发者ID:juahidma,项目名称:petnet-web,代码行数:8,代码来源:Main.Master.cs

示例10: btn_agregar_ServerClick

 protected void btn_agregar_ServerClick(object sender, EventArgs e)
 {
     WSGestion.WSGestion wsgest = new WSGestion.WSGestion();
     wsgest.Url = ConfigurationManager.AppSettings.Get("dirWs");
     Session[wsgest.Get_usu_id_session(Session.SessionID.ToString())+"FormAccion"] = "Agregar";
     codigo_seleccionado = 0;
     Response.Redirect("frm_Bodega.aspx");
 }
开发者ID:juahidma,项目名称:petnet-web,代码行数:8,代码来源:frm_Grid_Bodega.aspx.cs

示例11: btn_articulos_ServerClick

 protected void btn_articulos_ServerClick(object sender, EventArgs e)
 {
     WSGestion.WSGestion wsgest = new WSGestion.WSGestion();
     wsgest.Url = ConfigurationManager.AppSettings.Get("dirWs");
     if (codigo_seleccionado == 0)
     {
         Alert_Mensaje.Attributes["class"] = "alert alert-warning";
         mensaje_alerta = "No se ha seleccionado ningún registro";
         titulo_mensaje_alerta = "Advertencia: ";
         Alert_Mensaje.Visible = true;
     }
     else
     {
         Session[wsgest.Get_usu_id_session(Session.SessionID.ToString())+"Codigo_Select"] = codigo_seleccionado.ToString();
         Session[wsgest.Get_usu_id_session(Session.SessionID.ToString())+"Centro_Seleccionado"] = centro_seleccionado.ToString();
         Session[wsgest.Get_usu_id_session(Session.SessionID.ToString())+"Sucursal_Seleccionado"] = sucursal_seleccionado.ToString();
         Response.Redirect("frm_Bodega_Articulo.aspx");
     }
 }
开发者ID:juahidma,项目名称:petnet-web,代码行数:19,代码来源:frm_Grid_Bodega.aspx.cs

示例12: Page_Load

        protected void Page_Load(object sender, EventArgs e)
        {
            WSGestion.WSGestion wsgest = new WSGestion.WSGestion();
            wsgest.Url = ConfigurationManager.AppSettings.Get("dirWs");
            try
            {
                if (Session[wsgest.Get_usu_id_session(Session.SessionID.ToString()) + "Codigo"] == null)
                {
                    Response.Redirect("frm_Index.aspx");
                }
                if (Session[wsgest.Get_usu_id_session(Session.SessionID.ToString())+"FormAccion"] != null)
                {
                    FormAccion = Session[wsgest.Get_usu_id_session(Session.SessionID.ToString())+"FormAccion"].ToString();
                }
                if (Session[wsgest.Get_usu_id_session(Session.SessionID.ToString())+"Centro"] != null)
                {
                    centro = Convert.ToInt32(Session[wsgest.Get_usu_id_session(Session.SessionID.ToString())+"Centro"]);
                }
                if (Session[wsgest.Get_usu_id_session(Session.SessionID.ToString())+"Codigo_Select"] != null)
                {
                    codigo_seleccionado = Convert.ToInt32(Session[wsgest.Get_usu_id_session(Session.SessionID.ToString())+"Codigo_Select"]);
                }
                if (Session[wsgest.Get_usu_id_session(Session.SessionID.ToString())+"Centro_Seleccionado"] != null)
                {
                    centro_seleccionado = Convert.ToInt32(Session[wsgest.Get_usu_id_session(Session.SessionID.ToString())+"Centro_Seleccionado"]);
                }
                if (!IsPostBack)
                {
                    txt_cea_codigo.Value = centro.ToString();
                    Carga_Centro_Nombre(centro);
                    if (centro != 1)
                    {
                        txt_cea_codigo.Disabled = true;
                        txt_cea_nombre.Disabled = true;
                    }
                    if (FormAccion == "Editar")
                    {
                        if (codigo_seleccionado != 0)
                        {
                            Carga_Editar();
                        }
                    }
                }

            }
            catch (Exception exc)
            {
                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;
            }
        }
开发者ID:juahidma,项目名称:petnet-web,代码行数:54,代码来源:frm_Categoria_Articulo.aspx.cs

示例13: Page_Load

 protected void Page_Load(object sender, EventArgs e)
 {
     WSGestion.WSGestion wsgest = new WSGestion.WSGestion();
     wsgest.Url = ConfigurationManager.AppSettings.Get("dirWs");
     try
     {
         if (Session[wsgest.Get_usu_id_session(Session.SessionID.ToString()) + "Codigo"] == null)
         {
             Response.Redirect("frm_Index.aspx");
         }
         if (Session[wsgest.Get_usu_id_session(Session.SessionID.ToString())+"Codigo_Select"] != null)
         {
             codigo_seleccionado = Convert.ToInt32(Session[wsgest.Get_usu_id_session(Session.SessionID.ToString())+"Codigo_Select"]);
         }
         if (Session[wsgest.Get_usu_id_session(Session.SessionID.ToString())+"Nombre_Articulo"] != null)
         {
             nombre_articulo_seleccionado = Session[wsgest.Get_usu_id_session(Session.SessionID.ToString())+"Nombre_Articulo"].ToString();
         }
         if (Session[wsgest.Get_usu_id_session(Session.SessionID.ToString())+"Centro_Seleccionado"] != null)
         {
             centro_seleccionado = Convert.ToInt32(Session[wsgest.Get_usu_id_session(Session.SessionID.ToString())+"Centro_Seleccionado"]);
         }
         if (!IsPostBack)
         {
             txt_codigo.Value = codigo_seleccionado.ToString();
             txt_descripcion.Value = nombre_articulo_seleccionado;
             Carga_Grid();
         }
     }
     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,代码行数:37,代码来源:frm_Grid_Articulo_Precio_Historico.aspx.cs

示例14: Page_Load

        protected void Page_Load(object sender, EventArgs e)
        {
            WSGestion.WSGestion wsgest = new WSGestion.WSGestion();
            wsgest.Url = ConfigurationManager.AppSettings.Get("dirWs");
            try
            {
                if (Session[wsgest.Get_usu_id_session(Session.SessionID.ToString())+"Codigo"] != null)
                {
                    codigo = Convert.ToInt32(Session[wsgest.Get_usu_id_session(Session.SessionID.ToString())+"Codigo"]);
                    puesto = Convert.ToInt32(Session[wsgest.Get_usu_id_session(Session.SessionID.ToString()) + "Perfil"]);
                    actualizacion_datos();
                }
                else
                {
                    Response.Redirect("frm_Index.aspx");
                }

            }
            catch (Exception exc)
            {

                throw exc;
            }
        }
开发者ID:juahidma,项目名称:petnet-web,代码行数:24,代码来源:frm_Home.aspx.cs

示例15: Page_Load

        protected void Page_Load(object sender, EventArgs e)
        {
            WSGestion.WSGestion wsgest = new WSGestion.WSGestion();
            wsgest.Url = ConfigurationManager.AppSettings.Get("dirWs");
            if (Session[wsgest.Get_usu_id_session(Session.SessionID.ToString()) + "Codigo"] == null)
            {
                Response.Redirect("frm_Index.aspx");
            }
            if (Session[wsgest.Get_usu_id_session(Session.SessionID.ToString())+"Centro_Seleccionado"] != null)
            {
                centro_seleccionado = Convert.ToInt32(Session[wsgest.Get_usu_id_session(Session.SessionID.ToString())+"Centro_Seleccionado"]);
            }
            if (Session[wsgest.Get_usu_id_session(Session.SessionID.ToString())+"Codigo_Select"] != null)
            {
                codigo_seleccionado = Convert.ToInt32(Session[wsgest.Get_usu_id_session(Session.SessionID.ToString())+"Codigo_Select"]);
            }
            if (Session[wsgest.Get_usu_id_session(Session.SessionID.ToString())+"Viene"] != null)
            {
                Accion_Viene = Session[wsgest.Get_usu_id_session(Session.SessionID.ToString())+"Viene"].ToString();
            }

            if (!IsPostBack)
            {
                DataTable dt = wsgest.REP_Salida_Inventario(codigo_seleccionado, centro_seleccionado);
                ReportViewer1.ProcessingMode = ProcessingMode.Local;

                LocalReport localReport = ReportViewer1.LocalReport;
                localReport.ReportPath = "ReportesWebs/rpt_Salida_Inventario.rdlc";

                ReportDataSource ds = new ReportDataSource();
                ds.Name = "DS_RPT_SALIDA_INVENTARIO";// nombre del asistente para informes
                ds.Value = dt;

                ReportViewer1.LocalReport.DataSources.Clear();

                localReport.DataSources.Add(ds);
                ReportViewer1.LocalReport.SubreportProcessing += new SubreportProcessingEventHandler(SetSubDataSource);
            }
        }
开发者ID:juahidma,项目名称:petnet-web,代码行数:39,代码来源:rpt_Salida_Inventario.aspx.cs


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