示例#1
0
        protected void btnFiltro_Click1(object sender, EventArgs e)
        {
            if (txtFechaInicio.Text != "" && txtFechaTermino.Text != "")
            {
                string   FecI = txtFechaInicio.Text;
                string[] str  = FecI.Split('/');
                string   dia  = str[0];
                string   mes  = str[1];
                string   año  = str[2];
                año = año.Substring(0, 4);
                string FechaInicio = mes + "/" + dia + "/" + año + " 00:00:00";

                string   FecT = txtFechaTermino.Text;
                string[] str2 = FecT.Split('/');
                string   dia2 = str2[0];
                string   mes2 = str2[1];
                string   año2 = str2[2];
                año2 = año2.Substring(0, 4);
                string FechaTermino = mes2 + "/" + dia2 + "/" + año2 + " 23:59:59";

                RadGrid1.DataSource = pt.CARGA_INFORMEPRODUCCIONENC(txtNumeroOT.Text, "", Convert.ToDateTime(FechaInicio), Convert.ToDateTime(FechaTermino), 1);
                RadGrid1.DataBind();
            }
            else
            {
                DateTime fec = Convert.ToDateTime("1900-01-01");
                RadGrid1.DataSource = pt.CARGA_INFORMEPRODUCCIONENC(txtNumeroOT.Text, "", fec, fec, 2);
                RadGrid1.DataBind();
            }
        }
示例#2
0
 public void Cargar_Encuadernacion(int Procedimiento, string OT)
 {
     if (Procedimiento == 0)
     {
         RadGrid7.DataSource = "";
         RadGrid7.DataBind();
     }
     else
     {
         Controller_ProductosTerminados pt = new Controller_ProductosTerminados();
         DateTime fec = Convert.ToDateTime("01-01-1900");
         RadGrid7.DataSource = pt.CARGA_INFORMEPRODUCCIONENC(OT, "", fec, fec, 2);
         RadGrid7.DataBind();
     }
 }