avance del nuevo catálogo

This commit is contained in:
Antonio Gonzalez
2020-07-14 11:21:40 -07:00
parent 6ecd8e798c
commit bb0b7c1151
3 changed files with 129 additions and 0 deletions

View 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"));
}
}