示例#1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (this.Session["usuario"] == null)
        {
            this.Response.Redirect("~/InicioQYMS2.aspx");
        }

        this.usuario = (UsuarioBC)this.Session["usuario"];

        if (!this.IsPostBack)
        {
            TransportistaBC tran = new TransportistaBC();
            TrailerTipoBC   tipo = new TrailerTipoBC();
            SiteBC          site = new SiteBC();
            utils.CargaDrop(this.ddl_buscarSite, "ID", "NOMBRE", site.ObtenerTodos());
            this.utils.CargaDrop(this.ddl_editTran, "ID", "NOMBRE", tran.ObtenerTodos());
            this.utils.CargaDrop(this.ddl_editTipo, "ID", "DESCRIPCION", tipo.obtenerTodo());
            this.utils.CargaDrop(this.ddl_buscarTransportista, "ID", "NOMBRE", tran.ObtenerTodos());
            this.utils.CargaDrop(this.ddl_buscarTipo, "ID", "DESCRIPCION", tipo.obtenerTodo());
            YMS_ZONA_BC yms = new YMS_ZONA_BC();
            utils.CargaDropNormal(this.ddl_site, "ID", "NOMBRE", yms.ObteneSites(this.usuario.ID));


            this.utils.CargaDrop(this.ddl_buscarMotivo, "ID", "NOMBRE", tran.ObtenerMotivoBloqueo("1"));
            this.ltl_contenidoCaract.Text = this.crearContenido();
        }
        this.ObtenerTrailer(false);
    }
示例#2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["usuario"] == null)
        {
            Response.Redirect("../InicioQYMS.aspx");
        }
        usuario = (UsuarioBC)Session["usuario"];
        this.nuevo_trailer.ButtonClickDemo += new EventHandler(trailercreado);
        if (!this.IsPostBack)
        {
            this.txt_ingresoFecha.Text = DateTime.Now.ToShortDateString();
            this.txt_ingresoHora.Text  = DateTime.Now.ToShortTimeString();
            TransportistaBC tran      = new TransportistaBC();
            ProveedorBC     proveedor = new ProveedorBC();

            YMS_ZONA_BC yms = new YMS_ZONA_BC();
            DataTable   ds  = yms.ObteneSites(((UsuarioBC)Session["Usuario"]).ID);
            utils.CargaDropNormal(this.dropsite, "ID", "NOMBRE", ds);
            this.drop_SelectedIndexChanged(null, null);

            utils.CargaDrop(ddl_proveedor, "ID", "DESCRIPCION", proveedor.obtenerTodo());
            utils.CargaDrop(ddl_transportista, "ID", "NOMBRE", tran.ObtenerTodos());
            utils.CargaDrop(ddl_tipo_carga, "ID", "DESCRIPCION", yms.obtenerTipoCarga(null, false, false));
        }
    }
示例#3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["usuario"] == null)
        {
            Response.Redirect("~/InicioQYMS2.aspx");
        }
        usuario = (UsuarioBC)Session["Usuario"];

        if (!IsPostBack)
        {
            CaractCargaBC   catt = new CaractCargaBC();
            TransportistaBC tran = new TransportistaBC();
            TrailerTipoBC   tipo = new TrailerTipoBC();
            YMS_ZONA_BC     yms  = new YMS_ZONA_BC();
            DataTable       dt   = catt.obtenerTodo();
            CargaDrops      c    = new CargaDrops();
            c.Proveedor_Todos(ddl_buscarProveedor);

            if (usuario.PROVEEDOR != "")
            {
                this.ddl_buscarProveedor.SelectedValue = usuario.ID_PROVEEDOR.ToString();
                this.ddl_buscarProveedor.Enabled       = false;
            }

            DataTable ds = yms.ObteneSites(((UsuarioBC)Session["Usuario"]).ID);
            utils.CargaDropNormal(this.ddl_buscarSite, "ID", "NOMBRE", ds);
            txt_buscarDesde.Text = DateTime.Now.ToShortDateString();
            txt_buscarHasta.Text = DateTime.Now.ToShortDateString();
            ObtenerPreIngresos(true);
        }
    }
示例#4
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            CreaDataTable();

            if (Request.Params["type"] == null)
            {
                this.txt_buscarFecha.Text = DateTime.Now.ToShortDateString();
                this.txt_buscarHora.Text  = DateTime.Now.ToShortTimeString();
                YMS_ZONA_BC yms = new YMS_ZONA_BC();
                DataTable   ds  = yms.ObteneSites(((UsuarioBC)Session["Usuario"]).ID);
                utils.CargaDropNormal(dropsite, "ID", "NOMBRE", ds);
                drop_SelectedIndexChanged(null, null);
            }
            else
            {
                YMS_ZONA_BC yms = new YMS_ZONA_BC();
                DataTable   ds  = yms.ObteneSites(((UsuarioBC)Session["Usuario"]).ID);
                utils.CargaDropNormal(dropsite, "ID", "NOMBRE", ds);
                llenarForm();
            }
        }
        if (table.Rows.Count > 0)
        {
            ddl_destinoZona.Enabled  = false;
            ddl_destinoPlaya.Enabled = false;
        }
        else
        {
            ddl_destinoZona.Enabled = true;
            //   ddl_destinoZona_SelectedIndexChanged(null, null);
        }
    }
示例#5
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (this.Session["usuario"] == null)
        {
            this.Response.Redirect("~/InicioQYMS.aspx");
        }

        this.u = (UsuarioBC)this.Session["usuario"];
        if (!this.IsPostBack)
        {
            YMS_ZONA_BC yms = new YMS_ZONA_BC();
            this.utils.CargaDropNormal(this.ddl_site, "ID", "NOMBRE", yms.ObteneSites(this.u.ID));
            this.utils.CargaDrop(this.ddl_editSite, "ID", "NOMBRE", yms.ObteneSites(this.u.ID));
        }
        this.ObtenerProgramacion(false);
    }
示例#6
0
    protected void Page_Load(object sender, EventArgs e)
    {
        //this.nuevo_trailer.ButtonClickDemo += new EventHandler(trailercreado);
        if (!this.IsPostBack)
        {
            this.CreaDataTable();

            //     Page.LoadComplete += new EventHandler(Page_LoadComplete);
            this.txt_ingresoFecha.Text = DateTime.Now.ToShortDateString();
            this.txt_ingresoHora.Text  = DateTime.Now.ToShortTimeString();
            TransportistaBC tran      = new TransportistaBC();
            ProveedorBC     proveedor = new ProveedorBC();
            CargaTipoBC     c         = new CargaTipoBC();
            YMS_ZONA_BC     yms       = new YMS_ZONA_BC();
            DataTable       ds        = yms.ObteneSites(((UsuarioBC)this.Session["Usuario"]).ID);
            utils.CargaDropNormal(this.dropsite, "ID", "NOMBRE", ds);
            this.drop_SelectedIndexChanged(null, null);

            LugarBC lugar = new LugarBC();
            utils.CargaDrop(this.ddl_proveedor, "ID", "DESCRIPCION", proveedor.obtenerTodo());
            this.ddl_proveedor.SelectedValue = ((UsuarioBC)this.Session["Usuario"]).ID_PROVEEDOR.ToString();
            //  utils.CargaDrop(ddl_zona, "ID", "DESCRIPCION", zona.ObtenerTodas());
            utils.CargaDrop(this.ddl_transportista, "ID", "NOMBRE", tran.ObtenerTodos());
            utils.CargaDrop(this.ddl_editTran, "ID", "NOMBRE", tran.ObtenerTodos());
            utils.CargaDrop(this.ddl_tipo_carga, "ID", "DESCRIPCION", yms.obtenerTipoCarga(null, true, false));
        }
    }
示例#7
0
    public void cargasites()
    {
        YMS_ZONA_BC yms        = new YMS_ZONA_BC();
        DataTable   ds         = yms.ObteneSites(((UsuarioBC)Session["Usuario"]).ID);
        UtilsWeb    utilidades = new UtilsWeb();

        utilidades.CargaDropNormal(dropsite, "ID", "NOMBRE", ds);
    }
示例#8
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Session["usuario"] == null)
     {
         Response.Redirect("../InicioQYMS.aspx");
     }
     usuario = (UsuarioBC)Session["Usuario"];
     if (!IsPostBack)
     {
         YMS_ZONA_BC y = new YMS_ZONA_BC();
         utils.CargaDropNormal(ddl_buscarSite, "ID", "NOMBRE", y.ObteneSites(usuario.ID));
     }
 }
示例#9
0
    private void cargaDrops()
    {
        TransportistaBC tran      = new TransportistaBC();
        ProveedorBC     proveedor = new ProveedorBC();
        YMS_ZONA_BC     yms       = new YMS_ZONA_BC();
        DataTable       dt        = yms.ObteneSites(usuario.ID);

        utils.CargaDropNormal(dropsite, "ID", "NOMBRE", dt);
        drop_SelectedIndexChanged(null, null);
        utils.CargaDrop(ddl_proveedor, "ID", "DESCRIPCION", proveedor.obtenerTodo());
        utils.CargaDrop(ddl_transportista, "ID", "NOMBRE", tran.ObtenerTodos());
        utils.CargaDrop(ddl_motivo, "ID", "DESCRIPCION", yms.obtenerMotivoTipoCarga(ddl_tipo_carga.SelectedValue, null));
        utils.CargaDrop(ddl_tipo_carga, "ID", "DESCRIPCION", yms.obtenerTipoCarga(null, false, true));
    }
示例#10
0
    private void CargaDrops()
    {
        TransportistaBC tran      = new TransportistaBC();
        ProveedorBC     proveedor = new ProveedorBC();
        YMS_ZONA_BC     yms       = new YMS_ZONA_BC();

        utils.CargaDrop(this.ddl_tipo_carga, "ID", "DESCRIPCION", yms.obtenerTipoCarga(null, false, false));
        DataTable ds = yms.ObteneSites(usuario.ID);

        utils.CargaDropNormal(this.dropsite, "ID", "NOMBRE", ds);
        this.drop_SelectedIndexChanged(null, null);
        utils.CargaDrop(this.ddl_proveedor, "ID", "DESCRIPCION", proveedor.obtenerTodo());
        utils.CargaDrop(this.ddl_transportista, "ID", "NOMBRE", tran.ObtenerTodos());
    }
示例#11
0
    private void cargaDrops()
    {
        DataTable       dt;
        TransportistaBC tran      = new TransportistaBC();
        ProveedorBC     proveedor = new ProveedorBC();
        YMS_ZONA_BC     yms       = new YMS_ZONA_BC();

        dt = yms.ObteneSites(usuario.ID);
        utils.CargaDropNormal(this.dropsite, "ID", "NOMBRE", dt);
        drop_SelectedIndexChanged(null, null);
        dt = proveedor.obtenerTodo();
        utils.CargaDrop(this.ddl_proveedor, "ID", "DESCRIPCION", dt);
        dt = tran.ObtenerTodos();
        utils.CargaDrop(this.ddl_transportista, "ID", "NOMBRE", dt);
    }
示例#12
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Session["usuario"] == null)
     {
         Response.Redirect("../InicioQYMS.aspx");
     }
     user = (UsuarioBC)Session["usuario"];
     if (!IsPostBack)
     {
         YMS_ZONA_BC y = new YMS_ZONA_BC();
         drops.Zona_Todos(ddl_editZona);
         drops.Zona_Todos(ddl_buscarZona);
         utils.CargaDropNormal(ddl_site, "ID", "NOMBRE", y.ObteneSites(user.ID));
         ObtenerPlaya(true);
     }
 }
示例#13
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["Usuario"] == null)
        {
            Response.Redirect("~/InicioQYMS2.aspx");
        }
        user = (UsuarioBC)Session["Usuario"];

        if (!this.IsPostBack)
        {
            YMS_ZONA_BC yms = new YMS_ZONA_BC();
            DataTable   ds  = yms.ObteneSites(user.ID);
            utils.CargaDrop(ddl_destinoSite, "ID", "NOMBRE", ds);
            this.ObtenerTipoCarga(true);
        }
    }
示例#14
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (this.Session["usuario"] == null)
     {
         this.Response.Redirect("../InicioQYMS2.aspx");
     }
     this.usuario = (UsuarioBC)this.Session["Usuario"];
     if (!this.IsPostBack)
     {
         YMS_ZONA_BC y   = new YMS_ZONA_BC();
         SolicitudBC sol = new SolicitudBC();
         this.utils.CargaDropNormal(this.ddl_buscarSite, "ID", "NOMBRE", y.ObteneSites(this.usuario.ID));
         this.ddl_buscarSite_SelectedIndexChanged(null, null);
         this.utils.CargaDropTodos(this.ddl_buscarEstado, "ID", "DESCRIPCION", sol.ObtenerEstadosCarga());
     }
 }
示例#15
0
 protected void Page_Load(object sender, System.EventArgs e)
 {
     if (Session["usuario"] == null)
     {
         Response.Redirect("~/InicioQYMS2.aspx");
     }
     usuario = (UsuarioBC)Session["USUARIO"];
     if (!IsPostBack)
     {
         YMS_ZONA_BC   yms   = new YMS_ZONA_BC();
         DataTable     ds    = yms.ObteneSites(((UsuarioBC)Session["Usuario"]).ID);
         DestinoTipoBC desti = new DestinoTipoBC();
         utils.CargaDropNormal(this.dropsite, "ID", "NOMBRE", ds);
         utils.CargaDrop(ddl_tipoDestino, "CODIGO", "NOMBRE", desti.obtenerTodo());
     }
 }
示例#16
0
    protected void Page_Load(object sender, EventArgs e)
    {
        ZonaBC          zona          = new ZonaBC();
        PlayaBC         playa         = new PlayaBC();
        LugarBC         lugar         = new LugarBC();
        TransportistaBC transportista = new TransportistaBC();

        if (!this.IsPostBack)
        {
            this.txt_fechaMovimiento.Text = DateTime.Now.ToShortDateString();
            utils.CargaDrop(this.ddl_transportista, "ID", "NOMBRE", transportista.ObtenerTodos());
            YMS_ZONA_BC yms = new YMS_ZONA_BC();
            DataTable   ds  = yms.ObteneSites(((UsuarioBC)Session["Usuario"]).ID);
            utils.CargaDropNormal(this.dropsite, "ID", "NOMBRE", ds);
            this.drop_SelectedIndexChanged(null, null);
        }
    }
示例#17
0
    public void Site(DropDownList ddl, int user_id = 0)
    {
        DataView dw;

        if (user_id != 0)
        {
            YMS_ZONA_BC y = new YMS_ZONA_BC();
            dw = y.ObteneSites(user_id).AsDataView();
        }
        else
        {
            SiteBC s = new SiteBC();
            dw = s.ObtenerTodos().AsDataView();
        }
        dw.Sort = "NOMBRE ASC";
        u.CargaDrop(ddl, "ID", "NOMBRE", dw.ToTable());
    }
示例#18
0
    private void CargaDrops()
    {
        YMS_ZONA_BC   yms = new YMS_ZONA_BC();
        CaractCargaBC car = new CaractCargaBC();
        ShorteckBC    sh  = new ShorteckBC();
        DataTable     dt;

        dt = yms.ObteneSites(usuario.ID);
        utils.CargaDropNormal(dropsite, "ID", "NOMBRE", dt);
        dt = car.obtenerXTipo(30);
        utils.CargaDrop(ddl_solTemp, "ID", "DESCRIPCION", dt);
        dt = car.obtenerXTipo(0);
        utils.CargaDrop(ddl_largoMax, "ID", "DESCRIPCION", dt);
        dt = sh.ObtenerTodos();
        utils.CargaDrop(ddl_idShortek, "SHOR_ID", "SHOR_DESC", dt);
        utils.CargaDrop(ddl_id_shortrec2, "SHOR_ID", "SHOR_DESC", dt);
    }
示例#19
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Session["usuario"] == null)
     {
         Response.Redirect("~/InicioQYMS2.aspx");
     }
     user = (UsuarioBC)Session["usuario"];
     if (!IsPostBack)
     {
         YMS_ZONA_BC y = new YMS_ZONA_BC();
         txt_desde.Text = DateTime.Now.AddMonths(-1).ToShortDateString();
         txt_hasta.Text = DateTime.Now.ToShortDateString();
         utils.CargaDropNormal(ddl_site, "ID", "DESCRIPCION", y.ObteneSites(user.ID));
         ddl_site_SelectedIndexChanged(null, null);
         //     ObtenerReporte(true);
     }
 }
示例#20
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         CargaTipoBC ct  = new CargaTipoBC();
         ShorteckBC  sh  = new ShorteckBC();
         YMS_ZONA_BC yms = new YMS_ZONA_BC();
         DataTable   ds  = yms.ObteneSites(((UsuarioBC)Session["Usuario"]).ID);
         utils.CargaDropNormal(this.DDL_SITE, "ID", "NOMBRE", ds);
         TrailerEstadoBC estadobc = new TrailerEstadoBC();
         CaractCargaBC   car      = new CaractCargaBC();
         utils.CargaDropTodos(DDL_disponibilidad, "ID", "NOMBRE", estadobc.ObtenerTodosSTOCK());
         utils.CargaDropTodos(this.ddl_capacidad, "ID", "DESCRIPCION", car.obtenerXTipo(0));
         utils.CargaDropTodos(this.ddl_tipocarga, "ID", "DESCRIPCION", ct.obtenerTodo());
         utils.CargaDropTodos(this.ddl_shortec, "SHOR_ID", "SHOR_DESC", sh.ObtenerTodos());
     }
 }
示例#21
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (this.Session["usuario"] == null)
        {
            this.Response.Redirect("~/InicioQYMS2.aspx");
        }

        this.u = (UsuarioBC)this.Session["usuario"];

        if (!IsPostBack)
        {
            YMS_ZONA_BC yms = new YMS_ZONA_BC();
            this.utils.CargaDropNormal(this.ddl_buscarSite, "ID", "NOMBRE", yms.ObteneSites(this.u.ID));
            this.txt_desde.Text = DateTime.Now.AddDays(-7).ToShortDateString();
            this.txt_hasta.Text = DateTime.Now.ToShortDateString();
            ObtenerReporte();
        }
    }
示例#22
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            YMS_ZONA_BC yms     = new YMS_ZONA_BC();
            DataTable   ds      = yms.ObteneSites(((UsuarioBC)Session["Usuario"]).ID);
            UsuarioBC   usuario = new UsuarioBC();
            utils.CargaDrop(ddl_editUsuario, "ID", "USERNAME", usuario.ObtenerTodos());

            utils.CargaDropNormal(this.dropsite, "ID", "NOMBRE", ds);
            utils.CargaDrop(this.ddl_editSite, "ID", "NOMBRE", ds);
            ObtenerRemolcador(true);
        }
        else
        {
            ObtenerRemolcador(false);
        }
    }
示例#23
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (this.Session["usuario"] != null)
     {
         this.u = (UsuarioBC)this.Session["usuario"];
     }
     else
     {
         this.Response.Redirect("../InicioQYMS2.aspx");
     }
     if (!this.IsPostBack)
     {
         RemolcadorBC r   = new RemolcadorBC();
         YMS_ZONA_BC  yms = new YMS_ZONA_BC();
         DataTable    ds  = yms.ObteneSites(((UsuarioBC)this.Session["Usuario"]).ID);
         this.utils.CargaDropNormal(this.ddl_buscarSite, "ID", "NOMBRE", ds);
         this.ddl_buscarSite_SelectedIndexChanged(null, null);
     }
 }
示例#24
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["usuario"] == null)
        {
            Response.Redirect("../InicioQYMS.aspx");
        }
        usuario = (UsuarioBC)this.Session["usuario"];
        if (!IsPostBack)
        {
            txt_ingresoFecha.Text = DateTime.Now.ToShortDateString();
            txt_ingresoHora.Text  = DateTime.Now.ToShortTimeString();
            TransportistaBC tran = new TransportistaBC();

            YMS_ZONA_BC yms = new YMS_ZONA_BC();
            DataTable   ds  = yms.ObteneSites(((UsuarioBC)Session["Usuario"]).ID);
            utils.CargaDropNormal(dropsite, "ID", "NOMBRE", ds);
            utils.CargaDrop(ddl_transportista, "ID", "NOMBRE", tran.ObtenerTodos());
        }
    }
示例#25
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (this.Session["Usuario"] == null)
        {
            this.Response.Redirect("~/InicioQYMS2.aspx");
        }
        this.usuario = (UsuarioBC)this.Session["Usuario"];

        if (!this.IsPostBack)
        {
            TrailerBC   t = new TrailerBC();
            YMS_ZONA_BC y = new YMS_ZONA_BC();
            this.utils.CargaDropNormal(this.ddl_buscarSite, "ID", "NOMBRE", y.ObteneSites(this.usuario.ID));
            this.ObtenerReporte(true);
        }
        else
        {
            this.ObtenerReporte(false);
        }
    }
示例#26
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (this.Session["usuario"] == null)
     {
         this.Response.Redirect("~/InicioQYMS2.aspx");
     }
     this.u = (UsuarioBC)this.Session["usuario"];
     if (!this.IsPostBack)
     {
         YMS_ZONA_BC  yms = new YMS_ZONA_BC();
         MovimientoBC m   = new MovimientoBC();
         UsuarioBC    usu = new UsuarioBC();
         this.utils.CargaDropNormal(this.ddl_buscarSite, "ID", "NOMBRE", yms.ObteneSites(this.u.ID));
         this.ddl_buscarSite_SelectedIndexChanged(null, null);
         this.utils.CargaDropTodos(this.ddl_moti, "ID", "DESCRIPCION", m.ObtenerTipos());
         this.utils.CargaDropTodos(this.ddl_usuario, "ID", "USERNAME", usu.ObtenerUsuariosRemolcador(int.Parse(ddl_buscarSite.SelectedValue)));
         this.txt_desde.Text = DateTime.Now.AddDays(-7).ToShortDateString();
         this.txt_hasta.Text = DateTime.Now.ToShortDateString();
         this.ObtenerReporte();
     }
 }
示例#27
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["usuario"] == null)
        {
            Response.Redirect("~/InicioQYMS2.aspx");
        }
        usuario = (UsuarioBC)Session["usuario"];
        DataTable dt;
        DataView  dw = new DataView((DataTable)ViewState["sel"]);

        if (!this.IsPostBack)
        {
            TransportistaBC tran      = new TransportistaBC();
            ProveedorBC     proveedor = new ProveedorBC();
            YMS_ZONA_BC     yms       = new YMS_ZONA_BC();
            dt = yms.ObteneSites(usuario.ID);
            utils.CargaDrop(this.dropsite, "ID", "NOMBRE", dt);
            this.drop_SelectedIndexChanged(null, null);
            dt = proveedor.obtenerTodo();
            utils.CargaDrop(this.ddl_proveedor, "ID", "DESCRIPCION", dt);
            dt = tran.ObtenerTodos();
            utils.CargaDrop(this.ddl_transportista, "ID", "NOMBRE", dt);
            utils.CargaDrop(this.ddl_editTran, "ID", "NOMBRE", dt);
            ddl_proveedor.SelectedValue = usuario.ID_PROVEEDOR.ToString();
            txt_ingresoFecha.Text       = DateTime.Now.ToShortDateString();
            txt_ingresoHora.Text        = DateTime.Now.ToShortTimeString();
            //     ObtenerCitas(true);
        }
        if (dw.Count > 0)
        {
            menorFecha = Convert.ToDateTime(dw.ToTable().Compute("MAX(FECHA_HORA)", "")).Date.AddDays(-utils.Intervalo_preingreso);
            mayorFecha = Convert.ToDateTime(dw.ToTable().Compute("MIN(FECHA_HORA)", "")).Date.AddDays(utils.Intervalo_preingreso);
        }
        else
        {
            menorFecha = DateTime.Now.Date.AddDays(-utils.Intervalo_preingreso);
            mayorFecha = DateTime.Now.Date.AddDays(utils.Intervalo_preingreso);
        }
    }
示例#28
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Session["usuario"] == null)
     {
         Response.Redirect("../InicioQYMS.aspx");
     }
     usuario = (UsuarioBC)Session["usuario"];
     if (!IsPostBack)
     {
         YMS_ZONA_BC y  = new YMS_ZONA_BC();
         PlayaBC     p  = new PlayaBC();
         Tipo_ZonaBC tz = new Tipo_ZonaBC();
         DataTable   dt = y.ObteneSites(usuario.ID);
         utils.CargaDropNormal(ddl_site, "ID", "NOMBRE", dt);
         utils.CargaDropNormal(ddl_editSite, "ID", "NOMBRE", dt);
         utils.CargaDrop(ddl_editTipo, "PYTI_ID", "TIPO_PLAYA", p.ObtenerTipos());
         utils.CargaDrop(ddl_editTipoZona, "ID", "DESCRIPCION", tz.ObtenerTodos());
         ddl_site_SelectedIndexChanged(null, null);
         ddl_editSite_SelectedIndexChanged(null, null);
         //ltl_contenidoCaract.Text = crearContenido();
     }
 }
示例#29
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (this.Session["usuario"] == null)
     {
         this.Response.Redirect("../InicioQYMS.aspx");
     }
     this.usuario = (UsuarioBC)this.Session["Usuario"];
     if (!this.IsPostBack)
     {
         YMS_ZONA_BC     y   = new YMS_ZONA_BC();
         SolicitudBC     sol = new SolicitudBC();
         TransportistaBC t   = new TransportistaBC();
         this.utils.CargaDropNormal(this.ddl_buscarSite, "ID", "NOMBRE", y.ObteneSites(this.usuario.ID));
         this.drops.Playa_Todos(this.ddl_buscarPlaya, 0, int.Parse(this.ddl_buscarSite.SelectedValue));
         //utils.CargaDrop(ddl_buscarPlaya, "ID", "DESCRIPCION", p.ObtenerDrop(int.Parse(ddl_buscarSite.SelectedValue)));
         this.drops.Lugar_Todos(this.ddl_buscarAnden, int.Parse(this.ddl_buscarPlaya.SelectedValue));
         //utils.CargaDrop(ddl_buscarAnden, "ID", "DESCRIPCION", l.obtenerTodoLugar(int.Parse(ddl_buscarSite.SelectedValue), 0, int.Parse(ddl_buscarPlaya.SelectedValue)));
         //utils.CargaDrop(ddl_buscarUsuario, "ID", "USERNAME", u.ObtenerTodos());
         this.utils.CargaDrop(this.ddl_buscarEstado, "ID", "DESCRIPCION", sol.ObtenerEstadosCarga());
         this.utils.CargaDrop(this.ddl_buscarTransportista, "ID", "NOMBRE", t.ObtenerTodos());
         this.ObtenerSolicitudes(true);
     }
 }
示例#30
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["usuario"] == null)
        {
            Response.Redirect("../InicioQYMS.aspx");
        }
        usuario = (UsuarioBC)Session["usuario"];
        if (!IsPostBack)
        {
            YMS_ZONA_BC y    = new YMS_ZONA_BC();
            SiteBC      site = new SiteBC();
            DataTable   dt   = y.ObteneSites(usuario.ID);
            DataTable   dt2  = site.ObtenerTodos();

            utils.CargaDropNormal(ddl_site, "ID", "NOMBRE", dt);
            utils.CargaDropNormal(ddl_editSite, "ID", "NOMBRE", dt2);
            ddl_site_SelectedIndexChanged(null, null);
            ddl_editSite_SelectedIndexChanged(null, null);
            //ZonaBC zona = new ZonaBC();
            //utils.CargaDrop(ddl_buscarZona, "ID", "DESCRIPCION", zona.ObtenerTodas());
            //utils.CargaDrop(ddl_editZona, "ID", "DESCRIPCION", zona.ObtenerTodas());
            //ObtenerPlaya(true);
        }
    }