示例#1
0
        protected void ddlTranType_SelectedIndexChanged(object sender, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)
        {
            //string strTransactionType = string.Empty;
            RadComboBox dropdown = sender as RadComboBox;

            ViewState["SystematicType"] = dropdown.SelectedValue;
            if (ViewState["SystematicType"] != "")
            {
                GridColumn column = gvSystematicTransactions.MasterTableView.GetColumnSafe("SystematicType");
                column.CurrentFilterFunction = GridKnownFunction.EqualTo;
                gvSystematicTransactions.CurrentPageIndex = 0;
                gvSystematicTransactions.MasterTableView.Rebind();
            }
            else
            {
                GridColumn column = gvSystematicTransactions.MasterTableView.GetColumnSafe("SystematicType");
                column.CurrentFilterFunction = GridKnownFunction.EqualTo;
                gvSystematicTransactions.CurrentPageIndex = 0;
                gvSystematicTransactions.MasterTableView.Rebind();
            }
            //GridHeaderItem headerItem = gvSystematicTransactions.MasterTableView.GetItems(GridItemType.Header)[0] as GridHeaderItem;
            //DropDownList ddl = headerItem.FindControl("ddlTranType") as DropDownList;
            //if (ddl != null)
            //{
            //    hdnDdlTranTypeSelectedValue.Value = ddl.SelectedValue;
            //}
            SetSystematicTransactions();
            hdnDdlTranTypeSelectedValue.Value = string.Empty;
        }
 protected void rcmb_Period_SelectedIndexChanged(object o, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)
 {
     try
     {
         if (rcmb_Period.SelectedIndex > 0)
         {
             if (Convert.ToString(Session["SELFSERVICE"]) == "ADMIN")
             {
                 LoadCombos();
             }
             else
             {
                 LoadCombos();
             }
         }
         else
         {
             if (Convert.ToString(Session["SELFSERVICE"]) == "ADMIN")
             {
                 rcmb_PeriodElements.Items.Clear();
                 rcmb_PeriodElements.Items.Insert(0, new RadComboBoxItem(""));
             }
             else
             {
                 rcmb_PeriodElements.Items.Clear();
                 rcmb_PeriodElements.Items.Insert(0, new RadComboBoxItem(""));
             }
         }
     }
     catch (Exception ex)
     {
         SMHR.BLL.Error_Log(Session["USER_ID"].ToString(), ex.TargetSite.ToString(), ex.Message.Replace("'", "''"), "CmprsnRptWithPrevMnth", ex.StackTrace, DateTime.Now);
         Response.Redirect("~/Frm_ErrorPage.aspx");
     }
 }
示例#3
0
 protected void RadDepartment_SelectedIndexChanged(object o, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)
 {
     try
     {
         if (RadDepartment.SelectedIndex > 0)
         {
             if (!HideEmployee)
             {
                 //To populate employee details
                 DataSet ds = BLL.GetEmployeeFilterDetails(organisationID, Convert.ToInt32(RadBusinessUnit.SelectedValue), Convert.ToInt32(RadDirectorate.SelectedValue), Convert.ToInt32(RadDepartment.SelectedValue));
                 BindEmployee(ds.Tables[3]);
             }
         }
         else
         {
             DataSet ds = BLL.GetEmployeeFilterDetails(organisationID, Convert.ToInt32(RadBusinessUnit.SelectedValue), Convert.ToInt32(RadDirectorate.SelectedValue), null);
             BindEmployee(ds.Tables[3]);
             RadComboBox rcbparent = (RadComboBox)Parent.FindControl("radGradeName");
             if (rcbparent != null)
             {
                 rcbparent.Items.Clear();
                 rcbparent.ClearSelection();
             }
         }
     }
     catch (Exception ex)
     {
         SMHR.BLL.Error_Log(Session["USER_ID"].ToString(), ex.TargetSite.ToString(), ex.Message.Replace("'", "''"), "BUFilter", ex.StackTrace, DateTime.Now);
         Response.Redirect("~/Frm_ErrorPage.aspx");
     }
 }
 protected void rcmb_BusinessUnit_SelectedIndexChanged(object o, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)
 {
     try
     {
         if (rcmb_BusinessUnit.SelectedIndex > 0)
         {
             _obj_smhr_businessunit                 = new SMHR_BUSINESSUNIT();
             _obj_smhr_businessunit.OPERATION       = operation.EMPTY1;
             _obj_smhr_businessunit.ORGANISATION_ID = Convert.ToInt32(Session["ORG_ID"]);
             _obj_smhr_businessunit.BUSINESSUNIT_ID = Convert.ToInt32(rcmb_BusinessUnit.SelectedValue);
             DataTable dt = BLL.get_BusinessUnit(_obj_smhr_businessunit);
             rcmb_FromCurrency.DataSource     = dt;
             rcmb_FromCurrency.DataTextField  = "CURR_CODE";
             rcmb_FromCurrency.DataValueField = "BUSINESSUNIT_CURRENCY_ID";
             rcmb_FromCurrency.DataBind();
             rcmb_FromCurrency.Items.Insert(0, new RadComboBoxItem("Select"));
         }
         else
         {
             rcmb_FromCurrency.ClearSelection();
             rcmb_FromCurrency.Items.Clear();
             rcmb_FromCurrency.Items.Insert(0, new Telerik.Web.UI.RadComboBoxItem("Select", "0"));
         }
     }
     catch (Exception ex)
     {
         SMHR.BLL.Error_Log(Session["USER_ID"].ToString(), ex.TargetSite.ToString(), ex.Message.Replace("'", "''"), "frmCurrencyConversion", ex.StackTrace, DateTime.Now);
         Response.Redirect("~/Frm_ErrorPage.aspx");
     }
 }
示例#5
0
    protected void RCB_EmployeeName_SelectedIndexChanged(object o, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)
    {
        try
        {
            //if (RCB_EmployeeName.SelectedItem.Text != "Select")
            //{
            //    LoadAppraisalCycle();
            //}

            //else
            //{
            //    Pms_Bll.ShowMessage(this, "Please Select Employee");
            //    DataTable dt3 = new DataTable();
            //    rcm_apprcycle.DataSource = dt3;
            //    rcm_apprcycle.DataBind();

            //    rcm_apprcycle.Items.Insert(0, new Telerik.Web.UI.RadComboBoxItem("Select", "0"));
            //}
        }

        catch (Exception ex)
        {
            SMHR.BLL.Error_Log(Session["USER_ID"].ToString(), ex.TargetSite.ToString(), ex.Message.Replace("'", "''"), "frm_idp", ex.StackTrace, DateTime.Now);
            Response.Redirect("~/Frm_ErrorPage.aspx");
        }
    }
        protected void ddlFlags_SelectedIndexChanged(object sender, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)
        {
            txtComments.Visible = false;
            if (!string.IsNullOrEmpty(ddlFlags.SelectedValue.ToString()))
            {
                BECommon objBEComon = new BECommon();
                BCommon  objBCommon = new BCommon();
                objBEComon.intRoleID  = Convert.ToInt32(Session["RoleID"].ToString());
                objBEComon.intAlertID = Convert.ToInt32(ddlFlags.SelectedValue.ToString());
                objBCommon.BGetAlerts(objBEComon);
                ddlAlerts.DataSource     = objBEComon.DtResult;
                ddlAlerts.DataValueField = "AlertID";
                ddlAlerts.DataTextField  = "AlertText";
                ddlAlerts.DataBind();
            }
            else
            {
                ddlAlerts.Items.Clear();
            }

            //if (ddlFlags.SelectedIndex == 0)
            //{
            //    txtComments.Visible = false;
            //}
        }
    protected void rcmb_Directorate_SelectedIndexChanged(object o, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)
    {
        try
        {
            if (rcmb_Directorate.SelectedIndex > 0)
            {
                DataSet ds = BLL.GetEmployeeFilterDetails(Convert.ToInt32(Session["ORG_ID"]), Convert.ToInt32(rcmb_BusinessUnit.SelectedValue), Convert.ToInt32(rcmb_Directorate.SelectedValue), null);
                BindDepartment(ds.Tables[2]);

                //To populate employee details
                //BindEmployee(ds.Tables[3]);
                LoadEmployees();
            }
            else
            {
                //DataSet ds = BLL.GetEmployeeFilterDetails(Convert.ToInt32(Session["ORG_ID"]), Convert.ToInt32(rcmb_BusinessUnit.SelectedValue), null, null);
                //BindEmployee(ds.Tables[3]);
                LoadEmployees();
                rcmb_Department.Items.Clear();
                rcmb_Department.ClearSelection();
                rcmb_Department.Items.Insert(0, new RadComboBoxItem("Select", "0"));
            }
        }
        catch (Exception ex)
        {
            SMHR.BLL.Error_Log(Session["USER_ID"].ToString(), ex.TargetSite.ToString(), ex.Message.Replace("'", "''"), "frm_PensionFFS", ex.StackTrace, DateTime.Now);
            Response.Redirect("~/Frm_ErrorPage.aspx");
        }
    }
    protected void cboSites_SelectedIndexChanged(object sender, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)
    {
        var site = _siteBL.GetSite(cboSites.SelectedValue);

        txtLocation.Text = site.Location;
        SetEmpty();
    }
    protected void RCM_EMPLOYEE_CLICK(object o, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)
    {
        try
        {
            SMHR_LEAVEBALANCE _obj_Smhr_LeaveBalance = new SMHR_LEAVEBALANCE();
            _obj_Smhr_LeaveBalance.LT_EMPID = Convert.ToInt32(rcmb_Employee.SelectedItem.Value);
            _obj_Smhr_LeaveBalance.MODE     = 0;
            DataTable     dt = BLL.get_leavebalances(_obj_Smhr_LeaveBalance);
            HtmlTableRow  ht_row, ht_row1;
            HtmlTableCell ht_cell;
            ht_row  = new HtmlTableRow();
            ht_row1 = new HtmlTableRow();

            tbl_Leavebalance.Rows.Clear();
            tbl_Leavebalance.Border = 1;
            foreach (DataRow item in dt.Rows)
            {
                ht_cell           = new HtmlTableCell();
                ht_cell.InnerText = Convert.ToString(item["LEAVETYPE"]);
                ht_row.Cells.Add(ht_cell);

                ht_cell           = new HtmlTableCell();
                ht_cell.InnerText = Convert.ToString(item["LT_CURRENTBALANCE"]);
                ht_cell.Align     = "center";
                ht_row1.Cells.Add(ht_cell);
            }
            tbl_Leavebalance.Rows.Add(ht_row);
            tbl_Leavebalance.Rows.Add(ht_row1);
        }
        catch (Exception ex)
        {
            SMHR.BLL.Error_Log(Session["USER_ID"].ToString(), ex.TargetSite.ToString(), ex.Message.Replace("'", "''"), "Frm_leaveBalances", ex.StackTrace, DateTime.Now);
            Response.Redirect("~/Frm_ErrorPage.aspx");
        }
    }
 protected void rCmbEmployee_SelectedIndexChanged(object sender, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)
 {
     if (rCmbEmployee.Items[0].Value != null)
     {
         ucEmployeeCard.LoadEmployeeCard(rCmbEmployee.Items[0].Value);
     }
 }
示例#11
0
    protected void rcbDir_SelectedIndexChanged(object o, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)
    {
        try
        {
            if (rcbDir.SelectedIndex > 0)
            {
                LoadDepartment();
                LoadEmployee();

                rcbDept.Focus();
            }
            else
            {
                rcbDept.Items.Clear();
                rcbEmp.Items.Clear();

                rcbDept.Items.Insert(0, new RadComboBoxItem("Select"));
                rcbEmp.Items.Insert(0, new RadComboBoxItem("Select"));

                LoadEmployee();
            }
        }
        catch (Exception ex)
        {
            SMHR.BLL.Error_Log(Session["USER_ID"].ToString(), ex.TargetSite.ToString(), ex.Message.Replace("'", "''"), "frm_Voluntary_Deduction", ex.StackTrace, DateTime.Now);
            Response.Redirect("~/Frm_ErrorPage.aspx");
        }
    }
示例#12
0
 protected void cmbResident_SelectedIndexChanged(object sender, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)
 {
     try
     {
         DataSet dsDetails = sqlobj.ExecuteSP("SP_TxnDropDownList", new SqlParameter()
         {
             ParameterName = "@iMode", SqlDbType = SqlDbType.Int, Value = 3
         },
                                              new SqlParameter()
         {
             ParameterName = "@SelectedValue", SqlDbType = SqlDbType.NVarChar, Value = cmbResident.SelectedValue.ToString()
         });
         if (dsDetails.Tables[0].Rows.Count > 0)
         {
             lblnm.Text    = dsDetails.Tables[0].Rows[0]["RtName"].ToString();
             lblDrNo.Text  = dsDetails.Tables[0].Rows[0]["RTVillaNo"].ToString();
             lblAccNo.Text = dsDetails.Tables[0].Rows[0]["GLAccount"].ToString();
             lblnm.Visible = true;
             //LabelName.Visible = true;
             //LabelDrNo.Visible = true;
             lblSpace.Visible   = true;
             lblDrNo.Visible    = true;
             LabelAccNo.Visible = true;
             lblAccNo.Visible   = true;
         }
     }
     catch (Exception ex)
     {
         ScriptManager.RegisterClientScriptBlock(this.Page, this.Page.GetType(), "alert", "alert('" + ex.Message.ToString() + "');", true);
     }
 }
    protected void rcbFinPrd_SelectedIndexChanged(object o, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)
    {
        try
        {
            if (rcbFinPrd.SelectedIndex > 0)
            {
                rcbPrdDtl.Items.Clear();

                int finPrd = Convert.ToInt32(rcbFinPrd.SelectedItem.Value);
                LoadPeriodDetailbyFinPrdID(finPrd);

                rcbPrdDtl.Focus();
            }
            else
            {
                rcbPrdDtl.Items.Clear();
                rcbPrdDtl.Items.Insert(0, new RadComboBoxItem("Select"));
            }
        }
        catch (Exception ex)
        {
            SMHR.BLL.Error_Log(Session["USER_ID"].ToString(), ex.TargetSite.ToString(), ex.Message.Replace("'", "''"), "frm_Voluntary_Deduction_Detail", ex.StackTrace, DateTime.Now);
            Response.Redirect("~/Frm_ErrorPage.aspx");
        }
    }
    protected void rcb_BusinessUnit_SelectedIndexChanged(object o, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)
    {
        try
        {
            rcb_Type.Items.Clear();
            rcb_Type.Text = string.Empty;
            LoadIdentificationType();
            rcb_Type.SelectedIndex      = 0;
            rdp_ExpiryDate.SelectedDate = null;
            rdp_IssueDate.SelectedDate  = null;
            rtb_Code.Text             = string.Empty;
            rtxt_IssuedOrg.Text       = string.Empty;
            rtxt_Name.Text            = string.Empty;
            rcb_Type.Enabled          = true;
            rtb_Code.Enabled          = true;
            rtxt_IssuedOrg.Enabled    = true;
            lbl_Message.Visible       = false;
            RG_Identification.Visible = false;

            LoadEmployees();
        }
        catch (Exception ex)
        {
            SMHR.BLL.Error_Log(Session["USER_ID"].ToString(), ex.TargetSite.ToString(), ex.Message.Replace("'", "''"), "frm_Identification", ex.StackTrace, DateTime.Now);
            Response.Redirect("~/Frm_ErrorPage.aspx");
            return;
        }
    }
示例#15
0
    protected void rcmb_EmpReg_BU_SelectedIndexChanged(object o, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)
    {
        try
        {
            rad_Directorate.ClearSelection();
            rad_Directorate.Items.Clear();
            rad_Directorate.Items.Insert(0, new RadComboBoxItem("Select", "0"));
            rad_Department.ClearSelection();
            rad_Department.Items.Clear();
            rad_Department.Items.Insert(0, new RadComboBoxItem("Select", "0"));
            rad_SubDepartment.ClearSelection();
            rad_SubDepartment.Items.Clear();
            rad_SubDepartment.Items.Insert(0, new RadComboBoxItem("Select", "0"));

            if (rcmb_EmpReg_BU.SelectedIndex > 0)
            {
                Load_Directorate();
            }
        }
        catch (Exception ex)
        {
            SMHR.BLL.Error_Log(Session["USER_ID"].ToString(), ex.TargetSite.ToString(), ex.Message.Replace("'", "''"), "frm_Areas", ex.StackTrace, DateTime.Now);
            Response.Redirect("~/Frm_ErrorPage.aspx");
        }
    }
 protected void ccmbProfessionalClass_OnSelectedIndexChanged(object sender, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)
 {
     ctxtTelephone.Text           = "";
     ccmbStudentName.DataSourceID = "SessionDataSource_ccmbStudentName";
     ccmbStudentName.DataBind();
     ccmbStudentName.InsertListItem(0, "---请选择---", "00000000-0000-0000-0000-000000000000");
 }
示例#17
0
 protected void rad_Directorate_SelectedIndexChanged(object o, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)
 {
     try
     {
         if (rad_Directorate.SelectedIndex > 0)
         {
             LoadDepartment();
             LoadEmployees();
         }
         else
         {
             rad_Department.ClearSelection();
             rad_Department.Items.Clear();
             rad_Department.Items.Insert(0, new RadComboBoxItem("Select", "0"));
             rad_SubDepartment.Items.Clear();
             rad_SubDepartment.Items.Insert(0, new RadComboBoxItem("Select", "0"));
             LoadEmployees();
             rdp_DOB.Clear();
             rdp_DOJ.Clear();
             rad_Age.Text = string.Empty;
             //pnl_CalculatePension.Visible = false;
         }
     }
     catch (Exception ex)
     {
         SMHR.BLL.Error_Log(Session["USER_ID"].ToString(), ex.TargetSite.ToString(), ex.Message.Replace("'", "''"), "frmEmployeePensionComputations", ex.StackTrace, DateTime.Now);
         Response.Redirect("~/Frm_ErrorPage.aspx");
     }
 }
示例#18
0
 protected void cboSubcon_SelectedIndexChanged(object sender, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)
 {
     ddWeldRepNo.Items.Clear();
     ddWeldRepNo.Items.Add(new Telerik.Web.UI.RadComboBoxItem("Select any Report", string.Empty));
     ddWeldRepNo.DataBind();
     //lblMessage.Text = "You have selected " + cboSubcon.SelectedValue;
 }
    protected void cboSites_SelectedIndexChanged(object sender, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)
    {
        var site = _siteBL.GetSite(cboSites.SelectedValue);

        //cboConsumers.SelectedValue = site.ConsumerId;
        SetEmpty();
    }
示例#20
0
    protected void rcmb_OTDetPeriodMain_SelectedIndexChanged(object o, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)
    {
        try
        {
            if (rcmb_OTDetPeriodMain.SelectedItem.Text.ToUpper() != "SELECT")
            {
                SMHR_EMPOTTRANS _obj_Smhr_EmpOTTrans = new SMHR_EMPOTTRANS();
                _obj_Smhr_EmpOTTrans.OPERATION            = operation.Update;
                _obj_Smhr_EmpOTTrans.EMPOTTRANS_PERIOD_ID = Convert.ToInt32(rcmb_OTDetPeriodMain.SelectedItem.Value);

                rcmb_OTDetPeriodDetails.Items.Clear();
                rcmb_OTDetPeriodDetails.DataSource     = BLL.get_EmpOTTrans(_obj_Smhr_EmpOTTrans);
                rcmb_OTDetPeriodDetails.DataTextField  = "PRDDTL_NAME";
                rcmb_OTDetPeriodDetails.DataValueField = "PRDDTL_ID";
                rcmb_OTDetPeriodDetails.DataBind();
                rcmb_OTDetPeriodDetails.Items.Insert(0, new Telerik.Web.UI.RadComboBoxItem("Select", "-1"));
            }
            else
            {
                rcmb_OTDetPeriodDetails.Items.Clear();
                rcmb_OTDetPeriodDetails.Items.Insert(0, new Telerik.Web.UI.RadComboBoxItem("Select", "-1"));
            }
        }
        catch (Exception ex)
        {
            SMHR.BLL.Error_Log(Session["USER_ID"].ToString(), ex.TargetSite.ToString(), ex.Message.Replace("'", "''"), "frm_OTDetails", ex.StackTrace, DateTime.Now);
            Response.Redirect("~/Frm_ErrorPage.aspx");
        }
    }
 protected void rcmb_Dept_SelectedIndexChanged(object o, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)
 {
     try
     {
         if (rcmb_Dept.SelectedIndex > 0)
         {
             rcmb_EMP.Items.Clear();
             _obj_Rec_JobRequisition = new RECRUITMENT_JOBREQUISITION();
             _obj_Rec_JobRequisition.JOBREQ_DEPARTMENT = Convert.ToInt32(rcmb_Dept.SelectedItem.Value);
             _obj_Rec_JobRequisition.ORGANISATION_ID   = Convert.ToInt32(Session["ORG_ID"]);
             _obj_Rec_JobRequisition.MODE = 16;
             DataTable dt = Recruitment_BLL.get_JobRequisition(_obj_Rec_JobRequisition);
             if (dt.Rows.Count > 0)
             {
                 rcmb_EMP.DataSource     = dt;
                 rcmb_EMP.DataTextField  = "EMP_NAME";
                 rcmb_EMP.DataValueField = "EMP_ID";
                 rcmb_EMP.DataBind();
                 rcmb_EMP.Items.Insert(0, new Telerik.Web.UI.RadComboBoxItem("Select"));
             }
         }
         else
         {
             rcmb_EMP.ClearSelection();
             rcmb_EMP.Items.Clear();
             rcmb_EMP.Items.Insert(0, new Telerik.Web.UI.RadComboBoxItem("Select", "0"));
         }
     }
     catch (Exception ex)
     {
         SMHR.BLL.Error_Log(Session["USER_ID"].ToString(), ex.TargetSite.ToString(), ex.Message.Replace("'", "''"), "AssignEmpRSL", ex.StackTrace, DateTime.Now);
         Response.Redirect("~/Frm_ErrorPage.aspx");
     }
 }
示例#22
0
 protected void rcmb_Financialperiod_SelectedIndexChanged(object o, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)
 {
     try
     {
         if (rcmb_Businessunit.SelectedIndex > 0)
         {
             if (rcmb_Financialperiod.SelectedIndex > 0)
             {
                 LoadGrid();
                 LoadComponents();
                 //LoadEmpData();
             }
             else
             {
                 BLL.ShowMessage(this, "Select Financialperiod");
                 return;
             }
         }
         else
         {
             rcmb_Financialperiod.ClearSelection();
             BLL.ShowMessage(this, "Select Businessunit");
             return;
         }
     }
     catch (Exception ex)
     {
         SMHR.BLL.Error_Log(Session["USER_ID"].ToString(), ex.TargetSite.ToString(), ex.Message.Replace("'", "''"), "frm_Employeecomp", ex.StackTrace, DateTime.Now);
         Response.Redirect("~/Frm_ErrorPage.aspx");
         return;
     }
 }
示例#23
0
    protected void rcbTranID_SelectedIndexChanged(object o, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)
    {
        try
        {
            rcbEmployee.Items.Clear();
            rcbEmployee.ClearSelection();
            rcbEmployee.Text = string.Empty;

            ClearFields();

            RG_SalaryStruct.Visible = false;

            if (rcbTranID.SelectedIndex > 0)
            {
                DataTable dtEmp = BLL.GetEmpPayItemsNullify(2, rcbTranID.SelectedValue);

                if (dtEmp.Rows.Count != 0)
                {
                    rcbEmployee.DataSource     = dtEmp;
                    rcbEmployee.DataTextField  = "EMP_NAME";
                    rcbEmployee.DataValueField = "EMP_ID";
                    rcbEmployee.DataBind();
                }
                rcbEmployee.Items.Insert(0, new RadComboBoxItem("Select"));
            }
        }
        catch (Exception ex)
        {
            SMHR.BLL.Error_Log(Session["USER_ID"].ToString(), ex.TargetSite.ToString(), ex.Message.Replace("'", "''"), "frmEmpPayElmntNullify", ex.StackTrace, DateTime.Now);
            Response.Redirect("~/Frm_ErrorPage.aspx");
        }
    }
示例#24
0
 protected void rcmb_CourseSchedule_SelectedIndexChanged(object o, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)
 {
     try
     {
         if (rcmb_CourseSchedule.SelectedIndex > 0)
         {
             _obj_smhr_Cost                 = new SMHR_TRAININGCOST();
             _obj_smhr_Cost.OPERATION       = operation.Select1;
             _obj_smhr_Cost.ORGANISATION_ID = Convert.ToInt32(Session["ORG_ID"].ToString());
             DataTable dt = BLL.get_CostType(_obj_smhr_Cost);
             Rg_Costs.DataSource = dt;
             Rg_Costs.DataBind();
             Rg_Costs.Visible = true;
             btn_Save.Visible = true;
         }
         else
         {
             Rg_Costs.Visible = false;
             btn_Save.Visible = false;
         }
     }
     catch (Exception ex)
     {
         SMHR.BLL.Error_Log(Session["USER_ID"].ToString(), ex.TargetSite.ToString(), ex.Message.Replace("'", "''"), "frm_TrainingCosts", ex.StackTrace, DateTime.Now);
         Response.Redirect("~/Frm_ErrorPage.aspx");
     }
 }
示例#25
0
 protected void rcmb_Period_SelectedIndexChanged(object o, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)
 {
     try
     {
         if (rcmb_Period.SelectedIndex != 0)
         {
             SMHR_PERIODDTL _obj_smhr_perioddtl = new SMHR_PERIODDTL();
             _obj_smhr_perioddtl.OPERATION        = operation.Select;
             _obj_smhr_perioddtl.PRDDTL_PERIOD_ID = Convert.ToInt32(rcmb_Period.SelectedItem.Value);
             DataTable dt_Details = BLL.get_PeriodDetails(_obj_smhr_perioddtl);
             if (dt_Details.Rows.Count != 0)
             {
                 rcmb_PeriodElements.DataSource     = dt_Details;
                 rcmb_PeriodElements.DataValueField = "PRDDTL_ID";
                 rcmb_PeriodElements.DataTextField  = "PRDDTL_NAME";
                 rcmb_PeriodElements.DataBind();
                 rcmb_PeriodElements.Items.Insert(0, new RadComboBoxItem("Select"));
             }
         }
         else
         {
             rcmb_PeriodElements.Items.Clear();
         }
     }
     catch (Exception ex)
     {
         SMHR.BLL.Error_Log(Session["USER_ID"].ToString(), ex.TargetSite.ToString(), ex.Message.Replace("'", "''"), "Pay_Slip", ex.StackTrace, DateTime.Now);
         Response.Redirect("~/Frm_ErrorPage.aspx");
     }
 }
        protected void CmbCentro_SelectedIndexChanged1(object o, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)
        {
            try
            {
                Sesion sesion = new Sesion();
                sesion = (Sesion)Session["Sesion" + Session.SessionID];
                CN__Comun comun = new CN__Comun();

                comun.CambiarCdVer(CmbCentro.SelectedItem, ref sesion);
                if (sesion.CalendarioIni >= dpFecha1.MinDate && sesion.CalendarioIni <= dpFecha1.MaxDate)
                {
                    dpFecha1.DbSelectedDate = sesion.CalendarioIni;
                }
                if (sesion.CalendarioFin >= dpFecha2.MinDate && sesion.CalendarioFin <= dpFecha2.MaxDate)
                {
                    dpFecha2.DbSelectedDate = sesion.CalendarioFin;
                }

                Session["Sesion" + Session.SessionID] = sesion;
                rgReclamaciones.Rebind();
            }
            catch (Exception ex)
            {
                ErrorManager(ex, "cmbCentro_SelectedIndexChanged1");
            }
        }
示例#27
0
 protected void rCmbEmployeeArchived_SelectedIndexChanged(object sender, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)
 {
     //if (rCmbEmployeeArchived.Items[0].Value != null)
     //{
     //    this.ucEmployeeCard2.LoadEmployeeCard(rCmbEmployeeArchived.Items[0].Value);
     //}
 }
 protected void rcmb_BusinessUnit_SelectedIndexChanged(object o, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)
 {
     try
     {
         rcmb_Employee.Items.Clear();
         SMHR_LEAVEAPP _obj_Smhr_LeaveApp = new SMHR_LEAVEAPP();
         _obj_Smhr_LeaveApp.MODE            = 2;
         _obj_Smhr_LeaveApp.BUSINESSUNIT_ID = Convert.ToInt32(rcmb_BusinessUnit.SelectedItem.Value);
         DataTable dt = BLL.get_EmpLeaveDetails(_obj_Smhr_LeaveApp);
         rcmb_Employee.DataSource     = dt;
         rcmb_Employee.DataTextField  = "EMPNAME";
         rcmb_Employee.DataValueField = "EMP_ID";
         rcmb_Employee.DataBind();
         rcmb_Employee.Items.Insert(0, new Telerik.Web.UI.RadComboBoxItem("Select", "0"));
         // if we select other businessunit only employees get loading but grid is not refreshing
         rg_EmployeeWise.DataSource = null;
         rg_EmployeeWise.DataBind();
         rg_EmployeeWise.Visible = false;
     }
     catch (Exception ex)
     {
         SMHR.BLL.Error_Log(Session["USER_ID"].ToString(), ex.TargetSite.ToString(), ex.Message.Replace("'", "''"), "frm_leavetran", ex.StackTrace, DateTime.Now);
         Response.Redirect("~/Frm_ErrorPage.aspx");
     }
 }
示例#29
0
    protected void rcmb_Employee_SelectedIndexChanged(object o, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)
    {
        try
        {
            if (rcmb_Employee.SelectedIndex > 0)
            {
                int           empID = Convert.ToInt32(rcmb_Employee.SelectedValue);
                SMHR_EMPLOYEE _obj_smhr_employee = new SMHR_EMPLOYEE();
                _obj_smhr_employee.OPERATION       = operation.Select;
                _obj_smhr_employee.EMP_ID          = empID;
                _obj_smhr_employee.ORGANISATION_ID = Convert.ToInt32(Session["ORG_ID"]);

                DataTable dt_Details = BLL.get_Employee(_obj_smhr_employee);
                if (dt_Details.Rows.Count > 0)
                {
                    LoadBusinessUnits();
                }
                rcmb_BusinessUnit.SelectedIndex = rcmb_BusinessUnit.Items.FindItemIndexByValue(Convert.ToString(dt_Details.Rows[0]["EMP_BUSINESSUNIT_ID"]));
            }
            //else
            //{
            //    BLL.ShowMessage(this, "Please select Employee");
            //    rcmb_Employee.Focus();
            //    return;
            //}
        }
        catch (Exception ex)
        {
            SMHR.BLL.Error_Log(Session["USER_ID"].ToString(), ex.TargetSite.ToString(), ex.Message.Replace("'", "''"), "frmOverTimeCalcRM", ex.StackTrace, DateTime.Now);
            Response.Redirect("~/Frm_ErrorPage.aspx");
        }
    }
示例#30
0
        protected void ddlTransactionType_SelectedIndexChanged(object o, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)
        {
            RadComboBox dropdown = o as RadComboBox;

            if (Request.QueryString["processId"] != null)
            {
                ProcessId = Int32.Parse(Request.QueryString["processId"].ToString());
            }

            ViewState["TransactionTypeCode"] = dropdown.SelectedValue;
            if (ViewState["TransactionTypeCode"] != "")
            {
                GridColumn column = gvWERPTrans.MasterTableView.GetColumnSafe("TransactionTypeCode");
                column.CurrentFilterFunction = GridKnownFunction.EqualTo;
                gvWERPTrans.CurrentPageIndex = 0;
                gvWERPTrans.MasterTableView.Rebind();
            }
            else
            {
                GridColumn column = gvWERPTrans.MasterTableView.GetColumnSafe("TransactionTypeCode");
                column.CurrentFilterFunction = GridKnownFunction.EqualTo;
                gvWERPTrans.CurrentPageIndex = 0;
                gvWERPTrans.MasterTableView.Rebind();
            }
        }