Exemple #1
0
 protected void btnSubmit_Click(object sender, EventArgs e)
 {
     try
     {
         SPSecurity.RunWithElevatedPrivileges(delegate()
         {
             if (Page.IsValid)
             {
                 SetProgress_DAL.Update_Objectives("AccPercent", tblObjectives);
                 SetProgress_DAL.Save_or_Update_Objs_ProgressNote(intended_Emp.login_name_to_convert_to_SPUser, Active_Rate_Goals_Year, txtNote1.Text);
                 Show_Success_Message("تم حفظ الأهداف بنجاح");
                 WFStatusUpdater.Change_State_to(WF_States.Objectives_ProgressSet_by_Emp, strEmpDisplayName, Active_Rate_Goals_Year);
                 Emailer.Send_Objs_ProgressSetByEmp_Email_to_DM(intended_Emp, Active_Rate_Goals_Year);
             }
         });
     }
     catch (Exception)
     {
     }
 }
Exemple #2
0
        protected void btnSubmit_Click(object sender, EventArgs e)
        {
            try
            {
                SPSecurity.RunWithElevatedPrivileges(delegate()
                {
                    if (Page.IsValid)
                    {
                        SaveToSP();
                        Show_Success_Message("تم حفظ التقييم بنجاح");
                        WFStatusUpdater.Change_State_to(WF_States.ObjsAndSkills_Rated, strEmpDisplayName, Active_Rate_Goals_Year);

                        Emailer.Send_ObjsAndSkills_Rated_Email_to_HRCommittee(intended_Emp, Active_Rate_Goals_Year);
                    }
                });
            }
            catch (Exception ex)
            {
                Send_Exception_Email(ex.Message);
            }
        }
Exemple #3
0
 public static void Update_Status_To_Apporoved_by_DM(string strEmpDisplayName, string Active_Set_Goals_Year)
 {
     WFStatusUpdater.Change_State_to(WF_States.Objectives_approved_by_DM, strEmpDisplayName, Active_Set_Goals_Year);
 }
Exemple #4
0
 public static void Update_Status_To_Rejected_by_Dept_Head(string strEmpDisplayName, string Active_Set_Goals_Year)
 {
     WFStatusUpdater.Change_State_to(WF_States.Objectives_rejected_by_Dept_Head, strEmpDisplayName, Active_Set_Goals_Year);
 }
Exemple #5
0
 protected void btnHRApprove_Click(object sender, EventArgs e)
 {
     WFStatusUpdater.Change_State_to(WF_States.ApprovedBy_HRCommittee, strEmpDisplayName, Active_Rate_Goals_Year);
     Show_Success_Message("تم إعتماد التقييم بنجاح");
     Emailer.Send_ObjsAndSkills_Rated_Email_to_Emp(intended_Emp, Active_Rate_Goals_Year);
 }