Ejemplo n.º 1
0
 private void AlertUser_ExecuteCode(object sender, System.EventArgs e)
 {
     string curUser = Thread.CurrentPrincipal.Identity.Name;
     FeedbackData CurFeedback = AcceptanceList[0];
     Guid OfficeId = CurFeedback.ForwardingOffice;
     Guid RoleId = CurFeedback.Role; // new Guid("9c83ade7-74ce-448e-b57c-3f6c5a4a5569");
     string link = WorkflowLinks.Default.AssignComplainInvestigator;
         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();
     foreach (string AlertUser in WorkflowSupport.GetUserAtOfficeRole(OfficeId, RoleId))
     {
         CurFeedback.Alerts.Add(WorkflowSupport.SendAlert(curUser, AlertUser, link, "Complain Pending for: " + FileNumber, InfoList,GroupId));
     }
 }
Ejemplo n.º 2
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());
        }
Ejemplo n.º 3
0
        private void VerificationAlert_ExecuteCode(object sender, System.EventArgs e)
        {
            string link = "";
            string curUser = Thread.CurrentPrincipal.Identity.Name;
            FeedbackData CurFeedback = VerificationList[verificationIndex];
            Guid OfficeId = CurFeedback.ForwardingOffice;
            Guid RoleId = CurFeedback.Role; // new Guid("9c83ade7-74ce-448e-b57c-3f6c5a4a5569");
            bool IsFranking = FileManager.GetLicenseType(LicenseId);
            if (IsFranking == true)
            {
                link = WorkflowLinks.Default.FrankingMachineVerification;
            }
            else
            {
                link = WorkflowLinks.Default.LicenseVerification;

            }

            Dictionary<string, object> InfoList = new Dictionary<string, object>();
            InfoList.Add("FileId", LicenseId);
            FileManagement flmgmt = new FileManagement();
            string FileNumber = flmgmt.GetFileNumberByFileId(LicenseId);
            Guid GroupId = Guid.NewGuid();
            foreach (string AlertUser in WorkflowSupport.GetUserAtOfficeRole(OfficeId, RoleId))
            {
                if (IsFranking == true)
                {
                    CurFeedback.Alerts.Add(WorkflowSupport.SendAlert(curUser, AlertUser, link, "Franking License Verification Pending for: " + FileNumber, InfoList,GroupId));
                }
                else
                {
                    CurFeedback.Alerts.Add(WorkflowSupport.SendAlert(curUser, AlertUser, link, "License Verification Pending for: " + FileNumber, InfoList,GroupId));
                }

            }
        }