avance del nuevo catálogo
This commit is contained in:
53
Compras/CatTipoGasto.aspx.cs
Normal file
53
Compras/CatTipoGasto.aspx.cs
Normal file
@@ -0,0 +1,53 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using Extensiones;
|
||||
using System.Data;
|
||||
|
||||
public partial class Compras_CatTipoGasto : ClsPaginas
|
||||
{
|
||||
private int CveTipoGasto
|
||||
{
|
||||
get
|
||||
{
|
||||
return ViewState["CveTipoGasto"].ToString().ToEntero();
|
||||
}
|
||||
|
||||
set
|
||||
{
|
||||
ViewState["CveTipoGasto"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
CargaDatos();
|
||||
}
|
||||
}
|
||||
|
||||
private void CargaDatos()
|
||||
{
|
||||
ClsAC ObjAC = new ClsAC();
|
||||
if (ObjAC.GetTipoGasto())
|
||||
{
|
||||
GvDatos.DataSource = ObjAC.DtResultados;
|
||||
GvDatos.DataBind();
|
||||
}
|
||||
ObjAC.Dispose();
|
||||
}
|
||||
|
||||
protected void LnkEditar_Click(object sender, EventArgs e)
|
||||
{
|
||||
BtnAgregarTiposDModal.Text = "Actualizar";
|
||||
GridViewRow GvRow = (GridViewRow)(((LinkButton)sender).NamingContainer);
|
||||
CveTipoGasto = GvRow.DataKey("CveTipoGasto").ToEntero();
|
||||
DescripcionTxt.Text = GvRow.DataKey("Descripcion");
|
||||
UpModalTiposD.Update();
|
||||
RegistraScript(String.Format("$('#{0}').modal();", "DivAgregarTiposD"));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user