protected void Button3_Click(object sender, EventArgs e)
        {
            DataTable Reg = CM_Main.SelectJob("CASE4", txtParent.Text, CmbSystem2.SelectedItem.Text, TxtTitleSch2.Text, CmbAssignForParent.SelectedItem.Value, "", System.DateTime.Now);

            RadGrid7.DataSource = Reg;
            RadGrid7.DataBind();
            lblSearch2.Text = "2";
        }
Beispiel #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();
     }
 }
        protected void RadGrid7_ItemCommand(object sender, GridCommandEventArgs e)
        {
            try
            {
                if (e.CommandName == "Select")
                {
                    GridDataItem dataitem = e.Item as GridDataItem;

                    DataTable dd = CM_Main.SelectJob("CASE5", dataitem["REQUEST_ID"].Text, "", "", "", "", System.DateTime.Now);
                    RadGrid7.DataSource = dd;
                    RadGrid7.DataBind();

                    lblParentChange.Text = dataitem["REQUEST_ID"].Text;
                    //dd.Rows[0]["REQUEST_ID"].ToString();
                }
            }
            catch (Exception ex)
            {
                lblError.Text    = ex.Message;
                lblError.Visible = true;
                return;
            }
        }