编辑代码

/*
    Name: fnGetEventHandler
    Function: get event handler
    Param: null
    Return: store event handler into window.objGlobalParam.strEventHandler
 */

function fnGetEventHandler() {
    let xmlhttp = new XMLHttpRequest();
    xmlhttp.onreadystatechange = function () {
        if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
            console.log("fnGetEventHandler: ");
            console.log(xmlhttp.responseText);
            //objParam.objReservationDetails= rtn.responseJSON.ResScreenData.ResRows;
            //fnTasksLoop("fnGetReservationDetails",xmlhttp.responseText);
            let objParam = {
                "strName": "fnCallBackGetEventHandler",
                "objValue": null,
                "bIfContinue": true,
                "strErrorDescription": ""
            }
            window.objGlobalParam.strEventHandler = xmlhttp.responseText;
            window.postMessage(objParam);
        }
    }
    xmlhttp.open("GET", "https://app9.rmscloud.cn/api/UtilitiesService/InitEventHandler" +
        "?placeholder=" + Math.random());
    xmlhttp.setRequestHeader('content-Type', 'application/json; charset=utf-8');
    xmlhttp.send();
}

/*
    Name: fnEventStatusAsync
    Function: get event resault
    Param: null
    Return: if return value is null recall itself
        it will run itself up to 9 times,otherwise it return with error
 */

function fnEventStatusAsync(strEventId) {
    let xmlhttp = new XMLHttpRequest();
    xmlhttp.onreadystatechange = function () {
        if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
            console.log("fnEventStatusAsync: ");
            console.log(xmlhttp.responseText);
            //objParam.objReservationDetails= rtn.responseJSON.ResScreenData.ResRows;
            //fnTasksLoop("fnGetReservationDetails",xmlhttp.responseText);
            if (xmlhttp.responseText.toLowerCase() == 'null') {
                setTimeout(function () {
                    window.objGlobalParam.nExpireCounter = parseInt(window.objGlobalParam.nExpireCounter) + 1;
                    if (parseInt(window.objGlobalParam.nExpireCounter) >= 9) {
                        window.objGlobalParam.nExpireCounter = 0;
                        let objParam = {
                            "strName": "fnCallBackEventStatusAsync",
                            "objValue": null,
                            "bIfContinue": false,
                            "strErrorDescription": "创建失败,请重试"
                        }
                        window.objGlobalParam.objReservationDetails = JSON.parse(xmlhttp.responseText).ResScreenData;
                        window.postMessage(objParam);
                        alert('创建失败,请重试');
                        fnClearEventHandler(strEventId);
                    }
                    else
                        fnEventStatusAsync(strEventId);
                }, 1000)
            }
            else {
                let objParam = {
                    "strName": "fnCallBackEventStatusAsync",
                    "objValue": null,
                    "bIfContinue": true,
                    "strErrorDescription": ""
                }
                window.objGlobalParam.objReservationDetails = JSON.parse(xmlhttp.responseText).ResScreenData;
                window.postMessage(objParam);
                alert('预订成功,订单确认号: ' + JSON.parse(xmlhttp.responseText).ResScreenData.ResId);
                fnClearEventHandler(strEventId);
            }
        }
    }
    xmlhttp.open("GET", "https://app9.rmscloud.cn/api/UtilitiesService/EventStatusAsync?" +
        "EventId=" + strEventId);
    xmlhttp.setRequestHeader('content-Type', 'application/json; charset=utf-8');
    xmlhttp.send();
}


/*
    Name: fnClearEventHandler
    Function: clear event 
    Param: null
    Return: if return value is null recall itself
 */

function fnClearEventHandler(strEventId) {
    let xmlhttp = new XMLHttpRequest();
    xmlhttp.onreadystatechange = function () {
        if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
            console.log("fnClearEventHandler: ");
            console.log(xmlhttp.responseText);
            let objParam = {
                "strName": "fnCallBackClearEventHandler",
                "objValue": null,
                "bIfContinue": true,
                "strErrorDescription": ""
            }
            //window.objGlobalParam.objReservationDetails = JSON.parse(xmlhttp.responseText).ResScreenData;
            //window.postMessage(objParam);
        }
    }
    xmlhttp.open("GET", "https://app9.rmscloud.cn/api/UtilitiesService/ClearEventHandler?" +
        "EventId=" + strEventId);
    xmlhttp.setRequestHeader('content-Type', 'application/json; charset=utf-8');
    xmlhttp.send();
}

/*  name:fnCreateNewReservation
    function: Creat a new reservation (limited to suzhou inovance and POA only)
    Param:strEventId,
        strName,
        dateArrive,
        nNights,
        strCompanyName,
        strRoomType,
        strBillRoomType
        nPaymentMode 0:POA  1:CTA 2:CTC
    return:
    future:room type
 */
function fnCreateNewReservation(strEventId, strName, dateArrive, dateDepart, nNights, nPaymentMode, strRoomType, strBillRoomType) {
    /*= yyyy - mm - dd + "T14:00:00"
    "Identifier": "Depart",
    = yyyy - mm - dd + "T12:00:00" */

    let objParam = {
        "ResId": 0,
        "AccountId": 0,
        "ClientId": 0,
        "PropertyId": JSON.parse(window.sessionStorage.getItem("InitData")).data.AccDates[0].PropertyId,
        "PropertyName": JSON.parse(window.sessionStorage.getItem("InitData")).data.AccDates[0].PropertyName,
        "Navigator": [],
        "ClientData": {
            "ClientId": 0,
            "AccId": 0,
            "DwellingId": 0,
            "ClientRows": [{
                "Identifier": "SmartSearchKey",
                "Label": "RMS SmartSearch",
                "TypeOfControl": 0,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 6,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 0,
                "SmartSearch": true,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": false
            },
            {
                "Identifier": "Guest_Id",
                "Label": "Guest No",
                "TypeOfControl": 0,
                "IsClickable": true,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 6,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 1,
                "SmartSearch": true,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": true,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": false
            },
            {
                "Identifier": "Spare2",
                "Label": "Legacy Guest ID/UID",
                "TypeOfControl": 0,
                "IsClickable": true,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 50,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": true,
                "Tag": null,
                "FieldOrder": 2,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true
            },
            {
                "Identifier": "LoyaltyLevel",
                "Label": "Loyalty Level",
                "TypeOfControl": 2,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 50,
                "ComboBoxType": 81,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 3,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true,
                "comboSelected": {
                    "ValueText": "",
                    "ValueTextId": 0
                },
                "isOpen": false
            },
            {
                "Identifier": "LoyaltyNo",
                "Label": "Loyalty No",
                "TypeOfControl": 0,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 20,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 4,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true
            },
            {
                "Identifier": "Group_Name",
                "Label": "Group Name",
                "TypeOfControl": 0,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 50,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 5,
                "SmartSearch": true,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true,
                "firstClick": false
            },
            {
                "Identifier": "Surname",
                "Label": "Last Name",
                "TypeOfControl": 0,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "Xian",
                "PlaceholderText": "",
                "MaxLength": 50,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": true,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 6,
                "SmartSearch": true,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true,
                "firstClick": false
            },
            {
                "Identifier": "Given",
                "Label": "First Name",
                "TypeOfControl": 0,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": ".",
                "PlaceholderText": "",
                "MaxLength": 50,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": true,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 7,
                "SmartSearch": true,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true,
                "firstClick": false
            },
            {
                "Identifier": "Title",
                "Label": "Title",
                "TypeOfControl": 2,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 15,
                "ComboBoxType": 9,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 8,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true,
                "comboSelected": {
                    "ValueText": "",
                    "ValueTextId": 0
                },
                "isOpen": false
            },
            {
                "Identifier": "Other_Name",
                "Label": "Other Name",
                "TypeOfControl": 0,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 50,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 9,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true,
                "firstClick": false
            },
            {
                "Identifier": "Email",
                "Label": "Email",
                "TypeOfControl": 0,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 100,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 6,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 10,
                "SmartSearch": true,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": false
            },
            {
                "Identifier": "Gender",
                "Label": "Gender",
                "TypeOfControl": 2,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 15,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 11,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true,
                "comboSelected": {
                    "ValueText": "",
                    "ValueTextId": 0
                },
                "isOpen": false
            },
            {
                "Identifier": "Mobile",
                "Label": "Mobile",
                "TypeOfControl": 0,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 17,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 7,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 12,
                "SmartSearch": true,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": false
            },
            {
                "Identifier": "Phone_AH",
                "Label": "Phone AH",
                "TypeOfControl": 0,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 21,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 7,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 13,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": false
            },
            {
                "Identifier": "IDType_Id",
                "Label": "ID Type",
                "TypeOfControl": 2,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 89,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 15,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true,
                "comboSelected": {
                    "ValueText": "",
                    "ValueTextId": 0
                },
                "isOpen": false
            },
            {
                "Identifier": "IndiaState",
                "Label": "State",
                "TypeOfControl": 2,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 20,
                "ComboBoxType": 120,
                "FieldVisible": false,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 16,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": true,
                "MetaData": null,
                "CapitalizeOnBlur": true,
                "comboSelected": {
                    "ValueText": "",
                    "ValueTextId": 0
                },
                "isOpen": false
            },
            {
                "Identifier": "CountryOfPassport_Id",
                "Label": "Country Of ID",
                "TypeOfControl": 2,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 4,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 17,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true,
                "comboSelected": {
                    "ValueText": "",
                    "ValueTextId": 0
                },
                "isOpen": false
            },
            {
                "Identifier": "IndiaPostCode",
                "Label": "Post Code",
                "TypeOfControl": 2,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 15,
                "ComboBoxType": 121,
                "FieldVisible": false,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 18,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": true,
                "MetaData": null,
                "CapitalizeOnBlur": true,
                "comboSelected": {
                    "ValueText": "",
                    "ValueTextId": 0
                },
                "isOpen": false
            },
            {
                "Identifier": "PassportNo",
                "Label": "Passport No",
                "TypeOfControl": 0,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 30,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 19,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true
            },
            {
                "Identifier": "Nationality_Id",
                "Label": "Nationality",
                "TypeOfControl": 2,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 50,
                "ComboBoxType": 4,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 20,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true,
                "comboSelected": {
                    "ValueText": "",
                    "ValueTextId": 0
                },
                "isOpen": false
            },
            {
                "Identifier": "Birthday",
                "Label": "Birthday",
                "TypeOfControl": 1,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 3,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 21,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": false
            },
            {
                "Identifier": "Visa_Number",
                "Label": "Visa Number",
                "TypeOfControl": 0,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 30,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 22,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true
            },
            {
                "Identifier": "Visa_Expiry",
                "Label": "Visa Expiry",
                "TypeOfControl": 1,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 3,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 23,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": false
            },
            {
                "Identifier": "Addr1",
                "Label": "Address Line 1",
                "TypeOfControl": 0,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "Enter a location",
                "MaxLength": 50,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 5,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 24,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": false
            },
            {
                "Identifier": "Addr3",
                "Label": "Address Line 2",
                "TypeOfControl": 0,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 50,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 5,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 25,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": false
            },
            {
                "Identifier": "Addr4",
                "Label": "Address Line 3",
                "TypeOfControl": 0,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 50,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 5,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 26,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": false
            },
            {
                "Identifier": "Addr2",
                "Label": "City",
                "TypeOfControl": 2,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "Enter a location",
                "MaxLength": 50,
                "ComboBoxType": 28,
                "FieldVisible": true,
                "DisplayFormat": 5,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 27,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": false,
                "comboSelected": {
                    "ValueText": "",
                    "ValueTextId": 0
                }
            },
            {
                "Identifier": "State",
                "Label": "State",
                "TypeOfControl": 0,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 20,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 28,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true
            },
            {
                "Identifier": "PostCode",
                "Label": "Post Code",
                "TypeOfControl": 2,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "Enter a location",
                "MaxLength": 15,
                "ComboBoxType": 21,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 29,
                "SmartSearch": true,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true,
                "comboSelected": {
                    "ValueText": "",
                    "ValueTextId": 0
                }
            },
            {
                "Identifier": "Spare5",
                "Label": "Other Address",
                "TypeOfControl": 0,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 20,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 30,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true
            },
            {
                "Identifier": "Country_Id",
                "Label": "Country Of Residence",
                "TypeOfControl": 2,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 4,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 31,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": true,
                "MetaData": null,
                "CapitalizeOnBlur": true,
                "comboSelected": {
                    "ValueText": "",
                    "ValueTextId": 0
                },
                "isOpen": false
            },
            {
                "Identifier": "VIPCode_Id",
                "Label": "VIP Codes",
                "TypeOfControl": 2,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 98,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 32,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true,
                "comboSelected": {
                    "ValueText": "",
                    "ValueTextId": 0
                },
                "isOpen": false
            },
            {
                "Identifier": "Status_Id",
                "Label": "Guest Status",
                "TypeOfControl": 2,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 50,
                "ComboBoxType": 13,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 33,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true,
                "comboSelected": {
                    "ValueText": "",
                    "ValueTextId": 0
                },
                "isOpen": false
            },
            {
                "Identifier": "GST_ClientABN",
                "Label": "ABN/GST",
                "TypeOfControl": 0,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 20,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 34,
                "SmartSearch": true,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true
            },
            {
                "Identifier": "BlackList",
                "Label": "Black List",
                "TypeOfControl": 2,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "No",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 1,
                "FieldVisible": true,
                "DisplayFormat": 2,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 35,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": false
            },
            {
                "Identifier": "Spare13",
                "Label": "Data Privacy",
                "TypeOfControl": 2,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "Yes",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 1,
                "FieldVisible": true,
                "DisplayFormat": 2,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 36,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": false
            },
            {
                "Identifier": "PrivacyNoMailOuts",
                "Label": "Marketing Opt Out",
                "TypeOfControl": 2,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "Yes",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 1,
                "FieldVisible": true,
                "DisplayFormat": 2,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 37,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": false
            },
            {
                "Identifier": "Spare14",
                "Label": "GSS",
                "TypeOfControl": 2,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "Yes",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 1,
                "FieldVisible": true,
                "DisplayFormat": 2,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 41,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": false
            },
            {
                "Identifier": "ModifiedBy",
                "Label": "Modified By",
                "TypeOfControl": 0,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": true,
                "Tag": null,
                "FieldOrder": 42,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true
            },
            {
                "Identifier": "DateModified",
                "Label": "Date Modified",
                "TypeOfControl": 0,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 6,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": true,
                "Tag": null,
                "FieldOrder": 43,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": false
            },
            {
                "Identifier": "CreatedBy",
                "Label": "Created By",
                "TypeOfControl": 0,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": true,
                "Tag": null,
                "FieldOrder": 44,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true
            },
            {
                "Identifier": "DateCreated",
                "Label": "Date Created",
                "TypeOfControl": 0,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 6,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": true,
                "Tag": null,
                "FieldOrder": 45,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": false
            },
            {
                "Identifier": "Client_Type",
                "Label": "Guest Type",
                "TypeOfControl": 2,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "Guest",
                "PlaceholderText": "",
                "MaxLength": 50,
                "ComboBoxType": 30,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 52,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": true,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true,
                "comboSelected": {
                    "ValueText": "Guest",
                    "ValueTextId": 0
                },
                "isOpen": false
            },
            {
                "Identifier": "TaxExemption_Id",
                "Label": "Tax Exemption",
                "TypeOfControl": 2,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 105,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 57,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true,
                "comboSelected": {
                    "ValueText": "",
                    "ValueTextId": 0
                },
                "isOpen": false
            },
            {
                "Identifier": "Discount_Id",
                "Label": "Discount",
                "TypeOfControl": 2,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 50,
                "ComboBoxType": 7,
                "FieldVisible": false,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 58,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": true,
                "MetaData": null,
                "CapitalizeOnBlur": true,
                "comboSelected": {
                    "ValueText": "",
                    "ValueTextId": 0
                },
                "isOpen": false
            },
            {
                "Identifier": "Franchise_Id",
                "Label": "Franchising",
                "TypeOfControl": 0,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": true,
                "Tag": null,
                "FieldOrder": 67,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true
            },
            {
                "Identifier": "EmailLastValidated",
                "Label": "Email Validation Date",
                "TypeOfControl": 3,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 3,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": true,
                "Tag": null,
                "FieldOrder": 68,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": false
            },
            {
                "Identifier": "ExternalId",
                "Label": "External Ref No",
                "TypeOfControl": 0,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 50,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 6,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 73,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": false
            },
            {
                "Identifier": "OTALoyaltyNo",
                "Label": "OTA Loyalty No",
                "TypeOfControl": 0,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 20,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 83,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true
            },
            {
                "Identifier": "Licence_Number",
                "Label": "Licence Number",
                "TypeOfControl": 0,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 30,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 112,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true
            },
            {
                "Identifier": "Licence_Issued",
                "Label": "Licence Issued",
                "TypeOfControl": 1,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 3,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 113,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": false
            },
            {
                "Identifier": "Licence_Expiry",
                "Label": "Licence Expiry",
                "TypeOfControl": 1,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 3,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 114,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": false
            },
            {
                "Identifier": "PreferredPrintingLanguage",
                "Label": "Pref Printing Language",
                "TypeOfControl": 2,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 69,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 117,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true,
                "comboSelected": {
                    "ValueText": "",
                    "ValueTextId": 0
                },
                "isOpen": false
            },
            {
                "Identifier": "ID_IssueDate",
                "Label": "ID Issue Date",
                "TypeOfControl": 1,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 3,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 125,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": false
            },
            {
                "Identifier": "Passport_Expiry",
                "Label": "Passport Expiry",
                "TypeOfControl": 1,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 3,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 126,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": false
            },
            {
                "Identifier": "Visa_IssuedPlace",
                "Label": "Visa Issued Place",
                "TypeOfControl": 0,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 100,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 127,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true
            },
            {
                "Identifier": "Country_ArrivalDate",
                "Label": "Country Arrival Date",
                "TypeOfControl": 1,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 3,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 128,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": false
            },
            {
                "Identifier": "ArrivedFrom",
                "Label": "Arrived From",
                "TypeOfControl": 0,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 100,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 129,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true
            },
            {
                "Identifier": "ProceedingTo",
                "Label": "Proceeding To",
                "TypeOfControl": 0,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 100,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 130,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true
            },
            {
                "Identifier": "EmployedInCountry",
                "Label": "Employed In Country",
                "TypeOfControl": 2,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "No",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 1,
                "FieldVisible": true,
                "DisplayFormat": 2,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 131,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": false
            },
            {
                "Identifier": "RegisteredInCountry",
                "Label": "Registered In Country",
                "TypeOfControl": 2,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "No",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 1,
                "FieldVisible": true,
                "DisplayFormat": 2,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 132,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": false
            },
            {
                "Identifier": "RegistrationOffice",
                "Label": "Registration Office",
                "TypeOfControl": 0,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 100,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 133,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true
            },
            {
                "Identifier": "RegistrationNo",
                "Label": "Registration No",
                "TypeOfControl": 0,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 100,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 134,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true
            },
            {
                "Identifier": "RegistrationDate",
                "Label": "Registration Date",
                "TypeOfControl": 1,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 3,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 135,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": false
            },
            {
                "Identifier": "RegistrationAddress",
                "Label": "Registration Address",
                "TypeOfControl": 0,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 400,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 136,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true
            }],
            "Correspondence": null,
            "TabCounts": null,
            "OtherClientData": null,
            "TokenInfo": null,
            "Balance": 0,
            "PropertyCount": 0,
            "OwnedAreaCount": 0,
            "GDPRAnonymised": false,
            "UseMembershipDatabase": false,
            "ShowBig4MemberButton": false,
            "TimingData": null,
            "MobilePrefix": "0"
        },
        "ResRows": [
            {
                "Identifier": "Res_Id",
                "Label": "Res No",
                "TypeOfControl": 0,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "(New Reservation)",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 6,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": true,
                "Tag": null,
                "FieldOrder": 0,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": true,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": false
            },
            {
                "Identifier": "GrpRes_Id",
                "Label": "Master Res No",
                "TypeOfControl": 0,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "(New Reservation)",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 6,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": true,
                "Tag": null,
                "FieldOrder": 1,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": true,
                "MetaData": null,
                "CapitalizeOnBlur": false
            }, {
                "Identifier": "Status",
                "Label": "Status",
                "TypeOfControl": 0,
                "IsClickable": false,
                "ValueTextId": 1,
                "ValueText": "Confirmed",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": true,
                "Tag": null,
                "FieldOrder": 2,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true
            }, {
                "Identifier": "Arrive",
                "Label": "Arrival",
                "TypeOfControl": 3,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": dateArrive + "T14:00:00",         //yyyy-mm-dd + "T14:00:00"
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 3,
                "MandatoryOnSave": true,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": "No",
                "FieldOrder": 3,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": false
            }, {
                "Identifier": "RoomMoveArrive",
                "Label": "Room Moved On",
                "TypeOfControl": 0,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 0,
                "FieldVisible": false,
                "DisplayFormat": 6,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": true,
                "Tag": null,
                "FieldOrder": 4,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": true,
                "MetaData": null,
                "CapitalizeOnBlur": false
            }, {
                "Identifier": "Depart",
                "Label": "Departure",
                "TypeOfControl": 3,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": dateDepart + "T12:00:00",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 3,
                "MandatoryOnSave": true,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 4,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": false
            }, {
                "Identifier": "Days",
                "Label": "Nights",
                "TypeOfControl": 0,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": nNights,
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 1,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 5,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": false,
                "firstClick": false
            }, {
                "Identifier": "ETA",
                "Label": "ETA",
                "TypeOfControl": 0,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 25,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 6,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 7,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": false
            }, {
                "Identifier": "No_Adults",
                "Label": "Adults",
                "TypeOfControl": 0,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "1",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 1,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 8,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": false
            }, {
                "Identifier": "No_Child",
                "Label": "Children",
                "TypeOfControl": 0,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "0",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 1,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 9,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": false
            }, {
                "Identifier": "Infants",
                "Label": "Infant (0-2yrs)",
                "TypeOfControl": 0,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "0",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 1,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 10,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": false
            }, {
                "Identifier": "CancellationRule_Id",
                "Label": "Cancellation Policy",
                "TypeOfControl": 2,
                "IsClickable": false,
                "ValueTextId": 14,
                "ValueText": "3pm on the day of arrival",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 97,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 11,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true,
                "comboSelected": {
                    "ValueText": "",
                    "ValueTextId": 0
                },
                "isOpen": false,
                "Tooltip": "3pm on the day of arrival"
            }, {
                "Identifier": "Alt_Id",
                "Label": "Rate Type",
                "TypeOfControl": 2,
                "IsClickable": false,
                "ValueTextId": 13818,
                "ValueText": "*Suzhou Inovance Technology Rate",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 37,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": true,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 12,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true,
                "comboSelected": {
                    "ValueText": "*Suzhou Inovance Technology Rate",
                    "ValueTextId": 13818,
                    "BaseRate": 283.02,
                    "CurrencyCode": "CNY",
                    "Discount": "",
                    "DiscountId": 0,
                    "FirstNight": 300,
                    "Package": 0,
                    "FirstNightMinStay": 0,
                    "Tax": 16.98,
                    "TotalRate": 300,
                    "NoDiscount": false,
                    "Description": "Rates include daily breakfast for up to one person for Studio and One-Bedroom residences,two persons for Two-Bedroom residences and three persons for Three-Bedroom residences. Rates include Wi-Fi and broadband internet access.",
                    "LongStayChargeExists": false,
                    "MarketSegment": "F08 Corporate Contract (below 1 mth)",
                    "MarketSegmentId": 4,
                    "BookingSource": "",
                    "BookingSourceId": 0,
                    "CancellationRule": "3pm on the day of arrival",
                    "CancellationRuleId": 14,
                    "MealPlan": "",
                    "MealPlanId": 0,
                    "Bond": 0,
                    "DoNotAllowBaseRateToBeOverridden": false,
                    "LastRoomValueConditionsNotMet": false,
                    "RestrictionPermanent": false,
                    "RestrictionFromDate": "1900-01-01T00:00:00",
                    "RestrictionToDate": "1900-01-01T00:00:00",
                    "RestrictionType": 0,
                    "MinNights": 0,
                    "MaxNights": 0,
                    "RateElement": "Cor-Award",
                    "RateElementId": 1,
                    "OnlyAvailableToMembers": false,
                    "AgentId": 0
                },
                "Tooltip": "",
                "isOpen": false
            }, {
                "Identifier": "Cat_Id",
                "Label": "Room Type",
                "TypeOfControl": 2,
                "IsClickable": false,
                "ValueTextId": 4461,
                "ValueText": "0PRE SSBS",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 18,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": true,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 13,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": true,
                "AlwaysInGrid": false,
                "MetaData": null,
                "AttributeSearch": true,
                "CapitalizeOnBlur": true,
                "comboSelected": {
                    "ValueText": "0PRE SSBS",
                    "ValueTextId": 4461,
                    "Description": "Studio Premier - 45sqm/484sqft | King Bed | Max: 2 | Exbed: N | Bcot: Y",
                    "AllowBookingByCat": true,
                    "AllowOverbookingByCat": true,
                    "DefaultArrive": "2022-06-23T14:00:00",
                    "DefaultDepart": "2022-06-24T12:00:00",
                    "CreateTotalTariff": false,
                    "UserToCreateTotalTariff": false,
                    "PropId": JSON.parse(window.sessionStorage.getItem("InitData")).data.AccDates[0].PropertyId,
                    "Prop": JSON.parse(window.sessionStorage.getItem("InitData")).data.AccDates[0].PropertyName,
                    "Day": false,
                    "UseHousekeeping": true,
                    "Attributes": "",
                    "IsOutsideAllotment": false,
                    "UseCategoryTimes": true,
                    "CatTimeIncrement": 30
                },
                "Tooltip": "Studio Premier - 45sqm/484sqft | King Bed | Max: 2 | Exbed: N | Bcot: Y",
                "isOpen": false
            }, {
                "Identifier": "Area_Id",
                "Label": "Room",
                "TypeOfControl": 2,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 38,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": true,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 14,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "AttributeSearch": true,
                "CapitalizeOnBlur": true,
                "comboSelected": {
                    "ValueText": "",
                    "ValueTextId": 0,
                    "AreaDesc": "",
                    "AreaClean": "",
                    "AreaCleanString": "",
                    "PastBookingCount": 0,
                    "Adtl1Inactive": null,
                    "Adtl2Inactive": null,
                    "Adtl3Inactive": null,
                    "Adtl4Inactive": null,
                    "Adtl5Inactive": null,
                    "Adtl6Inactive": null,
                    "Adtl7Inactive": null,
                    "CatId": 0,
                    "Electricity": null,
                    "Agent": "",
                    "AgentId": 0,
                    "ResType": "",
                    "ResTypeId": 0,
                    "RequirementsExist": null,
                    "AreaStatus": "",
                    "OnlyAvailableForQuote": null,
                    "AreaOutOfService": null
                },
                "Tooltip": "",
                "isOpen": false,
                "ValueText_Id": 0
            }, {
                "Identifier": "Fixed",
                "Label": "Fixed",
                "TypeOfControl": 2,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "No",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 1,
                "FieldVisible": true,
                "DisplayFormat": 2,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 15,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": false
            }, {
                "Identifier": "FixedReason_Id",
                "Label": "Fixed Reason",
                "TypeOfControl": 2,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 100,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 16,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true,
                "comboSelected": {
                    "ValueText": "",
                    "ValueTextId": 0
                },
                "isOpen": false
            }, {
                "Identifier": "BedConfig",
                "Label": "Bed Config",
                "TypeOfControl": 0,
                "IsClickable": true,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 6,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": true,
                "Tag": null,
                "FieldOrder": 17,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": false
            }, {
                "Identifier": "Comp_Id",
                "Label": "Company",
                "TypeOfControl": 2,
                "IsClickable": true,
                "ValueTextId": 228645,
                "ValueText": "Suzhou Inovance Technology Co.,Ltd. (Ascott-Suzhou-5912)",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 5,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 18,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": true,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true,
                "comboSelected": {
                    "ValueText": "Suzhou Inovance Technology Co.,Ltd. (Ascott-Suzhou-5912)",
                    "ValueTextId": 228645,
                    "Address": "NO.16,Youxiang Road,Yuexi Street Suzhou",
                    "BillingNote": "",
                    "Notes": "",
                    "CreditHold": false,
                    "Primary": false,
                    "Spare1": "C2022-02125912",
                    "TradingAs": "苏州汇川技术有限公司",
                    "BookSrc": "",
                    "BookSrcId": 0,
                    "ResType": "",
                    "ResTypeId": 0,
                    "HideRateFromCorrespondence": false,
                    "Spare2": "",
                    "Spare3": "",
                    "Spare4": "",
                    "Spare5": "",
                    "BranchType": ""
                },
                "isOpen": false
            }, {
                "Identifier": "Agent_Id",
                "Label": "Travel Agent",
                "TypeOfControl": 2,
                "IsClickable": true,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 43,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 19,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": true,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true,
                "isOpen": false,
                "comboSelected": {
                    "ValueText": "",
                    "ValueTextId": 0
                }
            }, {
                "Identifier": "Wholesaler_AgentId",
                "Label": "Relocation Agent",
                "TypeOfControl": 2,
                "IsClickable": true,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 73,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 20,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": true,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true,
                "comboSelected": {
                    "ValueText": "",
                    "ValueTextId": 0
                },
                "isOpen": false
            }, {
                "Identifier": "PaymentMode_Id",
                "Label": "Payment Mode",
                "TypeOfControl": 2,
                "IsClickable": false,
                "ValueTextId": 10,
                "ValueText": "POA - Company Guaranteed",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 40,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": true,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 21,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true,
                "comboSelected": {
                    "ValueText": "POA - Company Guaranteed",
                    "Description": "Personal Account - Payment on Arrival",
                    "ValueTextId": 10
                },
                "isOpen": false
            }, {
                "Identifier": "Spare1",
                "Label": "Add Billing Inst.",
                "TypeOfControl": 0,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 50,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 22,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true,
                "firstClick": false
            }, {
                "Identifier": "SecondContact_Id",
                "Label": "Booker Contact",
                "TypeOfControl": 2,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 44,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 24,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true,
                "comboSelected": {
                    "ValueText": "",
                    "ValueTextId": 0
                },
                "isOpen": false
            }, {
                "Identifier": "Spare4",
                "Label": "Legacy Contact",
                "TypeOfControl": 0,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 20,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 25,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true,
                "firstClick": false
            }, {
                "Identifier": "MarketSegment_Id",
                "Label": "Market Segment",
                "TypeOfControl": 2,
                "IsClickable": false,
                "ValueTextId": 4,
                "ValueText": "F08 Corporate Contract (below 1 mth)",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 93,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": true,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 26,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true,
                "comboSelected": {
                    "ValueText": "F08 Corporate Contract (below 1 mth)",
                    "ValueTextId": 4
                },
                "isOpen": false,
                "Description": "F08 Corporate Contract (below 1 mth)"
            }, {
                "Identifier": "BookSrc_Id",
                "Label": "Source Code",
                "TypeOfControl": 2,
                "IsClickable": false,
                "ValueTextId": 12,
                "ValueText": "02 By Phone",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 6,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": true,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 27,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true,
                "comboSelected": {
                    "ValueText": "02 By Phone",
                    "ValueTextId": 12
                },
                "isOpen": false
            }, {
                "Identifier": "Pabx",
                "Label": "Extension",
                "TypeOfControl": 0,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": true,
                "Tag": null,
                "FieldOrder": 28,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true
            }, {
                "Identifier": "ResType_Id",
                "Label": "Come Code",
                "TypeOfControl": 2,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 17,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 29,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true,
                "comboSelected": {
                    "ValueText": "",
                    "ValueTextId": 0
                },
                "isOpen": false
            }, {
                "Identifier": "BusinessSegment_Id",
                "Label": "Hear Code",
                "TypeOfControl": 2,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 88,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 30,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true,
                "comboSelected": {
                    "ValueText": "",
                    "ValueTextId": 0
                },
                "isOpen": false
            }, {
                "Identifier": "Voucher_No",
                "Label": "Channel Connect No.",
                "TypeOfControl": 0,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 100,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 31,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true
            }, {
                "Identifier": "OTARef2",
                "Label": "3rd Party No.",
                "TypeOfControl": 0,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 50,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 6,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": true,
                "Tag": null,
                "FieldOrder": 34,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": false
            }, {
                "Identifier": "Spare7",
                "Label": "PO No.",
                "TypeOfControl": 0,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 175,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 35,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true
            }, {
                "Identifier": "GroupAllotment_AgentId",
                "Label": "Group",
                "TypeOfControl": 2,
                "IsClickable": true,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 71,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 36,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true,
                "comboSelected": {
                    "ValueText": "",
                    "ValueTextId": 0
                },
                "isOpen": false
            }, {
                "Identifier": "Spare11",
                "Label": "Eligible Miles",
                "TypeOfControl": 2,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "No",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 1,
                "FieldVisible": true,
                "DisplayFormat": 2,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 37,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": false
            }, {
                "Identifier": "Membership_Id",
                "Label": "Membership Type",
                "TypeOfControl": 2,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 104,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 39,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true,
                "comboSelected": {
                    "ValueText": "",
                    "ValueTextId": 0
                },
                "isOpen": false
            }, {
                "Identifier": "Spare2",
                "Label": "TLC No.",
                "TypeOfControl": 0,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 20,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 41,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true
            }, {
                "Identifier": "PreAuthAmount",
                "Label": "Pre Auth Amount",
                "TypeOfControl": 0,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "0.00",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 4,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 42,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": false
            }, {
                "Identifier": "PreAuthCode",
                "Label": "Pre Auth Code",
                "TypeOfControl": 0,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 20,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 6,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 43,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": false
            }, {
                "Identifier": "CurrentMealPlan_Id",
                "Label": "Active Meal Plan",
                "TypeOfControl": 0,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": true,
                "Tag": null,
                "FieldOrder": 44,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true
            }, {
                "Identifier": "PreAuthExp",
                "Label": "Pre Auth Exp",
                "TypeOfControl": 1,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 45,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true
            }, {
                "Identifier": "Modified_Date",
                "Label": "Last Modified",
                "TypeOfControl": 0,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": true,
                "Tag": null,
                "FieldOrder": 46,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": true,
                "MetaData": null,
                "CapitalizeOnBlur": true,
                "dateEntered": {
                    "startDate": "2025-05-24T10:29:59.884Z",  //yyyy-mm-dd + "T" + h +':'+m+':'+s+ ".884Z"
                    "endDate": "2025-05-24T10:29:59.884Z"
                }
            }, {
                "Identifier": "Modified_By",
                "Label": "Modified By",
                "TypeOfControl": 0,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": true,
                "Tag": null,
                "FieldOrder": 47,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true
            }, {
                "Identifier": "DateMade",
                "Label": "Date Made",
                "TypeOfControl": 0,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": true,
                "Tag": null,
                "FieldOrder": 48,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true
            }, {
                "Identifier": "RateElement_Id",
                "Label": "Rate Element",
                "TypeOfControl": 2,
                "IsClickable": false,
                "ValueTextId": 1,
                "ValueText": "Cor-Award",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 118,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 49,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true,
                "comboSelected": {
                    "ValueText": "Cor-Award",
                    "ValueTextId": 1
                },
                "isOpen": false
            }, {
                "Identifier": "MadeBy",
                "Label": "Made By",
                "TypeOfControl": 0,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": true,
                "Tag": null,
                "FieldOrder": 50,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true
            }, {
                "Identifier": "Confirmed_Date",
                "Label": "Confirmed",
                "TypeOfControl": 0,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": true,
                "Tag": null,
                "FieldOrder": 51,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true
            }, {
                "Identifier": "Confirmed_By",
                "Label": "Confirmed By",
                "TypeOfControl": 0,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": true,
                "Tag": null,
                "FieldOrder": 52,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true
            }, {
                "Identifier": "Cancelled_Date",
                "Label": "Cancelled",
                "TypeOfControl": 0,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": true,
                "Tag": null,
                "FieldOrder": 53,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true
            }, {
                "Identifier": "Cancelled_By",
                "Label": "Cancelled By",
                "TypeOfControl": 0,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": true,
                "Tag": null,
                "FieldOrder": 54,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true
            }, {
                "Identifier": "RMSOnline_ConfId",
                "Label": "Online Conf No",
                "TypeOfControl": 0,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 6,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": true,
                "Tag": null,
                "FieldOrder": 55,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": false
            }, {
                "Identifier": "Spare8",
                "Label": "Legacy Grp Res ID",
                "TypeOfControl": 0,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 20,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 57,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true
            }, {
                "Identifier": "Spare9",
                "Label": "Legacy RIG ID",
                "TypeOfControl": 0,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 50,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 58,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true
            }, {
                "Identifier": "Spare10",
                "Label": "Legacy Res ID",
                "TypeOfControl": 0,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 50,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 59,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true
            }, {
                "Identifier": "Long_Term",
                "Label": "Long Term",
                "TypeOfControl": 2,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "No",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 1,
                "FieldVisible": true,
                "DisplayFormat": 2,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 60,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": false
            }, {
                "Identifier": "Spare12",
                "Label": "Go Green",
                "TypeOfControl": 2,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "No",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 1,
                "FieldVisible": true,
                "DisplayFormat": 2,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 64,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": false
            }, {
                "Identifier": "Repeat_Id",
                "Label": "Repeat Res No",
                "TypeOfControl": 0,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 0,
                "FieldVisible": false,
                "DisplayFormat": 6,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": true,
                "Tag": null,
                "FieldOrder": 65,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": true,
                "MetaData": null,
                "CapitalizeOnBlur": false
            }, {
                "Identifier": "Occupant_Id",
                "Label": "Come Reason (For SA Usage)",
                "TypeOfControl": 2,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 103,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 74,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true,
                "comboSelected": {
                    "ValueText": "",
                    "ValueTextId": 0
                },
                "isOpen": false
            }, {
                "Identifier": "RVBrand_Id",
                "Label": "Caravan Sales Brand",
                "TypeOfControl": 2,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 113,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 89,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true,
                "comboSelected": {
                    "ValueText": "",
                    "ValueTextId": 0
                },
                "isOpen": false
            }, {
                "Identifier": "SubRVBrand_Id",
                "Label": "Caravan Sales Model",
                "TypeOfControl": 2,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 114,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 90,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true,
                "comboSelected": {
                    "ValueText": "",
                    "ValueTextId": 0
                },
                "isOpen": false
            }, {
                "Identifier": "RVModelYear",
                "Label": "Caravan Sales Year",
                "TypeOfControl": 2,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 115,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 92,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true,
                "comboSelected": {
                    "ValueText": "",
                    "ValueTextId": 0
                },
                "isOpen": false
            }, {
                "Identifier": "AllotmentAssociationType",
                "Label": "Allotment Association",
                "TypeOfControl": 2,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 106,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 93,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true,
                "comboSelected": {
                    "ValueText": "",
                    "ValueTextId": 0
                },
                "isOpen": false
            }, {
                "Identifier": "RateTypeGroup_Id",
                "Label": "Allotment Group",
                "TypeOfControl": 2,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 119,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 96,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true,
                "comboSelected": {
                    "ValueText": "",
                    "ValueTextId": 0
                },
                "isOpen": false
            }, {
                "Identifier": "GroupStatus",
                "Label": "Group Status",
                "TypeOfControl": 0,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": true,
                "Tag": null,
                "FieldOrder": 97,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true
            }, {
                "Identifier": "AllotmentHeld_Id",
                "Label": "Allotment",
                "TypeOfControl": 0,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": true,
                "Tag": null,
                "FieldOrder": 98,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true
            }],
        "AccountRows": [
            {
                "Identifier": "Account_Id",
                "Label": "Account No",
                "TypeOfControl": 0,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "(New Account)",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 6,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": true,
                "Tag": null,
                "FieldOrder": 0,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": false
            }, {
                "Identifier": "Base Tariff",
                "Label": "Base Rate",
                "TypeOfControl": 0,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "283.02 / 283.02",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 6,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": true,
                "Tag": 283.02,
                "FieldOrder": 1,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": false
            }, {
                "Identifier": "Package",
                "Label": "Package",
                "TypeOfControl": 0,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "0.00 / 0.00",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 6,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": true,
                "Tag": 0,
                "FieldOrder": 2,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": false
            }, {
                "Identifier": "Discount",
                "Label": "Discount",
                "TypeOfControl": 0,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "0.00 / 0.00",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 6,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": true,
                "Tag": 0,
                "FieldOrder": 3,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": false
            }, {
                "Identifier": "Tax",
                "Label": "Tax",
                "TypeOfControl": 0,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "16.98 / 16.98",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 6,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": true,
                "Tag": 16.98,
                "FieldOrder": 4,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": false
            }, {
                "Identifier": "Total Tariff",
                "Label": "Total Rate",
                "TypeOfControl": 0,
                "IsClickable": true,
                "ValueTextId": 0,
                "ValueText": "300.00 / 300.00",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 6,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": true,
                "Tag": null,
                "FieldOrder": 5,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": false
            }, {
                "Identifier": "Total_Tariff",
                "Label": "Create Total Rate",
                "TypeOfControl": 2,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "No",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 1,
                "FieldVisible": false,
                "DisplayFormat": 2,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 6,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": false
            }, {
                "Identifier": "Use_Group_Tariff",
                "Label": "Rate On Master",
                "TypeOfControl": 2,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "No",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 1,
                "FieldVisible": true,
                "DisplayFormat": 2,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 7,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": false
            }, {
                "Identifier": "TaxCalculationOption",
                "Label": "Rate Tax Option",
                "TypeOfControl": 2,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "Exclusive",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 46,
                "FieldVisible": false,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": true,
                "Tag": null,
                "FieldOrder": 8,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true,
                "comboSelected": {
                    "ValueText": "Exclusive",
                    "ValueTextId": 0
                },
                "isOpen": false
            }, {
                "Identifier": "Discount_Id",
                "Label": "Discount",
                "TypeOfControl": 2,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 7,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 9,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": true,
                "MetaData": null,
                "CapitalizeOnBlur": true,
                "comboSelected": {
                    "ValueText": "",
                    "ValueTextId": 0
                },
                "TempReadOnly": false,
                "isOpen": false
            }, {
                "Identifier": "DiscountReason_Id",
                "Label": "Discount Reason",
                "TypeOfControl": 2,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 45,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 10,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true,
                "comboSelected": {
                    "ValueText": "",
                    "ValueTextId": 0
                },
                "TempReadOnly": false,
                "isOpen": false
            }, {
                "Identifier": "SecondDiscount",
                "Label": "2nd Discount",
                "TypeOfControl": 0,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 0,
                "FieldVisible": false,
                "DisplayFormat": 6,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": true,
                "Tag": null,
                "FieldOrder": 11,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": false
            }, {
                "Identifier": "AgentCommission",
                "Label": "TA Commission",
                "TypeOfControl": 0,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": true,
                "Tag": null,
                "FieldOrder": 15,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true
            }, {
                "Identifier": "Deposit",
                "Label": "Deposit",
                "TypeOfControl": 0,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "0.00",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 4,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": 0,
                "FieldOrder": 17,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": false,
                "origVal": "0.00"
            }, {
                "Identifier": "Deposit_Required_By",
                "Label": "Dep Req By",
                "TypeOfControl": 1,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "2025-05-24T18:29:56",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 3,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 18,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": false,
                "dateEntered": {
                    "startDate": "2025-05-24T10:29:56.000Z",
                    "endDate": "2025-05-24T10:29:56.000Z"
                }
            }, {
                "Identifier": "Bond",
                "Label": "Bond",
                "TypeOfControl": 0,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "0.00",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 0,
                "FieldVisible": false,
                "DisplayFormat": 4,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": true,
                "Tag": null,
                "FieldOrder": 22,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": false
            }, {
                "Identifier": "Use_Group_POS",
                "Label": "POS On Master",
                "TypeOfControl": 2,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "No",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 1,
                "FieldVisible": true,
                "DisplayFormat": 2,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 24,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": false
            }, {
                "Identifier": "Alt_Bill_CatId",
                "Label": "Bill Room Type",
                "TypeOfControl": 2,
                "IsClickable": false,
                "ValueTextId": 4461,
                "ValueText": "0PRE SSBS",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 18,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 25,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true,
                "comboSelected": {
                    "ValueText": "0PRE SSBS",
                    "ValueTextId": 4461,
                    "Description": "Studio Premier - 45sqm/484sqft | King Bed | Max: 2 | Exbed: N | Bcot: Y",
                    "AllowBookingByCat": true,
                    "PropId": 254,
                    "UseCategoryTimes": true
                },
                "isOpen": false
            }, {
                "Identifier": "UpgradeReason_Id",
                "Label": "Upgrade Reason",
                "TypeOfControl": 2,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 75,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 26,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true,
                "comboSelected": {
                    "ValueText": "",
                    "ValueTextId": 0
                },
                "isOpen": false
            }, {
                "Identifier": "TaxExemption_Id",
                "Label": "Tax Exemption",
                "TypeOfControl": 2,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 105,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 27,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true,
                "comboSelected": {
                    "ValueText": "",
                    "ValueTextId": 0
                },
                "isOpen": false
            }, {
                "Identifier": "HideRateFromCorrespondence",
                "Label": "Hide Rate On Correspondence",
                "TypeOfControl": 2,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "No",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 1,
                "FieldVisible": true,
                "DisplayFormat": 6,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": false,
                "Tag": null,
                "FieldOrder": 28,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": false
            }, {
                "Identifier": "Upgrade",
                "Label": "Avg Upgrade Rate",
                "TypeOfControl": 0,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "0.00",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 6,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": true,
                "Tag": null,
                "FieldOrder": 29,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": false
            }, {
                "Identifier": "Acc_General",
                "Label": "Accomm",
                "TypeOfControl": 0,
                "IsClickable": true,
                "ValueTextId": 0,
                "ValueText": "0.00",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 6,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": true,
                "Tag": null,
                "FieldOrder": 30,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": false
            }, {
                "Identifier": "Acc_Extras",
                "Label": "Incidentals",
                "TypeOfControl": 0,
                "IsClickable": true,
                "ValueTextId": 0,
                "ValueText": "0.00",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 6,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": true,
                "Tag": null,
                "FieldOrder": 31,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": false
            }, {
                "Identifier": "Acc_Gas",
                "Label": "Folio 3",
                "TypeOfControl": 0,
                "IsClickable": true,
                "ValueTextId": 0,
                "ValueText": "0.00",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 6,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": true,
                "Tag": null,
                "FieldOrder": 32,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": false
            }, {
                "Identifier": "Acc_Electricity",
                "Label": "Bonds",
                "TypeOfControl": 0,
                "IsClickable": true,
                "ValueTextId": 0,
                "ValueText": "0.00",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 6,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": true,
                "Tag": null,
                "FieldOrder": 33,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": false
            }, {
                "Identifier": "Acc_Water",
                "Label": "Folio 5",
                "TypeOfControl": 0,
                "IsClickable": true,
                "ValueTextId": 0,
                "ValueText": "0.00",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 6,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": true,
                "Tag": null,
                "FieldOrder": 34,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": false
            }, {
                "Identifier": "Acc_AR",
                "Label": "A/R",
                "TypeOfControl": 0,
                "IsClickable": true,
                "ValueTextId": 0,
                "ValueText": "0.00",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 6,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": true,
                "Tag": null,
                "FieldOrder": 37,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": false
            }, {
                "Identifier": "Active Accounts",
                "Label": "Active Accounts",
                "TypeOfControl": 0,
                "IsClickable": true,
                "ValueTextId": 0,
                "ValueText": "(None)",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 0,
                "FieldVisible": true,
                "DisplayFormat": 0,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": true,
                "Tag": null,
                "FieldOrder": 38,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": true
            }, {
                "Identifier": "TariffOverridden",
                "Label": "TariffOverridden",
                "TypeOfControl": 0,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 0,
                "FieldVisible": false,
                "DisplayFormat": 2,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": true,
                "Tag": null,
                "FieldOrder": 39,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": false
            }, {
                "Identifier": "PackageOverridden",
                "Label": "PackageOverridden",
                "TypeOfControl": 0,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 0,
                "FieldVisible": false,
                "DisplayFormat": 2,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": true,
                "Tag": null,
                "FieldOrder": 40,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": false
            }, {
                "Identifier": "DiscountOverridden",
                "Label": "DiscountOverridden",
                "TypeOfControl": 0,
                "IsClickable": false,
                "ValueTextId": 0,
                "ValueText": "",
                "PlaceholderText": "",
                "MaxLength": 0,
                "ComboBoxType": 0,
                "FieldVisible": false,
                "DisplayFormat": 2,
                "MandatoryOnSave": false,
                "MandatoryOnCheckIn": false,
                "ReadOnly": true,
                "Tag": null,
                "FieldOrder": 41,
                "SmartSearch": false,
                "SmartSearchOrder": 0,
                "AdvancedSearch": false,
                "AlwaysShown": false,
                "AlwaysInGrid": false,
                "MetaData": null,
                "CapitalizeOnBlur": false
            }],
        "Requirements": [],
        "TabCounts": {
            "CorrespondenceCount": 0,
            "RoomCount": 0,
            "ClientCount": 0,
            "BedCount": null,
            "HoldCount": 0,
            "RegoCount": 0,
            "RepeatCount": 0,
            "TourDeskCount": 0,
            "AddOnCount": 0,
            "TransfersCount": 0
        },
        "ResNote": "",
        "OTANote": null,
        "HousekeepingNote": null,
        "ShowBig4MemberButton": false,
        "RegoTabCaption": null,
        "IgnoreMandatoryFieldsForSiblings": false,
        "IgnoreTimesOnMainResScreen": false,
        "ShowCompanyBillingNoteOnRes": true,
        "ShowTariffTypeLongDescInResNote": false,
        "TimeTaken": 0,
        "ManualTACommission": false,
        "AskTariffReCalcQuestion": false,
        "InvoiceRaised": false,
        "DigitalRegoCardLetterId": 0,
        "RateType": 0,
        "AllowBookingByCategory": false,
        "RMSVaultTokens": [],
        "PreAuthTokens": null,
        "ShowTopTenMemberButton": false,
        //personal 
        "Params": [
            {
                "Id": 876297700,
                "EntityType": 3,
                "EntityId": 8,
                "ParamName": "GridSize",
                "DataType": 0,
                "ParamValue": "0",
                "UserId": 11484
            }, {
                "Id": 876297701,
                "EntityType": 3,
                "EntityId": 8,
                "ParamName": "Navigator",
                "DataType": 0,
                "ParamValue": "0",
                "UserId": 11484
            }, {
                "Id": 876297702,
                "EntityType": 3,
                "EntityId": 8,
                "ParamName": "ShowRequirements",
                "DataType": 0,
                "ParamValue": "True",
                "UserId": 11484
            }, {
                "Id": 876297703,
                "EntityType": 3,
                "EntityId": 8,
                "ParamName": "ShowCompactRequirements",
                "DataType": 0,
                "ParamValue": "False",
                "UserId": 11484
            }, {
                "Id": 876297704,
                "EntityType": 3,
                "EntityId": 8,
                "ParamName": "Requirement",
                "DataType": 0,
                "ParamValue": "0",
                "UserId": 11484
            }, {
                "Id": 876297705,
                "EntityType": 3,
                "EntityId": 8,
                "ParamName": "ShowNotes",
                "DataType": 0,
                "ParamValue": "True",
                "UserId": 11484
            }, {
                "Id": 876297706,
                "EntityType": 3,
                "EntityId": 8,
                "ParamName": "Note",
                "DataType": 0,
                "ParamValue": "0",
                "UserId": 11484
            }, {
                "Id": 876297707,
                "EntityType": 3,
                "EntityId": 8,
                "ParamName": "RequirementsRowsShown",
                "DataType": 0,
                "ParamValue": "5",
                "UserId": 11484
            }, {
                "Id": 876297708,
                "EntityType": 3,
                "EntityId": 8,
                "ParamName": "LastResId",
                "DataType": 0,
                "ParamValue": "9601060",
                "UserId": 11484
            }, {
                "Id": 876297709,
                "EntityType": 3,
                "EntityId": 8,
                "ParamName": "TypeOfBooking",
                "DataType": 0,
                "ParamValue": "0",
                "UserId": 11484
            }, {
                "Id": 876297710,
                "EntityType": 3,
                "EntityId": 8,
                "ParamName": "CreateTotalTariff",
                "DataType": 0,
                "ParamValue": "0",
                "UserId": 11484
            }, {
                "Id": 876297711,
                "EntityType": 3,
                "EntityId": 8,
                "ParamName": "Semester",
                "DataType": 0,
                "ParamValue": "0",
                "UserId": 11484
            }, {
                "Id": 876297712,
                "EntityType": 3,
                "EntityId": 8,
                "ParamName": "TariffOnGroup",
                "DataType": 0,
                "ParamValue": "0",
                "UserId": 11484
            }],
        "DisplayMessageIndicator": false,
        "UnReadMessages": null,
        "AllowStatusToBeOwnerOccupied": false,
        "TypeOfBooking": 0,
        "EventId": 0,
        "SpecialEventCount": 1,
        "AllowSplitTariffs": true,
        "CurrencyView": 0,
        "UsingOrtomate": false,
        "UsingGDPR": false,
        "GDPRAnonymised": false,
        "UseMembershipDatabase": false,
        "DefaultAltBillCatToMatchResCatOnCreation": false,
        "FirstCgeId": 0,
        "PerPersonOverriden": false,
        "CategoryDayFlag": false,
        "RMSOnlineAgentCode": 0,
        "RecalculateTariffQuestionOnDepartureDefault": false,
        "FirstRego": null,
        "RateMultiplier": 0,
        "PreArrivalCheckComplete": false,
        "ShowGDayMemberButton": false,
        "ShowNetCarrotLoyaltyButton": false,
        "Warnings": null,
        "DisplayName": "",
        "ResStatus": 1,
        "ResStatusString": "Confirm",
        "NightlyTariffOnCheckIn": 0,
        "NightlyTariffPostingMethod": 0,
        "NightlyTariffPostingNights": 0,
        "TransferCreditOnDeparture": false,
        "ShowProjectedBalance": false,
        "AllowPencilBookings": false,
        "ShowHoldOverriddenRateMessage": false,
        "CheckOutDate": "0001-01-01T00:00:00",
        "lstOfValidOffers": null,
        "UsingNoShowFee": false,
        "AutoLoadAddArea": true,
        "UseQuote": true,
        "CheckInDate": "0001-01-01T00:00:00",
        "ScheduleHeaderId": 0,
        "ScheduleHeader": null,
        "IsPaymentScheduleOverriden": false,
        "IsNoRecalc": false,
        "GatewayProvider": 0,
        "TariffQuoteChanged": true,
        "lstOfRateMixerChargeTypeOverrides": [],
        "LongStayChargeInitialTransactionOverride": null,
        "MasterResQuote": null
    }
    let xmlhttp = new XMLHttpRequest();
    let objLastName = {
        "Identifier": "Surname",
        "Label": "Last Name",
        "TypeOfControl": 0,
        "IsClickable": false,
        "ValueTextId": 0,
        "ValueText": strName,
        "PlaceholderText": "",
        "MaxLength": 50,
        "ComboBoxType": 0,
        "FieldVisible": true,
        "DisplayFormat": 0,
        "MandatoryOnSave": true,
        "MandatoryOnCheckIn": false,
        "ReadOnly": false,
        "Tag": null,
        "FieldOrder": 6,
        "SmartSearch": true,
        "SmartSearchOrder": 0,
        "AdvancedSearch": false,
        "AlwaysShown": false,
        "AlwaysInGrid": false,
        "MetaData": null,
        "CapitalizeOnBlur": true,
        "firstClick": false
    }
    let objRateType_SzInovance_0P = {
        "Identifier": "Alt_Id",
        "Label": "Rate Type",
        "TypeOfControl": 2,
        "IsClickable": false,
        "ValueTextId": 13818,
        "ValueText": "*Suzhou Inovance Technology Rate",
        "PlaceholderText": "",
        "MaxLength": 0,
        "ComboBoxType": 37,
        "FieldVisible": true,
        "DisplayFormat": 0,
        "MandatoryOnSave": true,
        "MandatoryOnCheckIn": false,
        "ReadOnly": false,
        "Tag": null,
        "FieldOrder": 12,
        "SmartSearch": false,
        "SmartSearchOrder": 0,
        "AdvancedSearch": false,
        "AlwaysShown": false,
        "AlwaysInGrid": false,
        "MetaData": null,
        "CapitalizeOnBlur": true,
        "comboSelected": {
            "ValueText": "*Suzhou Inovance Technology Rate",
            "ValueTextId": 13818,
            "BaseRate": 283.02,
            "CurrencyCode": "CNY",
            "Discount": "",
            "DiscountId": 0,
            "FirstNight": 300,
            "Package": 0,
            "FirstNightMinStay": 0,
            "Tax": 16.98,
            "TotalRate": 300,
            "NoDiscount": false,
            "Description": "Rates include daily breakfast for up to one person for Studio and One-Bedroom residences,two persons for Two-Bedroom residences and three persons for Three-Bedroom residences. Rates include Wi-Fi and broadband internet access.",
            "LongStayChargeExists": false,
            "MarketSegment": "F08 Corporate Contract (below 1 mth)",
            "MarketSegmentId": 4,
            "BookingSource": "",
            "BookingSourceId": 0,
            "CancellationRule": "3pm on the day of arrival",
            "CancellationRuleId": 14,
            "MealPlan": "",
            "MealPlanId": 0,
            "Bond": 0,
            "DoNotAllowBaseRateToBeOverridden": false,
            "LastRoomValueConditionsNotMet": false,
            "RestrictionPermanent": false,
            "RestrictionFromDate": "1900-01-01T00:00:00",
            "RestrictionToDate": "1900-01-01T00:00:00",
            "RestrictionType": 0,
            "MinNights": 0,
            "MaxNights": 0,
            "RateElement": "Cor-Award",
            "RateElementId": 1,
            "OnlyAvailableToMembers": false,
            "AgentId": 0
        },
        "Tooltip": "",
        "isOpen": false
    }
    let objPamentMode_CTA = {
        "Identifier": "PaymentMode_Id",
        "Label": "Payment Mode",
        "TypeOfControl": 2,
        "IsClickable": false,
        "ValueTextId": 13,
        "ValueText": "CTA Rm only",
        "PlaceholderText": "",
        "MaxLength": 0,
        "ComboBoxType": 40,
        "FieldVisible": true,
        "DisplayFormat": 0,
        "MandatoryOnSave": true,
        "MandatoryOnCheckIn": false,
        "ReadOnly": false,
        "Tag": null,
        "FieldOrder": 21,
        "SmartSearch": false,
        "SmartSearchOrder": 0,
        "AdvancedSearch": false,
        "AlwaysShown": false,
        "AlwaysInGrid": false,
        "MetaData": null,
        "CapitalizeOnBlur": true,
        "comboSelected": {
            "ValueText": "CTA Rm only",
            "Description": "Charge to Travel Agent -  Room Only",
            "ValueTextId": 13
        },
        "isOpen": false
    }

    if (nPaymentMode !== 0) {
        objParam.ResRows.forEach((params) => {
            if (params.Identifier == 'PaymentMode_Id') {
                if (nPaymentMode == 1) {

                    objParam.ResRows[objParam.ResRows.indexOf(params)] = {
                        "Identifier": "PaymentMode_Id",
                        "Label": "Payment Mode",
                        "TypeOfControl": 2,
                        "IsClickable": false,
                        "ValueTextId": 13,
                        "ValueText": "CTA Rm only",
                        "PlaceholderText": "",
                        "MaxLength": 0,
                        "ComboBoxType": 40,
                        "FieldVisible": true,
                        "DisplayFormat": 0,
                        "MandatoryOnSave": true,
                        "MandatoryOnCheckIn": false,
                        "ReadOnly": false,
                        "Tag": null,
                        "FieldOrder": 21,
                        "SmartSearch": false,
                        "SmartSearchOrder": 0,
                        "AdvancedSearch": false,
                        "AlwaysShown": false,
                        "AlwaysInGrid": false,
                        "MetaData": null,
                        "CapitalizeOnBlur": true,
                        "comboSelected": {
                            "ValueText": "CTA Rm only",
                            "Description": "Charge to Travel Agent -  Room Only",
                            "ValueTextId": 13
                        },
                        "isOpen": false
                    }
                    let objTravelAgentDetails_CtripTMC = {

                        "Identifier": "Agent_Id",
                        "Label": "Travel Agent",
                        "TypeOfControl": 2,
                        "IsClickable": true,
                        "ValueTextId": 4478,
                        "ValueText": "Ctrip TMC China - ZL2023 (Ascott-Shanghai-8866)",
                        "PlaceholderText": "",
                        "MaxLength": 0,
                        "ComboBoxType": 43,
                        "FieldVisible": true,
                        "DisplayFormat": 0,
                        "MandatoryOnSave": false,
                        "MandatoryOnCheckIn": false,
                        "ReadOnly": false,
                        "Tag": null,
                        "FieldOrder": 19.0,
                        "SmartSearch": false,
                        "SmartSearchOrder": 0,
                        "AdvancedSearch": true,
                        "AlwaysShown": false,
                        "AlwaysInGrid": false,
                        "MetaData": null
                    }
                    let objTravelAgentDetails_ShangLv = {
                        "Identifier": "Agent_Id",
                        "Label": "Travel Agent",
                        "TypeOfControl": 2,
                        "IsClickable": true,
                        "ValueTextId": 15205,
                        "ValueText": "Shanglvlianmeng (Chongqing-6526)",
                        "PlaceholderText": "",
                        "MaxLength": 0,
                        "ComboBoxType": 43,
                        "FieldVisible": true,
                        "DisplayFormat": 0,
                        "MandatoryOnSave": false,
                        "MandatoryOnCheckIn": false,
                        "ReadOnly": false,
                        "Tag": null,
                        "FieldOrder": 19.0,
                        "SmartSearch": false,
                        "SmartSearchOrder": 0,
                        "AdvancedSearch": true,
                        "AlwaysShown": false,
                        "AlwaysInGrid": false,
                        "MetaData": null
                    }
                    let nTravelAgent = prompt('请选择:\n' + "1." + objTravelAgentDetails_CtripTMC.ValueText + '\n2.' + objTravelAgentDetails_ShangLv.ValueText, 1);
                    objParam.ResRows.forEach((param1) => {
                        if (param1.Label == "Travel Agent") {
                            switch (nTravelAgent) {
                                case "1": objParam.ResRows[objParam.ResRows.indexOf(param1)] = objTravelAgentDetails_CtripTMC;
                                    break;
                                case "2": objParam.ResRows[objParam.ResRows.indexOf(param1)] = objTravelAgentDetails_ShangLv;
                                    break;
                            }
                        }
                        else if (param1.Label == "Source Code") {
                            objParam.ResRows[objParam.ResRows.indexOf(param1)] = {
                                "Identifier": "BookSrc_Id",
                                "Label": "Source Code",
                                "TypeOfControl": 2,
                                "IsClickable": false,
                                "ValueTextId": 9,
                                "ValueText": "09 Online Travel Agent",
                                "PlaceholderText": "",
                                "MaxLength": 0,
                                "ComboBoxType": 6,
                                "FieldVisible": true,
                                "DisplayFormat": 0,
                                "MandatoryOnSave": true,
                                "MandatoryOnCheckIn": false,
                                "ReadOnly": false,
                                "Tag": null,
                                "FieldOrder": 27.0,
                                "SmartSearch": false,
                                "SmartSearchOrder": 0,
                                "AdvancedSearch": false,
                                "AlwaysShown": false,
                                "AlwaysInGrid": false,
                                "MetaData": null
                            }
                        }
                    })
                }
                else if (nPaymentMode == 2) {
                    objParam.ResRows[objParam.ResRows.indexOf(params)] = {
                        "Identifier": "PaymentMode_Id",
                        "Label": "Payment Mode",
                        "TypeOfControl": 2,
                        "IsClickable": false,
                        "ValueTextId": 5,
                        "ValueText": "CTC Rm only",
                        "PlaceholderText": "",
                        "MaxLength": 0,
                        "ComboBoxType": 40,
                        "FieldVisible": true,
                        "DisplayFormat": 0,
                        "MandatoryOnSave": true,
                        "MandatoryOnCheckIn": false,
                        "ReadOnly": false,
                        "Tag": null,
                        "FieldOrder": 21.0,
                        "SmartSearch": false,
                        "SmartSearchOrder": 0,
                        "AdvancedSearch": false,
                        "AlwaysShown": false,
                        "AlwaysInGrid": false,
                        "MetaData": null
                    }
                }
            }
        })
        if (objParam.ResRows[21].Identifier == "PaymentMode_Id") {

        }
        else {
            let objParam = {
                "strName": "fnCallBackCreateNewReservation",
                "objValue": null,
                "bIfContinue": false,
                "strErrorDescription": "无法找到对应的"
            }
            window.postMessage(objParam);
        }
    }


    objParam.ClientData.ClientRows[6] = objLastName;
    xmlhttp.onreadystatechange = function () {
        if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
            console.log("fnCreateNewReservation: ");
            //console.log(xmlhttp.responseText);
            //objParam.objReservationDetails= rtn.responseJSON.ResScreenData.ResRows;
            let objParam = {
                "strName": "fnCallBackCreateNewReservation",
                "objValue": null,
                "bIfContinue": true,
                "strErrorDescription": ""
            }
            window.postMessage(objParam);
        }
    }
    xmlhttp.open("POST", "https://app9.rmscloud.cn/api/ReservationService/SaveReservation?" +
        "EventId=" + strEventId
        + "&bAllowOverrideOfRestrictedRates=false&"
        + "bAllowPropertyOverbooking=false&"
        + "bAskTariffRecalcQuestionShowed=false&"
        + "bDoYouWantToChargeAdditionalNights=true&"
        + "bGetResponse=true&"
        + "bIgnoreAddOnSync=false&"
        + "bIgnoreWarnings=true&"
        + "bPostTariff=true&"
        + "bSaveClient=true&"
        + "bShowCancelled=false&"
        + "bTariffBreakdownChanged=false&"
        + "nAllowOverrideOfRestrictedRatesUserId=0&"
        + "nAllowPropertyOverbookingUserId=0");
    xmlhttp.setRequestHeader('content-Type', 'application/json; charset=utf-8');
    xmlhttp.send(JSON.stringify(objParam));
    //# sourceURL=my-script.js
}





/*
*名称:fnOnMsg
*功能:1.执行原有的消息机制
        2.视情况执行对应的函数
*参数:msg.data
*返回:无
*问题:是否需要增加函数执行后的响应- done
*/
function fnOnMsg(msg) {

    //if(!msg.data.bIfContinue)
    if (!msg.data.bIfContinue) {
        alert(msg.strErrorDescription);
        window.onmessage = window.fnOldOnmessage;
        window.sessionStorage.removeItem('aryStrTaskName');
        window.fnOldOnmessage = null;
        window.objGlobalParam = null;
    }
    else if (
        msg.data.strName.match('fnCallBackEventStatusAsync') ||
        msg.data.strName.match('fnCallBackCreateNewReservation') ||
        msg.data.strName.match('fnCallBackGetEventHandler') ||
        msg.data.strName.match('start')
    ) {
        let aryStrTaskName = window.sessionStorage.getItem('aryStrTaskName').split(',');

        switch (aryStrTaskName.pop())
        /*
            "fnEventStatusAsync," +
            "fnCreateNewReservation," +
            "fnGetEventHandler");*/ {
            case "End":
                window.onmessage = window.fnOldMainOnmessage;
                window.sessionStorage.removeItem('aryStrTaskName');
                window.fnOldMainOnmessage = null;
                objParam = null;
                objMsg = null;
                window.objGlobalParam = null;
                break;
            case "fnGetEventHandler":
                fnGetEventHandler();
                window.sessionStorage.setItem('aryStrTaskName', aryStrTaskName);
                break;
            case "fnCreateNewReservation":
                //here we go to strAryPamentMode= ["POA","CTA","CTC"]
                let strAryPamentMode = ['0.POA', '1.CTA', '2.CTC'];


                let dateToday = new Date();
                let dateArriveYYYYMMDD = [dateToday.getMonth() + 1, dateToday.getDate(), dateToday.getFullYear()];
                dateArriveYYYYMMDD = dateArriveYYYYMMDD[2] + '-' + dateArriveYYYYMMDD[0] + '-' + dateArriveYYYYMMDD[1];

                let strName = prompt('请输入姓名:', '汇川');
                let nPaymentMode = prompt('请输选择付款方式:\n' + strAryPamentMode[0] + '\n' + strAryPamentMode[1] + '\n' + strAryPamentMode[2], '0');
                let dateArrive = prompt('请输入入住日期:', dateArriveYYYYMMDD);
                let nNights = prompt('请输入天数:', 1);

                if (strName == null || nNights == 0) {
                    let objParam = {
                        "strName": "fnCallbackMain",
                        "objValue": 0,
                        "bIfContinue": false,
                        'strErrorDescription':'Return without a guest name or nights'

            }
                window.postMessage(objParam);
        }

        let dateDepart = new Date(new Date(dateArrive).getTime() + nNights * 24 * 60 * 60 * 1000);
        let dateDepartYYYYMMDD = [dateDepart.getMonth() + 1, dateDepart.getDate(), dateDepart.getFullYear()];
        dateDepartYYYYMMDD = dateDepartYYYYMMDD[2] + '-' + dateDepartYYYYMMDD[0] + '-' + dateDepartYYYYMMDD[1];

        dateArrive = new Date(dateArrive);
        dateArriveYYYYMMDD = [dateArrive.getMonth() + 1, dateArrive.getDate(), dateArrive.getFullYear()];
        dateArriveYYYYMMDD = dateArriveYYYYMMDD[2] + '-' + dateArriveYYYYMMDD[0] + '-' + dateArriveYYYYMMDD[1];

        fnCreateNewReservation(window.objGlobalParam.strEventHandler,
            strName,
            dateArriveYYYYMMDD,
            dateDepartYYYYMMDD,
            nNights,
            nPaymentMode

        );
        window.sessionStorage.setItem('aryStrTaskName', aryStrTaskName);
        break;
            case "fnEventStatusAsync":
        fnEventStatusAsync(window.objGlobalParam.strEventHandler);
        window.sessionStorage.setItem('aryStrTaskName', aryStrTaskName);
        break;
    }
}
    //old onmessage
    else if (window.fnOldMainOnmessage != null)
    window.fnOldMainOnmessage(msg);



}

//fnMain-->fnOnMsg<==>fnFuntionN
//1.set the string array of task queue name into sessionStorage 
//2.set param if necessary
//3.run the fnMain

//include initialization
function fnMain() {
    //initialization
    window.fnOldMainOnmessage = window.onmessage;
    window.onmessage = fnOnMsg;

    //set tasks
    window.sessionStorage.setItem('aryStrTaskName',
        "End," +
        "fnEventStatusAsync," +
        "fnCreateNewReservation," +
        "fnGetEventHandler");
    //let nRoomNumber = parseInt(prompt("请输入房间号",""))
    let objMainMsg = {
        "objParam": '',
        "bIfContinue": 1,
        "strErrorDescription": '',
        "strName": 'start'
    }
    objMainMsg.objParam.nParam = 0;
    window.objGlobalParam = new Object();

    //Entrance
    window.postMessage(objMainMsg);

}

fnMain();

//# sourceURL=my-script.js