Exemple #1
0
    protected void btnSubmit_Click(object sender, EventArgs e)
    {
        List <ATTBench> benchList = (List <ATTBench>)Session["Bench"];

        if (benchList.Count > 0)
        {
            BLLBench.SaveBench(benchList);
        }
        ClearControls();
    }
 void LoadBench()
 {
     try
     {
         List <ATTBench> lstBench = BLLBench.GetBench(orgID, null, "Y", 1);
         DDLBench_RQD.DataSource     = lstBench;
         DDLBench_RQD.DataTextField  = "BenchDesc";
         DDLBench_RQD.DataValueField = "BenchNo";
         DDLBench_RQD.DataBind();
     }
     catch (Exception ex)
     {
         lblStatusMessage.Text = ex.Message;
         programmaticModalPopup.Show();
     }
 }
Exemple #3
0
    protected void lstOrganization_SelectedIndexChanged(object sender, EventArgs e)
    {
        try
        {
            List <ATTBench> BenchLST = BLLBench.GetBench(int.Parse(lstOrganization.SelectedValue), null, "", 0);
            grdBench.DataSource = BenchLST;
            grdBench.DataBind();
            Session["Bench"] = BenchLST;

            for (int i = 0; i < grdBench.Rows.Count; i++)
            {
                ((LinkButton)grdBench.Rows[i].Cells[6].Controls[0]).Visible = false;
            }
        }
        catch (Exception ex)
        {
            lblStatusMessage.Text = ex.Message;
            programmaticModalPopup.Show();
        }
    }