Exemple #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     UtilidadesPeterPan.VerificarSesion();
     if (!IsPostBack)
     {
         ObtenerDominio(UtilidadesPeterPan.DOMINIO_TIPO_PROD, ddlTipo);
         ConsultarProductos();
     }
 }
Exemple #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     UtilidadesPeterPan.VerificarSesion();
     if (!IsPostBack)
     {
         clFecha.SelectedDate = DateTime.Now.Date;
         Ventas();
     }
 }
Exemple #3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     UtilidadesPeterPan.VerificarSesion();
     if (!IsPostBack)
     {
         DAL_Consultascs datos            = new DAL_Consultascs();
         DateTime        _fechaInventario = datos.ConsultarFechaInventario();
         txtFechaInicial.Text    = String.Format("{0}/{1}/{2}", _fechaInventario.Year.ToString(), _fechaInventario.Month.ToString(), _fechaInventario.Day.ToString());
         txtFechaInicial.Enabled = false;
     }
 }
Exemple #4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     UtilidadesPeterPan.VerificarSesion();
     if (!IsPostBack)
     {
         int anio        = DateTime.Now.Year;
         int anioInicial = DateTime.Now.Year - 5;
         for (int i = anio; i >= anioInicial; i--)
         {
             ListItem li = new ListItem();
             li.Text  = i.ToString();
             li.Value = i.ToString();
             ddlAnio.Items.Add(li);
         }
         int _year  = DateTime.Now.Year;
         int _month = DateTime.Now.Month;
         ddlAnio.SelectedValue = _year.ToString();
         ddlMes.SelectedValue  = _month.ToString();
         Buscar();
     }
 }