PostWRJobOrderUpdate
| Name | Type | Length | Description | 
|---|---|---|---|
| workReqNbr | System.String | 9 | [Required] Work request number. Required for Update and Delete only. | 
| apiMode | System.String | 6 | [Required] API Mode of operation. Valid Values:• Create• Update• Delete | 
| shortDesc | System.String | 78 | Short description – if not supplied with create then the category description will be used. NOTE: Required for Create of work request. | 
| commentMode | System.String | 7 | Comment update mode – applies to both the w/r detailed description and job order instructions. Valid values:• Append• Replace | 
| jobOrderNbr | System.String | 3 | [Required] Job order number (numeric) – required when updating a job order. Should be zero when requesting to update a work request. | 
| unitizationMethod | System.String | 1 | Unitization method. Note: A value of ‘*’ should be sent if you wish to blank out this value. | 
| depRateCode | System.String | 3 | Depreciation rate code. Note: A value of ‘*’ should be sent if you wish to blank out this value. | 
| depConvention | System.String | 1 | Depreciation convention. Note: A value of ‘*’ should be sent if you wish to blank out this value. | 
| subAcctGroup | System.String | 2 | Subaccount group. Note: A value of ‘*’ should be sent if you wish to blank out this value. | 
| subAcct | System.String | 5 | Subaccount. Note: A value of ‘*’ should be sent if you wish to blank out this value. | 
| actualStartDate | System.String | 8 | Actual start date (numeric – YYYYMMDD). Note: May be required by request category. | 
| relatedWRNbr | System.String | 9 | Related work request number. Note: A value of ‘*’ should be sent if you wish to blank out this value. | 
| reqCategory | System.String | 4 | Request Category (required for Create) | 
| workType | System.String | 4 | Work Type (required for Create) | 
| reqOrigin | System.String | 4 | Request Origin (required for Create) | 
| customerId | System.String | 9 | Customer ID (numeric). NOTE: Required for Create of CIS type work request and may be required by request category. | 
| requestorName | System.String | 30 | Requestor name. Note: A value of ‘*’ should be sent if you wish to blank out this value. | 
| requestingDept | System.String | 4 | Requesting department. Note: May be required by request category. Note: A value of ‘*’ should be sent if you wish to blank out this value. | 
| reqPriority | System.String | 2 | Request priority. Note: A value of ‘*’ should be sent if you wish to blank out this value. | 
| locationId | System.String | 9 | Location ID. NOTE: Required for Create of CIS type work request and may be required by request category. | 
| generalLocation | System.String | 6 | General location. Note: May be required by request category. Note: A value of ‘*’ should be sent if you wish to blank out this value. | 
| detailedDesc | System.String | 5000 | Detailed description comments. | 
| xCoordinate | System.String | 16 | W/R X-coordinate | 
| yCoordinate | System.String | 16 | W/R Y-coordinate | 
| zCoordinate | System.String | 12 | W/R Z-coordinate | 
| schedStartDate | System.String | 8 | Scheduled start date (numeric – YYYYMMDD). If not provided on create it will default to today’s date. | 
| schedComplDate | System.String | 8 | Schedule completion date (numeric - YYYYMMDD). | 
| actualComplDate | System.String | 8 | Actual completion date (numeric – YYYYMMDD) | 
| chargeToDept | System.String | 4 | Charge to department. Note: May be required by request category. Note: A value of ‘*’ should be sent if you wish to blank out this value. | 
| reqRefNumber | System.String | 15 | Request reference number. Note: May be required by request category. Note: A value of ‘*’ should be sent if you wish to blank out this value. | 
| reqTask | System.String | 4 | Required for create – must be associated with specified request category. | 
| joDesc | System.String | 75 | Job order description – if not supplied with create then the task description will be used | 
| System.String | 3 | Print job order when created – only applies in create mode. If not provided then default from request category will be used. Valid values:• Yes• No | |
| serviceCode | System.String | 2 | Service code. Note: A value of ‘*’ should be sent if you wish to blank out this value. | 
| serviceSeq | System.String | 3 | Service sequence (numeric) | 
| meterNumber | System.String | 12 | Meter number. Note: A value of ‘*’ should be sent if you wish to blank out this value. | 
| crew | System.String | 4 | Crew. Note: A value of ‘*’ should be sent if you wish to blank out this value. | 
| dispatchedBy | System.String | 10 | Dispatched by. Note: A value of ‘*’ should be sent if you wish to blank out this value. | 
| dispatchedTo | System.String | 9 | Dispatched to (numeric) | 
| dispatchedDate | System.String | 10 | Dispatched date (numeric – YYYYMMDD) | 
| dispatchedTime | System.String | 6 | Dispatched time (numeric – HHMMSS) | 
| actualStartTime | System.String | 6 | Actual start time (numeric – HHMMSS) | 
| actualCompletionTIme | System.String | 6 | Actual completion time (numeric – HHMMSS) | 
| jobOrderInstructs | System.String | 5000 | Job order instructions | 
| joXCoordinate | System.String | 16 | J/O X-coordinate | 
| joYCoordinate | System.String | 16 | J/O Y-coordinate | 
| joZCoordinate | System.String | 12 | J/O Z-coordinate | 
| defPRAcct | System.String | 50 | Payroll hours entry G/L account default. Note: A value of ‘*’ should be sent if you wish to blank out this value. | 
| defPLAcct | System.String | 50 | Issues G/L account defaulty. Note: A value of ‘*’ should be sent if you wish to blank out this value. | 
| defPOAcct | System.String | 50 | Purchase order G/L account default. Note: A value of ‘*’ should be sent if you wish to blank out this value. | 
| defPCAcct | System.String | 50 | P-Card G/L account default (future). Note: A value of ‘*’ should be sent if you wish to blank out this value. | 
| newMeterNumber | System.String | 12 | New meter number. Note: A value of ‘*’ should be sent if you wish to blank out this value. | 
POST http://localhost/FusionServices/v3/Naviline/WorkOrders/WRJobOrderUpdate
| Name | Description | 
|---|---|
| OUT_ERRCDE | 0000 | 
| OUT_ERRDSC | Success | 
| OUT_REQSTS | OP | 
| OUT_JOBSTS | 
using System.Net;
using Newtonsoft.Json.Linq;
public void MethodName(parms)
{
   string uri = "http://localhost/FusionServices/v3/Naviline/WorkOrders/WRJobOrderUpdate";
   System.Collections.Specialized.NameValueCollection postParms = 
     new System.Collections.Specialized.NameValueCollection(); 
   // Set paramater values
   postParms.Add("workReqNbr",System.Web.HttpUtility.UrlEncode("WF0180937"));
   postParms.Add("apiMode",System.Web.HttpUtility.UrlEncode("Update"));
   postParms.Add("shortDesc",System.Web.HttpUtility.UrlEncode("Faith Comment"));
   postParms.Add("commentMode",System.Web.HttpUtility.UrlEncode("Append"));
   WebClient req = new WebClient();
   wc.Headers.Add("Content-Type", "application/x-www-form-urlencoded");
   wc.Headers.Set("X-APPID", "YOURID");
   wc.Headers.Set("X-APPKEY", "YOURKEY");
   byte[] responseBytes = wc.UploadValues(new Uri(uri), "POST", postParms);
   string stringResult = Encoding.UTF8.GetString(responseBytes); 
   JObject response = JObject.Parse(stringResult);
   string error = response["OutputParms"]["ErrorCode"].ToString();
   if (error == "0000")
   {
         // TODO - YOUR CODE HERE
   }
}
            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 PostWRJobOrderUpdate
   {
       // Add property for each input param in order to map a field to it
       [Required(ErrorMessage = "Required")]
       [RegularExpression("^(?=.{0,9}$).*", ErrorMessage = "Must be 9 characters or less. ")]
       public string workReqNbr{get; set;}
       [Required(ErrorMessage = "Required")]
       [RegularExpression("^(?=.{0,6}$).*", ErrorMessage = "Must be 6 characters or less. ")]
       public string apiMode{get; set;}
       [RegularExpression("^(?=.{0,78}$).*", ErrorMessage = "Must be 78 characters or less. ")]
       public string shortDesc{get; set;}
       [RegularExpression("^(?=.{0,7}$).*", ErrorMessage = "Must be 7 characters or less. ")]
       public string commentMode{get; set;}
       [Required(ErrorMessage = "Required")]
       [RegularExpression("^(?=.{0,3}$).*", ErrorMessage = "Must be 3 characters or less. ")]
       public string jobOrderNbr{get; set;}
       [RegularExpression("^(?=.{0,1}$).*", ErrorMessage = "Must be 1 characters or less. ")]
       public string unitizationMethod{get; set;}
       [RegularExpression("^(?=.{0,3}$).*", ErrorMessage = "Must be 3 characters or less. ")]
       public string depRateCode{get; set;}
       [RegularExpression("^(?=.{0,1}$).*", ErrorMessage = "Must be 1 characters or less. ")]
       public string depConvention{get; set;}
       [RegularExpression("^(?=.{0,2}$).*", ErrorMessage = "Must be 2 characters or less. ")]
       public string subAcctGroup{get; set;}
       [RegularExpression("^(?=.{0,5}$).*", ErrorMessage = "Must be 5 characters or less. ")]
       public string subAcct{get; set;}
       [RegularExpression("^(?=.{0,8}$).*", ErrorMessage = "Must be 8 characters or less. ")]
       public string actualStartDate{get; set;}
       [RegularExpression("^(?=.{0,9}$).*", ErrorMessage = "Must be 9 characters or less. ")]
       public string relatedWRNbr{get; set;}
       [RegularExpression("^(?=.{0,4}$).*", ErrorMessage = "Must be 4 characters or less. ")]
       public string reqCategory{get; set;}
       [RegularExpression("^(?=.{0,4}$).*", ErrorMessage = "Must be 4 characters or less. ")]
       public string workType{get; set;}
       [RegularExpression("^(?=.{0,4}$).*", ErrorMessage = "Must be 4 characters or less. ")]
       public string reqOrigin{get; set;}
       [RegularExpression("^(?=.{0,9}$).*", ErrorMessage = "Must be 9 characters or less. ")]
       public string customerId{get; set;}
       [RegularExpression("^(?=.{0,30}$).*", ErrorMessage = "Must be 30 characters or less. ")]
       public string requestorName{get; set;}
       [RegularExpression("^(?=.{0,4}$).*", ErrorMessage = "Must be 4 characters or less. ")]
       public string requestingDept{get; set;}
       [RegularExpression("^(?=.{0,2}$).*", ErrorMessage = "Must be 2 characters or less. ")]
       public string reqPriority{get; set;}
       [RegularExpression("^(?=.{0,9}$).*", ErrorMessage = "Must be 9 characters or less. ")]
       public string locationId{get; set;}
       [RegularExpression("^(?=.{0,6}$).*", ErrorMessage = "Must be 6 characters or less. ")]
       public string generalLocation{get; set;}
       [RegularExpression("^(?=.{0,5000}$).*", ErrorMessage = "Must be 5000 characters or less. ")]
       public string detailedDesc{get; set;}
       [RegularExpression("^(?=.{0,16}$).*", ErrorMessage = "Must be 16 characters or less. ")]
       public string xCoordinate{get; set;}
       [RegularExpression("^(?=.{0,16}$).*", ErrorMessage = "Must be 16 characters or less. ")]
       public string yCoordinate{get; set;}
       [RegularExpression("^(?=.{0,12}$).*", ErrorMessage = "Must be 12 characters or less. ")]
       public string zCoordinate{get; set;}
       [RegularExpression("^(?=.{0,8}$).*", ErrorMessage = "Must be 8 characters or less. ")]
       public string schedStartDate{get; set;}
       [RegularExpression("^(?=.{0,8}$).*", ErrorMessage = "Must be 8 characters or less. ")]
       public string schedComplDate{get; set;}
       [RegularExpression("^(?=.{0,8}$).*", ErrorMessage = "Must be 8 characters or less. ")]
       public string actualComplDate{get; set;}
       [RegularExpression("^(?=.{0,4}$).*", ErrorMessage = "Must be 4 characters or less. ")]
       public string chargeToDept{get; set;}
       [RegularExpression("^(?=.{0,15}$).*", ErrorMessage = "Must be 15 characters or less. ")]
       public string reqRefNumber{get; set;}
       [RegularExpression("^(?=.{0,4}$).*", ErrorMessage = "Must be 4 characters or less. ")]
       public string reqTask{get; set;}
       [RegularExpression("^(?=.{0,75}$).*", ErrorMessage = "Must be 75 characters or less. ")]
       public string joDesc{get; set;}
       [RegularExpression("^(?=.{0,3}$).*", ErrorMessage = "Must be 3 characters or less. ")]
       public string print{get; set;}
       [RegularExpression("^(?=.{0,2}$).*", ErrorMessage = "Must be 2 characters or less. ")]
       public string serviceCode{get; set;}
       [RegularExpression("^(?=.{0,3}$).*", ErrorMessage = "Must be 3 characters or less. ")]
       public string serviceSeq{get; set;}
       [RegularExpression("^(?=.{0,12}$).*", ErrorMessage = "Must be 12 characters or less. ")]
       public string meterNumber{get; set;}
       [RegularExpression("^(?=.{0,4}$).*", ErrorMessage = "Must be 4 characters or less. ")]
       public string crew{get; set;}
       [RegularExpression("^(?=.{0,10}$).*", ErrorMessage = "Must be 10 characters or less. ")]
       public string dispatchedBy{get; set;}
       [RegularExpression("^(?=.{0,9}$).*", ErrorMessage = "Must be 9 characters or less. ")]
       public string dispatchedTo{get; set;}
       [RegularExpression("^(?=.{0,10}$).*", ErrorMessage = "Must be 10 characters or less. ")]
       public string dispatchedDate{get; set;}
       [RegularExpression("^(?=.{0,6}$).*", ErrorMessage = "Must be 6 characters or less. ")]
       public string dispatchedTime{get; set;}
       [RegularExpression("^(?=.{0,6}$).*", ErrorMessage = "Must be 6 characters or less. ")]
       public string actualStartTime{get; set;}
       [RegularExpression("^(?=.{0,6}$).*", ErrorMessage = "Must be 6 characters or less. ")]
       public string actualCompletionTIme{get; set;}
       [RegularExpression("^(?=.{0,5000}$).*", ErrorMessage = "Must be 5000 characters or less. ")]
       public string jobOrderInstructs{get; set;}
       [RegularExpression("^(?=.{0,16}$).*", ErrorMessage = "Must be 16 characters or less. ")]
       public string joXCoordinate{get; set;}
       [RegularExpression("^(?=.{0,16}$).*", ErrorMessage = "Must be 16 characters or less. ")]
       public string joYCoordinate{get; set;}
       [RegularExpression("^(?=.{0,12}$).*", ErrorMessage = "Must be 12 characters or less. ")]
       public string joZCoordinate{get; set;}
       [RegularExpression("^(?=.{0,50}$).*", ErrorMessage = "Must be 50 characters or less. ")]
       public string defPRAcct{get; set;}
       [RegularExpression("^(?=.{0,50}$).*", ErrorMessage = "Must be 50 characters or less. ")]
       public string defPLAcct{get; set;}
       [RegularExpression("^(?=.{0,50}$).*", ErrorMessage = "Must be 50 characters or less. ")]
       public string defPOAcct{get; set;}
       [RegularExpression("^(?=.{0,50}$).*", ErrorMessage = "Must be 50 characters or less. ")]
       public string defPCAcct{get; set;}
       [RegularExpression("^(?=.{0,12}$).*", ErrorMessage = "Must be 12 characters or less. ")]
       public string newMeterNumber{get; set;}
       public PostWRJobOrderUpdate()
       {
           //Set any defaults here
       }
   }
}
        @* NOTE: Use Add->View to add the View. *@
@* NOTE: Check the 'Create strongly-typed view checkbox, and select the PostWRJobOrderUpdate 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.PostWRJobOrderUpdate
@{
   ViewBag.Title = "PostWRJobOrderUpdate";
}
<h2>PostWRJobOrderUpdate</h2>
@using (Html.BeginForm()) {
   @Html.AntiForgeryToken()
   @Html.ValidationSummary(true)
   <fieldset>
   <legend>PostWRJobOrderUpdate</legend>
       <div class="editor-label">
           @Html.LabelFor(model => model.workReqNbr)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.workReqNbr)
           @Html.ValidationMessageFor(model => model.workReqNbr)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.apiMode)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.apiMode)
           @Html.ValidationMessageFor(model => model.apiMode)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.shortDesc)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.shortDesc)
           @Html.ValidationMessageFor(model => model.shortDesc)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.commentMode)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.commentMode)
           @Html.ValidationMessageFor(model => model.commentMode)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.jobOrderNbr)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.jobOrderNbr)
           @Html.ValidationMessageFor(model => model.jobOrderNbr)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.unitizationMethod)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.unitizationMethod)
           @Html.ValidationMessageFor(model => model.unitizationMethod)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.depRateCode)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.depRateCode)
           @Html.ValidationMessageFor(model => model.depRateCode)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.depConvention)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.depConvention)
           @Html.ValidationMessageFor(model => model.depConvention)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.subAcctGroup)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.subAcctGroup)
           @Html.ValidationMessageFor(model => model.subAcctGroup)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.subAcct)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.subAcct)
           @Html.ValidationMessageFor(model => model.subAcct)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.actualStartDate)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.actualStartDate)
           @Html.ValidationMessageFor(model => model.actualStartDate)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.relatedWRNbr)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.relatedWRNbr)
           @Html.ValidationMessageFor(model => model.relatedWRNbr)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.reqCategory)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.reqCategory)
           @Html.ValidationMessageFor(model => model.reqCategory)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.workType)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.workType)
           @Html.ValidationMessageFor(model => model.workType)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.reqOrigin)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.reqOrigin)
           @Html.ValidationMessageFor(model => model.reqOrigin)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.customerId)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.customerId)
           @Html.ValidationMessageFor(model => model.customerId)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.requestorName)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.requestorName)
           @Html.ValidationMessageFor(model => model.requestorName)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.requestingDept)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.requestingDept)
           @Html.ValidationMessageFor(model => model.requestingDept)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.reqPriority)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.reqPriority)
           @Html.ValidationMessageFor(model => model.reqPriority)
       </div>
       <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.generalLocation)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.generalLocation)
           @Html.ValidationMessageFor(model => model.generalLocation)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.detailedDesc)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.detailedDesc)
           @Html.ValidationMessageFor(model => model.detailedDesc)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.xCoordinate)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.xCoordinate)
           @Html.ValidationMessageFor(model => model.xCoordinate)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.yCoordinate)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.yCoordinate)
           @Html.ValidationMessageFor(model => model.yCoordinate)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.zCoordinate)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.zCoordinate)
           @Html.ValidationMessageFor(model => model.zCoordinate)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.schedStartDate)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.schedStartDate)
           @Html.ValidationMessageFor(model => model.schedStartDate)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.schedComplDate)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.schedComplDate)
           @Html.ValidationMessageFor(model => model.schedComplDate)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.actualComplDate)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.actualComplDate)
           @Html.ValidationMessageFor(model => model.actualComplDate)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.chargeToDept)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.chargeToDept)
           @Html.ValidationMessageFor(model => model.chargeToDept)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.reqRefNumber)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.reqRefNumber)
           @Html.ValidationMessageFor(model => model.reqRefNumber)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.reqTask)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.reqTask)
           @Html.ValidationMessageFor(model => model.reqTask)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.joDesc)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.joDesc)
           @Html.ValidationMessageFor(model => model.joDesc)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.print)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.print)
           @Html.ValidationMessageFor(model => model.print)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.serviceCode)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.serviceCode)
           @Html.ValidationMessageFor(model => model.serviceCode)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.serviceSeq)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.serviceSeq)
           @Html.ValidationMessageFor(model => model.serviceSeq)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.meterNumber)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.meterNumber)
           @Html.ValidationMessageFor(model => model.meterNumber)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.crew)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.crew)
           @Html.ValidationMessageFor(model => model.crew)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.dispatchedBy)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.dispatchedBy)
           @Html.ValidationMessageFor(model => model.dispatchedBy)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.dispatchedTo)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.dispatchedTo)
           @Html.ValidationMessageFor(model => model.dispatchedTo)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.dispatchedDate)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.dispatchedDate)
           @Html.ValidationMessageFor(model => model.dispatchedDate)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.dispatchedTime)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.dispatchedTime)
           @Html.ValidationMessageFor(model => model.dispatchedTime)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.actualStartTime)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.actualStartTime)
           @Html.ValidationMessageFor(model => model.actualStartTime)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.actualCompletionTIme)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.actualCompletionTIme)
           @Html.ValidationMessageFor(model => model.actualCompletionTIme)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.jobOrderInstructs)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.jobOrderInstructs)
           @Html.ValidationMessageFor(model => model.jobOrderInstructs)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.joXCoordinate)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.joXCoordinate)
           @Html.ValidationMessageFor(model => model.joXCoordinate)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.joYCoordinate)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.joYCoordinate)
           @Html.ValidationMessageFor(model => model.joYCoordinate)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.joZCoordinate)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.joZCoordinate)
           @Html.ValidationMessageFor(model => model.joZCoordinate)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.defPRAcct)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.defPRAcct)
           @Html.ValidationMessageFor(model => model.defPRAcct)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.defPLAcct)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.defPLAcct)
           @Html.ValidationMessageFor(model => model.defPLAcct)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.defPOAcct)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.defPOAcct)
           @Html.ValidationMessageFor(model => model.defPOAcct)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.defPCAcct)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.defPCAcct)
           @Html.ValidationMessageFor(model => model.defPCAcct)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.newMeterNumber)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.newMeterNumber)
           @Html.ValidationMessageFor(model => model.newMeterNumber)
       </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/PostWRJobOrderUpdate
public ActionResult PostWRJobOrderUpdate()
{
   // Create a new instance of the model to pick up any default values.
   PostWRJobOrderUpdate model =  new PostWRJobOrderUpdate();
   // pass model to set to default values
   // NOTE: Change 'MyFolderPath' to the path to the .cshtml file.
   return View("~/Views/MyFolderPath/PostWRJobOrderUpdate.cshtml", model);
}
// 
// POST: /MyController/PostWRJobOrderUpdate
[HttpPost]
public ActionResult PostWRJobOrderUpdate(FormCollection collection)
{
   string url = "v3/Naviline/WorkOrders/WRJobOrderUpdate";
   // Get the value from each input field
   NameValueCollection inputParms = new NameValueCollection();
   inputParms.Add("workReqNbr", collection["workReqNbr"]);
   inputParms.Add("apiMode", collection["apiMode"]);
   inputParms.Add("shortDesc", collection["shortDesc"]);
   inputParms.Add("commentMode", collection["commentMode"]);
   inputParms.Add("jobOrderNbr", collection["jobOrderNbr"]);
   inputParms.Add("unitizationMethod", collection["unitizationMethod"]);
   inputParms.Add("depRateCode", collection["depRateCode"]);
   inputParms.Add("depConvention", collection["depConvention"]);
   inputParms.Add("subAcctGroup", collection["subAcctGroup"]);
   inputParms.Add("subAcct", collection["subAcct"]);
   inputParms.Add("actualStartDate", collection["actualStartDate"]);
   inputParms.Add("relatedWRNbr", collection["relatedWRNbr"]);
   inputParms.Add("reqCategory", collection["reqCategory"]);
   inputParms.Add("workType", collection["workType"]);
   inputParms.Add("reqOrigin", collection["reqOrigin"]);
   inputParms.Add("customerId", collection["customerId"]);
   inputParms.Add("requestorName", collection["requestorName"]);
   inputParms.Add("requestingDept", collection["requestingDept"]);
   inputParms.Add("reqPriority", collection["reqPriority"]);
   inputParms.Add("locationId", collection["locationId"]);
   inputParms.Add("generalLocation", collection["generalLocation"]);
   inputParms.Add("detailedDesc", collection["detailedDesc"]);
   inputParms.Add("xCoordinate", collection["xCoordinate"]);
   inputParms.Add("yCoordinate", collection["yCoordinate"]);
   inputParms.Add("zCoordinate", collection["zCoordinate"]);
   inputParms.Add("schedStartDate", collection["schedStartDate"]);
   inputParms.Add("schedComplDate", collection["schedComplDate"]);
   inputParms.Add("actualComplDate", collection["actualComplDate"]);
   inputParms.Add("chargeToDept", collection["chargeToDept"]);
   inputParms.Add("reqRefNumber", collection["reqRefNumber"]);
   inputParms.Add("reqTask", collection["reqTask"]);
   inputParms.Add("joDesc", collection["joDesc"]);
   inputParms.Add("print", collection["print"]);
   inputParms.Add("serviceCode", collection["serviceCode"]);
   inputParms.Add("serviceSeq", collection["serviceSeq"]);
   inputParms.Add("meterNumber", collection["meterNumber"]);
   inputParms.Add("crew", collection["crew"]);
   inputParms.Add("dispatchedBy", collection["dispatchedBy"]);
   inputParms.Add("dispatchedTo", collection["dispatchedTo"]);
   inputParms.Add("dispatchedDate", collection["dispatchedDate"]);
   inputParms.Add("dispatchedTime", collection["dispatchedTime"]);
   inputParms.Add("actualStartTime", collection["actualStartTime"]);
   inputParms.Add("actualCompletionTIme", collection["actualCompletionTIme"]);
   inputParms.Add("jobOrderInstructs", collection["jobOrderInstructs"]);
   inputParms.Add("joXCoordinate", collection["joXCoordinate"]);
   inputParms.Add("joYCoordinate", collection["joYCoordinate"]);
   inputParms.Add("joZCoordinate", collection["joZCoordinate"]);
   inputParms.Add("defPRAcct", collection["defPRAcct"]);
   inputParms.Add("defPLAcct", collection["defPLAcct"]);
   inputParms.Add("defPOAcct", collection["defPOAcct"]);
   inputParms.Add("defPCAcct", collection["defPCAcct"]);
   inputParms.Add("newMeterNumber", collection["newMeterNumber"]);
   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", "PostWRJobOrderUpdate");
       return View("Error", info);
   }
}