protected void lnk_ViewPolicy_Click(object sender, EventArgs e)
        {
            LinkButton lnk = (LinkButton)sender;
            String     s   = lnk.CommandArgument;

            GridBindEmpPolicy.DataSource = PolicyApplicationManagement.GetInstance.GetPolicySelectAll_By_Employee(int.Parse(s));
            GridBindEmpPolicy.DataBind();
            DetailsView1.DataSource = null;
            DetailsView1.DataBind();
            lbl_HeadingText.Text = "Employee ID In:" + s;
            Multiview_Policy.SetActiveView(view_GridView);
            pnlPayment.Visible = false;
            //    foreach (DetailsViewRow gvrow in DetailsView1.Rows)
            //    {
            //        if (j <= DetailsView1.Rows.Count)
            //        {
            //            if (j == 12)
            //            {
            //                for (int k = 0; k < gvrow.Cells.Count; k++)
            //                {
            //                    gvrow.Cells[k].Style.Add("background-color", "green");
            //                    gvrow.Cells[k].Style.Add("color", "white");
            //                }
            //            }
            //            if (j == 16)
            //            {
            //                for (int k = 0; k < gvrow.Cells.Count; k++)
            //                {
            //                    gvrow.Cells[k].Style.Add("background-color", "black");
            //                    gvrow.Cells[k].Style.Add("color", "white");
            //                }
            //            }
            //            if (j == 19)
            //            {
            //                for (int k = 0; k < gvrow.Cells.Count; k++)
            //                {
            //                    gvrow.Cells[k].Style.Add("background-color", "black");
            //                    gvrow.Cells[k].Style.Add("color", "white");
            //                }
            //            }
            //            if (j == 20)
            //            {
            //                for (int k = 0; k < gvrow.Cells.Count; k++)
            //                {
            //                    gvrow.Cells[k].Style.Add("background-color", "maroon");
            //                    gvrow.Cells[k].Style.Add("color", "white");
            //                }
            //            }
            //            if (j == 21)
            //            {
            //                for (int k = 0; k < gvrow.Cells.Count; k++)
            //                {
            //                    gvrow.Cells[k].Style.Add("background-color", "#004600");
            //                    gvrow.Cells[k].Style.Add("color", "white");
            //                }
            //            }
            //        }
            //        j++;
            //    }
        }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack && !IsCallback)
     {
         Multiview_Policy.SetActiveView(view_InputControls);
         BindEmployeePayComponents();
     }
 }
        protected void lnk_ViewEmpPolicy_Click(object sender, EventArgs e)
        {
            LinkButton  lnk           = (LinkButton)sender;
            String      s             = lnk.CommandArgument;
            var         closeLink     = (Control)sender;
            GridViewRow row           = (GridViewRow)closeLink.NamingContainer;
            string      firstCellText = row.Cells[10].Text;

            lbl_IntalmentAmount.Text = firstCellText;

            pnlPayment.Visible      = true;
            DetailsView1.DataSource = PolicyApplicationManagement.GetInstance.GetPolicySelectAll_By_Employee(int.Parse(s));
            DetailsView1.DataBind();
            Multiview_Policy.SetActiveView(view_GridView);
        }
 protected void btn_AddApplication_Click(object sender, EventArgs e)
 {
     Multiview_Policy.SetActiveView(view_InputControls);
 }