Exemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                RadGridDist.DataSource = "";
                RadGridDist.DataBind();
                RadGridDetalleD.DataSource = "";
                RadGridDetalleD.DataBind();
            }//initialize();
            string popupScript = "<script language='JavaScript'>initMap();</script>";

            Page.RegisterStartupScript("PopupScript", popupScript);
        }
Exemplo n.º 2
0
        protected void btnFiltro_Click(object sender, EventArgs e)
        {
            string OT = txtOT.Text;
            Controller_GuiaDespacho controlDes = new Controller_GuiaDespacho();

            RadGridDist.DataSource = controlDes.ListarDistribuccion(OT);
            RadGridDist.DataBind();
            if (RadGridDist.Items.Count > 0)
            {
                btnCrearDistribuccion.Visible = false;
            }
            else
            {
                btnCrearDistribuccion.Visible = true;
            }
            Controller_Enc Enc = new Controller_Enc();
            DateTime       fec = Convert.ToDateTime("01-01-1900");

            RadGridDetalleD.DataSource = Enc.CargarAprobadosPT(OT, "", fec, fec, 2).Where(o => o.FechaValidacion.Substring(0, 1).ToUpper() != "T");
            RadGridDetalleD.DataBind();
        }