Ejemplo n.º 1
0
        /// <summary>
        /// Enforcement officer id
        /// </summary>
        /// <returns></returns>

        //public JsonResult EnforcementOfficerId()
        //{
        //    var officeId = (new EnforcementFactory(Session[Duncan.PEMS.Utilities.Constants.Security.ConnectionStringSessionVariableName].ToString())).EnforcementOfficerId(CurrentCity.Id);
        //    return Json(officeId, JsonRequestBehavior.AllowGet);
        //}

        /// <summary>
        /// Description:This method is used to populate the Street for enforcement page for the typed text in the autocomplete text box.
        /// Modified By: Sairam on June 19th 2014
        /// </summary>
        /// <param name="streetIs"></param>
        /// <returns></returns>
        //public JsonResult EnforcementStreet(string streetIs)
        //{
        //    var street = (new EnforcementFactory(Session[Duncan.PEMS.Utilities.Constants.Security.ConnectionStringSessionVariableName].ToString())).EnforcementStreet(CurrentCity.Id, streetIs);
        //    return Json(street, JsonRequestBehavior.AllowGet);
        //}



        //public JsonResult EnforcementOfficerNames()
        //{
        //    var OfficerName = (new EnforcementFactory(Session[Duncan.PEMS.Utilities.Constants.Security.ConnectionStringSessionVariableName].ToString())).EnforcementOfficerNames(CurrentCity.Id);
        //    return Json(OfficerName, JsonRequestBehavior.AllowGet);
        //}

        public ActionResult EnforcementCitationDetails(long citationID)
        {
            var enforceModel        = new EnforcementModel();
            var enforcementCitation = (new EnforcementFactory(Session[Duncan.PEMS.Utilities.Constants.Security.ConnectionStringSessionVariableName].ToString())).EnforcementCitationDetails(citationID);

            enforceModel.IssueNo              = enforcementCitation[0].IssueNo;
            enforceModel.IssueDateTime        = enforcementCitation[0].IssueDateTime;
            enforceModel.UnitSerial           = enforcementCitation[0].UnitSerial;
            enforceModel.Beat                 = enforcementCitation[0].Beat;
            enforceModel.OfficerID            = enforcementCitation[0].OfficerID;
            enforceModel.OfficerName          = enforcementCitation[0].OfficerName;
            enforceModel.Agency               = enforcementCitation[0].Agency;
            enforceModel.VehLicNo             = enforcementCitation[0].VehLicNo;
            enforceModel.VehLicState          = enforcementCitation[0].VehLicState;
            enforceModel.VEHLICTYPE           = enforcementCitation[0].VEHLICTYPE;
            enforceModel.VehMake              = enforcementCitation[0].VehMake;
            enforceModel.VehModel             = enforcementCitation[0].VehModel;
            enforceModel.VehBodyStyle         = enforcementCitation[0].VehBodyStyle;
            enforceModel.VEHCHECKDIGIT        = enforcementCitation[0].VEHCHECKDIGIT;
            enforceModel.VehColor1            = enforcementCitation[0].VehColor1;
            enforceModel.VehColor2            = enforcementCitation[0].VehColor2;
            enforceModel.VehLicExpDate        = enforcementCitation[0].VehLicExpDate;
            enforceModel.VehVIN               = enforcementCitation[0].VehVIN;
            enforceModel.VehVIN4              = enforcementCitation[0].VehVIN4;
            enforceModel.LocBlock             = enforcementCitation[0].LocBlock;
            enforceModel.LocCity              = enforcementCitation[0].LocCity;
            enforceModel.LocCrossStreet1      = enforcementCitation[0].LocCrossStreet1;
            enforceModel.LocCrossStreet2      = enforcementCitation[0].LocCrossStreet2;
            enforceModel.LocDescriptor        = enforcementCitation[0].LocDescriptor;
            enforceModel.LocDirection         = enforcementCitation[0].LocDirection;
            enforceModel.LocLot               = enforcementCitation[0].LocLot;
            enforceModel.LOCSIDEOFSTREET      = enforcementCitation[0].LOCSIDEOFSTREET;
            enforceModel.LocState             = enforcementCitation[0].LocState;
            enforceModel.LocStreet            = enforcementCitation[0].LocStreet;
            enforceModel.LocSuburb            = enforcementCitation[0].LocSuburb;
            enforceModel.LOCZIP               = enforcementCitation[0].LOCZIP;
            enforceModel.MeterBayNo           = enforcementCitation[0].MeterBayNo;
            enforceModel.MeterID              = enforcementCitation[0].MeterID;
            enforceModel.MeterNo              = enforcementCitation[0].MeterNo;
            enforceModel.PermitNo             = enforcementCitation[0].PermitNo;
            enforceModel.Remark1              = enforcementCitation[0].Remark1;
            enforceModel.Remark2              = enforcementCitation[0].Remark2;
            enforceModel.Remark3              = enforcementCitation[0].Remark3;
            enforceModel.VioCode              = enforcementCitation[0].VioCode;
            enforceModel.VioDescription1      = enforcementCitation[0].VioDescription1;
            enforceModel.VioFine              = enforcementCitation[0].VioFine;
            enforceModel.VioLateFee1          = enforcementCitation[0].VioLateFee1;
            enforceModel.VioLateFee2          = enforcementCitation[0].VioLateFee2;
            enforceModel.ViolationDescription = enforcementCitation[0].ViolationDescription;
            enforceModel.ParkingId            = enforcementCitation[0].ParkingId;
            ViewData["citationUnqKey"]        = enforcementCitation[0].ParkingId;
            //ViewData["citationUnqKey"] = 5;
            ViewData["cno"]           = citationID;
            enforceModel.myCitationID = citationID;
            return(View("EnforceDet", enforceModel));
        }
Ejemplo n.º 2
0
        public ActionResult Index()
        {
            EnforcementModel objModel = new EnforcementModel();

            return(View(objModel));
        }