protected void FvAdjudicationRequest_ItemInserting(object sender, FormViewInsertEventArgs e) { e.Values["OfficeId"] = ViewState["OfficeId"]; Global.SetFormViewParameters(e.Values, AdjudicationRequest.GetAdjudicationRow()); AdjudicationRow = (AdjudicationRequestRow)e.Values[0]; e.Cancel = true; }
public bool AddAdjudicationDetails(FormViewParameter Parameter, Guid Id, Guid AdjId) { AdjudicationRequestRow AdjReqRow = (IGRSS.DataAccessLayer.Adjudication.AdjudicationRequestRow)Parameter.Values; Guid AdjudicationId = AdjId; Guid ValuationFormId = Id; IgrssAdapters.AdjudicationAdapter.AddAdjudicationRequest(AdjudicationId, ValuationFormId, null, AdjReqRow.OfficeId, AdjReqRow.ApplicationDate, AdjReqRow.ReceiptNumber, AdjReqRow.AdjudicationTotalFees); return(true); }
public AdjudicationApplicationUpdatedEventArgs(Guid InstanceId, AdjudicationRequestRow UpdatedAdjudicationRow, ValuationFormRow UpdatedValuationFormRow, DataTable FeeDetails, DataTable DocumentDetails) : base(InstanceId) { this.UpdatedAdjudicationRows = (AdjudicationRequestTable) UpdatedAdjudicationRow.Table; UpdatedAdjudicationRow.AdjudicationId = new Guid(); this.UpdatedAdjudicationRows.Rows.Add(UpdatedAdjudicationRow); this.UpdatedValuationFormRows = (ValuationFormTable) UpdatedValuationFormRow.Table; UpdatedAdjudicationRow.ValuationFormId = new Guid(); this.UpdatedValuationFormRows.Rows.Add(UpdatedValuationFormRow); this.m_FeeDetails = FeeDetails; this.m_DocumentDetails = DocumentDetails; }
public AdjudicationApplicationUpdatedEventArgs(Guid InstanceId, AdjudicationRequestRow UpdatedAdjudicationRow, ValuationFormRow UpdatedValuationFormRow, DataTable FeeDetails, DataTable DocumentDetails) : base(InstanceId) { this.UpdatedAdjudicationRows = (AdjudicationRequestTable)UpdatedAdjudicationRow.Table; UpdatedAdjudicationRow.AdjudicationId = new Guid(); this.UpdatedAdjudicationRows.Rows.Add(UpdatedAdjudicationRow); this.UpdatedValuationFormRows = (ValuationFormTable)UpdatedValuationFormRow.Table; UpdatedAdjudicationRow.ValuationFormId = new Guid(); this.UpdatedValuationFormRows.Rows.Add(UpdatedValuationFormRow); this.m_FeeDetails = FeeDetails; this.m_DocumentDetails = DocumentDetails; }
private void OnApplicationUpdated_Invoked(object sender, ExternalDataEventArgs e) { string curUser = Thread.CurrentPrincipal.Identity.Name; // Type cast the event args to the required type AdjudicationApplicationUpdatedEventArgs args = (AdjudicationApplicationUpdatedEventArgs)e; // Retrive the row to be updated (always the frist row i.e. Rows[0]) AdjudicationRequestRow AdjReqRow = (AdjudicationRequestRow)args.UpdatedAdjudicationRows[0]; // Get the ValuationFormRow from the event arguments ValuationFormRow ValFormRow = (ValuationFormRow)args.UpdatedValuationFormRows.Rows[0]; // Getr the Fee Details changed during update operation DataTable FeeDetails = args.FeeDetails; // Getr the Document Details changed during update operation DataTable DocDetails = args.DocumentDetails; // Update the ValuationFormRow IgrssAdapters.ValuationAdapter.UpdateValuationFormByValFormId(ValFormRow.Village_CityName, ValFormRow.TPSchemeNo, ValFormRow.TPSchemeName, ValFormRow.FinalPlotNo, ValFormRow.CitySurveyNo, ValFormRow.RevenueSurveyNo, ValFormRow.Ward_SubWardNo, ValFormRow.NameOfOwner, ValFormRow.AddressOfOwner, ValFormRow.NameOfClaimingParty, ValFormRow.AddressOfClaimingParty, ValFormRow.AreaOfPlot, ValFormRow.AreaOfConstruction, ValFormRow.YearOfConstruction, ValFormRow.NoOfFloors, ValFormRow.TypeOfProperty, ValFormRow.HeightOfCeiling, ValFormRow.TypeOfTiles, ValFormRow.WallFurnishing, ValFormRow.NoOfBathrooms, ValFormRow.BathroomTilesHeight, ValFormRow.NoOfToilets, ValFormRow.ToiletTilesHeight, ValFormRow.Parking, ValFormRow.DescOfProperty, ValFormRow.ShopsOnGroundFloor, ValFormRow.IsPropertyInCommercial, ValFormRow.TypeOfElectricfication, ValFormRow.CompoundWallType, ValFormRow.IsLightsOnCompoundWall, ValFormRow.WaterStorageFacility, ValFormRow.DrainageSystem, ValFormRow.NoOfLifts, ValFormRow.AreaOfEachLift, ValFormRow.InternalRoad, ValFormRow.ValuatedBefore, ValuationFormId, curUser, DateTime.Now); IgrssAdapters.AdjudicationAdapter.UpdateAdjudicationRequest(AdjudicationId, ValuationFormId, null, AdjReqRow.OfficeId, AdjReqRow.ApplicationDate, AdjReqRow.ReceiptNumber, AdjReqRow.AdjudicationTotalFees); // Delete and Insert all the fees for this Adjudication Form IgrssAdapters.AdjudicationFeeAdapter.DeleteFeesByAdjudicationId(AdjudicationId); foreach (DataRow FeeDetail in FeeDetails.Rows) { IgrssAdapters.AdjudicationFeeAdapter.AddAdjudicationFees(AdjudicationId, (Guid)FeeDetail["FeeId"], Convert.ToDecimal(FeeDetail["Amount"])); } // Delete and Insert all the document details for this Adjudication Form IgrssAdapters.AdjudicationDocumentAdapter.DeleteDocumentDetailByValuationFormId(ValuationFormId); foreach (DataRow DocDetail in DocDetails.Rows) { IgrssAdapters.AdjudicationDocumentAdapter.AddAdjudicationDocument(ValuationFormId, (Guid)DocDetail["DocumentTypeId"], Convert.ToBoolean(DocDetail["Submitted"]), Convert.ToString(DocDetail["DocumentNumber"]), Convert.ToString(DocDetail["Remarks"])); } // The Application has been modified and will require verification from all again this.verificationIndex = 0; }
public bool AddAdjudicationRequest(FormViewParameter ValFormParameter, AdjudicationRequestRow AdjReqRow, DataTable FeeDetails, DataTable DocDetails) { string curUser = Thread.CurrentPrincipal.Identity.Name; Guid AdjudicationId = FileManager.OpenNewFile(AdjReqRow.OfficeId, "ADJ");; Guid ValuationFormId = Guid.NewGuid(); ValuationFormRow ValFormrow = (IGRSS.DataAccessLayer.Adjudication.ValuationFormRow)ValFormParameter.Values; IgrssAdapters.ValuationAdapter.AddValuationDetail(ValuationFormId, ValFormrow.OfficeId, ValFormrow.DistrictCode, ValFormrow.TalukaCode, ValFormrow.VillageCode, null, ValFormrow.Village_CityName, ValFormrow.TPSchemeNo, ValFormrow.TPSchemeName, ValFormrow.FinalPlotNo, ValFormrow.CitySurveyNo, ValFormrow.RevenueSurveyNo, ValFormrow.Ward_SubWardNo, ValFormrow.NameOfOwner, ValFormrow.AddressOfOwner, ValFormrow.NameOfClaimingParty, ValFormrow.AddressOfClaimingParty, ValFormrow.AreaOfPlot, ValFormrow.AreaOfConstruction, ValFormrow.YearOfConstruction, ValFormrow.NoOfFloors, ValFormrow.TypeOfProperty, ValFormrow.DescOfProperty, ValFormrow.ShopsOnGroundFloor, ValFormrow.IsPropertyInCommercial, ValFormrow.TypeOfElectricfication, ValFormrow.CompoundWallType, ValFormrow.IsLightsOnCompoundWall, ValFormrow.WaterStorageFacility, ValFormrow.DrainageSystem, ValFormrow.NoOfLifts, ValFormrow.AreaOfEachLift, ValFormrow.InternalRoad, ValFormrow.ValuatedBefore, ValFormrow.HeightOfCeiling, ValFormrow.TypeOfTiles, ValFormrow.WallFurnishing, ValFormrow.NoOfBathrooms, ValFormrow.BathroomTilesHeight, ValFormrow.NoOfToilets, ValFormrow.ToiletTilesHeight, ValFormrow.Parking, curUser, DateTime.Now); IgrssAdapters.AdjudicationAdapter.AddAdjudicationRequest(AdjudicationId, ValuationFormId, null, AdjReqRow.OfficeId, AdjReqRow.ApplicationDate, AdjReqRow.ReceiptNumber, AdjReqRow.AdjudicationTotalFees); foreach (DataRow FeeDetail in FeeDetails.Rows) { IgrssAdapters.AdjudicationFeeAdapter.AddAdjudicationFees(AdjudicationId, (Guid)FeeDetail["FeeId"], Convert.ToDecimal(FeeDetail["Amount"])); } foreach (DataRow DocDetail in DocDetails.Rows) { IgrssAdapters.AdjudicationDocumentAdapter.AddAdjudicationDocument(ValuationFormId, (Guid)DocDetail["DocumentTypeId"], Convert.ToBoolean(DocDetail["Submitted"]), Convert.ToString(DocDetail["DocumentNumber"]), Convert.ToString(DocDetail["Remarks"])); } // All database Inserts have been completed sucessfully initiate the Workflow // Create a Dioctionary to store Workflow Paramaters for Adjudication Dictionary <string, object> WfParams = new Dictionary <string, object>(); // Add Adjudication Application Id into the Workflow Parameter WfParams.Add("AdjudicationId", AdjudicationId); WfParams.Add("ValuationFormId", ValuationFormId); // Add Office Id in to Workflow Parameter // (to identify the process flow for the Office) WfParams.Add("InitiatingOffice", ValFormrow.OfficeId); // Initiate the Refund Workflow by passing the Wf Parameters Dictionary WorkflowResults WfResult = WorkflowMediator.RunWorkflow(typeof(AdjudicationProcess), WfParams); return(true); }
protected void FvAdjudicationRequest_ItemUpdating(object sender, FormViewUpdateEventArgs e) { Global.SetFormViewParameters(e.NewValues, AdjudicationRequest.GetAdjudicationRow()); AdjudicationRow = (AdjudicationRequestRow)e.NewValues[0]; e.Cancel = true; }
public bool UpdateAdjudicationRequestById(FormViewParameter ValFormParameter, AdjudicationRequestRow AdjReqRow, DataTable FeeDetails, DataTable DocDetails, Guid ValuationId, Guid AdjudicationId, Guid AlertId, bool Verified) { string curUser = Thread.CurrentPrincipal.Identity.Name; // Get the Workflow Instance Id from table Guid WfInstanceId = (Guid)IgrssAdapters.ValuationAdapter.GetAdjudicationWorkFlowInstanceId(ValuationId); // Check if the user has verified the application or just updated if (Verified) { // Create the FeedbackEventArgs object FeedbackEventArgs args = new FeedbackEventArgs(WfInstanceId, AlertId, curUser); WorkflowMediator.AdjudicationServices.ValidateAdjudicationApplication(WfInstanceId, args); } else { // The record has not been verified just updated AdjudicationApplicationUpdatedEventArgs args = new AdjudicationApplicationUpdatedEventArgs(WfInstanceId, AdjReqRow, (ValuationFormRow)ValFormParameter.Values, FeeDetails, DocDetails); //AppealApplicationUpdatedEventArgs args = new AppealApplicationUpdatedEventArgs(WfInstanceId, (AppealApplicationRow)parameter.Values, dtAct); WorkflowMediator.AdjudicationServices.UpdateAdjudicationApplication(WfInstanceId, args); } return(true); }
public bool UpdateAdjudicationRequestById(FormViewParameter ValFormParameter, AdjudicationRequestRow AdjReqRow, DataTable FeeDetails, DataTable DocDetails, Guid ValuationId, Guid AdjudicationId, Guid AlertId, bool Verified) { string curUser = Thread.CurrentPrincipal.Identity.Name; // Get the Workflow Instance Id from table Guid WfInstanceId = (Guid)IgrssAdapters.ValuationAdapter.GetAdjudicationWorkFlowInstanceId(ValuationId); // Check if the user has verified the application or just updated if (Verified) { // Create the FeedbackEventArgs object FeedbackEventArgs args = new FeedbackEventArgs(WfInstanceId, AlertId, curUser); WorkflowMediator.AdjudicationServices.ValidateAdjudicationApplication(WfInstanceId, args); } else { // The record has not been verified just updated AdjudicationApplicationUpdatedEventArgs args = new AdjudicationApplicationUpdatedEventArgs(WfInstanceId, AdjReqRow, (ValuationFormRow) ValFormParameter.Values, FeeDetails, DocDetails); //AppealApplicationUpdatedEventArgs args = new AppealApplicationUpdatedEventArgs(WfInstanceId, (AppealApplicationRow)parameter.Values, dtAct); WorkflowMediator.AdjudicationServices.UpdateAdjudicationApplication(WfInstanceId, args); } return true; }
public bool AddAdjudicationRequest(FormViewParameter ValFormParameter, AdjudicationRequestRow AdjReqRow, DataTable FeeDetails, DataTable DocDetails) { string curUser = Thread.CurrentPrincipal.Identity.Name; Guid AdjudicationId = FileManager.OpenNewFile(AdjReqRow.OfficeId, "ADJ"); ; Guid ValuationFormId = Guid.NewGuid(); ValuationFormRow ValFormrow = (IGRSS.DataAccessLayer.Adjudication.ValuationFormRow)ValFormParameter.Values; IgrssAdapters.ValuationAdapter.AddValuationDetail(ValuationFormId, ValFormrow.OfficeId, ValFormrow.DistrictCode,ValFormrow.TalukaCode,ValFormrow.VillageCode, null, ValFormrow.Village_CityName, ValFormrow.TPSchemeNo, ValFormrow.TPSchemeName, ValFormrow.FinalPlotNo, ValFormrow.CitySurveyNo, ValFormrow.RevenueSurveyNo, ValFormrow.Ward_SubWardNo, ValFormrow.NameOfOwner, ValFormrow.AddressOfOwner, ValFormrow.NameOfClaimingParty, ValFormrow.AddressOfClaimingParty, ValFormrow.AreaOfPlot, ValFormrow.AreaOfConstruction, ValFormrow.YearOfConstruction, ValFormrow.NoOfFloors, ValFormrow.TypeOfProperty, ValFormrow.DescOfProperty, ValFormrow.ShopsOnGroundFloor, ValFormrow.IsPropertyInCommercial, ValFormrow.TypeOfElectricfication, ValFormrow.CompoundWallType, ValFormrow.IsLightsOnCompoundWall, ValFormrow.WaterStorageFacility, ValFormrow.DrainageSystem, ValFormrow.NoOfLifts, ValFormrow.AreaOfEachLift, ValFormrow.InternalRoad, ValFormrow.ValuatedBefore, ValFormrow.HeightOfCeiling, ValFormrow.TypeOfTiles, ValFormrow.WallFurnishing, ValFormrow.NoOfBathrooms, ValFormrow.BathroomTilesHeight, ValFormrow.NoOfToilets, ValFormrow.ToiletTilesHeight, ValFormrow.Parking, curUser, DateTime.Now); IgrssAdapters.AdjudicationAdapter.AddAdjudicationRequest(AdjudicationId, ValuationFormId, null, AdjReqRow.OfficeId, AdjReqRow.ApplicationDate, AdjReqRow.ReceiptNumber, AdjReqRow.AdjudicationTotalFees); foreach (DataRow FeeDetail in FeeDetails.Rows) { IgrssAdapters.AdjudicationFeeAdapter.AddAdjudicationFees(AdjudicationId, (Guid)FeeDetail["FeeId"], Convert.ToDecimal(FeeDetail["Amount"])); } foreach (DataRow DocDetail in DocDetails.Rows) { IgrssAdapters.AdjudicationDocumentAdapter.AddAdjudicationDocument(ValuationFormId, (Guid)DocDetail["DocumentTypeId"], Convert.ToBoolean(DocDetail["Submitted"]), Convert.ToString(DocDetail["DocumentNumber"]), Convert.ToString(DocDetail["Remarks"])); } // All database Inserts have been completed sucessfully initiate the Workflow // Create a Dioctionary to store Workflow Paramaters for Adjudication Dictionary<string, object> WfParams = new Dictionary<string, object>(); // Add Adjudication Application Id into the Workflow Parameter WfParams.Add("AdjudicationId", AdjudicationId); WfParams.Add("ValuationFormId", ValuationFormId); // Add Office Id in to Workflow Parameter // (to identify the process flow for the Office) WfParams.Add("InitiatingOffice", ValFormrow.OfficeId); // Initiate the Refund Workflow by passing the Wf Parameters Dictionary WorkflowResults WfResult = WorkflowMediator.RunWorkflow(typeof(AdjudicationProcess), WfParams); return true; }