Get Inspection Type Codes
Name | Type | Length | Description |
---|---|---|---|
None | No input parameters to pass |
GET http://localhost/FusionServices/v3/Naviline/Inspection/InspectionTypeCodes
Name | Description |
---|---|
InspTypeCode | Inspection Type Code |
InspCodeDesc | Inspection Type description |
InspPointValue | Inspection point value |
InspVoicePIN | Inspection voice processing code number |
InspInactive | Y=Inactive Blank=Active |
ReinspPointValue | Reinspection point value |
PreissueSchedAllow | Preissue scheduling allowed? 1=Yes, 2=No |
InspAllowIVR | Allow use in IVR? 1=Yes, 2=No |
InspAllowC2G | Allow use in Click2Gov? 1=Yes, 2=No |
InspEmailNotify | Send email notifications? Y=Yes, N=No, Blank=No |
InspEmail | Email to send notifications to |
$.get('http://localhost/FusionServices/v3/Naviline/Inspection/InspectionTypeCodes', function(response) {
$('#resultDiv).html(response);
});
using System;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.Collections.Specialized;
using FusionServiceHelper.Models;
// NOTE: Use the namespace generated when you add the class, so that it is correct.
namespace FusionRazor.Models
{
public class GetInspectionTypeCodes
{
// Add property for each input param in order to map a field to it
public GetInspectionTypeCodes()
{
//Set any defaults here
}
}
}
@* NOTE: Use Add->View to add the View. *@
@* NOTE: Check the 'Create strongly-typed view checkbox, and select the GetInspectionTypeCodes class. *@
@* NOTE: Select Edit as the Scaffold template. *@
@* NOTE: Use the @model line that is generated at the top. Replace the rest with the lines below.
@model FusionRazor.Models.GetInspectionTypeCodes
@{
ViewBag.Title = "GetInspectionTypeCodes";
string myUrl = "http://localhost/FusionServices/v3/Naviline/Inspection/InspectionTypeCodes";
}
<h2>GetInspectionTypeCodes</h2>
@using (Html.BeginForm()) {
@Html.AntiForgeryToken()
@Html.ValidationSummary(true)
<fieldset>
<legend>GetInspectionTypeCodes</legend>
<div class="editor-label">Use the fields below to change the values and resubmit.</div>
<p>
<input type="submit" value="Submit"/>
</p>
</fieldset>
}
@section Scripts {
@Scripts.Render("~/bundles/jqueryval")
}
using System;
using System.Collections.Specialized;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using FusionServiceHelper.Models;
// NOTE: Replace 'MyController' with the name of your controller.
//
// GET: /MyController/GetInspectionTypeCodes
public ActionResult GetInspectionTypeCodes()
{
// Create a new instance of the model to pick up any default values.
GetInspectionTypeCodes model = new GetInspectionTypeCodes();
// pass model to set to default values
// NOTE: Change 'MyFolderPath' to the path to the .cshtml file.
return View("~/Views/MyFolderPath/GetInspectionTypeCodes.cshtml", model);
}
//
// POST: /MyController/GetInspectionTypeCodes
[HttpPost]
public ActionResult GetInspectionTypeCodes(FormCollection collection)
{
string url = "v3/Naviline/Inspection/InspectionTypeCodes";
// Get the value from each input field
NameValueCollection inputParms = new NameValueCollection();
try
{
// Send the request
FusionServiceRequest request = new FusionServiceRequest();
FusionServiceResult result = request.Get(url, inputParms);
return View("Result", result);
}
catch(Exception e)
{
HandleErrorInfo info = new HandleErrorInfo(e, "MyController", "GetInspectionTypeCodes");
return View("Error", info);
}
}