Esempio n. 1
0
        private void OnApplicationUpdated_Invoked(object sender, ExternalDataEventArgs e)
        {
            FeedbackData CurFeedback = VerificationList[verificationIndex];

            WorkflowSupport.DeleteAlerts(CurFeedback.Alerts.ToArray());
            this.verificationIndex = 0;
        }
Esempio n. 2
0
        private void OnApplicationUpdated_Invoked(object sender, ExternalDataEventArgs e)
        {
            ApplicationUpdatedEventArgs args = (ApplicationUpdatedEventArgs)e;
            LicenseApplicationRow       row  = args.UpdatedLicenseRows[0];

            IgrssAdapters.LAppTableAdapter.UpdateVendorDetails(row.ApplnNumber, row.NameOfApplicant, row.PresentAddress, row.PermanentAddress, row.DateOfBirth, DateTime.Now, row.Qualification, row.Experience, row.Caste, row.BusinessAddress, row.TotalInvestmentAmount, row.NameAndAddressOfReferer, row.SubmissionOfficeId, row.HomePhone, row.Remarks, row.HoldingAnyOtherLicense, row.PurposeOfLicense, this.LicenseId);
            FeedbackData CurFeedback = VerificationList[verificationIndex];

            WorkflowSupport.DeleteAlerts(CurFeedback.Alerts.ToArray());
            this.verificationIndex = 0;
        }
Esempio n. 3
0
        private void OnApproved_Invoked(object sender, ExternalDataEventArgs e)
        {
            FeedbackEventArgs args        = (FeedbackEventArgs)e;
            FeedbackData      CurFeedback = ApprovalList[approvalIndex];

            if (!CurFeedback.Alerts.Contains(args.AlertId))
            {
                throw new Exception("Alert " + args.AlertId + " is not expected at this state of Workflow");
            }
            WorkflowSupport.DeleteAlerts(CurFeedback.Alerts.ToArray());
            this.approvalIndex++;
        }
Esempio n. 4
0
        private void OnApproved_Invoked(object sender, ExternalDataEventArgs e)
        {
            string curUser = Thread.CurrentPrincipal.Identity.Name;

            IgrssAdapters.AppealAdapter.ApproveAppealApplication(this.AppealId, curUser, DateTime.Now);

            FeedbackEventArgs args        = (FeedbackEventArgs)e;
            FeedbackData      CurFeedback = ApprovalList[approvalIndex];

            if (!CurFeedback.Alerts.Contains(args.AlertId))
            {
                throw new Exception("Alert " + args.AlertId + " is not expected at this state of Workflow");
            }
            WorkflowSupport.DeleteAlerts(CurFeedback.Alerts.ToArray());
            this.approvalIndex++;
        }
Esempio n. 5
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());
        }
Esempio n. 6
0
        private void OnApplicationUpdated_Invoked(object sender, ExternalDataEventArgs e)
        {
            // Type cast the event args to the required type
            RefundApplicationUpdatedEventArgs args = (RefundApplicationUpdatedEventArgs)e;
            // Retrive the row to be updated (always the frist row i.e. Rows[0])
            RefundApplicationRow row = args.UpdatedRefundRows[0];
            //using (TransactionScope scope = new TransactionScope())
            {
                // Update the database row
                IgrssAdapters.RefundApplicationAdapter.UpdateRefundApplication1(this.RefundId, row.OfficeId, row.RegistrationNo,
                                                                                row.TypeOfRefund, row.ApplicationDate, row.VendorLicenseId,
                                                                                row.PurchasedDate, row.TotalValueOfStamps, row.ReasonForNotUsing, row.ApplicantName, row.ApplicantAddress,
                                                                                row.City, row.District, row.PinCode, row.PhoneNo, row.Remarks, row.ActualStampValue);

                // Delete all the existing StampDetails for this Refund Application
                IgrssAdapters.RefundStampDetailsAdapter.DeleteRefundStampDetails(this.RefundId);
                // Re-Enter the Stamp Details
                foreach (DataRow StampDetail in args.StampDetails.Rows)
                {
                    IgrssAdapters.RefundStampDetailsAdapter.InsertStampDetails(this.RefundId, (Guid)StampDetail["RevenueStampId"], (string)StampDetail["ReturnedQty"], (string)StampDetail["StampNumber"]);
                }

                // Delete all the existing Acts that were selected for this Refund Application
                IgrssAdapters.RefundActsApplicable.DeleteRefundOrders(this.RefundId);
                // Re-Enter the Acts that have been selected
                foreach (DataRow Act in args.ActsApplicable.Rows)
                {
                    IgrssAdapters.RefundActsApplicable.InsertRefundActsApplicable(this.RefundId, (Guid)Act["ActId"], (bool)Act["Checked"], "");
                }
                //scope.Complete();
            }
            // The Application has been modified and will require verification  from all again
            FeedbackData CurFeedback = VerificationList[verificationIndex];

            WorkflowSupport.DeleteAlerts(CurFeedback.Alerts.ToArray());
            this.verificationIndex = 0;
        }