Commit inicial Ventas Productivo

This commit is contained in:
JORGE LUIS CAUDILLO ESPARZA
2019-08-14 16:40:54 -07:00
commit c35cf91883
13328 changed files with 3711549 additions and 0 deletions

View File

@@ -0,0 +1,73 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI.WebControls;
using Extensiones;
public partial class CGame_CatConceptoGastoCorte : ClsPaginas
{
#region Propiedades
private int CveConceptoGastoCorte
{
get { return (ViewState["CveConceptoGastoCorte"] == null) ? 0 : Convert.ToInt32(ViewState["CveConceptoGastoCorte"]); }
set { ViewState["CveConceptoGastoCorte"] = value; }
}
#endregion
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
CargaConcepto();
}
}
protected void CargaConcepto()
{
ClsCGame ObjCGame = new ClsCGame();
if (ObjCGame.GetConceptoGastoCorte(UsuarioActual.CveEmpresa))
{
GvConcepto.DataSource = ObjCGame.DtResultados;
}
ObjCGame.Dispose();
GvConcepto.DataBind();
UpDatos.Update();
}
protected void LimpiaConcepto()
{
TxtConcepto.Text = "";
UpModal.Update();
}
protected void LnkAgregarConcepto_Click(object sender, EventArgs e)
{
this.RegistraScript("$('#DModalConcepto').modal();");
LimpiaConcepto();
BtnConceptoAdd.Visible = true;
BtnConceptoEdit.Visible = false;
DivEstatus.Visible = false;
UpModal.Update();
}
protected void GvConcepto_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
if (Convert.ToBoolean(e.Row.DBCampo("Estatus")) == true)
{
e.Row.FCLabel("lblestatus").Text = "Activo";
e.Row.FCLabel("lblestatus").ForeColor = System.Drawing.Color.Green;
}
else
{
e.Row.FCLabel("lblestatus").Text = "Inactivo";
e.Row.FCLabel("lblestatus").ForeColor = System.Drawing.Color.Red;
}
}