Example #1
0
        protected void RTSMainblackboardTab_TabClick(object sender, Telerik.Web.UI.RadTabStripEventArgs e)
        {
            RadTab TabClicked = e.Tab;
            int    tabclick   = 0;

            tabclick = Convert.ToInt32(TabClicked.TabIndex);

            switch (tabclick)
            {
            case 0:
                UserBind();
                break;

            case 1:
                TermBind();
                break;

            case 2:
                CoursesBind();
                break;

            case 3:
                break;
            }
            RLresult.Text = string.Empty;
        }
Example #2
0
    protected void rtabEntry_TabClick(object sender, Telerik.Web.UI.RadTabStripEventArgs e)
    {
        Telerik.Web.UI.RadTab TabClicked = e.Tab;
        string tabvalue = TabClicked.Value;

        ViewState["TabFilterValue"] = tabvalue;
        ViewState["AdvanceSearch"]  = "";
        lblError.Text = "";
        BindGrid(true);

        // Display the reminder buttons conditionally
        btnAddRound.Visible  = false;
        btnSendEmail.Visible = false;
        switch (tabvalue)
        {
        case "All":
            btnAddRound.Visible  = true;
            btnSendEmail.Visible = true;
            break;

        case "Deleted":
            btnAddRound.Visible  = false;
            btnSendEmail.Visible = false;
            break;

        case "Current":
            btnAddRound.Visible  = false;
            btnSendEmail.Visible = false;
            break;
        }
    }
Example #3
0
 protected void RadTabStrip1_TabClick(object sender, Telerik.Web.UI.RadTabStripEventArgs e)
 {
     if (Session["SML_SHOP_LAST_TAB"] != null)
     {
         RadMultiPage1.SelectedIndex = Int32.Parse(Session["SML_SHOP_LAST_TAB"].ToString());
         RadTabStrip1.SelectedIndex  = Int32.Parse(Session["SML_SHOP_LAST_TAB"].ToString());
     }
 }
Example #4
0
        protected void rtsCenterOptions_TabClick(object sender, Telerik.Web.UI.RadTabStripEventArgs e)
        {
            rmpCenterOptions.SelectedIndex = rtsCenterOptions.SelectedTab.TabIndex;

            /*if(rtsCenterOptions.SelectedIndex == 1)
             * {
             *  rgCoopFunding.Rebind();
             * }*/
        }
Example #5
0
    protected void rtabEntry_TabClick(object sender, Telerik.Web.UI.RadTabStripEventArgs e)
    {
        //Telerik.Web.UI.RadTab TabClicked = e.Tab;
        //string tabvalue = TabClicked.Value;

        //ViewState["TabFilterValue"] = tabvalue;
        //ViewState["AdvanceSearch"] = "";
        //BindEntry(true);
    }
Example #6
0
    protected void rtabUser_TabClick(object sender, Telerik.Web.UI.RadTabStripEventArgs e)
    {
        Telerik.Web.UI.RadTab TabClicked = e.Tab;
        string tabvalue = TabClicked.Value;

        radGridUser.MasterTableView.SortExpressions.Clear();

        ViewState["TabFilterValue"] = tabvalue;
        ViewState["AdvanceSearch"]  = "";
        BindGrid(true);
    }
Example #7
0
 protected void radTabStrip_TabClick(object sender, Telerik.Web.UI.RadTabStripEventArgs e)
 {
     if (e.Tab.TabStrip.SelectedIndex == 0)
     {
         this.RepSelected.DataSource = this.SelectedRoles;
         this.RepSelected.DataBind();
     }
     else
     {
         this.RepSelected.DataSource = this.SelectedGroups;
         this.RepSelected.DataBind();
     }
 }
Example #8
0
        protected void RadTabStrip1_TabClick(object sender, Telerik.Web.UI.RadTabStripEventArgs e)
        {
            switch (strip.SelectedIndex)
            {
            case 1:
                Response.Redirect("NewAdmin.aspx?SkipCheck=YES", true);
                break;

            case 2:
                Response.Redirect("SuperUser.aspx?SkipCheck=YES", true);
                break;
            }
        }
Example #9
0
        protected void RadTabStrip_EditorBar_TabClick(object sender, Telerik.Web.UI.RadTabStripEventArgs e)
        {
            switch (e.Tab.Value)
            {
            case "Default":
                RadEditor_TextContent.ToolsFile = null;
                break;

            case "BasicTools":
                RadEditor_TextContent.ToolsFile = "~/App_Data/Editor/BasicTools.xml";
                break;
            }
        }
Example #10
0
        protected void RadTabStrip1_TabClick(object sender, Telerik.Web.UI.RadTabStripEventArgs e)
        {
            if (CurrentPath.ToUpper().Equals("/WEB_PROJECTS/NEWHIREWIZARD/ACCOUNT_DIVISION_CLASS_PAYSCHEDULE.ASPX"))
            {
                (wPage.FindControl("RequiredFieldValidator1") as RequiredFieldValidator).Enabled  = true;
                (wPage.FindControl("RequiredFieldValidator3") as RequiredFieldValidator).Enabled  = true;
                (wPage.FindControl("RequiredFieldValidator4") as RequiredFieldValidator).Enabled  = true;
                (wPage.FindControl("RequiredFieldValidator5") as RequiredFieldValidator).Enabled  = true;
                (wPage.FindControl("RequiredFieldValidator6") as RequiredFieldValidator).Enabled  = true;
                (wPage.FindControl("RequiredFieldValidator7") as RequiredFieldValidator).Enabled  = true;
                (wPage.FindControl("RequiredFieldValidator9") as RequiredFieldValidator).Enabled  = true;
                (wPage.FindControl("RequiredFieldValidator10") as RequiredFieldValidator).Enabled = true;
                (wPage.FindControl("RequiredFieldValidator11") as RequiredFieldValidator).Enabled = true;
                (wPage.FindControl("RequiredFieldValidator12") as RequiredFieldValidator).Enabled = true;
                (wPage.FindControl("RequiredFieldValidator13") as RequiredFieldValidator).Enabled = true;
                string strSSN      = (wPage.FindControl("txtSSN") as RadMaskedTextBox).TextWithLiterals;
                string strSSNExist = Data.SSN_Exists_Check_EE(strSSN, SQLStatic.Sessions.GetAccountNumber(session_id), session_id);
                if (!strSSNExist.Equals("1"))
                {
                    string radalertscript =
                        @"<script language='javascript'> Sys.Application.add_load(function(){radalert('You must complete the information on the current page before you may proceed to this tab. You may only use the tab system once you have passed through the page containing the information that corresponds with the tab you clicked.', 560, 200);})</script>";
                    wPage.ClientScript.RegisterStartupScript(this.GetType(), "radalert", radalertscript);

                    //string strerror = "<script>alert('error')</script>";
                    //wPage.ClientScript.RegisterStartupScript(wPage.GetType(), "strerror", strerror);
                    SetCurrentTab(CurrentPath);
                    return;
                }
                wPage.Validate();
                if (!wPage.IsValid)
                {
                    string radalertscript =
                        @"<script language='javascript'> Sys.Application.add_load(function(){radalert('You must complete the information on the current page before you may proceed to this tab. You may only use the tab system once you have passed through the page containing the information that corresponds with the tab you clicked.', 560, 200);})</script>";
                    wPage.ClientScript.RegisterStartupScript(this.GetType(), "radalert", radalertscript);

                    //string strerror = "<script>alert('error')</script>";
                    //wPage.ClientScript.RegisterStartupScript(wPage.GetType(), "strerror", strerror);
                    SetCurrentTab(CurrentPath);
                    return;
                }
            }
            Response.Redirect(e.Tab.Value);
        }
Example #11
0
    protected void RadTabStrip1_TabClick(object sender, Telerik.Web.UI.RadTabStripEventArgs e)
    {
        if (e.Tab.Index == 0)
        {
            if (Session["dt_fail1"] != null)
            {
                DataSet ds = new DataSet();
                ds = (DataSet)Session["ds_data1"];
                DataTable dtfail = new DataTable();
                dtfail = (DataTable)Session["dt_fail1"];

                grvExcelData.DataSource = ds.Tables[0];

                grvExcelData.DataBind();
                //grvExcelData1.DataSource = ds.Tables[0];
                //grvExcelData1.DataBind();

                grvExcelData.HeaderRow.Style["color"] = "White";



                for (int i = 0; i < grvExcelData.Rows.Count; i++)
                {
                    if (dtfail.Rows.Count > 0)
                    {
                        //for (int j = 0; j < item.Table.Columns.Count - 1; j++)
                        //{

                        //}
                        if (i % 2 == 0)
                        {
                            grvExcelData.Rows[i].BackColor      = System.Drawing.Color.White;
                            grvExcelData.Rows[i].Style["color"] = "#566D7E";
                        }

                        foreach (DataRow item in dtfail.Rows)
                        {
                            if ((i + 2) == Convert.ToInt32(item["ROWNO"]))
                            {
                                string Column_name = Convert.ToString(item["COLUMNS NAMES"]);
                                int    j           = 0;
                                int    max         = ds.Tables[0].Columns.Count;
                                foreach (DataColumn dc in ds.Tables[0].Columns)
                                {
                                    if (Column_name.Contains(dc.ColumnName))
                                    {
                                        grvExcelData.Rows[i].Cells[j].Style["color"]       = "Red";
                                        grvExcelData.Rows[i].Cells[max - 1].Style["color"] = "Red";
                                        //grvExcelData.Rows[i].BackColor = System.Drawing.Color.Pink;
                                    }
                                    j++;
                                }



                                grvExcelData.Rows[i].Style["color"] = "Green";
                            }
                        }
                    }
                }
            }



            else
            {
                BLL.ShowMessage(this, "No Records are Imported");
                ScriptManager.RegisterStartupScript(this, this.GetType(), Guid.NewGuid().ToString(), "javascript:Close();", true);
            }
            // BLL.ShowMessage(this, "Qualification");
        }
        else if (e.Tab.Index == 1)
        {
            if (Session["dt_fail_FAM1"] != null)
            {
                DataSet ds = new DataSet();
                ds = (DataSet)Session["ds_data_fam1"];
                DataTable dtfail = new DataTable();
                dtfail = (DataTable)Session["dt_fail_FAM1"];

                grvExcelData.DataSource = ds.Tables[0];

                grvExcelData.DataBind();
                //grvExcelData1.DataSource = ds.Tables[0];
                //grvExcelData1.DataBind();

                grvExcelData.HeaderRow.Style["color"] = "White";



                for (int i = 0; i < grvExcelData.Rows.Count; i++)
                {
                    if (dtfail.Rows.Count > 0)
                    {
                        //for (int j = 0; j < item.Table.Columns.Count - 1; j++)
                        //{

                        //}
                        if (i % 2 == 0)
                        {
                            grvExcelData.Rows[i].BackColor      = System.Drawing.Color.White;
                            grvExcelData.Rows[i].Style["color"] = "#566D7E";
                        }

                        foreach (DataRow item in dtfail.Rows)
                        {
                            if ((i + 2) == Convert.ToInt32(item["ROWNO"]))
                            {
                                string Column_name = Convert.ToString(item["COLUMNS NAMES"]);
                                int    j           = 0;
                                int    max         = ds.Tables[0].Columns.Count;
                                foreach (DataColumn dc in ds.Tables[0].Columns)
                                {
                                    if (Column_name.Contains(dc.ColumnName))
                                    {
                                        grvExcelData.Rows[i].Cells[j].Style["color"]       = "Red";
                                        grvExcelData.Rows[i].Cells[max - 1].Style["color"] = "Red";
                                        //grvExcelData.Rows[i].BackColor = System.Drawing.Color.Pink;
                                    }
                                    j++;
                                }



                                grvExcelData.Rows[i].Style["color"] = "Green";
                            }
                        }
                    }
                }
            }
        }


        else if (e.Tab.Index == 2)
        {
            if (Session["dt_fail_weof1"] != null)
            {
                DataSet ds = new DataSet();
                ds = (DataSet)Session["ds_data_weof1"];
                DataTable dtfail = new DataTable();
                dtfail = (DataTable)Session["dt_fail_weof1"];

                grvExcelData.DataSource = ds.Tables[0];

                grvExcelData.DataBind();
                //grvExcelData1.DataSource = ds.Tables[0];
                //grvExcelData1.DataBind();

                grvExcelData.HeaderRow.Style["color"] = "White";



                for (int i = 0; i < grvExcelData.Rows.Count; i++)
                {
                    if (dtfail.Rows.Count > 0)
                    {
                        //for (int j = 0; j < item.Table.Columns.Count - 1; j++)
                        //{

                        //}
                        if (i % 2 == 0)
                        {
                            grvExcelData.Rows[i].BackColor      = System.Drawing.Color.White;
                            grvExcelData.Rows[i].Style["color"] = "#566D7E";
                        }

                        foreach (DataRow item in dtfail.Rows)
                        {
                            if ((i + 2) == Convert.ToInt32(item["ROWNO"]))
                            {
                                string Column_name = Convert.ToString(item["COLUMNS NAMES"]);
                                int    j           = 0;
                                int    max         = ds.Tables[0].Columns.Count;
                                foreach (DataColumn dc in ds.Tables[0].Columns)
                                {
                                    if (Column_name.Contains(dc.ColumnName))
                                    {
                                        grvExcelData.Rows[i].Cells[j].Style["color"]       = "Red";
                                        grvExcelData.Rows[i].Cells[max - 1].Style["color"] = "Red";
                                        //grvExcelData.Rows[i].BackColor = System.Drawing.Color.Pink;
                                    }
                                    j++;
                                }



                                grvExcelData.Rows[i].Style["color"] = "Green";
                            }
                        }
                    }
                }
            }
        }
        else if (e.Tab.Index == 3)
        {
            if (Session["dt_fail_od1"] != null)
            {
                DataSet ds = new DataSet();
                ds = (DataSet)Session["ds_data_od1"];
                DataTable dtfail = new DataTable();
                dtfail = (DataTable)Session["dt_fail_od1"];

                grvExcelData.DataSource = ds.Tables[0];

                grvExcelData.DataBind();
                //grvExcelData1.DataSource = ds.Tables[0];
                //grvExcelData1.DataBind();

                grvExcelData.HeaderRow.Style["color"] = "White";



                for (int i = 0; i < grvExcelData.Rows.Count; i++)
                {
                    if (dtfail.Rows.Count > 0)
                    {
                        //for (int j = 0; j < item.Table.Columns.Count - 1; j++)
                        //{

                        //}
                        if (i % 2 == 0)
                        {
                            grvExcelData.Rows[i].BackColor      = System.Drawing.Color.White;
                            grvExcelData.Rows[i].Style["color"] = "#566D7E";
                        }

                        foreach (DataRow item in dtfail.Rows)
                        {
                            if ((i + 2) == Convert.ToInt32(item["ROWNO"]))
                            {
                                string Column_name = Convert.ToString(item["COLUMNS NAMES"]);
                                int    j           = 0;
                                int    max         = ds.Tables[0].Columns.Count;
                                foreach (DataColumn dc in ds.Tables[0].Columns)
                                {
                                    if (Column_name.Contains(dc.ColumnName))
                                    {
                                        grvExcelData.Rows[i].Cells[j].Style["color"] = "Red";
                                        //grvExcelData.Rows[i].BackColor = System.Drawing.Color.Pink;
                                        grvExcelData.Rows[i].Cells[max - 1].Style["color"] = "Red";
                                    }
                                    j++;
                                }



                                grvExcelData.Rows[i].Style["color"] = "Green";
                            }
                        }
                    }
                }
            }
        }



        else if (e.Tab.Index == 4)
        {
            if (Session["dt_fail_phd1"] != null)
            {
                DataSet ds = new DataSet();
                ds = (DataSet)Session["ds_data_phd1"];
                DataTable dtfail = new DataTable();
                dtfail = (DataTable)Session["dt_fail_phd1"];

                grvExcelData.DataSource = ds.Tables[0];

                grvExcelData.DataBind();
                //grvExcelData1.DataSource = ds.Tables[0];
                //grvExcelData1.DataBind();

                grvExcelData.HeaderRow.Style["color"] = "White";



                for (int i = 0; i < grvExcelData.Rows.Count; i++)
                {
                    if (dtfail.Rows.Count > 0)
                    {
                        //for (int j = 0; j < item.Table.Columns.Count - 1; j++)
                        //{

                        //}
                        if (i % 2 == 0)
                        {
                            grvExcelData.Rows[i].BackColor      = System.Drawing.Color.White;
                            grvExcelData.Rows[i].Style["color"] = "#566D7E";
                        }

                        foreach (DataRow item in dtfail.Rows)
                        {
                            if ((i + 2) == Convert.ToInt32(item["ROWNO"]))
                            {
                                string Column_name = Convert.ToString(item["COLUMNS NAMES"]);
                                int    j           = 0;
                                int    max         = ds.Tables[0].Columns.Count;
                                foreach (DataColumn dc in ds.Tables[0].Columns)
                                {
                                    if (Column_name.Contains(dc.ColumnName))
                                    {
                                        grvExcelData.Rows[i].Cells[j].Style["color"] = "Red";
                                        //grvExcelData.Rows[i].BackColor = System.Drawing.Color.Pink;
                                        grvExcelData.Rows[i].Cells[max - 1].Style["color"] = "Red";
                                    }
                                    j++;
                                }

                                grvExcelData.Rows[i].Cells[max - 1].Style["color"] = "Red";

                                grvExcelData.Rows[i].Style["color"] = "Green";
                            }
                        }
                    }
                }
            }
        }
        else if (e.Tab.Index == 5)
        {
            if (Session["DT_FAIL_QUALI1"] != null)
            {
                DataSet ds = new DataSet();
                ds = (DataSet)Session["DT_DATA_QUALI1"];
                DataTable dtfail = new DataTable();
                dtfail = (DataTable)Session["DT_FAIL_QUALI1"];

                grvExcelData.DataSource = ds.Tables[0];

                grvExcelData.DataBind();
                //grvExcelData1.DataSource = ds.Tables[0];
                //grvExcelData1.DataBind();

                grvExcelData.HeaderRow.Style["color"] = "White";



                for (int i = 0; i < grvExcelData.Rows.Count; i++)
                {
                    if (dtfail.Rows.Count > 0)
                    {
                        //for (int j = 0; j < item.Table.Columns.Count - 1; j++)
                        //{

                        //}
                        if (i % 2 == 0)
                        {
                            grvExcelData.Rows[i].BackColor      = System.Drawing.Color.White;
                            grvExcelData.Rows[i].Style["color"] = "#566D7E";
                        }

                        foreach (DataRow item in dtfail.Rows)
                        {
                            if ((i + 2) == Convert.ToInt32(item["ROWNO"]))
                            {
                                string Column_name = Convert.ToString(item["COLUMNS NAMES"]);
                                int    j           = 0;
                                int    max         = ds.Tables[0].Columns.Count;
                                foreach (DataColumn dc in ds.Tables[0].Columns)
                                {
                                    if (Column_name.Contains(dc.ColumnName))
                                    {
                                        grvExcelData.Rows[i].Cells[j].Style["color"]       = "Red";
                                        grvExcelData.Rows[i].Cells[max - 1].Style["color"] = "Red";
                                        //grvExcelData.Rows[i].BackColor = System.Drawing.Color.Pink;
                                    }
                                    j++;
                                }

                                grvExcelData.Rows[i].Cells[max - 1].Style["color"] = "Red";

                                grvExcelData.Rows[i].Style["color"] = "Green";
                            }
                        }
                    }
                }
            }
        }


        else if (e.Tab.Index == 6)
        {
            if (Session["DT_FAIL_SKILLS1"] != null)
            {
                DataSet ds = new DataSet();
                ds = (DataSet)Session["DT_DATA_SKILLS1"];
                DataTable dtfail = new DataTable();
                dtfail = (DataTable)Session["DT_FAIL_SKILLS1"];

                grvExcelData.DataSource = ds.Tables[0];

                grvExcelData.DataBind();
                //grvExcelData1.DataSource = ds.Tables[0];
                //grvExcelData1.DataBind();

                grvExcelData.HeaderRow.Style["color"] = "White";



                for (int i = 0; i < grvExcelData.Rows.Count; i++)
                {
                    if (dtfail.Rows.Count > 0)
                    {
                        //for (int j = 0; j < item.Table.Columns.Count - 1; j++)
                        //{

                        //}
                        if (i % 2 == 0)
                        {
                            grvExcelData.Rows[i].BackColor      = System.Drawing.Color.White;
                            grvExcelData.Rows[i].Style["color"] = "#566D7E";
                        }

                        foreach (DataRow item in dtfail.Rows)
                        {
                            if ((i + 2) == Convert.ToInt32(item["ROWNO"]))
                            {
                                string Column_name = Convert.ToString(item["COLUMNS NAMES"]);
                                int    j           = 0;
                                int    max         = ds.Tables[0].Columns.Count;
                                foreach (DataColumn dc in ds.Tables[0].Columns)
                                {
                                    if (Column_name.Contains(dc.ColumnName))
                                    {
                                        grvExcelData.Rows[i].Cells[j].Style["color"] = "Red";
                                        //grvExcelData.Rows[i].BackColor = System.Drawing.Color.Pink;
                                        grvExcelData.Rows[i].Cells[max - 1].Style["color"] = "Red";
                                    }
                                    j++;
                                }



                                grvExcelData.Rows[i].Style["color"] = "Green";
                            }
                        }
                    }
                }
            }



            else
            {
                BLL.ShowMessage(this, "No Records are Imported");
                ScriptManager.RegisterStartupScript(this, this.GetType(), Guid.NewGuid().ToString(), "javascript:Close();", true);
            }
        }

        else if (e.Tab.Index == 7)
        {
            if (Session["DT_FAIL_EXPERIANCE1"] != null)
            {
                DataSet ds = new DataSet();
                ds = (DataSet)Session["DT_DATA_EXPERIANCE1"];
                DataTable dtfail = new DataTable();
                dtfail = (DataTable)Session["DT_FAIL_EXPERIANCE1"];

                grvExcelData.DataSource = ds.Tables[0];

                grvExcelData.DataBind();
                //grvExcelData1.DataSource = ds.Tables[0];
                //grvExcelData1.DataBind();

                if (dtfail.Rows.Count > 0)
                {
                    grvExcelData.HeaderRow.Style["color"] = "White";
                }
                else
                {
                }

                //    grvExcelData.HeaderRow.Style["color"] = "White";



                for (int i = 0; i < grvExcelData.Rows.Count; i++)
                {
                    if (dtfail.Rows.Count > 0)
                    {
                        //for (int j = 0; j < item.Table.Columns.Count - 1; j++)
                        //{

                        //}
                        if (i % 2 == 0)
                        {
                            grvExcelData.Rows[i].BackColor      = System.Drawing.Color.White;
                            grvExcelData.Rows[i].Style["color"] = "#566D7E";
                        }

                        foreach (DataRow item in dtfail.Rows)
                        {
                            if ((i + 2) == Convert.ToInt32(item["ROWNO"]))
                            {
                                string Column_name = Convert.ToString(item["COLUMNS NAMES"]);
                                int    j           = 0;
                                int    max         = ds.Tables[0].Columns.Count;
                                foreach (DataColumn dc in ds.Tables[0].Columns)
                                {
                                    if (Column_name.Contains(dc.ColumnName))
                                    {
                                        grvExcelData.Rows[i].Cells[j].Style["color"] = "Red";
                                        //grvExcelData.Rows[i].BackColor = System.Drawing.Color.Pink;
                                        grvExcelData.Rows[i].Cells[max - 1].Style["color"] = "Red";
                                    }

                                    j++;
                                }



                                grvExcelData.Rows[i].Style["color"] = "Green";
                            }
                        }
                    }
                }
            }



            else
            {
                BLL.ShowMessage(this, "No Records are Imported");
                ScriptManager.RegisterStartupScript(this, this.GetType(), Guid.NewGuid().ToString(), "javascript:Close();", true);
            }
        }
        else if (e.Tab.Index == 8)
        {
            if (Session["DT_FAIL_CONTACT1"] != null)
            {
                DataSet ds = new DataSet();
                ds = (DataSet)Session["DT_DATA_CONTACT1"];
                DataTable dtfail = new DataTable();
                dtfail = (DataTable)Session["DT_FAIL_CONTACT1"];

                grvExcelData.DataSource = ds.Tables[0];

                grvExcelData.DataBind();
                //grvExcelData1.DataSource = ds.Tables[0];
                //grvExcelData1.DataBind();
                if (dtfail.Rows.Count > 0)
                {
                    grvExcelData.HeaderRow.Style["color"] = "White";
                }
                else
                {
                }



                for (int i = 0; i < grvExcelData.Rows.Count; i++)
                {
                    if (dtfail.Rows.Count > 0)
                    {
                        //for (int j = 0; j < item.Table.Columns.Count - 1; j++)
                        //{

                        //}
                        if (i % 2 == 0)
                        {
                            grvExcelData.Rows[i].BackColor      = System.Drawing.Color.White;
                            grvExcelData.Rows[i].Style["color"] = "#566D7E";
                        }

                        foreach (DataRow item in dtfail.Rows)
                        {
                            if ((i + 2) == Convert.ToInt32(item["ROWNO"]))
                            {
                                string Column_name = Convert.ToString(item["COLUMNS NAMES"]);
                                int    j           = 0;
                                int    max         = ds.Tables[0].Columns.Count;
                                foreach (DataColumn dc in ds.Tables[0].Columns)
                                {
                                    if (Column_name.Contains(dc.ColumnName))
                                    {
                                        grvExcelData.Rows[i].Cells[j].Style["color"] = "Red";
                                        //grvExcelData.Rows[i].BackColor = System.Drawing.Color.Pink;
                                        grvExcelData.Rows[i].Cells[max - 1].Style["color"] = "Red";
                                    }
                                    j++;
                                }



                                grvExcelData.Rows[i].Style["color"] = "Green";
                            }
                        }
                    }
                }
            }



            else
            {
                BLL.ShowMessage(this, "No Records are Imported");
                ScriptManager.RegisterStartupScript(this, this.GetType(), Guid.NewGuid().ToString(), "javascript:Close();", true);
            }
        }

        else if (e.Tab.Index == 9)
        {
            if (Session["DT_FAIL_LANGUAGE1"] != null)
            {
                DataSet ds = new DataSet();
                ds = (DataSet)Session["DT_DATA_LANGUAGE1"];
                DataTable dtfail = new DataTable();
                dtfail = (DataTable)Session["DT_FAIL_LANGUAGE1"];

                grvExcelData.DataSource = ds.Tables[0];

                grvExcelData.DataBind();
                //grvExcelData1.DataSource = ds.Tables[0];
                //grvExcelData1.DataBind();

                grvExcelData.HeaderRow.Style["color"] = "White";



                for (int i = 0; i < grvExcelData.Rows.Count; i++)
                {
                    if (dtfail.Rows.Count > 0)
                    {
                        //for (int j = 0; j < item.Table.Columns.Count - 1; j++)
                        //{

                        //}
                        if (i % 2 == 0)
                        {
                            grvExcelData.Rows[i].BackColor      = System.Drawing.Color.White;
                            grvExcelData.Rows[i].Style["color"] = "#566D7E";
                        }

                        foreach (DataRow item in dtfail.Rows)
                        {
                            if ((i + 2) == Convert.ToInt32(item["ROWNO"]))
                            {
                                string Column_name = Convert.ToString(item["COLUMNS NAMES"]);
                                int    j           = 0;
                                int    max         = ds.Tables[0].Columns.Count;
                                foreach (DataColumn dc in ds.Tables[0].Columns)
                                {
                                    if (Column_name.Contains(dc.ColumnName))
                                    {
                                        grvExcelData.Rows[i].Cells[j].Style["color"] = "Red";
                                        //grvExcelData.Rows[i].BackColor = System.Drawing.Color.Pink;
                                        grvExcelData.Rows[i].Cells[max - 1].Style["color"] = "Red";
                                    }
                                    j++;
                                }



                                grvExcelData.Rows[i].Style["color"] = "Green";
                            }
                        }
                    }
                }
            }



            else
            {
                BLL.ShowMessage(this, "No Records are Imported");
                ScriptManager.RegisterStartupScript(this, this.GetType(), Guid.NewGuid().ToString(), "javascript:Close();", true);
            }
        }
    }
 protected void RadTabStrip1_TabClick(object sender, Telerik.Web.UI.RadTabStripEventArgs e)
 {
     Session["LAST_TAB"] = RadTabStrip1.SelectedIndex;
 }
Example #13
0
 protected void rtsCustomerOptions_TabClick(object sender, Telerik.Web.UI.RadTabStripEventArgs e)
 {
     rmpCustomerOptions.SelectedIndex = rtsCustomerOptions.SelectedTab.TabIndex;
     PageDataBind();
 }
Example #14
0
    protected void RadTabStrip1_TabClick(object sender, Telerik.Web.UI.RadTabStripEventArgs e)
    {
        try
        {
            if (e.Tab.Index == 0)
            {
                if (Session["dt_fail_per"] != null)
                {
                    DataSet ds = new DataSet();
                    ds = (DataSet)Session["ds_data_per"];
                    DataTable dtfail = new DataTable();
                    dtfail = (DataTable)Session["dt_fail_per"];

                    grvExcelData.DataSource = ds.Tables[0];

                    grvExcelData.DataBind();
                    //grvExcelData1.DataSource = ds.Tables[0];
                    //grvExcelData1.DataBind();

                    grvExcelData.HeaderRow.Style["color"] = "White";



                    for (int i = 0; i < grvExcelData.Rows.Count; i++)
                    {
                        if (dtfail.Rows.Count > 0)
                        {
                            //for (int j = 0; j < item.Table.Columns.Count - 1; j++)
                            //{

                            //}
                            if (i % 2 == 0)
                            {
                                grvExcelData.Rows[i].BackColor      = System.Drawing.Color.White;
                                grvExcelData.Rows[i].Style["color"] = "#566D7E";
                            }

                            foreach (DataRow item in dtfail.Rows)
                            {
                                if ((i + 2) == Convert.ToInt32(item["ROWNO"]))
                                {
                                    string Column_name = Convert.ToString(item["COLUMNS NAMES"]);
                                    int    j           = 0;
                                    int    max         = ds.Tables[0].Columns.Count;

                                    foreach (DataColumn dc in ds.Tables[0].Columns)
                                    {
                                        if (Column_name.Contains(dc.ColumnName))
                                        {
                                            grvExcelData.Rows[i].Cells[j].Style["color"] = "Red";
                                            //grvExcelData.Rows[i].BackColor = System.Drawing.Color.Pink;
                                            grvExcelData.Rows[i].Cells[max - 1].Style["color"] = "Red";
                                        }
                                        j++;
                                    }



                                    grvExcelData.Rows[i].Style["color"] = "Green";
                                }
                            }
                        }
                    }
                }



                else
                {
                    BLL.ShowMessage(this, "No Records are Imported");
                    ScriptManager.RegisterStartupScript(this, this.GetType(), Guid.NewGuid().ToString(), "javascript:Close();", true);
                }
                // BLL.ShowMessage(this, "Qualification");
            }



            else if (e.Tab.Index == 1)
            {
                if (Session["DT_FAIL_QUALI"] != null)
                {
                    DataSet ds = new DataSet();
                    ds = (DataSet)Session["DT_DATA_QUALI"];
                    DataTable dtfail = new DataTable();
                    dtfail = (DataTable)Session["DT_FAIL_QUALI"];

                    grvExcelData.DataSource = ds.Tables[0];

                    grvExcelData.DataBind();
                    //grvExcelData1.DataSource = ds.Tables[0];
                    //grvExcelData1.DataBind();

                    grvExcelData.HeaderRow.Style["color"] = "White";



                    for (int i = 0; i < grvExcelData.Rows.Count; i++)
                    {
                        if (dtfail.Rows.Count > 0)
                        {
                            //for (int j = 0; j < item.Table.Columns.Count - 1; j++)
                            //{

                            //}
                            if (i % 2 == 0)
                            {
                                grvExcelData.Rows[i].BackColor      = System.Drawing.Color.White;
                                grvExcelData.Rows[i].Style["color"] = "#566D7E";
                            }

                            foreach (DataRow item in dtfail.Rows)
                            {
                                if ((i + 2) == Convert.ToInt32(item["ROWNO"]))
                                {
                                    string Column_name = Convert.ToString(item["COLUMNS NAMES"]);
                                    int    j           = 0;
                                    int    max         = ds.Tables[0].Columns.Count;
                                    foreach (DataColumn dc in ds.Tables[0].Columns)
                                    {
                                        if (Column_name.Contains(dc.ColumnName))
                                        {
                                            grvExcelData.Rows[i].Cells[j].Style["color"] = "Red";
                                            //grvExcelData.Rows[i].BackColor = System.Drawing.Color.Pink;
                                            grvExcelData.Rows[i].Cells[max - 1].Style["color"] = "Red";
                                        }
                                        j++;
                                    }



                                    grvExcelData.Rows[i].Style["color"] = "Green";
                                }
                            }
                        }
                    }
                }
            }


            else if (e.Tab.Index == 2)
            {
                if (Session["DT_FAIL_SKILLS"] != null)
                {
                    DataSet ds = new DataSet();
                    ds = (DataSet)Session["DT_DATA_SKILLS"];
                    DataTable dtfail = new DataTable();
                    dtfail = (DataTable)Session["DT_FAIL_SKILLS"];

                    grvExcelData.DataSource = ds.Tables[0];

                    grvExcelData.DataBind();
                    //grvExcelData1.DataSource = ds.Tables[0];
                    //grvExcelData1.DataBind();

                    grvExcelData.HeaderRow.Style["color"] = "White";



                    for (int i = 0; i < grvExcelData.Rows.Count; i++)
                    {
                        if (dtfail.Rows.Count > 0)
                        {
                            //for (int j = 0; j < item.Table.Columns.Count - 1; j++)
                            //{

                            //}
                            if (i % 2 == 0)
                            {
                                grvExcelData.Rows[i].BackColor      = System.Drawing.Color.White;
                                grvExcelData.Rows[i].Style["color"] = "#566D7E";
                            }

                            foreach (DataRow item in dtfail.Rows)
                            {
                                if ((i + 2) == Convert.ToInt32(item["ROWNO"]))
                                {
                                    string Column_name = Convert.ToString(item["COLUMNS NAMES"]);
                                    int    j           = 0;
                                    int    max         = ds.Tables[0].Columns.Count;
                                    foreach (DataColumn dc in ds.Tables[0].Columns)
                                    {
                                        if (Column_name.Contains(dc.ColumnName))
                                        {
                                            grvExcelData.Rows[i].Cells[j].Style["color"] = "Red";
                                            //grvExcelData.Rows[i].BackColor = System.Drawing.Color.Pink;
                                            grvExcelData.Rows[i].Cells[max - 1].Style["color"] = "Red";
                                        }
                                        j++;
                                    }



                                    grvExcelData.Rows[i].Style["color"] = "Green";
                                }
                            }
                        }
                    }
                }



                else
                {
                    BLL.ShowMessage(this, "No Records are Imported");
                    ScriptManager.RegisterStartupScript(this, this.GetType(), Guid.NewGuid().ToString(), "javascript:Close();", true);
                }
            }

            else if (e.Tab.Index == 3)
            {
                if (Session["DT_FAIL_EXPERIANCE"] != null)
                {
                    DataSet ds = new DataSet();
                    ds = (DataSet)Session["DT_DATA_EXPERIANCE"];
                    DataTable dtfail = new DataTable();
                    dtfail = (DataTable)Session["DT_FAIL_EXPERIANCE"];

                    grvExcelData.DataSource = ds.Tables[0];

                    grvExcelData.DataBind();
                    //grvExcelData1.DataSource = ds.Tables[0];
                    //grvExcelData1.DataBind();

                    grvExcelData.HeaderRow.Style["color"] = "White";



                    for (int i = 0; i < grvExcelData.Rows.Count; i++)
                    {
                        if (dtfail.Rows.Count > 0)
                        {
                            //for (int j = 0; j < item.Table.Columns.Count - 1; j++)
                            //{

                            //}
                            if (i % 2 == 0)
                            {
                                grvExcelData.Rows[i].BackColor      = System.Drawing.Color.White;
                                grvExcelData.Rows[i].Style["color"] = "#566D7E";
                            }

                            foreach (DataRow item in dtfail.Rows)
                            {
                                if ((i + 2) == Convert.ToInt32(item["ROWNO"]))
                                {
                                    string Column_name = Convert.ToString(item["COLUMNS NAMES"]);
                                    int    j           = 0;
                                    int    max         = ds.Tables[0].Columns.Count;
                                    foreach (DataColumn dc in ds.Tables[0].Columns)
                                    {
                                        if (Column_name.Contains(dc.ColumnName))
                                        {
                                            grvExcelData.Rows[i].Cells[j].Style["color"] = "Red";
                                            //grvExcelData.Rows[i].BackColor = System.Drawing.Color.Pink;
                                            grvExcelData.Rows[i].Cells[max - 1].Style["color"] = "Red";
                                        }
                                        j++;
                                    }



                                    grvExcelData.Rows[i].Style["color"] = "Green";
                                }
                            }
                        }
                    }
                }



                else
                {
                    BLL.ShowMessage(this, "No Records are Imported");
                    ScriptManager.RegisterStartupScript(this, this.GetType(), Guid.NewGuid().ToString(), "javascript:Close();", true);
                }
            }
            else if (e.Tab.Index == 4)
            {
                if (Session["DT_FAIL_CONTACT"] != null)
                {
                    DataSet ds = new DataSet();
                    ds = (DataSet)Session["DT_DATA_CONTACT"];
                    DataTable dtfail = new DataTable();
                    dtfail = (DataTable)Session["DT_FAIL_CONTACT"];

                    grvExcelData.DataSource = ds.Tables[0];

                    grvExcelData.DataBind();
                    //grvExcelData1.DataSource = ds.Tables[0];
                    //grvExcelData1.DataBind();

                    grvExcelData.HeaderRow.Style["color"] = "White";



                    for (int i = 0; i < grvExcelData.Rows.Count; i++)
                    {
                        if (dtfail.Rows.Count > 0)
                        {
                            //for (int j = 0; j < item.Table.Columns.Count - 1; j++)
                            //{

                            //}
                            if (i % 2 == 0)
                            {
                                grvExcelData.Rows[i].BackColor      = System.Drawing.Color.White;
                                grvExcelData.Rows[i].Style["color"] = "#566D7E";
                            }

                            foreach (DataRow item in dtfail.Rows)
                            {
                                if ((i + 2) == Convert.ToInt32(item["ROWNO"]))
                                {
                                    string Column_name = Convert.ToString(item["COLUMNS NAMES"]);
                                    int    j           = 0;
                                    int    max         = ds.Tables[0].Columns.Count;
                                    foreach (DataColumn dc in ds.Tables[0].Columns)
                                    {
                                        if (Column_name.Contains(dc.ColumnName))
                                        {
                                            grvExcelData.Rows[i].Cells[j].Style["color"] = "Red";
                                            //grvExcelData.Rows[i].BackColor = System.Drawing.Color.Pink;
                                            grvExcelData.Rows[i].Cells[max - 1].Style["color"] = "Red";
                                        }
                                        j++;
                                    }



                                    grvExcelData.Rows[i].Style["color"] = "Green";
                                }
                            }
                        }
                    }
                }



                else
                {
                    BLL.ShowMessage(this, "No Records are Imported");
                    ScriptManager.RegisterStartupScript(this, this.GetType(), Guid.NewGuid().ToString(), "javascript:Close();", true);
                }
            }

            else if (e.Tab.Index == 5)
            {
                if (Session["DT_FAIL_LANGUAGE"] != null)
                {
                    DataSet ds = new DataSet();
                    ds = (DataSet)Session["DT_DATA_LANGUAGE"];
                    DataTable dtfail = new DataTable();
                    dtfail = (DataTable)Session["DT_FAIL_LANGUAGE"];

                    grvExcelData.DataSource = ds.Tables[0];

                    grvExcelData.DataBind();
                    //grvExcelData1.DataSource = ds.Tables[0];
                    //grvExcelData1.DataBind();

                    grvExcelData.HeaderRow.Style["color"] = "White";



                    for (int i = 0; i < grvExcelData.Rows.Count; i++)
                    {
                        if (dtfail.Rows.Count > 0)
                        {
                            //for (int j = 0; j < item.Table.Columns.Count - 1; j++)
                            //{

                            //}
                            if (i % 2 == 0)
                            {
                                grvExcelData.Rows[i].BackColor      = System.Drawing.Color.White;
                                grvExcelData.Rows[i].Style["color"] = "#566D7E";
                            }

                            foreach (DataRow item in dtfail.Rows)
                            {
                                if ((i + 2) == Convert.ToInt32(item["ROWNO"]))
                                {
                                    string Column_name = Convert.ToString(item["COLUMNS NAMES"]);
                                    int    j           = 0;
                                    int    max         = ds.Tables[0].Columns.Count;
                                    foreach (DataColumn dc in ds.Tables[0].Columns)
                                    {
                                        if (Column_name.Contains(dc.ColumnName))
                                        {
                                            grvExcelData.Rows[i].Cells[j].Style["color"] = "Red";
                                            //grvExcelData.Rows[i].BackColor = System.Drawing.Color.Pink;
                                            grvExcelData.Rows[i].Cells[max - 1].Style["color"] = "Red";
                                        }
                                        j++;
                                    }



                                    grvExcelData.Rows[i].Style["color"] = "Green";
                                }
                            }
                        }
                    }
                }



                else
                {
                    BLL.ShowMessage(this, "No Records are Imported");
                    ScriptManager.RegisterStartupScript(this, this.GetType(), Guid.NewGuid().ToString(), "javascript:Close();", true);
                }
            }
        }
        catch (Exception ex)
        {
            SMHR.BLL.Error_Log(Session["USER_ID"].ToString(), ex.TargetSite.ToString(), ex.Message.Replace("'", "''"), "Applicanterror", ex.StackTrace, DateTime.Now);
            Response.Redirect("~/Frm_ErrorPage.aspx");
        }
    }
Example #15
0
 protected void rtsAdminOptions_TabClick(object sender, Telerik.Web.UI.RadTabStripEventArgs e)
 {
     rmpAdminOptions.SelectedIndex = rtsAdminOptions.SelectedIndex;
     SetCenterInformation();
     BindGrids();
 }
Example #16
0
 protected void rtsSiteOptions_TabClick(object sender, Telerik.Web.UI.RadTabStripEventArgs e)
 {
     rmpSiteOptions.SelectedIndex = rtsSiteOptions.SelectedIndex;
 }
 protected void TabChanging(object sender, Telerik.Web.UI.RadTabStripEventArgs e)
 {
     BindTab();
 }