// ---------------------------------------------------------------------------------------- // Author: gunti.dheeraj // Company: Dhanush InfoTech Pvt Ltd // Date: 7/22/2010 // Time: 18:29 // Project Item Name: Login.aspx // Project Item Filename: Login.aspx.cs // Project Item Kind: ASPX Code Behind // Class FullName: Login // Class Name: Login // Class Kind Description: Class // Class Kind Keyword: class // Procedure FullName: Login.GetCredentials // Procedure Name: GetCredentials // Procedure Kind Description: Function // Function Return Type Name: Boolean // Function Return Type FullName: System.Boolean // Function Return Type Alias: bool // Parameters: // ---------------------------------------------------------------------------------------- private bool GetCredentials() { SMHR_MAIN _obj_smhr_main = new SMHR_MAIN(); DataTable dt_mode = new DataTable(); dt_mode = BLL.get_TBL_LSINFO(1); string col3 = Convert.ToString(dt_mode.Rows[0]["COL3"]); //if (col3 == (BLL.PasswordEncrypt("E"))) //{ // return true; //} return(true);; }
protected void rcmb_Incident_SelectedIndexChanged(object o, RadComboBoxSelectedIndexChangedEventArgs e) { try { if (rcmb_Incident.SelectedIndex > 0) { rcmb_IncidentType.Items.Clear(); if (rcmb_Incident.SelectedItem.Text == "Grievance") { SMHR_MAIN _obj_smhr_Main = new SMHR_MAIN(); _obj_smhr_Main.OPERATION = operation.GRIEVANCETYPE; _obj_smhr_Main.ORGANISATION_ID = OrganizationID; rcmb_IncidentType.DataTextField = "HR_MASTER_CODE"; rcmb_IncidentType.DataValueField = "HR_MASTER_ID"; rcmb_IncidentType.DataSource = BLL.get_GrievanceDisciplinaryMasters(_obj_smhr_Main); rcmb_IncidentType.DataBind(); rcmb_IncidentType.Items.Insert(0, new RadComboBoxItem { Value = "0", Text = "Select" }); } else if (rcmb_Incident.SelectedItem.Text == "Discipline") { SMHR_MAIN _obj_smhr_Main = new SMHR_MAIN(); _obj_smhr_Main.OPERATION = operation.DISCIPLINARYTYPE; _obj_smhr_Main.ORGANISATION_ID = OrganizationID; rcmb_IncidentType.DataTextField = "HR_MASTER_CODE"; rcmb_IncidentType.DataValueField = "HR_MASTER_ID"; rcmb_IncidentType.DataSource = BLL.get_GrievanceDisciplinaryMasters(_obj_smhr_Main); rcmb_IncidentType.DataBind(); rcmb_IncidentType.Items.Insert(0, new RadComboBoxItem { Value = "0", Text = "Select" }); } } else { rcmb_IncidentType.Items.Clear(); rcmb_IncidentType.Items.Insert(0, new RadComboBoxItem { Value = "0", Text = "Select" }); } } catch (Exception ex) { SMHR.BLL.Error_Log(Session["USER_ID"].ToString(), ex.TargetSite.ToString(), ex.Message.Replace("'", "''"), "RecordIncident", ex.StackTrace, DateTime.Now); Response.Redirect("~/Frm_ErrorPage.aspx"); } }
private void LoadActionCommittee(int COMMITTEEID) { try { SMHR_MAIN _obj_smhr_Main = new SMHR_MAIN(); _obj_smhr_Main.OPERATION = operation.COMMITTEE; _obj_smhr_Main.ORGANISATION_ID = OrganizationID; _obj_smhr_Main.COMMITTEE_ID = COMMITTEEID; rg_CommitteeMembers.DataSource = BLL.get_GrievanceDisciplinaryMasters(_obj_smhr_Main); // rg_CommitteeMembers.DataBind(); } catch (Exception ex) { SMHR.BLL.Error_Log(Session["USER_ID"].ToString(), ex.TargetSite.ToString(), ex.Message.Replace("'", "''"), "RecordIncident", ex.StackTrace, DateTime.Now); Response.Redirect("~/Frm_ErrorPage.aspx"); } }
private void LoadActionDropDowns() { try { rcmb_DisciplinaryGrievanceAction.Items.Clear(); if (rtxt_ActionIncident.Text == "Grievance") { SMHR_MAIN _obj_smhr_Main = new SMHR_MAIN(); _obj_smhr_Main.OPERATION = operation.GRIEVANCEACTION; _obj_smhr_Main.ORGANISATION_ID = OrganizationID; rcmb_DisciplinaryGrievanceAction.DataTextField = "HR_MASTER_CODE"; rcmb_DisciplinaryGrievanceAction.DataValueField = "HR_MASTER_ID"; rcmb_DisciplinaryGrievanceAction.DataSource = BLL.get_GrievanceDisciplinaryMasters(_obj_smhr_Main); rcmb_DisciplinaryGrievanceAction.DataBind(); rcmb_DisciplinaryGrievanceAction.Items.Insert(0, new RadComboBoxItem { Value = "0", Text = "Select" }); } else if (rtxt_ActionIncident.Text == "Discipline") { SMHR_MAIN _obj_smhr_Main = new SMHR_MAIN(); _obj_smhr_Main.OPERATION = operation.DISCIPLINARYACTION; _obj_smhr_Main.ORGANISATION_ID = OrganizationID; rcmb_DisciplinaryGrievanceAction.DataTextField = "HR_MASTER_CODE"; rcmb_DisciplinaryGrievanceAction.DataValueField = "HR_MASTER_ID"; rcmb_DisciplinaryGrievanceAction.DataSource = BLL.get_GrievanceDisciplinaryMasters(_obj_smhr_Main); rcmb_DisciplinaryGrievanceAction.DataBind(); rcmb_DisciplinaryGrievanceAction.Items.Insert(0, new RadComboBoxItem { Value = "0", Text = "Select" }); } else { rcmb_DisciplinaryGrievanceAction.Items.Clear(); rcmb_DisciplinaryGrievanceAction.Items.Insert(0, new RadComboBoxItem { Value = "0", Text = "Select" }); } } catch (Exception ex) { SMHR.BLL.Error_Log(Session["USER_ID"].ToString(), ex.TargetSite.ToString(), ex.Message.Replace("'", "''"), "RecordIncident", ex.StackTrace, DateTime.Now); Response.Redirect("~/Frm_ErrorPage.aspx"); } }
private void LoadCommittee() { try { SMHR_MAIN _obj_smhr_Main = new SMHR_MAIN(); _obj_smhr_Main.OPERATION = operation.COMMITTEE; _obj_smhr_Main.ORGANISATION_ID = OrganizationID; rcmb_Committee.DataTextField = "COMMITTEE_CODE"; rcmb_Committee.DataValueField = "COMMITTEE_ID"; rcmb_Committee.DataSource = BLL.get_GrievanceDisciplinaryMasters(_obj_smhr_Main); rcmb_Committee.DataBind(); rcmb_Committee.Items.Insert(0, new RadComboBoxItem { Value = "0", Text = "Select" }); } catch (Exception ex) { SMHR.BLL.Error_Log(Session["USER_ID"].ToString(), ex.TargetSite.ToString(), ex.Message.Replace("'", "''"), "RecordIncident", ex.StackTrace, DateTime.Now); Response.Redirect("~/Frm_ErrorPage.aspx"); } }
/// <summary> /// Get all grievance master data /// </summary> /// <param name="_obj_smhr_Main"></param> /// <returns></returns> public static DataTable get_GrievanceDisciplinaryMasters(SMHR_MAIN _obj_smhr_Main) { return(ExecuteQuery("EXEC USP_SMHR_GRIEVANCEMASTERS @Operation ='" + _obj_smhr_Main.OPERATION + "'" + ",@GRIEVANCEMASTER_ORGANISATION_ID=" + _obj_smhr_Main.ORGANISATION_ID + ",@COMMITTEE_ID='" + _obj_smhr_Main.COMMITTEE_ID + "'")); }