Ejemplo n.º 1
0
 public void UpdateAdjudicationApplication(Guid InstanceId, AdjudicationApplicationUpdatedEventArgs args)
 {
     if (null != AdjudicationApplicationUpdated)
     {
         AdjudicationApplicationUpdated(null, args);
     }
 }
Ejemplo n.º 2
0
        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;
        }
Ejemplo n.º 3
0
        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);
        }