Ejemplo n.º 1
0
 public void RequireInvestigation(Guid InstanceId, InvestigationRequiredEventArgs args)
 {
     if (null != InvestigationRequired)
     {
         InvestigationRequired(null, args);
     }
 }
Ejemplo n.º 2
0
        private void OnReAssignInvestigation_Invoked(object sender, ExternalDataEventArgs e)
        {
            InvestigationRequiredEventArgs args = (InvestigationRequiredEventArgs)e;
            Guid EmployeeId = (Guid)IgrssAdapters.EmployeeMaster.GetEmployeeIdByUsername(args.InvestigatingOfficer);

            IgrssAdapters.ComplainAdapter.AssignEnquiryOfficer(EmployeeId, DateTime.Now, ComplainId);
            string curUser = Thread.CurrentPrincipal.Identity.Name;

            string link = WorkflowLinks.Default.ComplainInvestigationResult;
            Dictionary <string, object> InfoList = new Dictionary <string, object>();

            InfoList.Add("FileId", ComplainId);
            Guid GroupId = Guid.NewGuid();

            WorkflowSupport.SendAlert(curUser, args.InvestigatingOfficer, link, "Complain Investigation Required!", InfoList, GroupId);
        }
Ejemplo n.º 3
0
 /// <summary>
 /// This function is used to save the name of the Enquiry Officer for investigating complain.
 /// <param name="ComplainId"></param>
 /// </summary>
 /// <returns>void</returns>
 public bool AssignEnquiryOfficer(string InvestigatingOfficer, Guid ComplainId)
 {
     try
     {
         Guid InstanceId = (Guid)IgrssAdapters.ComplainAdapter.GetWfIdByComplainId(ComplainId);
         InvestigationRequiredEventArgs args = new InvestigationRequiredEventArgs(InstanceId);
         args.InvestigatingOfficer = InvestigatingOfficer;
         WorkflowMediator.ComplainServices.RequireInvestigation(InstanceId, args);
         return(true);
     }
     catch (Exception ex)
     {
         if (ExceptionPolicy.HandleException(ex, "DAL"))
         {
             throw;
         }
         return(false);
     }
 }
Ejemplo n.º 4
0
        private void OnInvestigationRequired_Invoked(object sender, ExternalDataEventArgs e)
        {
            FeedbackData CurFeedback = AcceptanceList[0];

            InvestigationRequiredEventArgs args = (InvestigationRequiredEventArgs)e;
            Guid EmployeeId = (Guid)IgrssAdapters.EmployeeMaster.GetEmployeeIdByUsername(args.InvestigatingOfficer);

            IgrssAdapters.ComplainAdapter.AssignEnquiryOfficer(EmployeeId, DateTime.Now, ComplainId);
            string curUser = Thread.CurrentPrincipal.Identity.Name;

            string link = WorkflowLinks.Default.ComplainInvestigationResult;
            Dictionary <string, object> InfoList = new Dictionary <string, object>();

            InfoList.Add("FileId", ComplainId);
            FileManagement flmgmt     = new FileManagement();
            string         FileNumber = flmgmt.GetFileNumberByFileId(ComplainId);
            Guid           GroupId    = Guid.NewGuid();

            WorkflowSupport.SendAlert(curUser, args.InvestigatingOfficer, link, "Complain Investigation Required for: " + FileNumber, InfoList, GroupId);

            WorkflowSupport.DeleteAlerts(CurFeedback.Alerts.ToArray());
        }