Add a new location
Returns ErrorCode = 0001 if the parcel number did not previously exist and was added as well. This is OK. The land record was successfully added in this case.
Name | Type | Length | Description |
---|---|---|---|
LocationID | numeric | 9 | Location ID to update. Not required will be set to next ID by default. |
StreetNo | numeric | 7 | Street number |
StreetDir | System.String | 2 | N, S, E, W, NE, NW, SE, SW |
StreetName | System.String | 25 | Street name |
Apartment | System.String | 5 | apartment number / letter |
StreetSuffix | System.String | 4 | Street Suffix. I.e. AVE, DR, LN |
StreetPostDir | System.String | 2 | Street Post direction N, S, E, W, NE, NW, SE, SW |
StreetQualifier | System.String | 5 | Street qualifier (1st five chars) |
StreetPreQual | System.String | 10 | Street post qualifier (ten chars) |
StreetPostQual | System.String | 5 | Street post qualifier (1st five chars) |
ZipCode | System.String | 9 | Zip code |
CarrierRoute | System.String | 4 | Carrier route |
OwnerName | System.String | 30 | Owner name |
OwnerType | System.String | 2 | Owner type. 2 char code. Ex. P=Primary Owner, BO=Billable Owner, L=Landlord |
OwnerAddress | System.String | 30 | Owner address line 1 |
OwnerAddress2 | System.String | 30 | Owner address line 2 |
OwnerAddress3 | System.String | 30 | Owner address line 3 |
OwnerZipCode | System.String | 9 | Owner zip code |
OwnerCarrierRoute | System.String | 4 | Owner carrier route |
OwnerAreaCode | numeric | 3 | Owner area code |
OwnerPhoneNo | numeric | 7 | Owner phone |
Parcel | System.String | 600 | Parcel number. Should be segmented with '-'. Ex. 0012-371-077-000-00. This will parse the parcel number and set the values for ParcelNo1 to ParcelNo10. |
ParcelNo1 | System.String | 6 | Parcel key segment 1 |
ParcelNo2 | System.String | 6 | Parcel key segment 2 |
ParcelNo3 | System.String | 6 | Parcel key segment 3 |
ParcelNo4 | System.String | 6 | Parcel key segment 4 |
ParcelNo5 | System.String | 6 | Parcel key segment 5 |
ParcelNo6 | System.String | 6 | Parcel key segment 6 |
ParcelNo7 | System.String | 6 | Parcel key segment 7 |
ParcelNo8 | System.String | 6 | Parcel key segment 8 |
ParcelNo9 | System.String | 6 | Parcel key segment 9 |
ParcelNo10 | System.String | 6 | Parcel key segment 10 |
ParcelTypeCode | System.String | 1 | Parcel type code. P=Parcel |
ParcelStatus | System.String | 1 | Parcel status |
ParcelSplitCode | System.String | 4 | Parcel Split Code |
AlternateId | System.String | 25 | Alternate ID |
Acreage | numeric | 9 | Acreage. Decimal with 4 decimal places. 333.0125 |
PropertyCode | System.String | 4 | Property use code |
UndividedInterest | numeric | 5 | Acreage. Decimal with 2 decimal places. 62.38 |
TownshipCode | System.String | 5 | Township code |
InsideOutsideCode | System.String | 5 | Inside/Outside city limit code |
CommissionerCode | System.String | 5 | Commissioner code |
GeneralLocationCode | System.String | 6 | General location code |
PlatBookPage | System.String | 20 | Plat Book Page |
ParcelDeliveryPoint | System.String | 3 | Parcel delivery point |
OwnerDeliveryPoint | System.String | 3 | Owner delivery point |
UseZone | System.String | 6 | Usage zone |
FireZone | System.String | 2 | Fire Zone code |
VarianceCode | System.String | 1 | Variance Code |
InspectionArea3 | System.String | 3 | Inspection Area code |
Subdivision1 | System.String | 6 | Subdivision code 1 |
Subdivision2 | System.String | 6 | Subdivision code 2 |
Subdivision1 | System.String | 6 | Subdivision code 1 |
LocationCity | System.String | 20 | Location city. Used to add a new zip code |
LocationState | System.String | 20 | Location state code. Used to add a new zip code |
OwnerCity | System.String | 20 | Owner city. Used to add a new zip code |
OwnerState | System.String | 20 | Owner state code. Used to add a new zip code |
MapX | System.String | 8 | Map X coordinate 31'19'10'00 without ' |
MapY | System.String | 8 | Map Y coordinate 94'42'08'04 without ' |
AddressStatus | System.String | 1 | Address status |
OwnerEffectiveDate | numeric | 7 | Owner effective date. CYYMMDD |
AddressEffectiveDate | numeric | 7 | Address effective date. CYYMMDD |
IntersectionStreet | System.String | 25 | Intersection street |
IntersectionDir | System.String | 2 | Intersection direction |
IntersectionSuffix | System.String | 4 | Intersection suffix |
OwnerDOB | numeric | 7 | Owner date of birth. CYYMMDD |
Longitude11 | numeric | 11 | Longitude. Decimal with 2 decimal places. 123456789.01 |
Latitude11 | numeric | 11 | Latitude. Decimal with 2 decimal places. 123456789.01 |
Longitude15 | numeric | 15 | GPS Longitude. Decimal with 6 decimal places. 31.319435 |
Latitude15 | numeric | 15 | GPS Latitude. Decimal with 6 decimal places. -94.702332 |
CensusTract7 | System.String | 7 | Census tract (old) |
CensusTrac11 | System.String | 11 | Census tract (new) |
POST http://localhost/FusionServices/v2/NaviLine/Land/LocationAdd
using System.Net;
string uri = "http://localhost/FusionServices/v2/NaviLine/Land/LocationAdd";
System.Collections.Specialized.NameValueCollection postParms =
new System.Collections.Specialized.NameValueCollection();
postParms.Add("StreetNo",System.Web.HttpUtility.UrlEncode("1005"));
postParms.Add("StreetName",System.Web.HttpUtility.UrlEncode("FAIRY"));
postParms.Add("StreetSuffix",System.Web.HttpUtility.UrlEncode("AVE"));
postParms.Add("ZipCode",System.Web.HttpUtility.UrlEncode("75904"));
postParms.Add("CarrierRoute",System.Web.HttpUtility.UrlEncode(""));
postParms.Add("Apartment",System.Web.HttpUtility.UrlEncode(""));
postParms.Add("OwnerName",System.Web.HttpUtility.UrlEncode("ANGELINA HRDWD LBR"));
postParms.Add("OwnerType",System.Web.HttpUtility.UrlEncode(""));
postParms.Add("OwnerAddress",System.Web.HttpUtility.UrlEncode("PO BOX 3659"));
postParms.Add("OwnerAddress2",System.Web.HttpUtility.UrlEncode(""));
postParms.Add("OwnerZipCode",System.Web.HttpUtility.UrlEncode(""));
postParms.Add("OwnerCarrierRoute",System.Web.HttpUtility.UrlEncode(""));
postParms.Add("OwnerAreaCode",System.Web.HttpUtility.UrlEncode("0"));
postParms.Add("OwnerPhoneNo",System.Web.HttpUtility.UrlEncode("0"));
postParms.Add("ParcelNo1",System.Web.HttpUtility.UrlEncode("4040"));
postParms.Add("ParcelNo2",System.Web.HttpUtility.UrlEncode("383"));
postParms.Add("ParcelNo3",System.Web.HttpUtility.UrlEncode("005"));
postParms.Add("ParcelNo4",System.Web.HttpUtility.UrlEncode("5"));
postParms.Add("ParcelNo5",System.Web.HttpUtility.UrlEncode("00"));
postParms.Add("ParcelNo6",System.Web.HttpUtility.UrlEncode(""));
postParms.Add("ParcelNo7",System.Web.HttpUtility.UrlEncode(""));
postParms.Add("ParcelNo8",System.Web.HttpUtility.UrlEncode(""));
postParms.Add("ParcelNo9",System.Web.HttpUtility.UrlEncode(""));
postParms.Add("ParcelNo10",System.Web.HttpUtility.UrlEncode(""));
postParms.Add("ParcelTypeCode",System.Web.HttpUtility.UrlEncode("P"));
postParms.Add("AlternateId",System.Web.HttpUtility.UrlEncode("R46599"));
postParms.Add("StreetQualifier",System.Web.HttpUtility.UrlEncode(""));
postParms.Add("Acreage",System.Web.HttpUtility.UrlEncode(".0000"));
postParms.Add("PropertyCode",System.Web.HttpUtility.UrlEncode(""));
postParms.Add("UndividedInterest",System.Web.HttpUtility.UrlEncode(".00"));
postParms.Add("TownshipCode",System.Web.HttpUtility.UrlEncode("LUF"));
postParms.Add("InsideOutsideCode",System.Web.HttpUtility.UrlEncode("INLUF"));
postParms.Add("CommissionerCode",System.Web.HttpUtility.UrlEncode(""));
postParms.Add("FormattedAddress",System.Web.HttpUtility.UrlEncode("1003 FAIRY AVE LUF"));
postParms.Add("StreetPostQual",System.Web.HttpUtility.UrlEncode("***"));
postParms.Add("StreetPostDir",System.Web.HttpUtility.UrlEncode(""));
postParms.Add("StreetPreQual",System.Web.HttpUtility.UrlEncode(""));
postParms.Add("ParcelDeliveryPoint",System.Web.HttpUtility.UrlEncode(""));
postParms.Add("OwnerDeliveryPoint",System.Web.HttpUtility.UrlEncode(""));
postParms.Add("GeneralLocationCode",System.Web.HttpUtility.UrlEncode(""));
postParms.Add("AddressType",System.Web.HttpUtility.UrlEncode(""));
postParms.Add("OwnerEffectiveDate",System.Web.HttpUtility.UrlEncode("991205"));
postParms.Add("PlatBookPage",System.Web.HttpUtility.UrlEncode(""));
postParms.Add("UseZone",System.Web.HttpUtility.UrlEncode("UK"));
postParms.Add("FireZone",System.Web.HttpUtility.UrlEncode(""));
postParms.Add("VarianceCode",System.Web.HttpUtility.UrlEncode(""));
postParms.Add("InspectionArea",System.Web.HttpUtility.UrlEncode(""));
postParms.Add("Subdivision1",System.Web.HttpUtility.UrlEncode(""));
postParms.Add("Subdivision2",System.Web.HttpUtility.UrlEncode(""));
postParms.Add("Longitude11",System.Web.HttpUtility.UrlEncode("4041918.00"));
postParms.Add("Latitude11",System.Web.HttpUtility.UrlEncode("10500651.00"));
postParms.Add("OwnerDOB",System.Web.HttpUtility.UrlEncode(""));
postParms.Add("ExtendedAddress",System.Web.HttpUtility.UrlEncode(""));
postParms.Add("FreeFormAddress",System.Web.HttpUtility.UrlEncode(""));
postParms.Add("RelatedPartyId",System.Web.HttpUtility.UrlEncode("121587"));
postParms.Add("AddressStatus",System.Web.HttpUtility.UrlEncode(""));
postParms.Add("AddressEffectiveDate",System.Web.HttpUtility.UrlEncode(""));
postParms.Add("IntersectionStreet",System.Web.HttpUtility.UrlEncode(""));
postParms.Add("IntersectionDir",System.Web.HttpUtility.UrlEncode(""));
postParms.Add("IntersectionSuffix",System.Web.HttpUtility.UrlEncode(""));
postParms.Add("ParcelSplitCode",System.Web.HttpUtility.UrlEncode(""));
postParms.Add("Longitude15",System.Web.HttpUtility.UrlEncode("4041918.000000"));
postParms.Add("Latitude15",System.Web.HttpUtility.UrlEncode("10500651.000000"));
postParms.Add("OwnerAddress3",System.Web.HttpUtility.UrlEncode(""));
postParms.Add("MapX",System.Web.HttpUtility.UrlEncode("M"));
postParms.Add("MapY",System.Web.HttpUtility.UrlEncode(""));
postParms.Add("CensusTract11",System.Web.HttpUtility.UrlEncode(""));
using (WebClient req = new WebClient())
{
byte[] responseBytes = wc.UploadValues(new Uri(uri), "POST", postParms);
string stringResult = Encoding.UTF8.GetString(responseBytes);
// TODO
}
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 PostLocationAdd
{
// Add property for each input param in order to map a field to it
[RegularExpression("[0-9]{0,9}", ErrorMessage = "Numeric values only. Must be 9 digits or less. ")]
public string LocationID{get; set;}
[RegularExpression("[0-9]{0,7}", ErrorMessage = "Numeric values only. Must be 7 digits or less. ")]
public string StreetNo{get; set;}
[RegularExpression("^(?=.{0,2}$).*", ErrorMessage = "Must be 2 characters or less. ")]
public string StreetDir{get; set;}
[RegularExpression("^(?=.{0,25}$).*", ErrorMessage = "Must be 25 characters or less. ")]
public string StreetName{get; set;}
[RegularExpression("^(?=.{0,5}$).*", ErrorMessage = "Must be 5 characters or less. ")]
public string Apartment{get; set;}
[RegularExpression("^(?=.{0,4}$).*", ErrorMessage = "Must be 4 characters or less. ")]
public string StreetSuffix{get; set;}
[RegularExpression("^(?=.{0,2}$).*", ErrorMessage = "Must be 2 characters or less. ")]
public string StreetPostDir{get; set;}
[RegularExpression("^(?=.{0,5}$).*", ErrorMessage = "Must be 5 characters or less. ")]
public string StreetQualifier{get; set;}
[RegularExpression("^(?=.{0,10}$).*", ErrorMessage = "Must be 10 characters or less. ")]
public string StreetPreQual{get; set;}
[RegularExpression("^(?=.{0,5}$).*", ErrorMessage = "Must be 5 characters or less. ")]
public string StreetPostQual{get; set;}
[RegularExpression("^(?=.{0,9}$).*", ErrorMessage = "Must be 9 characters or less. ")]
public string ZipCode{get; set;}
[RegularExpression("^(?=.{0,4}$).*", ErrorMessage = "Must be 4 characters or less. ")]
public string CarrierRoute{get; set;}
[RegularExpression("^(?=.{0,30}$).*", ErrorMessage = "Must be 30 characters or less. ")]
public string OwnerName{get; set;}
[RegularExpression("^(?=.{0,2}$).*", ErrorMessage = "Must be 2 characters or less. ")]
public string OwnerType{get; set;}
[RegularExpression("^(?=.{0,30}$).*", ErrorMessage = "Must be 30 characters or less. ")]
public string OwnerAddress{get; set;}
[RegularExpression("^(?=.{0,30}$).*", ErrorMessage = "Must be 30 characters or less. ")]
public string OwnerAddress2{get; set;}
[RegularExpression("^(?=.{0,30}$).*", ErrorMessage = "Must be 30 characters or less. ")]
public string OwnerAddress3{get; set;}
[RegularExpression("^(?=.{0,9}$).*", ErrorMessage = "Must be 9 characters or less. ")]
public string OwnerZipCode{get; set;}
[RegularExpression("^(?=.{0,4}$).*", ErrorMessage = "Must be 4 characters or less. ")]
public string OwnerCarrierRoute{get; set;}
[RegularExpression("[0-9]{0,3}", ErrorMessage = "Numeric values only. Must be 3 digits or less. ")]
public string OwnerAreaCode{get; set;}
[RegularExpression("[0-9]{0,7}", ErrorMessage = "Numeric values only. Must be 7 digits or less. ")]
public string OwnerPhoneNo{get; set;}
[RegularExpression("^(?=.{0,600}$).*", ErrorMessage = "Must be 600 characters or less. ")]
public string Parcel{get; set;}
[RegularExpression("^(?=.{0,6}$).*", ErrorMessage = "Must be 6 characters or less. ")]
public string ParcelNo1{get; set;}
[RegularExpression("^(?=.{0,6}$).*", ErrorMessage = "Must be 6 characters or less. ")]
public string ParcelNo2{get; set;}
[RegularExpression("^(?=.{0,6}$).*", ErrorMessage = "Must be 6 characters or less. ")]
public string ParcelNo3{get; set;}
[RegularExpression("^(?=.{0,6}$).*", ErrorMessage = "Must be 6 characters or less. ")]
public string ParcelNo4{get; set;}
[RegularExpression("^(?=.{0,6}$).*", ErrorMessage = "Must be 6 characters or less. ")]
public string ParcelNo5{get; set;}
[RegularExpression("^(?=.{0,6}$).*", ErrorMessage = "Must be 6 characters or less. ")]
public string ParcelNo6{get; set;}
[RegularExpression("^(?=.{0,6}$).*", ErrorMessage = "Must be 6 characters or less. ")]
public string ParcelNo7{get; set;}
[RegularExpression("^(?=.{0,6}$).*", ErrorMessage = "Must be 6 characters or less. ")]
public string ParcelNo8{get; set;}
[RegularExpression("^(?=.{0,6}$).*", ErrorMessage = "Must be 6 characters or less. ")]
public string ParcelNo9{get; set;}
[RegularExpression("^(?=.{0,6}$).*", ErrorMessage = "Must be 6 characters or less. ")]
public string ParcelNo10{get; set;}
[RegularExpression("^(?=.{0,1}$).*", ErrorMessage = "Must be 1 characters or less. ")]
public string ParcelTypeCode{get; set;}
[RegularExpression("^(?=.{0,1}$).*", ErrorMessage = "Must be 1 characters or less. ")]
public string ParcelStatus{get; set;}
[RegularExpression("^(?=.{0,4}$).*", ErrorMessage = "Must be 4 characters or less. ")]
public string ParcelSplitCode{get; set;}
[RegularExpression("^(?=.{0,25}$).*", ErrorMessage = "Must be 25 characters or less. ")]
public string AlternateId{get; set;}
[RegularExpression("[0-9]{0,9}", ErrorMessage = "Numeric values only. Must be 9 digits or less. ")]
public string Acreage{get; set;}
[RegularExpression("^(?=.{0,4}$).*", ErrorMessage = "Must be 4 characters or less. ")]
public string PropertyCode{get; set;}
[RegularExpression("[0-9]{0,5}", ErrorMessage = "Numeric values only. Must be 5 digits or less. ")]
public string UndividedInterest{get; set;}
[RegularExpression("^(?=.{0,5}$).*", ErrorMessage = "Must be 5 characters or less. ")]
public string TownshipCode{get; set;}
[RegularExpression("^(?=.{0,5}$).*", ErrorMessage = "Must be 5 characters or less. ")]
public string InsideOutsideCode{get; set;}
[RegularExpression("^(?=.{0,5}$).*", ErrorMessage = "Must be 5 characters or less. ")]
public string CommissionerCode{get; set;}
[RegularExpression("^(?=.{0,6}$).*", ErrorMessage = "Must be 6 characters or less. ")]
public string GeneralLocationCode{get; set;}
[RegularExpression("^(?=.{0,20}$).*", ErrorMessage = "Must be 20 characters or less. ")]
public string PlatBookPage{get; set;}
[RegularExpression("^(?=.{0,3}$).*", ErrorMessage = "Must be 3 characters or less. ")]
public string ParcelDeliveryPoint{get; set;}
[RegularExpression("^(?=.{0,3}$).*", ErrorMessage = "Must be 3 characters or less. ")]
public string OwnerDeliveryPoint{get; set;}
[RegularExpression("^(?=.{0,6}$).*", ErrorMessage = "Must be 6 characters or less. ")]
public string UseZone{get; set;}
[RegularExpression("^(?=.{0,2}$).*", ErrorMessage = "Must be 2 characters or less. ")]
public string FireZone{get; set;}
[RegularExpression("^(?=.{0,1}$).*", ErrorMessage = "Must be 1 characters or less. ")]
public string VarianceCode{get; set;}
[RegularExpression("^(?=.{0,3}$).*", ErrorMessage = "Must be 3 characters or less. ")]
public string InspectionArea3{get; set;}
[RegularExpression("^(?=.{0,6}$).*", ErrorMessage = "Must be 6 characters or less. ")]
public string Subdivision1{get; set;}
[RegularExpression("^(?=.{0,6}$).*", ErrorMessage = "Must be 6 characters or less. ")]
public string Subdivision2{get; set;}
[RegularExpression("^(?=.{0,6}$).*", ErrorMessage = "Must be 6 characters or less. ")]
public string Subdivision1{get; set;}
[RegularExpression("^(?=.{0,20}$).*", ErrorMessage = "Must be 20 characters or less. ")]
public string LocationCity{get; set;}
[RegularExpression("^(?=.{0,20}$).*", ErrorMessage = "Must be 20 characters or less. ")]
public string LocationState{get; set;}
[RegularExpression("^(?=.{0,20}$).*", ErrorMessage = "Must be 20 characters or less. ")]
public string OwnerCity{get; set;}
[RegularExpression("^(?=.{0,20}$).*", ErrorMessage = "Must be 20 characters or less. ")]
public string OwnerState{get; set;}
[RegularExpression("^(?=.{0,8}$).*", ErrorMessage = "Must be 8 characters or less. ")]
public string MapX{get; set;}
[RegularExpression("^(?=.{0,8}$).*", ErrorMessage = "Must be 8 characters or less. ")]
public string MapY{get; set;}
[RegularExpression("^(?=.{0,1}$).*", ErrorMessage = "Must be 1 characters or less. ")]
public string AddressStatus{get; set;}
[RegularExpression("[0-9]{0,7}", ErrorMessage = "Numeric values only. Must be 7 digits or less. ")]
public string OwnerEffectiveDate{get; set;}
[RegularExpression("[0-9]{0,7}", ErrorMessage = "Numeric values only. Must be 7 digits or less. ")]
public string AddressEffectiveDate{get; set;}
[RegularExpression("^(?=.{0,25}$).*", ErrorMessage = "Must be 25 characters or less. ")]
public string IntersectionStreet{get; set;}
[RegularExpression("^(?=.{0,2}$).*", ErrorMessage = "Must be 2 characters or less. ")]
public string IntersectionDir{get; set;}
[RegularExpression("^(?=.{0,4}$).*", ErrorMessage = "Must be 4 characters or less. ")]
public string IntersectionSuffix{get; set;}
[RegularExpression("[0-9]{0,7}", ErrorMessage = "Numeric values only. Must be 7 digits or less. ")]
public string OwnerDOB{get; set;}
[RegularExpression("[0-9]{0,11}", ErrorMessage = "Numeric values only. Must be 11 digits or less. ")]
public string Longitude11{get; set;}
[RegularExpression("[0-9]{0,11}", ErrorMessage = "Numeric values only. Must be 11 digits or less. ")]
public string Latitude11{get; set;}
[RegularExpression("[0-9]{0,15}", ErrorMessage = "Numeric values only. Must be 15 digits or less. ")]
public string Longitude15{get; set;}
[RegularExpression("[0-9]{0,15}", ErrorMessage = "Numeric values only. Must be 15 digits or less. ")]
public string Latitude15{get; set;}
[RegularExpression("^(?=.{0,7}$).*", ErrorMessage = "Must be 7 characters or less. ")]
public string CensusTract7{get; set;}
[RegularExpression("^(?=.{0,11}$).*", ErrorMessage = "Must be 11 characters or less. ")]
public string CensusTrac11{get; set;}
public PostLocationAdd()
{
//Set any defaults here
}
}
}
@* NOTE: Use Add->View to add the View. *@
@* NOTE: Check the 'Create strongly-typed view checkbox, and select the PostLocationAdd 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.PostLocationAdd
@{
ViewBag.Title = "PostLocationAdd";
}
<h2>PostLocationAdd</h2>
@using (Html.BeginForm()) {
@Html.AntiForgeryToken()
@Html.ValidationSummary(true)
<fieldset>
<legend>PostLocationAdd</legend>
<div class="editor-label">
@Html.LabelFor(model => model.LocationID)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.LocationID)
@Html.ValidationMessageFor(model => model.LocationID)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.StreetNo)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.StreetNo)
@Html.ValidationMessageFor(model => model.StreetNo)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.StreetDir)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.StreetDir)
@Html.ValidationMessageFor(model => model.StreetDir)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.StreetName)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.StreetName)
@Html.ValidationMessageFor(model => model.StreetName)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.Apartment)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.Apartment)
@Html.ValidationMessageFor(model => model.Apartment)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.StreetSuffix)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.StreetSuffix)
@Html.ValidationMessageFor(model => model.StreetSuffix)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.StreetPostDir)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.StreetPostDir)
@Html.ValidationMessageFor(model => model.StreetPostDir)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.StreetQualifier)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.StreetQualifier)
@Html.ValidationMessageFor(model => model.StreetQualifier)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.StreetPreQual)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.StreetPreQual)
@Html.ValidationMessageFor(model => model.StreetPreQual)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.StreetPostQual)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.StreetPostQual)
@Html.ValidationMessageFor(model => model.StreetPostQual)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.ZipCode)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.ZipCode)
@Html.ValidationMessageFor(model => model.ZipCode)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.CarrierRoute)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.CarrierRoute)
@Html.ValidationMessageFor(model => model.CarrierRoute)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.OwnerName)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.OwnerName)
@Html.ValidationMessageFor(model => model.OwnerName)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.OwnerType)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.OwnerType)
@Html.ValidationMessageFor(model => model.OwnerType)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.OwnerAddress)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.OwnerAddress)
@Html.ValidationMessageFor(model => model.OwnerAddress)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.OwnerAddress2)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.OwnerAddress2)
@Html.ValidationMessageFor(model => model.OwnerAddress2)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.OwnerAddress3)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.OwnerAddress3)
@Html.ValidationMessageFor(model => model.OwnerAddress3)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.OwnerZipCode)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.OwnerZipCode)
@Html.ValidationMessageFor(model => model.OwnerZipCode)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.OwnerCarrierRoute)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.OwnerCarrierRoute)
@Html.ValidationMessageFor(model => model.OwnerCarrierRoute)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.OwnerAreaCode)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.OwnerAreaCode)
@Html.ValidationMessageFor(model => model.OwnerAreaCode)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.OwnerPhoneNo)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.OwnerPhoneNo)
@Html.ValidationMessageFor(model => model.OwnerPhoneNo)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.Parcel)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.Parcel)
@Html.ValidationMessageFor(model => model.Parcel)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.ParcelNo1)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.ParcelNo1)
@Html.ValidationMessageFor(model => model.ParcelNo1)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.ParcelNo2)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.ParcelNo2)
@Html.ValidationMessageFor(model => model.ParcelNo2)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.ParcelNo3)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.ParcelNo3)
@Html.ValidationMessageFor(model => model.ParcelNo3)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.ParcelNo4)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.ParcelNo4)
@Html.ValidationMessageFor(model => model.ParcelNo4)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.ParcelNo5)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.ParcelNo5)
@Html.ValidationMessageFor(model => model.ParcelNo5)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.ParcelNo6)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.ParcelNo6)
@Html.ValidationMessageFor(model => model.ParcelNo6)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.ParcelNo7)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.ParcelNo7)
@Html.ValidationMessageFor(model => model.ParcelNo7)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.ParcelNo8)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.ParcelNo8)
@Html.ValidationMessageFor(model => model.ParcelNo8)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.ParcelNo9)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.ParcelNo9)
@Html.ValidationMessageFor(model => model.ParcelNo9)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.ParcelNo10)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.ParcelNo10)
@Html.ValidationMessageFor(model => model.ParcelNo10)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.ParcelTypeCode)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.ParcelTypeCode)
@Html.ValidationMessageFor(model => model.ParcelTypeCode)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.ParcelStatus)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.ParcelStatus)
@Html.ValidationMessageFor(model => model.ParcelStatus)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.ParcelSplitCode)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.ParcelSplitCode)
@Html.ValidationMessageFor(model => model.ParcelSplitCode)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.AlternateId)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.AlternateId)
@Html.ValidationMessageFor(model => model.AlternateId)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.Acreage)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.Acreage)
@Html.ValidationMessageFor(model => model.Acreage)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.PropertyCode)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.PropertyCode)
@Html.ValidationMessageFor(model => model.PropertyCode)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.UndividedInterest)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.UndividedInterest)
@Html.ValidationMessageFor(model => model.UndividedInterest)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.TownshipCode)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.TownshipCode)
@Html.ValidationMessageFor(model => model.TownshipCode)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.InsideOutsideCode)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.InsideOutsideCode)
@Html.ValidationMessageFor(model => model.InsideOutsideCode)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.CommissionerCode)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.CommissionerCode)
@Html.ValidationMessageFor(model => model.CommissionerCode)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.GeneralLocationCode)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.GeneralLocationCode)
@Html.ValidationMessageFor(model => model.GeneralLocationCode)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.PlatBookPage)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.PlatBookPage)
@Html.ValidationMessageFor(model => model.PlatBookPage)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.ParcelDeliveryPoint)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.ParcelDeliveryPoint)
@Html.ValidationMessageFor(model => model.ParcelDeliveryPoint)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.OwnerDeliveryPoint)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.OwnerDeliveryPoint)
@Html.ValidationMessageFor(model => model.OwnerDeliveryPoint)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.UseZone)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.UseZone)
@Html.ValidationMessageFor(model => model.UseZone)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.FireZone)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.FireZone)
@Html.ValidationMessageFor(model => model.FireZone)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.VarianceCode)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.VarianceCode)
@Html.ValidationMessageFor(model => model.VarianceCode)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.InspectionArea3)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.InspectionArea3)
@Html.ValidationMessageFor(model => model.InspectionArea3)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.Subdivision1)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.Subdivision1)
@Html.ValidationMessageFor(model => model.Subdivision1)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.Subdivision2)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.Subdivision2)
@Html.ValidationMessageFor(model => model.Subdivision2)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.Subdivision1)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.Subdivision1)
@Html.ValidationMessageFor(model => model.Subdivision1)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.LocationCity)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.LocationCity)
@Html.ValidationMessageFor(model => model.LocationCity)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.LocationState)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.LocationState)
@Html.ValidationMessageFor(model => model.LocationState)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.OwnerCity)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.OwnerCity)
@Html.ValidationMessageFor(model => model.OwnerCity)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.OwnerState)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.OwnerState)
@Html.ValidationMessageFor(model => model.OwnerState)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.MapX)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.MapX)
@Html.ValidationMessageFor(model => model.MapX)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.MapY)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.MapY)
@Html.ValidationMessageFor(model => model.MapY)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.AddressStatus)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.AddressStatus)
@Html.ValidationMessageFor(model => model.AddressStatus)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.OwnerEffectiveDate)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.OwnerEffectiveDate)
@Html.ValidationMessageFor(model => model.OwnerEffectiveDate)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.AddressEffectiveDate)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.AddressEffectiveDate)
@Html.ValidationMessageFor(model => model.AddressEffectiveDate)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.IntersectionStreet)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.IntersectionStreet)
@Html.ValidationMessageFor(model => model.IntersectionStreet)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.IntersectionDir)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.IntersectionDir)
@Html.ValidationMessageFor(model => model.IntersectionDir)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.IntersectionSuffix)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.IntersectionSuffix)
@Html.ValidationMessageFor(model => model.IntersectionSuffix)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.OwnerDOB)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.OwnerDOB)
@Html.ValidationMessageFor(model => model.OwnerDOB)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.Longitude11)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.Longitude11)
@Html.ValidationMessageFor(model => model.Longitude11)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.Latitude11)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.Latitude11)
@Html.ValidationMessageFor(model => model.Latitude11)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.Longitude15)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.Longitude15)
@Html.ValidationMessageFor(model => model.Longitude15)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.Latitude15)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.Latitude15)
@Html.ValidationMessageFor(model => model.Latitude15)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.CensusTract7)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.CensusTract7)
@Html.ValidationMessageFor(model => model.CensusTract7)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.CensusTrac11)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.CensusTrac11)
@Html.ValidationMessageFor(model => model.CensusTrac11)
</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/PostLocationAdd
public ActionResult PostLocationAdd()
{
// Create a new instance of the model to pick up any default values.
PostLocationAdd model = new PostLocationAdd();
// pass model to set to default values
// NOTE: Change 'MyFolderPath' to the path to the .cshtml file.
return View("~/Views/MyFolderPath/PostLocationAdd.cshtml", model);
}
//
// POST: /MyController/PostLocationAdd
[HttpPost]
public ActionResult PostLocationAdd(FormCollection collection)
{
string url = "v2/NaviLine/Land/LocationAdd";
// Get the value from each input field
NameValueCollection inputParms = new NameValueCollection();
inputParms.Add("LocationID", collection["LocationID"]);
inputParms.Add("StreetNo", collection["StreetNo"]);
inputParms.Add("StreetDir", collection["StreetDir"]);
inputParms.Add("StreetName", collection["StreetName"]);
inputParms.Add("Apartment", collection["Apartment"]);
inputParms.Add("StreetSuffix", collection["StreetSuffix"]);
inputParms.Add("StreetPostDir", collection["StreetPostDir"]);
inputParms.Add("StreetQualifier", collection["StreetQualifier"]);
inputParms.Add("StreetPreQual", collection["StreetPreQual"]);
inputParms.Add("StreetPostQual", collection["StreetPostQual"]);
inputParms.Add("ZipCode", collection["ZipCode"]);
inputParms.Add("CarrierRoute", collection["CarrierRoute"]);
inputParms.Add("OwnerName", collection["OwnerName"]);
inputParms.Add("OwnerType", collection["OwnerType"]);
inputParms.Add("OwnerAddress", collection["OwnerAddress"]);
inputParms.Add("OwnerAddress2", collection["OwnerAddress2"]);
inputParms.Add("OwnerAddress3", collection["OwnerAddress3"]);
inputParms.Add("OwnerZipCode", collection["OwnerZipCode"]);
inputParms.Add("OwnerCarrierRoute", collection["OwnerCarrierRoute"]);
inputParms.Add("OwnerAreaCode", collection["OwnerAreaCode"]);
inputParms.Add("OwnerPhoneNo", collection["OwnerPhoneNo"]);
inputParms.Add("Parcel", collection["Parcel"]);
inputParms.Add("ParcelNo1", collection["ParcelNo1"]);
inputParms.Add("ParcelNo2", collection["ParcelNo2"]);
inputParms.Add("ParcelNo3", collection["ParcelNo3"]);
inputParms.Add("ParcelNo4", collection["ParcelNo4"]);
inputParms.Add("ParcelNo5", collection["ParcelNo5"]);
inputParms.Add("ParcelNo6", collection["ParcelNo6"]);
inputParms.Add("ParcelNo7", collection["ParcelNo7"]);
inputParms.Add("ParcelNo8", collection["ParcelNo8"]);
inputParms.Add("ParcelNo9", collection["ParcelNo9"]);
inputParms.Add("ParcelNo10", collection["ParcelNo10"]);
inputParms.Add("ParcelTypeCode", collection["ParcelTypeCode"]);
inputParms.Add("ParcelStatus", collection["ParcelStatus"]);
inputParms.Add("ParcelSplitCode", collection["ParcelSplitCode"]);
inputParms.Add("AlternateId", collection["AlternateId"]);
inputParms.Add("Acreage", collection["Acreage"]);
inputParms.Add("PropertyCode", collection["PropertyCode"]);
inputParms.Add("UndividedInterest", collection["UndividedInterest"]);
inputParms.Add("TownshipCode", collection["TownshipCode"]);
inputParms.Add("InsideOutsideCode", collection["InsideOutsideCode"]);
inputParms.Add("CommissionerCode", collection["CommissionerCode"]);
inputParms.Add("GeneralLocationCode", collection["GeneralLocationCode"]);
inputParms.Add("PlatBookPage", collection["PlatBookPage"]);
inputParms.Add("ParcelDeliveryPoint", collection["ParcelDeliveryPoint"]);
inputParms.Add("OwnerDeliveryPoint", collection["OwnerDeliveryPoint"]);
inputParms.Add("UseZone", collection["UseZone"]);
inputParms.Add("FireZone", collection["FireZone"]);
inputParms.Add("VarianceCode", collection["VarianceCode"]);
inputParms.Add("InspectionArea3", collection["InspectionArea3"]);
inputParms.Add("Subdivision1", collection["Subdivision1"]);
inputParms.Add("Subdivision2", collection["Subdivision2"]);
inputParms.Add("Subdivision1", collection["Subdivision1"]);
inputParms.Add("LocationCity", collection["LocationCity"]);
inputParms.Add("LocationState", collection["LocationState"]);
inputParms.Add("OwnerCity", collection["OwnerCity"]);
inputParms.Add("OwnerState", collection["OwnerState"]);
inputParms.Add("MapX", collection["MapX"]);
inputParms.Add("MapY", collection["MapY"]);
inputParms.Add("AddressStatus", collection["AddressStatus"]);
inputParms.Add("OwnerEffectiveDate", collection["OwnerEffectiveDate"]);
inputParms.Add("AddressEffectiveDate", collection["AddressEffectiveDate"]);
inputParms.Add("IntersectionStreet", collection["IntersectionStreet"]);
inputParms.Add("IntersectionDir", collection["IntersectionDir"]);
inputParms.Add("IntersectionSuffix", collection["IntersectionSuffix"]);
inputParms.Add("OwnerDOB", collection["OwnerDOB"]);
inputParms.Add("Longitude11", collection["Longitude11"]);
inputParms.Add("Latitude11", collection["Latitude11"]);
inputParms.Add("Longitude15", collection["Longitude15"]);
inputParms.Add("Latitude15", collection["Latitude15"]);
inputParms.Add("CensusTract7", collection["CensusTract7"]);
inputParms.Add("CensusTrac11", collection["CensusTrac11"]);
try
{
// Send the request
FusionServiceRequest request = new FusionServiceRequest();
FusionServiceResult result = request.Post(url, inputParms);
return View("Result", result);
}
catch(Exception e)
{
HandleErrorInfo info = new HandleErrorInfo(e, "MyController", "PostLocationAdd");
return View("Error", info);
}
}