Commit inicial Ventas Productivo
This commit is contained in:
51
CGame/CatHuerta.aspx.cs
Normal file
51
CGame/CatHuerta.aspx.cs
Normal file
@@ -0,0 +1,51 @@
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI.WebControls;
|
||||
using Extensiones;
|
||||
|
||||
public partial class CATHuerta :ClsPaginas
|
||||
{
|
||||
|
||||
#region Propiedades
|
||||
private int CveHuerta
|
||||
{
|
||||
get{return (ViewState["CveHuerta"] == null) ? 0 : Convert.ToInt32(ViewState["CveHuerta"]);}
|
||||
set{ViewState["CveHuerta"] =value;}
|
||||
}
|
||||
|
||||
#endregion
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack){
|
||||
CargaProveedor();
|
||||
CargaHuerta();
|
||||
}
|
||||
}
|
||||
protected void CargaHuerta()
|
||||
{
|
||||
ClsCGame ObjHuer =new ClsCGame();
|
||||
if (ObjHuer.GetHuerta(UsuarioActual.CveEmpresa))
|
||||
{
|
||||
GVHuerta.DataSource = ObjHuer.DtResultados;
|
||||
GVHuerta.DataBind();
|
||||
}
|
||||
ObjHuer.Dispose();
|
||||
upDatosHuer.Update();
|
||||
}
|
||||
protected void CargaProveedor()
|
||||
{
|
||||
ClsCompProveedores ObjProv = new ClsCompProveedores();
|
||||
if (ObjProv.GetProveedores(ClsCompProveedores.TipoConsulta.ParaUsoEnEmpresa, -1, "-1", "-1", "-1", "-1", "-1", "-1", "-1", -1, UsuarioActual.CveEmpresa))
|
||||
{
|
||||
DdlProveedor.DataSource = ObjProv.DtResultados;
|
||||
DdlProveedor.Items.Insert(0, new ListItem("Seleccione", "-1"));
|
||||
DdlProveedor.DataBind();
|
||||
}
|
||||
ObjProv.Dispose();
|
||||
|
||||
}
|
||||
protected void LimpiaHuerta()
|
||||
{
|
||||
Reference in New Issue
Block a user