本文整理汇总了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;
}
}
示例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;
}
}
示例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;
}
}
示例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");
}
示例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");
}
示例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();
}
}
示例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;
}
示例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;
}
示例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");
}
示例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");
}
示例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");
}
}
示例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;
}
}
示例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;
}
}
示例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;
}
}
示例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);
}
}