Пример #1
0
        protected void btnFiltro_Click1(object sender, EventArgs e)
        {
            Controller_Dimensionadora dd = new Controller_Dimensionadora();

            RadGrid2.DataSource = dd.CargaPendientesDimensionadoraConsumo(1, txtOT.Text.ToString().Trim(), txtFolio.Text.ToString().Trim());
            RadGrid2.DataBind();
            divPliego.Visible         = false;
            divDimensionadora.Visible = true;
        }
Пример #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                Controller_Dimensionadora dd = new Controller_Dimensionadora();

                try
                {
                    lblOT.Text         = Request.QueryString["o"].ToString();
                    lblNombreOT.Text   = Request.QueryString["n"].ToString();
                    lblComponente.Text = Request.QueryString["c"].ToString();
                    lblCantidad.Text   = Request.QueryString["t"].ToString();
                    lblFolio.Text      = Request.QueryString["f"].ToString();
                    Bobina_Controller controlBo       = new Bobina_Controller();
                    List <Bobina>     listaPendiente1 = controlBo.listarBobinaPend(Request.QueryString["o"].ToString(), "&nbsp;", 1);
                    List <Bobina>     listaPendiente2 = controlBo.listarBobinaPend(Request.QueryString["o"].ToString(), Request.QueryString["c"].ToString(), 1);
                    List <Bobina>     listaConsumoda1 = controlBo.listarBobinaPend(Request.QueryString["o"].ToString(), "&nbsp;", 2);
                    List <Bobina>     listaConsumoda2 = controlBo.listarBobinaPend(Request.QueryString["o"].ToString(), Request.QueryString["c"].ToString(), 2);


                    RadGrid4.DataSource = listaPendiente1.Union(listaPendiente2);
                    RadGrid5.DataSource = listaConsumoda1.Union(listaConsumoda2);
                    RadGrid4.DataBind();
                    RadGrid5.DataBind();
                    divPliego.Visible         = true;
                    divDimensionadora.Visible = false;
                }
                catch
                {
                    RadGrid2.DataSource = dd.CargaPendientesDimensionadoraConsumo(0, "", "");
                    RadGrid2.DataBind();
                    divPliego.Visible         = false;
                    divDimensionadora.Visible = true;
                }
            }
        }