public ApplicationUpdatedEventArgs(Guid InstanceId, LicenseApplicationRow UpdatedRow) : base(InstanceId) { this.UpdatedLicenseRows = (LicenseApplicationDataTable)UpdatedRow.Table; UpdatedRow.LicenseApplicationId = new Guid(); this.UpdatedLicenseRows.Rows.Add(UpdatedRow); }
public ApplicationUpdatedEventArgs(Guid InstanceId, LicenseApplicationRow UpdatedRow) : base(InstanceId) { this.UpdatedLicenseRows = (LicenseApplicationDataTable)UpdatedRow.Table; UpdatedRow.LicenseApplicationId = new Guid(); this.UpdatedLicenseRows.Rows.Add(UpdatedRow); }
public bool NewFrankingApplication(FormViewParameter Parameter, Remarks rem) { LicenseAppRow rowLic = (LicenseAppRow)Parameter.Values; try { Guid LicenseId = FileManager.OpenNewFile(rowLic.SubmissionOfficeId, "LIC"); if ((rem.Body != "") || (rem.Subject != "")) { FileManager.AddRemarkToFile(LicenseId, rem.Subject, rem.Body); } string UserName = Thread.CurrentPrincipal.Identity.Name; //IGRSS.DataAccessLayer.Complain.ComplainDatatableRow row = (IGRSS.DataAccessLayer.Complain.ComplainDatatableRow) parameter.Values; IGRSS.DataAccessLayer.LicenseApplication.LicenseApplicationRow row = (IGRSS.DataAccessLayer.LicenseApplication.LicenseApplicationRow)Parameter.Values; IgrssAdapters.LAppTableAdapter.AddFrankingMachineDetails(LicenseId, row.ApplnNumber, row.NameOfApplicant, row.PresentAddress, row.PermanentAddress, DateTime.Now, row.Qualification, row.Experience, row.BusinessAddress, row.TotalInvestmentAmount, row.NameAndAddressOfReferer, row.SubmissionOfficeId, row.HomePhone, row.HoldingAnyOtherLicense, row.PurposeOfLicense); Dictionary <string, object> WfParams = new Dictionary <string, object>(); WfParams.Add("LicenseId", LicenseId); WfParams.Add("InitiatingOffice", row.SubmissionOfficeId); WorkflowResults WfResult = WorkflowMediator.RunWorkflow(typeof(LicenseIssueProcess), WfParams); return(true); } catch (Exception ex) { if (ExceptionPolicy.HandleException(ex, "DAL")) { throw; } return(false); } }
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; }