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

71
CGame/CatScat.aspx.cs Normal file
View File

@@ -0,0 +1,71 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI.WebControls;
using Extensiones;
public partial class CGame_CatScat : ClsPaginas
{
#region Propiedades
private int CveScat
{
get { return (ViewState["CveScat"] == null) ? 0 : Convert.ToInt32(ViewState["CveScat"]); }
set { ViewState["CveScat"] = value; }
}
#endregion
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
CargaScat();
}
}
protected void CargaScat()
{
ClsCGame ObjCGame = new ClsCGame();
if (ObjCGame.GetScat(UsuarioActual.CveEmpresa))
{
GvScat.DataSource = ObjCGame.DtResultados;
}
ObjCGame.Dispose();
GvScat.DataBind();
UpDatos.Update();
}
protected void LimpiaScat()
{
TxtScat.Text = "";
UpModal.Update();
}
protected void LnkAgregarScat_Click(object sender, EventArgs e)
{
this.RegistraScript("$('#DModalScat').modal();");
LimpiaScat();
BtnScatAdd.Visible = true;
BtnScatEdit.Visible = false;
DivEstatus.Visible = false;
UpModal.Update();
}
protected void GvScat_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;
}
}