コード例 #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         RadGridOT.DataSource = "";
         RadGridOT.DataBind();
         Controller_MetricsWIP mw = new Controller_MetricsWIP();
         ddlBodegas.DataSource     = mw.listar_BodegasWip("", "", "", DateTime.Now, DateTime.Now, "", -2);
         ddlBodegas.DataTextField  = "Posicion";
         ddlBodegas.DataValueField = "Ubicacion";
         ddlBodegas.DataBind();
         ddlBodegas.Items.Insert(0, new ListItem("Todos", "Todos"));
     }
 }
コード例 #2
0
 protected void txtOT_TextChanged(object sender, EventArgs e)
 {
     try
     {
         if (txtOT.Text != "")
         {
             Controller_MetricsWIP mw = new Controller_MetricsWIP();
             ddlPliegos.DataSource     = mw.listar_PliegosOT(txtOT.Text.Trim(), "", "", DateTime.Now, DateTime.Now, "", 3);
             ddlPliegos.DataTextField  = "Pliego";
             ddlPliegos.DataValueField = "Pliego";
             ddlPliegos.DataBind();
             ddlPliegos.Items.Insert(0, new ListItem("Todos", "Todos"));
         }
         else
         {
             ddlPliegos.ClearSelection();
         }
     }
     catch
     {
     }
 }