ALTER TABLE R5STANDWORKS ADD STW_UDFCHAR01 NVARCHAR (80);
ALTER TABLE R5STANDWORKS ADD STW_UDFCHAR02 NVARCHAR (80);
ALTER TABLE R5STANDWORKS ADD STW_UDFCHAR03 NVARCHAR (80);
ALTER TABLE R5STANDWORKS ADD STW_UDFCHAR04 NVARCHAR (80);
ALTER TABLE R5STANDWORKS ADD STW_UDFCHAR05 NVARCHAR (80);
ALTER TABLE R5STANDWORKS ADD STW_UDFCHAR06 NVARCHAR (80);
ALTER TABLE R5STANDWORKS ADD STW_UDFCHAR07 NVARCHAR (80);
ALTER TABLE R5STANDWORKS ADD STW_UDFCHAR08 NVARCHAR (80);
ALTER TABLE R5STANDWORKS ADD STW_UDFCHAR09 NVARCHAR (80);
ALTER TABLE R5STANDWORKS ADD STW_UDFCHAR10 NVARCHAR (80);
ALTER TABLE R5STANDWORKS ADD STW_UDFCHAR11 NVARCHAR (80);
ALTER TABLE R5STANDWORKS ADD STW_UDFCHAR12 NVARCHAR (80);
ALTER TABLE R5STANDWORKS ADD STW_UDFCHAR13 NVARCHAR (80);
ALTER TABLE R5STANDWORKS ADD STW_UDFCHAR14 NVARCHAR (80);
ALTER TABLE R5STANDWORKS ADD STW_UDFCHAR15 NVARCHAR (80);
ALTER TABLE R5STANDWORKS ADD STW_UDFCHAR16 NVARCHAR (80);
ALTER TABLE R5STANDWORKS ADD STW_UDFCHAR17 NVARCHAR (80);
ALTER TABLE R5STANDWORKS ADD STW_UDFCHAR18 NVARCHAR (80);
ALTER TABLE R5STANDWORKS ADD STW_UDFCHAR19 NVARCHAR (80);
ALTER TABLE R5STANDWORKS ADD STW_UDFCHAR20 NVARCHAR (80);
ALTER TABLE R5STANDWORKS ADD STW_UDFCHAR21 NVARCHAR (80);
ALTER TABLE R5STANDWORKS ADD STW_UDFCHAR22 NVARCHAR (80);
ALTER TABLE R5STANDWORKS ADD STW_UDFCHAR23 NVARCHAR (80);
ALTER TABLE R5STANDWORKS ADD STW_UDFCHAR24 NVARCHAR (80);
ALTER TABLE R5STANDWORKS ADD STW_UDFCHAR25 NVARCHAR (80);
ALTER TABLE R5STANDWORKS ADD STW_UDFCHAR26 NVARCHAR (80);
ALTER TABLE R5STANDWORKS ADD STW_UDFCHAR27 NVARCHAR (80);
ALTER TABLE R5STANDWORKS ADD STW_UDFCHAR28 NVARCHAR (80);
ALTER TABLE R5STANDWORKS ADD STW_UDFCHAR29 NVARCHAR (80);
ALTER TABLE R5STANDWORKS ADD STW_UDFCHAR30 NVARCHAR (80);
ALTER TABLE R5STANDWORKS ADD STW_UDFNUM01 NUMERIC (24,6);
ALTER TABLE R5STANDWORKS ADD STW_UDFNUM02 NUMERIC (24,6);
ALTER TABLE R5STANDWORKS ADD STW_UDFNUM03 NUMERIC (24,6);
ALTER TABLE R5STANDWORKS ADD STW_UDFNUM04 NUMERIC (24,6);
ALTER TABLE R5STANDWORKS ADD STW_UDFNUM05 NUMERIC (24,6);
ALTER TABLE R5STANDWORKS ADD STW_UDFDATE01 DATETIME;
ALTER TABLE R5STANDWORKS ADD STW_UDFDATE02 DATETIME;
ALTER TABLE R5STANDWORKS ADD STW_UDFDATE03 DATETIME;
ALTER TABLE R5STANDWORKS ADD STW_UDFDATE04 DATETIME;
ALTER TABLE R5STANDWORKS ADD STW_UDFDATE05 DATETIME;
ALTER TABLE R5STANDWORKS ADD STW_UDFCHKBOX01 NVARCHAR (1);
ALTER TABLE R5STANDWORKS ADD STW_UDFCHKBOX02 NVARCHAR (1);
ALTER TABLE R5STANDWORKS ADD STW_UDFCHKBOX03 NVARCHAR (1);
ALTER TABLE R5STANDWORKS ADD STW_UDFCHKBOX04 NVARCHAR (1);
ALTER TABLE R5STANDWORKS ADD STW_UDFCHKBOX05 NVARCHAR (1);
ALTER TABLE R5STANDWORKS ADD COLUMN    STW_UDFCHAR31           NVARCHAR (80);
ALTER TABLE R5STANDWORKS ADD COLUMN    STW_UDFCHAR32           NVARCHAR (80);
ALTER TABLE R5STANDWORKS ADD COLUMN    STW_UDFCHAR33           NVARCHAR (80);
ALTER TABLE R5STANDWORKS ADD COLUMN    STW_UDFCHAR34           NVARCHAR (80);
ALTER TABLE R5STANDWORKS ADD COLUMN    STW_UDFCHAR35           NVARCHAR (80);
ALTER TABLE R5STANDWORKS ADD COLUMN    STW_UDFCHAR36           NVARCHAR (80);
ALTER TABLE R5STANDWORKS ADD COLUMN    STW_UDFCHAR37           NVARCHAR (80);
ALTER TABLE R5STANDWORKS ADD COLUMN    STW_UDFCHAR38           NVARCHAR (80);
ALTER TABLE R5STANDWORKS ADD COLUMN    STW_UDFCHAR39           NVARCHAR (80);
ALTER TABLE R5STANDWORKS ADD COLUMN    STW_UDFCHAR40           NVARCHAR (80);
ALTER TABLE R5STANDWORKS ADD COLUMN    STW_UDFCHAR41           NVARCHAR (80);
ALTER TABLE R5STANDWORKS ADD COLUMN    STW_UDFCHAR42           NVARCHAR (80);
ALTER TABLE R5STANDWORKS ADD COLUMN    STW_UDFCHAR43           NVARCHAR (80);
ALTER TABLE R5STANDWORKS ADD COLUMN    STW_UDFCHAR44           NVARCHAR (80);
ALTER TABLE R5STANDWORKS ADD COLUMN    STW_UDFCHAR45           NVARCHAR (80);

ALTER TABLE R5STANDWORKS ADD COLUMN    STW_UDFNUM06            NUMERIC (24, 6);
ALTER TABLE R5STANDWORKS ADD COLUMN    STW_UDFNUM07            NUMERIC (24, 6);
ALTER TABLE R5STANDWORKS ADD COLUMN    STW_UDFNUM08            NUMERIC (24, 6);
ALTER TABLE R5STANDWORKS ADD COLUMN    STW_UDFNUM09            NUMERIC (24, 6);
ALTER TABLE R5STANDWORKS ADD COLUMN    STW_UDFNUM10            NUMERIC (24, 6);

ALTER TABLE R5STANDWORKS ADD COLUMN    STW_UDFDATE06           DATETIME;
ALTER TABLE R5STANDWORKS ADD COLUMN    STW_UDFDATE07           DATETIME;
ALTER TABLE R5STANDWORKS ADD COLUMN    STW_UDFDATE08           DATETIME;
ALTER TABLE R5STANDWORKS ADD COLUMN    STW_UDFDATE09           DATETIME;
ALTER TABLE R5STANDWORKS ADD COLUMN    STW_UDFDATE10           DATETIME;

ALTER TABLE R5STANDWORKS ADD COLUMN    STW_UDFCHKBOX06         NVARCHAR (1) DEFAULT '-' ;
ALTER TABLE R5STANDWORKS ADD COLUMN    STW_UDFCHKBOX07         NVARCHAR (1) DEFAULT '-';
ALTER TABLE R5STANDWORKS ADD COLUMN    STW_UDFCHKBOX08         NVARCHAR (1) DEFAULT '-';
ALTER TABLE R5STANDWORKS ADD COLUMN    STW_UDFCHKBOX09         NVARCHAR (1) DEFAULT '-';
ALTER TABLE R5STANDWORKS ADD COLUMN    STW_UDFCHKBOX10         NVARCHAR (1) DEFAULT '-';

ALTER TABLE R5STANDWORKS ADD COLUMN STW_UDFNOTE01 NVARCHAR (2000) NULL;
ALTER TABLE R5STANDWORKS ADD COLUMN STW_UDFNOTE02 NVARCHAR (2000) NULL;


update R5CONFIGSETTINGS set CFS_XMLCONFIG = '{"sections":[{ "name":"Parts", "fields":[ {"id":"PAR_ACTIVITYID", "lbl":"Activity", "type":"LOV-1", "def":"", "ro":"NO", "rq":"YES", "len":"24", "hid":"NO" }, {"id": "PAR_ACT_NOTE","lbl": "Activity Note","type": "CHAR","def": "","ro": "YES","rq": "NO","len": "256","hid": "NO"}, {"id":"PAR_CODE", "lbl":"Part", "type":"LOV-2", "def":"", "ro":"NO", "rq":"YES", "len":"15", "hid":"NO" }, {"id":"PAR_MANUPART", "lbl":"Manufacturer Part", "type":"LOV-1", "def":"", "ro":"NO", "rq":"NO", "len":"15", "hid":"NO" }, {"id":"PAR_PARTCONDITION", "lbl":"Condition", "type":"CHAR", "def":"", "ro":"YES", "rq":"NO", "len":"15", "hid":"NO" },{"id":"PAR_PLANNEDQTY", "lbl":"Planned Qty", "type":"NUM", "def":"", "ro":"NO", "rq":"YES", "len":"24", "hid":"NO" }] }]}' where CFS_CODE = 'TCJPAR_IPAD';

update R5CONFIGSETTINGS set CFS_XMLCONFIG = '{ "sections":[ { "name":"Work Order", "fields":[ { "id":"EVT_CODE", "lbl":"Work Order", "type":"CHAR", "def":"", "ro":"YES", "rq":"NO", "len":"30", "hid":"NO" }, { "id":"EVT_DESC", "lbl":"Description", "type":"CHAR", "def":"", "ro":"NO", "rq":"YES", "len":"80", "hid":"NO" }, { "id":"EVT_OBJECT", "lbl":"Equipment", "type":"LOV-2", "def":"", "ro":"NO", "rq":"YES", "len":"30", "hid":"NO" }, { "id":"OBJ_ALIAS", "lbl":"Equipment Alias", "type":"CHAR", "def":"", "ro":"YES", "rq":"NO", "len":"30", "hid":"YES" }, { "id":"EVT_STANDWORK", "lbl":"Standard WO", "type":"LOV-1", "def":"", "ro":"NO", "rq":"NO", "len":"20", "hid":"NO" }, { "id":"EVT_JOBTYPE", "lbl":"Type", "type":"LOV-1", "def":"", "ro":"NO", "rq":"YES", "len":"8", "hid":"NO" }, { "id":"EVT_MRC", "lbl":"Department", "type":"LOV-1", "def":"", "ro":"NO", "rq":"YES", "len":"15", "hid":"NO" }, { "id":"EVT_STATUS", "lbl":"Status", "type":"PICKER", "def":"", "ro":"NO", "rq":"YES", "len":"8", "hid":"NO" }, { "id":"EVT_SAFETY", "lbl":"Safety", "type":"BOOL", "def":"", "ro":"NO", "rq":"NO", "len":"2", "hid":"NO" }, { "id":"EVT_WARRANTY", "lbl":"Warranty", "type":"BOOL", "def":"", "ro":"NO", "rq":"NO", "len":"2", "hid":"NO" }, { "id":"EVT_MULTIEQUIP", "lbl":"Multiple Equipment", "type":"BOOL", "def":"", "ro":"YES", "rq":"NO", "len":"2", "hid":"YES" } ] }, { "name":"Linear Reference Details", "hid":"YES", "ro":"YES", "mode":"CON", "fields":[ { "id":"EVT_FROMPOINT", "lbl":"From Point", "type":"LOV-3", "def":"", "ro":"NO", "rq":"NO", "len":"30", "hid":"NO" }, { "id":"EVT_FROMREFDESC", "lbl":"From Ref. Description", "type":"CHAR", "def":"", "ro":"NO", "rq":"NO", "len":"80", "hid":"NO" }, { "id":"EVT_FROMGEOREF", "lbl":"From Geographical Ref.", "type":"CHAR", "def":"", "ro":"NO", "rq":"NO", "len":"80", "hid":"NO" }, { "id":"EVT_TOPOINT", "lbl":"To Point", "type":"LOV-3", "def":"", "ro":"NO", "rq":"NO", "len":"30", "hid":"NO" }, { "id":"EVT_TOREFDESC", "lbl":"To Ref. Description", "type":"CHAR", "def":"", "ro":"NO", "rq":"NO", "len":"80", "hid":"NO" }, { "id":"EVT_TOGEOREF", "lbl":"To Geographical Ref.", "type":"CHAR", "def":"", "ro":"NO", "rq":"NO", "len":"80", "hid":"NO" }, { "id":"EVT_INSPECTIONDIRECTION", "lbl":"Inspection Direction", "type":"PICKER", "def":"", "ro":"NO", "rq":"NO", "len":"30", "hid":"NO" }, { "id":"EVT_FLOW", "lbl":"Flow", "type":"PICKER", "def":"", "ro":"NO", "rq":"NO", "len":"30", "hid":"NO" }, { "id":"EVT_RELATIONSHIP_TYPE", "lbl":"Relationship Type", "type":"LOV-1", "def":"", "ro":"NO", "rq":"NO", "len":"30", "hid":"YES" }, { "id":"EVT_FROM_REFERENCE_POINT", "lbl":"From Reference Point", "type":"LOV-1", "def":"", "ro":"NO", "rq":"NO", "len":"100", "hid":"YES" }, { "id":"EVT_FROM_OFFSET", "lbl":"From Offset", "type":"NUM", "def":"", "ro":"NO", "rq":"NO", "len":"24", "hid":"YES" }, { "id":"EVT_FROM_OFFSET_PERCENTAGE", "lbl":"From Offset %", "type":"NUM", "def":"", "ro":"NO", "rq":"NO", "len":"5", "hid":"YES" }, { "id":"EVT_FROM_OFFSET_DIRECTION", "lbl":"From Offset Direction", "type":"LOV-1", "def":"", "ro":"NO", "rq":"NO", "len":"80", "hid":"YES" }, { "id":"EVT_FROM_LR_REFERENCE", "lbl":"From Reference", "type":"CHAR", "def":"", "ro":"YES", "rq":"NO", "len":"80", "hid":"YES" }, { "id":"EVT_FROM_LR_OFFSET", "lbl":"From Ref. Offset", "type":"CHAR", "def":"", "ro":"YES", "rq":"NO", "len":"24", "hid":"YES" }, { "id":"EVT_FROM_LR_OFFSET_DIRECTION", "lbl":"From Ref. Offset Direction", "type":"CHAR", "def":"", "ro":"YES", "rq":"NO", "len":"80", "hid":"YES" }, { "id":"EVT_TO_REFERENCE_POINT", "lbl":"To Reference Point", "type":"LOV-1", "def":"", "ro":"NO", "rq":"NO", "len":"100", "hid":"YES" }, { "id":"EVT_TO_OFFSET", "lbl":"To Offset", "type":"NUM", "def":"", "ro":"NO", "rq":"NO", "len":"24", "hid":"YES" }, { "id":"EVT_TO_OFFSET_PERCENTAGE", "lbl":"To Offset %", "type":"NUM", "def":"", "ro":"NO", "rq":"NO", "len":"5", "hid":"YES" }, { "id":"EVT_TO_OFFSET_DIRECTION", "lbl":"To Offset Direction", "type":"LOV-1", "def":"", "ro":"NO", "rq":"NO", "len":"80", "hid":"YES" }, { "id":"EVT_TO_LR_REFERENCE", "lbl":"To Reference", "type":"CHAR", "def":"", "ro":"YES", "rq":"NO", "len":"80", "hid":"YES" }, { "id":"EVT_TO_LR_OFFSET", "lbl":"To Ref. Offset", "type":"CHAR", "def":"", "ro":"YES", "rq":"NO", "len":"24", "hid":"YES" }, { "id":"EVT_TO_LR_OFFSET_DIRECTION", "lbl":"To Ref. Offset Direction", "type":"CHAR", "def":"", "ro":"YES", "rq":"NO", "len":"80", "hid":"YES" } ] }, { "name":"Scheduling", "fields":[ { "id":"EVT_ORIGIN", "lbl":"Reported By", "type":"LOV-1", "def":"", "ro":"NO", "rq":"NO", "len":"15", "hid":"NO" }, { "id":"EVT_PERSON", "lbl":"Assigned To", "type":"LOV-1", "def":"", "ro":"NO", "rq":"NO", "len":"15", "hid":"NO" }, { "id":"EVT_TARGET", "lbl":"Sched. Start Date", "type":"DATE", "def":"", "ro":"NO", "rq":"NO", "len":"80", "hid":"NO" }, { "id":"EVT_DUE", "lbl":"Sched. End Date", "type":"DATE", "def":"", "ro":"NO", "rq":"NO", "len":"80", "hid":"NO" }, { "id":"EVT_REPORTED", "lbl":"Date Reported", "type":"DATI", "def":"", "ro":"NO", "rq":"YES", "len":"80", "hid":"NO" }, { "id":"EVT_ENTEREDBY", "lbl":"Created By", "type":"CHAR", "def":"", "ro":"YES", "rq":"NO", "len":"80", "hid":"NO" }, { "id":"EVT_REQUESTSTART", "lbl":"Req. Start Date", "type":"DATE", "def":"", "ro":"NO", "rq":"NO", "len":"80", "hid":"YES" }, { "id":"EVT_REQUESTEND", "lbl":"Req. End Date", "type":"DATE", "def":"", "ro":"NO", "rq":"NO", "len":"80", "hid":"YES" }, { "id":"EVT_START", "lbl":"Start Date", "type":"DATI", "def":"", "ro":"NO", "rq":"NO", "len":"80", "hid":"YES" }, { "id":"EVT_COMPLETED", "lbl":"Date Completed", "type":"DATI", "def":"", "ro":"NO", "rq":"NO", "len":"15", "hid":"YES" } ] }, { "name":"Work Order Details", "fields":[ { "id":"EVT_LOCATION", "lbl":"Location", "type":"LOV-1", "def":"", "ro":"NO", "rq":"NO", "len":"30", "hid":"NO" }, { "id":"EVT_CLASS", "lbl":"Class", "type":"LOV-1", "def":"", "ro":"NO", "rq":"NO", "len":"8", "hid":"NO" }, { "id":"EVT_COSTCODE", "lbl":"Cost Code", "type":"LOV-1", "def":"", "ro":"NO", "rq":"NO", "len":"30", "hid":"NO" }, { "id":"EVT_PRIORITY", "lbl":"Priority", "type":"PICKER", "def":"", "ro":"NO", "rq":"NO", "len":"8", "hid":"NO" }, { "id":"EVT_REQM", "lbl":"Problem Code", "type":"LOV-1", "def":"", "ro":"NO", "rq":"NO", "len":"8", "hid":"NO" }, { "id":"EVT_PARENT", "lbl":"Parent WO", "type":"LOV-1", "def":"", "ro":"NO", "rq":"NO", "len":"30", "hid":"NO" }, { "id":"EVT_OBJCRITICALITY", "lbl":"Criticality", "type":"CHAR", "def":"", "ro":"YES", "rq":"NO", "len":"8", "hid":"NO" }, { "id":"EVT_METUOM", "lbl":"Meter", "type":"CHAR", "def":"", "ro":"YES", "rq":"NO", "len":"30", "hid":"NO" } ] }, { "name":"Call Center Details", "rq":"YES", "fields":[ { "id":"EVT_SUPPLIER", "lbl":"Supplier", "type":"LOV-2", "def":"", "ro":"NO", "rq":"NO", "len":"15", "hid":"NO" }, { "id":"EVT_SUPPLIER_ORG", "lbl":"Supplier Org.", "type":"CHAR", "def":"", "ro":"YES", "rq":"NO", "len":"30", "hid":"YES" }, { "id":"EVT_SERVICECATEGORY", "lbl":"Service Category", "type":"LOV-2", "def":"", "ro":"NO", "rq":"NO", "len":"15", "hid":"NO" }, { "id":"EVT_SERVICECATEGORY_ORG", "lbl":"Service Category Org.", "type":"CHAR", "def":"", "ro":"YES", "rq":"NO", "len":"30", "hid":"YES" }, { "id":"EVT_SERVICEPROBLEM", "lbl":"Service Code", "type":"LOV-2", "def":"", "ro":"NO", "rq":"NO", "len":"15", "hid":"NO" }, { "id":"EVT_SERVICEPROBLEM_ORG", "lbl":"Service Code Org.", "type":"CHAR", "def":"", "ro":"YES", "rq":"NO", "len":"30", "hid":"YES" }, { "id":"EVT_TFPROMISEDATE", "lbl":"Temporary Fix Promise Date", "type":"DATI", "def":"", "ro":"NO", "rq":"NO", "len":"80", "hid":"NO" }, { "id":"EVT_PFPROMISEDATE", "lbl":"Permanent Fix Promise Date", "type":"DATI", "def":"", "ro":"NO", "rq":"NO", "len":"80", "hid":"NO" }, { "id":"EVT_TFDATECOMPLETED", "lbl":"Temporary Fix Date Completed", "type":"DATI", "def":"", "ro":"NO", "rq":"NO", "len":"80", "hid":"NO" } ] } ] }' where CFS_CODE = 'TCJOBR_IPAD';

update r5configsettings set cfs_xmlconfig = '{ "sections":[ { "name":"Equipment", "fields":[ { "id":"OBJ_OBTYPE", "lbl":"Type", "type":"PICKER", "def":"", "ro":"NO", "rq":"YES", "len":"30", "hid":"NO" }, { "id":"OBJ_CODE", "lbl":"Equipment", "type":"CHAR", "def":"", "ro":"NO", "rq":"NO", "len":"30", "hid":"NO" }, { "id":"OBJ_DESC", "lbl":"Description", "type":"CHAR", "def":"", "ro":"NO", "rq":"YES", "len":"80", "hid":"NO" }, { "id":"OBJ_ORG", "lbl":"Organization", "type":"LOV-1", "def":"", "ro":"NO", "rq":"YES", "len":"15", "hid":"NO" }, { "id":"OBJ_STATUS", "lbl":"Status", "type":"PICKER", "def":"", "ro":"NO", "rq":"YES", "len":"15", "hid":"NO" }, { "id":"OBJ_OPERATIONALSTATUS", "lbl":"Operational Status", "type":"PICKER", "def":"", "ro":"YES", "rq":"NO", "len":"4", "hid":"YES" }, { "id":"OBJ_MRC", "lbl":"Department", "type":"LOV-1", "def":"", "ro":"NO", "rq":"YES", "len":"15", "hid":"NO" }, { "id":"OBJ_CLASS", "lbl":"Class", "type":"LOV-1", "def":"", "ro":"NO", "rq":"NO", "len":"15", "hid":"NO" }, { "id":"OBJ_CATEGORY", "lbl":"Category", "type":"LOV-1", "def":"", "ro":"NO", "rq":"NO", "len":"15", "hid":"NO" }, { "id":"OBJ_COSTCODE", "lbl":"Cost Code", "type":"LOV-1", "def":"", "ro":"NO", "rq":"NO", "len":"15", "hid":"NO" }, { "id":"OBJ_COMMISS", "lbl":"Commission Date", "type":"DATE", "def":"", "ro":"NO", "rq":"NO", "len":"15", "hid":"NO" }, { "id":"OBJ_VALUE", "lbl":"Equipment Value", "type":"NUM", "def":"", "ro":"NO", "rq":"NO", "len":"30", "hid":"NO" }, { "id":"OBJ_CRITICALITY", "lbl":"Criticality", "type":"PICKER", "def":"", "ro":"NO", "rq":"NO", "len":"15", "hid":"NO" }, { "id":"OBJ_DORMSTART", "lbl":"Dormant Start", "type":"DATE", "def":"", "ro":"NO", "rq":"NO", "len":"15", "hid":"NO" }, { "id":"OBJ_DORMEND", "lbl":"Dormant End", "type":"DATE", "def":"", "ro":"NO", "rq":"NO", "len":"15", "hid":"NO" }, { "id":"OBJ_SYSLEVEL", "lbl":"System Level", "type":"LOV-1", "def":"", "ro":"NO", "rq":"NO", "len":"15", "hid":"NO" }, { "id":"OBJ_ASMLEVEL", "lbl":"Assembly Level", "type":"LOV-1", "def":"", "ro":"NO", "rq":"NO", "len":"15", "hid":"NO" }, { "id":"OBJ_COMPLEVEL", "lbl":"Component Level", "type":"LOV-1", "def":"", "ro":"NO", "rq":"NO", "len":"15", "hid":"NO" }, { "id":"OBJ_VMRS_DESC", "lbl":"VMRS Description", "type":"CHAR", "def":"", "ro":"YES", "rq":"NO", "len":"80", "hid":"NO" }, { "id":"OBJ_COMPLOCATION", "lbl":"Component Location", "type":"LOV-1", "def":"", "ro":"NO", "rq":"NO", "len":"30", "hid":"NO" }, { "id":"OBJ_ALIAS", "lbl":"Alias", "type":"CHAR", "def":"", "ro":"NO", "rq":"NO", "len":"15", "hid":"YES" }, { "id":"OBJ_PROFILE", "lbl":"Profile", "type":"LOV-1", "def":"", "ro":"NO", "rq":"NO", "len":"15", "hid":"NO" }, { "id":"OBJ_SAFETY", "lbl":"Safety", "type":"BOOL", "def":"", "ro":"NO", "rq":"NO", "len":"15", "hid":"NO" }, { "id":"OBJ_NOTUSED", "lbl":"Out of Service", "type":"BOOL", "def":"", "ro":"NO", "rq":"NO", "len":"15", "hid":"NO" }, { "id":"OBJ_YEARBUILT", "lbl":"Year Built", "type":"NUM", "def":"", "ro":"NO", "rq":"NO", "len":"4", "hid":"YES" }, { "id":"OBJ_SERVICELIFE", "lbl":"Service Life (Years)", "type":"NUM", "def":"", "ro":"NO", "rq":"NO", "len":"3", "hid":"YES" } ] }, { "name":"Tracking Details", "fields":[ { "id":"OBJ_MANUFACT", "lbl":"Manufacturer", "type":"LOV-1", "def":"", "ro":"NO", "rq":"NO", "len":"15", "hid":"NO" }, { "id":"OBJ_SERIALNO", "lbl":"Serial Number", "type":"CHAR", "def":"", "ro":"NO", "rq":"NO", "len":"30", "hid":"NO" }, { "id":"OBJ_MANUFACTMODEL", "lbl":"Model", "type":"CHAR", "def":"", "ro":"NO", "rq":"NO", "len":"30", "hid":"NO" } ] }, { "name":"Part Association", "fields":[ { "id":"OBJ_PART", "lbl":"Part", "type":"LOV-1", "def":"", "ro":"NO", "rq":"NO", "len":"15", "hid":"NO" }, { "id":"OBJ_STORE", "lbl":"Store", "type":"LOV-1", "def":"", "ro":"NO", "rq":"NO", "len":"15", "hid":"NO" }, { "id":"OBJ_BIN", "lbl":"Bin", "type":"LOV-1", "def":"", "ro":"NO", "rq":"NO", "len":"15", "hid":"NO" }, { "id":"OBJ_LOT", "lbl":"Lot", "type":"LOV-1", "def":"", "ro":"NO", "rq":"NO", "len":"15", "hid":"NO" } ] }, { "name":"Hierarchy", "fields":[ { "id":"OBJ_PARENT", "lbl":"Parent Asset", "type":"LOV-1", "def":"", "ro":"NO", "rq":"NO", "len":"30", "hid":"NO" }, { "id":"OBJ_PARENT_DEPEND", "lbl":"Dependent", "type":"BOOL", "def":"", "ro":"NO", "rq":"NO", "len":"2", "hid":"NO" }, { "id":"OBJ_PARENT_COST_ROLL_UP", "lbl":"Cost Roll-up", "type":"BOOL", "def":"", "ro":"NO", "rq":"NO", "len":"2", "hid":"NO" }, { "id":"OBJ_POSITION", "lbl":"Position", "type":"LOV-1", "def":"", "ro":"NO", "rq":"NO", "len":"30", "hid":"NO" }, { "id":"OBJ_POSITION_DEPEND", "lbl":"Dependent", "type":"BOOL", "def":"", "ro":"NO", "rq":"NO", "len":"2", "hid":"NO" }, { "id":"OBJ_POSITION_COST_ROLL_UP", "lbl":"Cost Roll-up", "type":"BOOL", "def":"", "ro":"NO", "rq":"NO", "len":"2", "hid":"NO" }, { "id":"OBJ_LOCATION", "lbl":"Location", "type":"LOV-1", "def":"", "ro":"NO", "rq":"NO", "len":"30", "hid":"NO" }, { "id":"OBJ_PRIMARYSYSTEM", "lbl":"Primary System", "type":"LOV-1", "def":"", "ro":"NO", "rq":"NO", "len":"30", "hid":"NO" }, { "id":"OBJ_PRIMARYSYSTEM_DEPEND", "lbl":"Dependent", "type":"BOOL", "def":"", "ro":"NO", "rq":"NO", "len":"2", "hid":"NO" }, { "id":"OBJ_PRIMARYSYSTEM_COST_ROLL_UP", "lbl":"Cost Roll-up", "type":"BOOL", "def":"", "ro":"NO", "rq":"NO", "len":"2", "hid":"NO" } ] }, { "name":"GIS Details", "fields":[ { "id":"OBJ_GISOBJID", "lbl":"GIS ID", "type":"CHAR", "def":"", "ro":"YES", "rq":"NO", "len":"38", "hid":"NO" }, { "id":"OBJ_GISLAYER", "lbl":"Layer", "type":"CHAR", "def":"", "ro":"YES", "rq":"NO", "len":"60", "hid":"NO" }, { "id":"OBJ_GISMAP", "lbl":"Map", "type":"CHAR", "def":"", "ro":"YES", "rq":"NO", "len":"30", "hid":"NO" }, { "id":"OBJ_GISMAP_ORG", "lbl":"Map Org.", "type":"CHAR", "def":"", "ro":"YES", "rq":"NO", "len":"15", "hid":"NO" }, { "id":"OBJ_XLOCATION", "lbl":"Location X", "type":"NUM", "def":"", "ro":"YES", "rq":"NO", "len":"24", "hid":"NO" }, { "id":"OBJ_YLOCATION", "lbl":"Location Y", "type":"NUM", "def":"", "ro":"YES", "rq":"NO", "len":"24", "hid":"NO" } ] }, { "name":"Linear Reference Details", "fields":[ { "id":"OBJ_LENGTH", "lbl":"Equipment Length", "type":"NUM", "def":"", "ro":"NO", "rq":"NO", "len":"24", "hid":"NO" }, { "id":"OBJ_LENGTHUOM", "lbl":"Equip. Length UOM", "type":"PICKER", "def":"", "ro":"NO", "rq":"NO", "len":"10", "hid":"NO" }, { "id":"OBJ_LINEARREFUOM", "lbl":"Linear Ref. UOM", "type":"PICKER", "def":"", "ro":"NO", "rq":"NO", "len":"10", "hid":"NO" }, { "id":"OBJ_LINEARREFPRECISION", "lbl":"Ref. Precision", "type":"PICKER", "def":"", "ro":"NO", "rq":"NO", "len":"2", "hid":"NO" }, { "id":"OBJ_GEOREF", "lbl":"Geographical Ref.", "type":"CHAR", "def":"", "ro":"NO", "rq":"NO", "len":"1000", "hid":"NO" }, { "id":"OBJ_INSPECTIONDIRECTION", "lbl":"Inspection Direction", "type":"PICKER", "def":"", "ro":"NO", "rq":"NO", "len":"30", "hid":"NO" }, { "id":"OBJ_FLOW", "lbl":"Flow", "type":"PICKER", "def":"", "ro":"NO", "rq":"NO", "len":"30", "hid":"NO" }, { "id":"OBJ_DIRECTION", "lbl":"Direction", "type":"LOV-1", "def":"", "ro":"NO", "rq":"NO", "len":"30", "hid":"YES" }, { "id":"OBJ_LINEAROBJTYPE", "lbl":"Linear Equipment Type", "type":"LOV-1", "def":"", "ro":"NO", "rq":"NO", "len":"30", "hid":"YES" }, { "id":"OBJ_FROMPOINT", "lbl":"From Point", "type":"NUMDESC", "def":"", "ro":"NO", "rq":"NO", "len":"24", "hid":"YES" }, { "id":"OBJ_TOPOINT", "lbl":"To Point", "type":"NUMDESC", "def":"", "ro":"NO", "rq":"NO", "len":"24", "hid":"YES" }, { "id":"OBJ_LINEARCOSTWEIGHT", "lbl":"Linear Cost Weight", "type":"NUM", "def":"", "ro":"NO", "rq":"NO", "len":"6", "hid":"YES" }, { "id":"OBJ_LENGTH_OVERRIDE", "lbl":"Equipment Length Override", "type":"BOOL", "def":"", "ro":"YES", "rq":"NO", "len":"6", "hid":"YES" } ] } ] }' where cfs_code = 'TCOBJA_IPAD';

update R5ConfigSettings set CFS_XMLCONFIG = '{"sections" :[{"name" : "Additional Cost Details","fields" : [{"id":"ADC_DESC","lbl":"Cost Description","type":"CHAR","def":"","ro":"NO","rq":"YES","len":"80","hid":"NO"},{"id":"ADC_ACT","lbl":"Activity","type":"LOV-1","def":"","ro":"NO","rq":"YES","len":"15","hid":"NO"}, {"id":"ADC_EQUIP","lbl":"Equipment","type":"LOV-1","def":"","ro":"NO","rq":"NO","len":"30","hid":"NO"}, {"id":"ADC_RELATED_WO","lbl":"Related Work Order","type":"CHAR","def":"","ro":"YES","rq":"NO","len":"20","hid":"NO"},{"id":"ADC_COST_TYPE","lbl":"Cost Type","type":"PICKER","def":"","ro":"NO","rq":"YES","len":"35","hid":"NO"},{"id":"ADC_QTY","lbl":"Quantity","type":"NUM","def":"","ro":"NO","rq":"YES","len":"24","hid":"NO"},{"id":"ADC_COSTDATE","lbl":"Date","type":"DATE","def":"","ro":"NO","rq":"YES","len":"24","hid":"NO"},{"id":"ADC_COST","lbl":"Cost","type":"NUMDESC","def":"","ro":"NO","rq":"YES","len":"30","hid":"NO"},{"id":"ADC_TOTALCOST","lbl":"Total Cost","type":"NUMDESC","def":"","ro":"YES","rq":"NO","len":"30","hid":"NO"}]}] }'
WHERE CFS_CODE = 'TCJMIS_IPAD';

UPDATE R5CONFIGSETTINGS set CFS_XMLCONFIG = '{ "sections":
[{ "name": "Operator CheckList",
"fields":[
{ "id": "OCK_ORG", "lbl": "Organization", "type": "LOV-1", "def": "", "ro": "YES", "rq": "YES", "len": "30", "hid": "NO" },
{ "id": "OCK_CODE", "lbl": "Operator CheckList Number", "type": "CHAR", "def": "", "ro": "YES", "rq": "NO", "len": "30", "hid": "NO" },
{ "id": "OCK_OBJECT", "lbl": "Equipment", "type": "LOV-2", "def": "", "ro": "NO", "rq": "YES", "len": "30", "hid": "NO" },
{ "id": "OCK_OBJECT_ORG", "lbl": "Equipment Org.", "type": "CHAR", "def": "", "ro": "YES", "rq": "NO", "len": "80", "hid": "YES" },
{ "id": "OCK_OBJECT_CLASS", "lbl": "Equipment Class", "type": "CHAR", "def": "", "ro": "YES", "rq": "NO", "len": "80", "hid": "NO" },
{ "id": "OCK_OBJECT_CLASS_ORG", "lbl": "Equipment Class Org.", "type": "CHAR", "def": "", "ro": "YES", "rq": "NO", "len": "80", "hid": "NO" },
{ "id": "OCK_TASK", "lbl": "Task Plan", "type": "LOV-2", "def": "", "ro": "NO", "rq": "YES", "len": "30", "hid": "NO" },
{ "id": "OCK_TASKREV", "lbl": "Task Plan Revision", "type": "NUM", "def": "", "ro": "YES", "rq": "NO", "len": "30", "hid": "YES" },
{ "id": "OCK_CONDITION_AS_FOUND", "lbl": "Condition As Found", "type": "LOV-1", "def": "", "ro": "NO", "rq": "NO", "len": "30","hid":"NO"},
{ "id": "OCK_CREATEDBY", "lbl": "Created By", "type": "CHAR", "def": "", "ro": "YES", "rq": "NO", "len": "80", "hid": "YES" },
{ "id": "OCK_STATUS", "lbl": "Status", "type": "CHAR", "def": "", "ro": "YES", "rq": "NO", "len": "30", "hid": "YES" },
{ "id": "OCK_STARTDATE", "lbl": "Start Date/Time", "type": "DATI", "def": "", "ro": "YES", "rq": "NO", "len": "30", "hid": "YES" },
{ "id": "OCK_ENDDATE", "lbl": "End Date/Time", "type": "DATI", "def": "", "ro": "YES", "rq": "NO", "len": "30", "hid": "YES" },
{ "id": "OCK_PERFORMBYRESPCODE", "lbl": "Perform By Responsibility", "type": "CHAR", "def": "", "ro": "YES", "rq": "NO", "len": "30", "hid": "YES" },
{ "id": "OCK_REVIEWRESPCODE", "lbl": "Review Responsibility", "type": "CHAR", "def": "", "ro": "YES", "rq": "NO", "len": "30", "hid": "YES" }
]}]}' where CFS_CODE = 'TCOPCL_IPAD';

UPDATE R5CONFIGSETTINGS set CFS_XMLCONFIG = '{ "sections": [{ "name": "Notebook", "fields": [{ "id": "MNB_CODE", "lbl": "Notebook", "type": "CHAR", "def": "", "ro": "YES", "rq": "NO", "len": "30", "hid": "YES" }, { "id": "MNB_CREATEDBY", "lbl": "Created By", "type": "CHAR", "def": "", "ro": "YES", "rq": "NO", "len": "80", "hid": "YES" }, { "id": "MNB_CREATEDBY_NAME", "lbl": "Created By Name", "type": "CHAR", "def": "", "ro": "YES", "rq": "NO", "len": "30", "hid": "YES" }, { "id": "MNB_MOBILECREATED", "lbl": "Date/Time Created", "type": "DATI", "def": "", "ro": "YES", "rq": "NO", "len": "80", "hid": "YES" }, { "id": "MNB_ORG", "lbl": "Organization", "type": "LOV-1", "def": "", "ro": "YES", "rq": "YES", "len": "30", "hid": "NO" }, { "id": "MNB_PRIVATE", "lbl": "Private", "type": "BOOL", "def": "", "ro": "NO", "rq": "NO", "len": "2", "hid": "NO" }, { "id": "MNB_NOTE", "lbl": "Note", "type": "MEMO-1", "def": "", "ro": "NO", "rq": "YES", "len": "256", "hid": "NO" }, { "id": "MNB_EMAILS", "lbl": "Emails", "type": "LOV-1", "def": "", "ro": "NO", "rq": "NO", "len": "30", "hid": "NO" }, { "id": "MNB_NONEMPLOYEEEMAILS", "lbl": "Non-Employee Emails", "type": "LOV-4", "def": "", "ro": "NO", "rq": "NO", "len": "200", "hid": "NO" }, { "id": "MNB_REFERENCES", "lbl": "References", "type": "LOV-1", "def": "", "ro": "NO", "rq": "NO", "len": "30", "hid": "NO" }] }, { "name": "Defect Details", "fields": [{ "id": "MNB_DEFECT", "lbl": "Defect", "type": "BOOL", "def": "", "ro": "NO", "rq": "NO", "len": "2", "hid": "NO" }, { "id": "MNB_OBJECT", "lbl": "Equipment", "type": "LOV-2", "def": "", "ro": "NO", "rq": "NO", "len": "30", "hid": "NO" }, { "id": "MNB_OBJECT_ORG", "lbl": "Equipment Org.", "type": "CHAR", "def": "", "ro": "YES", "rq": "NO", "len": "80", "hid": "YES" }, { "id": "MNB_NCFSEVERITY", "lbl": "Nonconformity Severity", "type": "LOV-1", "def": "", "ro": "NO", "rq": "NO", "len": "30", "hid": "NO" }, { "id": "MNB_NCTTYPE", "lbl": "Nonconformity Type", "type": "LOV-2", "def": "", "ro": "NO", "rq": "NO", "len": "30", "hid": "NO" }, { "id": "MNB_NCTTYPE_ORG", "lbl": "Nonconformity Type Org.", "type": "CHAR", "def": "", "ro": "YES", "rq": "NO", "len": "80", "hid": "YES" }, { "id": "MNB_NCFCLASS", "lbl": "Nonconformity Class", "type": "LOV-1", "def": "", "ro": "NO", "rq": "NO", "len": "30", "hid": "NO" }, { "id": "MNB_NCFCLASS_ORG", "lbl": "Nonconformity Class Org.", "type": "CHAR", "def": "", "ro": "YES", "rq": "NO", "len": "80", "hid": "YES" }, { "id": "MNB_CLASS", "lbl": "Notebook Class", "type": "LOV-1", "def": "", "ro": "NO", "rq": "NO", "len": "30", "hid": "NO" }, { "id": "MNB_CLASS_ORG", "lbl": "Notebook Class Org.", "type": "CHAR", "def": "", "ro": "YES", "rq": "NO", "len": "80", "hid": "YES" }] }, { "name": "Physical Location", "fields": [{ "id": "MNB_LEVEL1", "lbl": "Level 1", "type": "LOV-2", "def": "", "ro": "NO", "rq": "NO", "len": "30", "hid": "NO" }, { "id": "MNB_LEVEL2", "lbl": "Level 2", "type": "LOV-2", "def": "", "ro": "NO", "rq": "NO", "len": "30", "hid": "NO" }, { "id": "MNB_LEVEL3A", "lbl": "Level 3A", "type": "LOV-2", "def": "", "ro": "NO", "rq": "NO", "len": "30", "hid": "NO" }, { "id": "MNB_LEVEL3", "lbl": "Level 3", "type": "LOV-2", "def": "", "ro": "NO", "rq": "NO", "len": "30", "hid": "NO" }, { "id": "MNB_LEVEL4", "lbl": "Level 4", "type": "LOV-2", "def": "", "ro": "NO", "rq": "NO", "len": "30", "hid": "NO" }, { "id": "MNB_STATIONING_MAJOR", "lbl": "Stationing (major)", "type": "INT", "def": "", "ro": "NO", "rq": "NO", "len": "30", "hid": "NO" }, { "id": "MNB_STATIONING_MINOR", "lbl": "Stationing (minor)", "type": "INT", "def": "", "ro": "NO", "rq": "NO", "len": "30", "hid": "NO" }, { "id": "MNB_DETAILED_LOCATION", "lbl": "Detailed Location", "type": "CHAR", "def": "", "ro": "NO", "rq": "NO", "len": "80", "hid": "NO" }] }, { "name": "Attachments", "sectype": "ATTACHMENTS", "fields": [] }] }' where CFS_CODE='TCMNBK_IPAD';

update r5configsettings set cfs_xmlconfig='{"sections": [{"name": "Nonconformity","fields": [{ "id": "NCO_PK","lbl": "Observation PK","type": "CHAR","def": "","ro": "YES","rq": "NO","len": "30","hid": "NO"}, {"id": "NCF_CODE","lbl": "Nonconformity","type": "CHAR","def": "","ro": "YES","rq": "NO","len": "80","hid": "NO"}, {"id": "NCF_DESC","lbl": "Description","type": "CHAR","def": "","ro": "NO","rq": "NO","len": "80","hid": "NO"}, {"id": "NCF_ORG","lbl": "Organization","type": "CHAR","def": "","ro": "YES","rq": "NO","len": "80","hid": "NO"}]}, {"name": "Nonconformity Details","fields": [{"id": "NCO_OBSERVATION","lbl": "Observation","type": "NUM","def": "","ro": "YES","rq": "NO","len": "30","hid": "NO"}, {"id": "NCF_OBJECT","lbl": "Equipment","type": "LOV-2","def": "","ro": "NO","rq": "YES","len": "30","hid": "NO"}, {"id": "NCF_OBJECT_CRITICALITY","lbl": "Equipment Criticality","type": "CHAR","def": "","ro": "YES","rq": "NO","len": "80","hid": "NO"}, {"id": "NCF_OBJECT_SAFETY","lbl": "Equipment Safety","type": "BOOL","def": "","ro": "YES","rq": "NO","len": "80","hid": "NO"}, {"id": "NCF_LOCATION","lbl": "Location","type": "LOV-2","def": "","ro": "NO","rq": "NO","len": "30","hid": "NO"}, {"id": "NCF_PART","lbl": "Part","type": "LOV-2","def": "","ro": "NO","rq": "NO","len": "30","hid": "NO"}, {"id": "NCF_MRC","lbl": "Department","type": "LOV-2","def": "","ro": "NO","rq": "YES","len": "30","hid": "NO"}, {"id": "NCF_CLASS","lbl": "Class","type": "LOV-1","def": "","ro": "NO","rq": "NO","len": "30","hid": "NO"}, {"id": "NCF_CLASS_ORG","lbl": "Class Organization","type": "CHAR","def": "","ro": "YES","rq": "NO","len": "80","hid": "NO"}, {"id": "NCO_TASK","lbl": "Task Plan for Checklist","type": "LOV-1","def": "","ro": "NO","rq": "NO","len": "80","hid": "NO"}, {"id": "NCO_TASKREV","lbl": "Task Plan for Checklist Revision","type": "NUM","def": "","ro": "YES","rq": "NO","len": "80","hid": "NO"}, {"id": "NCF_SYSLEVEL_DISP","lbl": "System Level","type": "LOV-1","def": "","ro": "NO","rq": "NO","len": "30","hid": "NO"}, {"id": "NCF_ASMLEVEL_DISP","lbl": "Assembly Level","type": "LOV-1","def": "","ro": "NO","rq": "NO","len": "30","hid": "NO"}, {"id": "NCF_COMPLEVEL_DISP","lbl": "Component Level","type": "LOV-1","def": "","ro": "NO","rq": "NO","len": "30","hid": "NO"}, {"id": "NCF_EMRS_DESC","lbl": "EMRS Description","type": "CHAR","def": "","ro": "YES","rq": "NO","len": "80","hid": "NO"}, {"id": "NCF_MATLTYPE","lbl": "Material Type","type": "PICKER","def": "","ro": "NO","rq": "NO","len": "30","hid": "NO"}, {"id": "NCO_STATUS","lbl": "Observation Status","type": "PICKER","def": "","ro": "NO","rq": "YES","len": "30","hid": "NO"}, {"id": "NCF_NCTTYPE","lbl": "Type","type": "LOV-2","def": "","ro": "NO","rq": "NO","len": "30","hid": "NO"}, {"id": "NCF_PRIORITY","lbl": "Priority","type": "PICKER","def": "","ro": "NO","rq": "NO","len": "30","hid": "NO"}, {"id": "NCF_NOTE","lbl": "Nonconformity Note","type": "MEMO-1","def": "","ro": "NO","rq": "NO","len": "256","hid": "YES"}, {"id": "NCO_NOTE","lbl": "Observation Note","type": "MEMO-1","def": "","ro": "NO","rq": "NO","len": "256","hid": "NO"}, {"id": "NCO_SEVERITY","lbl": "Severity","type": "PICKER","def": "","ro": "NO","rq": "NO","len": "30","hid": "NO"}, {"id": "NCO_SIZE","lbl": "Size","type": "NUM","def": "","ro": "NO","rq": "NO","len": "30","hid": "NO"}, {"id": "NCO_INTENSITY","lbl": "Intensity","type": "PICKER","def": "","ro": "NO","rq": "NO","len": "30","hid": "NO"}, {"id": "NCO_IMPORTANCE","lbl": "Importance","type": "PICKER","def": "","ro": "NO","rq": "NO","len": "30","hid": "NO"}, {"id": "NCF_STATUS","lbl": "Status","type": "PICKER","def": "","ro": "NO","rq": "YES","len": "30","hid": "NO"}, {"id": "NCF_SEVERITY","lbl": "Nonconformity Severity","type": "CHAR","def": "","ro": "YES","rq": "NO","len": "30","hid": "NO"}, {"id": "NCF_INTENSITY","lbl": "Nonconformity Intensity","type": "CHAR","def": "","ro": "YES","rq": "NO","len": "30","hid": "NO"}, {"id": "NCF_SIZE","lbl": "Nonconformity Size","type": "NUM","def": "","ro": "YES","rq": "NO","len": "30","hid": "NO"}, {"id": "NCF_IMPORTANCE","lbl": "Nonconformity Importance","type": "CHAR","def": "","ro": "YES","rq": "NO","len": "30","hid": "NO"}, {"id": "NCF_CONDITIONSCORE","lbl": "Nonconformity Condition Score","type": "NUM","def": "","ro": "YES","rq": "NO","len": "30","hid": "NO"}, {"id": "NCF_CONDITIONINDEX","lbl": "Nonconformity Condition Index","type": "CHAR","def": "","ro": "YES","rq": "NO","len": "30","hid": "NO"}]}, {"name": "Tracking Details","fields": [{"id": "NCO_RECORDEDBY","lbl": "Recorded By","type": "LOV-1","def": "","ro": "NO","rq": "NO","len": "30","hid": "NO"}, {"id": "NCO_RECORDED","lbl": "Date Recorded","type": "DATI","def": "","ro": "NO","rq": "NO","len": "80","hid": "NO"}, {"id": "NCO_CONDITIONSCORE","lbl": "Condition Score","type": "NUM","def": "","ro": "YES","rq": "NO","len": "30","hid": "NO"}, {"id": "NCO_CONDITIONINDEX","lbl": "Condition Index","type": "CHAR","def": "","ro": "YES","rq": "NO","len": "30","hid": "NO"}, {"id": "NCO_NEXTINSPECTDATE","lbl": "Next Inspection Date","type": "DATE","def": "","ro": "YES","rq": "NO","len": "80","hid": "NO"}, {"id": "NCO_NEXTINSPECTDATEOVERRIDE","lbl": "Next Inspection Date Override","type": "DATE","def": "","ro": "NO","rq": "NO","len": "80","hid": "NO"}, {"id": "NCF_RECOMMREPAIRDATE","lbl": "Recommended Repair Date.","type": "DATE","def": "","ro": "NO","rq": "NO","len": "80","hid": "NO"}, {"id": "NCF_ESTLABORCOST","lbl": "Estimated Labor Costs","type": "NUMDESC","def": "","ro": "NO","rq": "NO","len": "30","hid": "NO"}, {"id": "NCF_ESTMATLCOST","lbl": "Estimated Material Costs","type": "NUMDESC","def": "","ro": "NO","rq": "NO","len": "30","hid": "NO"}, {"id": "NCF_ESTMISCCOST","lbl": "Estimated Misc. Costs","type": "NUMDESC","def": "","ro": "NO","rq": "NO","len": "30","hid": "NO"}, {"id": "NCF_TOTALCOST","lbl": "Total Estimated Costs","type": "NUMDESC","def": "","ro": "YES","rq": "NO","len": "30","hid": "NO"}, {"id": "NCO_WORKORDER","lbl": "Work Order","type": "CHAR","def": "","ro": "YES", "rq": "NO","len": "80","hid": "NO"}, {"id": "NCO_CREATEDBY","lbl": "Created By","type": "CHAR","def": "","ro": "YES","rq": "NO","len": "80","hid": "NO"}, {"id": "NCO_CREATED","lbl": "Date Created","type": "DATE","def": "","ro": "YES","rq": "NO","len": "80","hid": "NO"}, {"id": "NCO_UPDATEDBY","lbl": "Updated By", "type": "CHAR","def": "","ro": "YES","rq": "NO","len": "80","hid": "NO"}, {"id": "NCO_UPDATED","lbl": "Date Updated","type": "DATE", "def": "","ro": "YES","rq": "NO","len": "80","hid": "NO"}]}, {"name": "Linear Reference Details","fields": [{"id": "NCF_FROMPOINT","lbl": "From Point","type": "LOV-3","def": "","ro": "NO","rq": "NO","len": "80","hid": "NO"}, {"id": "NCF_FROMREFDESC","lbl": "From Ref. Description","type": "CHAR","def": "","ro": "NO","rq": "NO","len": "80", "hid": "NO"}, {"id": "NCF_FROMGEOREF","lbl": "From Geographical Ref.","type": "CHAR","def": "","ro": "NO","rq": "NO","len": "80","hid": "NO"}, {"id": "NCF_TOPOINT","lbl": "To Point", "type": "LOV-3","def": "","ro": "NO","rq": "NO","len": "80","hid": "NO"}, {"id": "NCF_TOREFDESC","lbl": "To Ref. Description","type": "CHAR","def": "","ro": "NO","rq": "NO","len": "80","hid": "NO"}, {"id": "NCF_TOGEOREF","lbl": "To Geographical Ref.","type": "CHAR","def": "","ro": "NO","rq": "NO","len": "80","hid": "NO"}, {"id": "NCF_INSPECTIONDIRECTION","lbl": "Inspection Direction","type": "PICKER","def": "","ro": "NO","rq": "NO","len": "80","hid": "NO"}, {"id": "NCF_FLOW","lbl": "Flow","type": "PICKER","def": "","ro": "NO","rq": "NO","len": "80","hid": "NO"}]}]}' where cfs_code='TCNCF_IPAD';

update r5configsettings set cfs_xmlconfig='{ "sections": [{ "name": "Nonconformity", "fields": [{ "id": "NCF_ISLINEAR", "lbl": "Linear", "type": "BOOL", "def": "", "ro": "NO", "rq": "NO", "len": "2", "hid": "NO" }, { "id": "NCO_PK", "lbl": "Observation PK", "type": "CHAR", "def": "", "ro": "YES", "rq": "NO", "len": "30", "hid": "YES" }, { "id": "NCF_CODE", "lbl": "Nonconformity", "type": "CHAR", "def": "", "ro": "YES", "rq": "NO", "len": "80", "hid": "YES" }, { "id": "NCF_DESC", "lbl": "Description", "type": "CHAR", "def": "", "ro": "NO", "rq": "NO", "len": "80", "hid": "NO" }, { "id": "NCF_ORG", "lbl": "Organization", "type": "CHAR", "def": "", "ro": "YES", "rq": "NO", "len": "80", "hid": "YES" }, { "id": "NCO_OBSERVATION", "lbl": "Observation", "type": "NUM", "def": "", "ro": "YES", "rq": "NO", "len": "30", "hid": "YES" }, { "id": "NCF_OBJECT", "lbl": "Equipment", "type": "LOV-2", "def": "", "ro": "NO", "rq": "YES", "len": "30", "hid": "NO" }, { "id": "NCF_OBJECT_CRITICALITY", "lbl": "Equipment Criticality", "type": "CHAR", "def": "", "ro": "YES", "rq": "NO", "len": "80", "hid": "YES" }, { "id": "NCF_OBJECT_SAFETY", "lbl": "Equipment Safety", "type": "BOOL", "def": "", "ro": "YES", "rq": "NO", "len": "80", "hid": "YES" }, { "id": "NCF_LOCATION", "lbl": "Location", "type": "LOV-2", "def": "", "ro": "NO", "rq": "NO", "len": "30", "hid": "YES" }, { "id": "NCF_PART", "lbl": "Part", "type": "LOV-2", "def": "", "ro": "NO", "rq": "NO", "len": "30", "hid": "YES" }, { "id": "NCF_MRC", "lbl": "Department", "type": "LOV-2", "def": "", "ro": "NO", "rq": "YES", "len": "30", "hid": "YES" }, { "id": "NCF_CLASS", "lbl": "Class", "type": "LOV-1", "def": "", "ro": "NO", "rq": "NO", "len": "30", "hid": "YES" }, { "id": "NCF_CLASS_ORG", "lbl": "Class Organization", "type": "CHAR", "def": "", "ro": "YES", "rq": "NO", "len": "80", "hid": "YES" }, { "id": "NCO_TASK", "lbl": "Task Plan for Checklist", "type": "LOV-1", "def": "", "ro": "NO", "rq": "NO", "len": "80", "hid": "YES" }, { "id": "NCO_TASKREV", "lbl": "Task Plan for Checklist Revision", "type": "NUM", "def": "", "ro": "YES", "rq": "NO", "len": "80", "hid": "YES" }, { "id": "NCF_SYSLEVEL_DISP", "lbl": "System Level", "type": "LOV-1", "def": "", "ro": "NO", "rq": "NO", "len": "30", "hid": "YES" }, { "id": "NCF_ASMLEVEL_DISP", "lbl": "Assembly Level", "type": "LOV-1", "def": "", "ro": "NO", "rq": "NO", "len": "30", "hid": "YES" }, { "id": "NCF_COMPLEVEL_DISP", "lbl": "Component Level", "type": "LOV-1", "def": "", "ro": "NO", "rq": "NO", "len": "30", "hid": "YES" }, { "id": "NCF_EMRS_DESC", "lbl": "EMRS Description", "type": "CHAR", "def": "", "ro": "YES", "rq": "NO", "len": "80", "hid": "YES" }, { "id": "NCF_MATLTYPE", "lbl": "Material Type", "type": "PICKER", "def": "", "ro": "NO", "rq": "NO", "len": "30", "hid": "YES" }, { "id": "NCO_STATUS", "lbl": "Observation Status", "type": "PICKER", "def": "", "ro": "NO", "rq": "YES", "len": "30", "hid": "NO" }, { "id": "NCF_NCTTYPE", "lbl": "Type", "type": "LOV-2", "def": "", "ro": "NO", "rq": "NO", "len": "30", "hid": "NO" }, { "id": "NCF_PRIORITY", "lbl": "Priority", "type": "PICKER", "def": "", "ro": "NO", "rq": "NO", "len": "30", "hid": "YES" }, { "id": "NCO_SEVERITY", "lbl": "Severity", "type": "PICKER", "def": "", "ro": "NO", "rq": "NO", "len": "30", "hid": "NO" }, { "id": "NCO_SIZE", "lbl": "Size", "type": "NUM", "def": "", "ro": "NO", "rq": "NO", "len": "30", "hid": "NO" }, { "id": "NCO_INTENSITY", "lbl": "Intensity", "type": "PICKER", "def": "", "ro": "NO", "rq": "NO", "len": "30", "hid": "NO" }, { "id": "NCO_IMPORTANCE", "lbl": "Importance", "type": "PICKER", "def": "", "ro": "NO", "rq": "NO", "len": "30", "hid": "NO" }, { "id": "NCF_STATUS", "lbl": "Status", "type": "PICKER", "def": "", "ro": "NO", "rq": "NO", "len": "30", "hid": "YES" }, { "id": "NCF_SEVERITY", "lbl": "Nonconformity Severity", "type": "CHAR", "def": "", "ro": "YES", "rq": "NO", "len": "30", "hid": "YES" }, { "id": "NCF_INTENSITY", "lbl": "Nonconformity Intensity", "type": "CHAR", "def": "", "ro": "YES", "rq": "NO", "len": "30", "hid": "YES" }, { "id": "NCF_SIZE", "lbl": "Nonconformity Size", "type": "NUM", "def": "", "ro": "YES", "rq": "NO", "len": "30", "hid": "YES" }, { "id": "NCF_IMPORTANCE", "lbl": "Nonconformity Importance", "type": "CHAR", "def": "", "ro": "YES", "rq": "NO", "len": "30", "hid": "YES" }, { "id": "NCF_CONDITIONSCORE", "lbl": "Nonconformity Condition Score", "type": "NUM", "def": "", "ro": "YES", "rq": "NO", "len": "30", "hid": "YES" }, { "id": "NCF_CONDITIONINDEX", "lbl": "Nonconformity Condition Index", "type": "CHAR", "def": "", "ro": "YES", "rq": "NO", "len": "30", "hid": "YES" }, { "id": "NCO_RECORDEDBY", "lbl": "Recorded By", "type": "LOV-1", "def": "", "ro": "NO", "rq": "NO", "len": "30", "hid": "YES" }, { "id": "NCO_RECORDED", "lbl": "Date Recorded", "type": "DATI", "def": "", "ro": "NO", "rq": "NO", "len": "80", "hid": "YES" }, { "id": "NCO_CONDITIONSCORE", "lbl": "Condition Score", "type": "NUM", "def": "", "ro": "YES", "rq": "NO", "len": "30", "hid": "YES" }, { "id": "NCO_CONDITIONINDEX", "lbl": "Condition Index", "type": "CHAR", "def": "", "ro": "YES", "rq": "NO", "len": "30", "hid": "YES" }, { "id": "NCO_NEXTINSPECTDATE", "lbl": "Next Inspection Date", "type": "DATE", "def": "", "ro": "YES", "rq": "NO", "len": "80", "hid": "NO" }, { "id": "NCO_NEXTINSPECTDATEOVERRIDE", "lbl": "Next Inspection Date Override", "type": "DATE", "def": "", "ro": "NO", "rq": "NO", "len": "80", "hid": "NO" }, { "id": "NCF_RECOMMREPAIRDATE", "lbl": "Recommended Repair Date.", "type": "DATE", "def": "", "ro": "NO", "rq": "NO", "len": "80", "hid": "YES" }, { "id": "NCF_ESTLABORCOST", "lbl": "Estimated Labor Costs", "type": "NUMDESC", "def": "", "ro": "NO", "rq": "NO", "len": "30", "hid": "NO" }, { "id": "NCF_ESTMATLCOST", "lbl": "Estimated Material Costs", "type": "NUMDESC", "def": "", "ro": "NO", "rq": "NO", "len": "30", "hid": "NO" }, { "id": "NCF_ESTMISCCOST", "lbl": "Estimated Misc. Costs", "type": "NUMDESC", "def": "", "ro": "NO", "rq": "NO", "len": "30", "hid": "NO" }, { "id": "NCF_TOTALCOST", "lbl": "Total Estimated Costs", "type": "NUMDESC", "def": "", "ro": "YCES", "rq": "NO", "len": "30", "hid": "NO" },{"id": "NCF_NOTE","lbl": "Nonconformity Note","type": "MEMO-1","def": "","ro": "NO","rq": "NO","len": "256","hid": "YES"}, { "id": "NCO_NOTE", "lbl": "Observation Note", "type": "MEMO-1", "def": "", "ro": "NO", "rq": "NO", "len": "256", "hid": "NO" }, { "id": "NCO_WORKORDER", "lbl": "Work Order", "type": "CHAR", "def": "", "ro": "YES", "rq": "NO", "len": "80", "hid": "YES" }, { "id": "NCO_CREATEDBY", "lbl": "Created By", "type": "CHAR", "def": "", "ro": "YES", "rq": "NO", "len": "80", "hid": "YES" }, { "id": "NCO_CREATED", "lbl": "Date Created", "type": "DATE", "def": "", "ro": "YES", "rq": "NO", "len": "80", "hid": "YES" }, { "id": "NCO_UPDATEDBY", "lbl": "Updated By", "type": "CHAR", "def": "", "ro": "YES", "rq": "NO", "len": "80", "hid": "YES" }, { "id": "NCO_UPDATED", "lbl": "Date Updated", "type": "DATE", "def": "", "ro": "YES", "rq": "NO", "len": "80", "hid": "YES" }, { "id": "NCF_FROMPOINT", "lbl": "From Point", "type": "LOV-3", "def": "", "ro": "NO", "rq": "NO", "len": "80", "hid": "YES" }, { "id": "NCF_FROMREFDESC", "lbl": "From Ref. Description", "type": "CHAR", "def": "", "ro": "NO", "rq": "NO", "len": "80", "hid": "YES" }, { "id": "NCF_FROMGEOREF", "lbl": "From Geographical Ref.", "type": "CHAR", "def": "", "ro": "NO", "rq": "NO", "len": "80", "hid": "YES" }, { "id": "NCF_TOPOINT", "lbl": "To Point", "type": "LOV-3", "def": "", "ro": "NO", "rq": "NO", "len": "80", "hid": "YES" }, { "id": "NCF_TOREFDESC", "lbl": "To Ref. Description", "type": "CHAR", "def": "", "ro": "NO", "rq": "NO", "len": "80", "hid": "YES" }, { "id": "NCF_TOGEOREF", "lbl": "To Geographical Ref.", "type": "CHAR", "def": "", "ro": "NO", "rq": "NO", "len": "80", "hid": "YES" }, { "id": "NCF_INSPECTIONDIRECTION", "lbl": "Inspection Direction", "type": "PICKER", "def": "", "ro": "NO", "rq": "NO", "len": "80", "hid": "YES" }, { "id": "NCF_FLOW", "lbl": "Flow", "type": "PICKER", "def": "", "ro": "NO", "rq": "NO", "len": "80", "hid": "YES" }] }, { "name": "COMMENTS", "sectype": "COMMENTS", "fields": [] }, { "name": "Documents", "sectype": "DOCUMENTS", "fields": [] }, { "name": "LOCATION", "sectype": "LOCATION", "fields": [{ "id": "BUTTON_LOCATION", "lbl": "Set Map Location", "type": "LOCATION", "def": "", "ro": "NO", "rq": "NO", "len": "80", "hid": "NO" }]}]}' where cfs_code='TCGNCF_IPAD';



update r5configsettings set cfs_xmlconfig='{"sections":[{ "name":"Equipment", "fields":[{"id":"EVT_OBJECT", "lbl":"Equipment", "type":"LOV-1", "def":"", "ro":"NO", "rq":"YES", "len":"30", "hid":"NO" }, {"id":"EVT_OBJECT_DESC", "lbl":"Description", "type":"CHAR", "def":"", "ro":"YES", "rq":"NO", "len":"80", "hid":"NO" }, {"id":"EVT_OBTYPE", "lbl":"Type", "type":"CHAR", "def":"", "ro":"YES", "rq":"NO", "len":"8", "hid":"YES" }, {"id":"EVT_MRC", "lbl":"Department", "type":"LOV-1", "def":"", "ro":"NO", "rq":"YES", "len":"15", "hid":"YES" }, {"id":"EVT_LOCATION", "lbl":"Location", "type":"LOV-1", "def":"", "ro":"NO", "rq":"NO", "len":"30", "hid":"YES" }, {"id":"EVT_COSTCODE", "lbl":"Cost Code", "type":"LOV-1", "def":"", "ro":"NO", "rq":"NO", "len":"30", "hid":"YES" }, {"id":"EVT_SAFETY", "lbl":"Safety", "type":"BOOL", "def":"", "ro":"NO", "rq":"NO", "len":"2", "hid":"YES" }, {"id":"EVT_WARRANTY", "lbl":"Warranty", "type":"BOOL", "def":"", "ro":"NO", "rq":"NO", "len":"2", "hid":"YES" },{"id":"EVT_CODE", "lbl":"Related Work Order", "type":"CHAR", "def":"", "ro":"YES", "rq":"NO", "len":"30", "hid":"YES" }, {"id":"EVT_STATUS", "lbl":"Status", "type":"CHAR", "def":"", "ro":"YES", "rq":"NO", "len":"8", "hid":"YES" },{"id":"EVT_FROMPOINT","lbl":"From Point","type":"LOV-3","def":"","ro":"NO","rq":"NO","len":"30","hid":"NO"},{"id":"EVT_FROMREFDESC","lbl":"From Ref. Description","type":"CHAR","def":"","ro":"NO","rq":"NO","len":"80","hid":"NO"},{"id":"EVT_FROMGEOREF","lbl":"From Geographical Ref.","type":"CHAR","def":"","ro":"NO","rq":"NO","len":"80","hid":"NO"},{"id":"EVT_TOPOINT","lbl":"To Point","type":"LOV-3","def":"","ro":"NO","rq":"NO","len":"30","hid":"NO"},{"id":"EVT_TOREFDESC","lbl":"To Ref. Description","type":"CHAR","def":"","ro":"NO","rq":"NO","len":"80","hid":"NO"},{"id":"EVT_TOGEOREF","lbl":"To Geographical Ref.","type":"CHAR","def":"","ro":"NO","rq":"NO","len":"80","hid":"NO"},{"id":"EVT_INSPECTIONDIRECTION","lbl":"Inspection Direction","type":"PICKER","def":"","ro":"NO","rq":"NO","len":"30","hid":"NO"},{"id":"EVT_FLOW","lbl":"Flow", "type":"PICKER","def":"","ro":"NO","rq":"NO","len":"30","hid":"NO"},{"id":"EVT_RELATIONSHIP_TYPE", "lbl":"Relationship Type", "type":"LOV-1", "def":"", "ro":"NO", "rq":"NO", "len":"30", "hid":"YES" }]}]}' where cfs_code='TCJWOEQR_IPAD';

update R5CONFIGSETTINGS set cfs_xmlconfig='{ "sections":[ { "name":"Activities", "fields":[ { "id":"ACT_ACT", "lbl":"Activity", "type":"NUM", "def":"", "ro":"NO", "rq":"YES", "len":"80", "hid":"NO" }, { "id":"ACT_NOTE", "lbl":"Note", "type":"CHAR", "def":"", "ro":"NO", "rq":"NO", "len":"80", "hid":"NO" }, { "id":"ACT_TRADE", "lbl":"Trade", "type":"LOV-1", "def":"", "ro":"NO", "rq":"NO", "len":"15", "hid":"NO" }, { "id":"ACT_TASK", "lbl":"Task Plan", "type":"LOV-1", "def":"", "ro":"NO", "rq":"NO", "len":"15", "hid":"NO" }, { "id":"ACT_PERSONS", "lbl":"People Required", "type":"NUM", "def":"", "ro":"NO", "rq":"NO", "len":"8", "hid":"NO" }, { "id":"ACT_EST", "lbl":"Estimated Hours", "type":"NUM", "decimals":"2", "def":"", "ro":"NO", "rq":"NO", "len":"20", "hid":"NO" }, { "id":"ACT_START", "lbl":"Start Date", "type":"DATE", "def":"", "ro":"NO", "rq":"YES", "len":"20", "hid":"NO" }, { "id":"ACT_END", "lbl":"End Date", "type":"DATE", "def":"", "ro":"NO", "rq":"YES", "len":"20", "hid":"NO" }, { "id":"ACT_MATLIST", "lbl":"Material List", "type":"LOV-1", "def":"", "ro":"NO", "rq":"NO", "len":"80", "hid":"NO" }, { "id":"ACT_COMPLETED", "lbl":"Completed", "type":"BOOL", "def":"", "ro":"NO", "rq":"NO", "len":"2", "hid":"NO" }, { "id":"ACT_DEFERMAINTENANCE", "lbl":"Deferred Maintenance", "type":"BOOL", "def":"", "ro":"NO", "rq":"NO", "len":"2", "hid":"NO" }, { "id":"ACT_WARRANTY", "lbl":"Warranty", "type":"BOOL", "def":"", "ro":"NO", "rq":"NO", "len":"2", "hid":"YES" }, { "id":"ACT_MANUFACT", "lbl":"Manufacturer", "type":"LOV-1", "def":"", "ro":"NO", "rq":"NO", "len":"80", "hid":"YES" }, { "id":"ACT_RPC", "lbl":"Reason For Repair", "type":"LOV-1", "def":"", "ro":"NO", "rq":"NO", "len":"80", "hid":"YES" }, { "id":"ACT_WAP", "lbl":"Work Accomplished", "type":"LOV-1", "def":"", "ro":"NO", "rq":"NO", "len":"80", "hid":"YES" }, { "id":"ACT_TPF", "lbl":"Technician Part Failure", "type":"LOV-1", "def":"", "ro":"NO", "rq":"NO", "len":"80", "hid":"YES" }, { "id":"ACT_SYSLEVEL_DISP", "lbl":"System Level", "type":"LOV-1", "def":"", "ro":"NO", "rq":"NO", "len":"80", "hid":"YES" }, { "id":"ACT_ASMLEVEL_DISP", "lbl":"Assembly Level", "type":"LOV-1", "def":"", "ro":"NO", "rq":"NO", "len":"80", "hid":"YES" }, { "id":"ACT_COMPLEVEL_DISP", "lbl":"Component Level", "type":"LOV-1", "def":"", "ro":"NO", "rq":"NO", "len":"80", "hid":"YES" }, { "id":"ACT_ASSIGNMENTSTATUS", "lbl":"Assignment Status", "type":"CHAR", "def":"", "ro":"YES", "rq":"NO", "len":"80", "hid":"YES" } ] }, { "name":"Linear Reference Details", "hid":"YES", "ro":"YES", "mode":"CON", "fields":[ { "id":"ACT_FROMPOINT", "lbl":"From Point", "type":"LOV-3", "def":"", "ro":"NO", "rq":"NO", "len":"30", "hid":"NO" }, { "id":"ACT_FROMREFDESC", "lbl":"From Ref. Description", "type":"CHAR", "def":"", "ro":"NO", "rq":"NO", "len":"80", "hid":"NO" }, { "id":"ACT_FROMGEOREF", "lbl":"From Geographical Ref.", "type":"CHAR", "def":"", "ro":"NO", "rq":"NO", "len":"80", "hid":"NO" }, { "id":"ACT_TOPOINT", "lbl":"To Point", "type":"LOV-3", "def":"", "ro":"NO", "rq":"NO", "len":"30", "hid":"NO" }, { "id":"ACT_TOREFDESC", "lbl":"To Ref. Description", "type":"CHAR", "def":"", "ro":"NO", "rq":"NO", "len":"80", "hid":"NO" }, { "id":"ACT_TOGEOREF", "lbl":"To Geographical Ref.", "type":"CHAR", "def":"", "ro":"NO", "rq":"NO", "len":"80", "hid":"NO" } ] } ] }'
where cfs_code='TCJACT_IPAD';

update r5configsettings set cfs_xmlconfig='{"sections":[{ "name":"Inspection", "fields":[ {"id":"EPO_OBJECT", "lbl":"Equipment", "type":"LOV-1", "def":"", "ro":"NO", "rq":"YES", "len":"30", "hid":"NO" }, {"id":"EPO_ASPECT", "lbl":"Aspect", "type":"LOV-1", "def":"", "ro":"NO", "rq":"YES", "len":"4", "hid":"NO" }, {"id":"EPO_POINTTYPE", "lbl":"Point Type", "type":"CHAR", "def":"", "ro":"YES", "rq":"NO", "len":"4", "hid":"NO" }, {"id":"EPO_POINT", "lbl":"Point", "type":"LOV-2", "def":"", "ro":"YES", "rq":"NO", "len":"3", "hid":"NO" }, {"id":"EPO_VALUE", "lbl":"Value", "type":"NUM", "def":"", "ro":"NO", "rq":"NO", "len":"24", "hid":"NO" }, {"id":"EPO_UOM", "lbl":"UOM", "type":"LOV-1", "def":"", "ro":"YES", "rq":"NO", "len":"15", "hid":"NO" }, {"id":"EPO_METHOD", "lbl":"Method", "type":"LOV-1", "def":"", "ro":"NO", "rq":"NO", "len":"20", "hid":"NO" }, {"id":"EPO_FINDING", "lbl":"Finding", "type":"LOV-1", "def":"", "ro":"NO", "rq":"NO", "len":"4", "hid":"NO" }, {"id":"EPO_RESULT_DESC", "lbl":"Result", "type":"PICKER", "def":"", "ro":"NO", "rq":"YES", "len":"20", "hid":"NO" }, {"id":"EPO_DATE", "lbl":"Date", "type":"DATI", "def":"", "ro":"NO", "rq":"YES", "len":"20", "hid":"NO" }, {"id":"EPO_COMPLETED", "lbl":"Completed", "type":"BOOL", "def":"", "ro":"NO", "rq":"NO", "len":"20", "hid":"NO" }, {"id":"EPO_LOCATION", "lbl":"Location", "type":"CHAR", "def":"", "ro":"NO", "rq":"NO", "len":"70", "hid":"NO" }, {"id":"EPO_COMMENT", "lbl":"Note", "type":"CHAR", "def":"", "ro":"NO", "rq":"NO", "len":"70", "hid":"NO" }, {"id":"EPO_INSPECTOR", "lbl":"Inspector", "type":"LOV-1", "def":"", "ro":"NO", "rq":"NO", "len":"15", "hid":"NO" }, {"id":"EPO_STWO", "lbl":"Standard WO", "type":"LOV-1", "def":"", "ro":"NO", "rq":"NO", "len":"20", "hid":"NO" }, {"id":"EPO_CREATE", "lbl":"New WO Required", "type":"BOOL", "def":"", "ro":"NO", "rq":"NO", "len":"20", "hid":"NO" }] },{"name":"Linear Reference Details", "hid" : "YES", "ro" : "YES", "mode" : "CON", "fields":[{"id":"EPO_FROMPOINT","lbl":"From Point","type":"LOV-3","def":"","ro":"NO","rq":"NO","len":"30","hid":"NO"},{"id":"EPO_FROMREFDESC","lbl":"From Ref. Description","type":"CHAR","def":"","ro":"NO","rq":"NO","len":"80","hid":"NO"},{"id":"EPO_FROMGEOREF","lbl":"From Geographical Ref.","type":"CHAR","def":"","ro":"NO","rq":"NO","len":"80","hid":"NO"},{"id":"EPO_TOPOINT","lbl":"To Point","type":"LOV-3","def":"","ro":"NO","rq":"NO","len":"30","hid":"NO"},{"id":"EPO_TOREFDESC","lbl":"To Ref. Description","type":"CHAR","def":"","ro":"NO","rq":"NO","len":"80","hid":"NO"},{"id":"EPO_TOGEOREF","lbl":"To Geographical Ref.","type":"CHAR","def":"","ro":"NO","rq":"NO","len":"80","hid":"NO"}]}]}' where cfs_code='TCJEPO_IPAD';

update r5configsettings set cfs_xmlconfig='{"sections":[{ "name":"Work Request", "fields": [ {"id":"EVT_CODE", "lbl":"Work Order", "type":"CHAR", "def":"", "ro":"YES", "rq":"NO", "len":"30", "hid":"NO" }, {"id":"EVT_DESC", "lbl":"Description", "type":"CHAR", "def":"", "ro":"NO", "rq":"YES", "len":"80", "hid":"NO" }, {"id":"EVT_OBJECT", "lbl":"Equipment", "type":"LOV-2", "def":"", "ro":"NO", "rq":"YES", "len":"30", "hid":"NO" }, {"id":"EVT_JOBTYPE", "lbl":"Type", "type":"LOV-1", "def":"", "ro":"NO", "rq":"YES", "len":"8", "hid":"NO" }, {"id":"EVT_MRC", "lbl":"Department", "type":"LOV-1", "def":"", "ro":"NO", "rq":"YES", "len":"15", "hid":"NO" }, {"id":"EVT_STATUS", "lbl":"Status", "type":"PICKER", "def":"", "ro":"NO", "rq":"YES", "len":"8", "hid":"NO" }, {"id":"EVT_SAFETY", "lbl":"Safety", "type":"BOOL", "def":"", "ro":"NO", "rq":"NO", "len":"2", "hid":"NO" }, {"id":"EVT_WARRANTY", "lbl":"Warranty", "type":"BOOL", "def":"", "ro":"NO", "rq":"NO", "len":"2", "hid":"NO" }] }, { "name":"Scheduling", "fields":[ {"id":"EVT_PERSON", "lbl":"Assigned To", "type":"LOV-1", "def":"", "ro":"NO", "rq":"NO", "len":"15", "hid":"NO" }, {"id":"EVT_TARGET", "lbl":"Sched. Start Date", "type":"DATE", "def":"", "ro":"NO", "rq":"NO", "len":"80", "hid":"NO" }, {"id":"EVT_DUE", "lbl":"Sched. End Date", "type":"DATE", "def":"", "ro":"NO", "rq":"NO", "len":"80", "hid":"NO" }, {"id":"EVT_REPORTED", "lbl":"Date Reported", "type":"DATI", "def":"", "ro":"NO", "rq":"YES", "len":"80", "hid":"NO" }] }, { "name":"Work Order Details", "fields":[ {"id":"EVT_LOCATION", "lbl":"Location", "type":"LOV-1", "def":"", "ro":"NO", "rq":"NO", "len":"30", "hid":"NO" }, {"id":"EVT_CLASS", "lbl":"Class", "type":"LOV-1", "def":"", "ro":"NO", "rq":"NO", "len":"8", "hid":"NO" }, {"id":"EVT_COSTCODE", "lbl":"Cost Code", "type":"LOV-1", "def":"", "ro":"NO", "rq":"NO", "len":"30", "hid":"NO" }, {"id":"EVT_PRIORITY", "lbl":"Priority", "type":"PICKER", "def":"", "ro":"NO", "rq":"NO", "len":"8", "hid":"NO" }, {"id":"EVT_REQM", "lbl":"Problem Code", "type":"LOV-1", "def":"", "ro":"NO", "rq":"NO", "len":"8", "hid":"NO" }] }, {"name":"Comment", "fields":[{"id":"EVT_CLOSECOMMENT", "lbl":"Comment", "type":"MEMO-1", "def":"", "ro":"NO", "rq":"NO", "len":"200", "hid":"NO"}]},{ "name":"Linear Reference Details", "hid":"YES", "ro":"YES", "mode":"CON", "fields":[ { "id":"EVT_FROMPOINT", "lbl":"From Point", "type":"LOV-3", "def":"", "ro":"NO", "rq":"NO", "len":"30", "hid":"NO" }, { "id":"EVT_FROMREFDESC", "lbl":"From Ref. Description", "type":"CHAR", "def":"", "ro":"NO", "rq":"NO", "len":"80", "hid":"NO" }, { "id":"EVT_FROMGEOREF", "lbl":"From Geographical Ref.", "type":"CHAR", "def":"", "ro":"NO", "rq":"NO", "len":"80", "hid":"NO" }, { "id":"EVT_TOPOINT", "lbl":"To Point", "type":"LOV-3", "def":"", "ro":"NO", "rq":"NO", "len":"30", "hid":"NO" }, { "id":"EVT_TOREFDESC", "lbl":"To Ref. Description", "type":"CHAR", "def":"", "ro":"NO", "rq":"NO", "len":"80", "hid":"NO" }, { "id":"EVT_TOGEOREF", "lbl":"To Geographical Ref.", "type":"CHAR", "def":"", "ro":"NO", "rq":"NO", "len":"80", "hid":"NO" }, { "id":"EVT_INSPECTIONDIRECTION", "lbl":"Inspection Direction", "type":"PICKER", "def":"", "ro":"NO", "rq":"NO", "len":"30", "hid":"NO" }, { "id":"EVT_FLOW", "lbl":"Flow", "type":"PICKER", "def":"", "ro":"NO", "rq":"NO", "len":"30", "hid":"NO" }, { "id":"EVT_RELATIONSHIP_TYPE", "lbl":"Relationship Type", "type":"LOV-1", "def":"", "ro":"NO", "rq":"NO", "len":"30", "hid":"YES" }, { "id":"EVT_FROM_REFERENCE_POINT", "lbl":"From Reference Point", "type":"LOV-1", "def":"", "ro":"NO", "rq":"NO", "len":"100", "hid":"YES" }, { "id":"EVT_FROM_OFFSET", "lbl":"From Offset", "type":"NUM", "def":"", "ro":"NO", "rq":"NO", "len":"24", "hid":"YES" }, { "id":"EVT_FROM_OFFSET_PERCENTAGE", "lbl":"From Offset %", "type":"NUM", "def":"", "ro":"NO", "rq":"NO", "len":"5", "hid":"YES" }, { "id":"EVT_FROM_OFFSET_DIRECTION", "lbl":"From Offset Direction", "type":"LOV-1", "def":"", "ro":"NO", "rq":"NO", "len":"80", "hid":"YES" }, { "id":"EVT_FROM_LR_REFERENCE", "lbl":"From Reference", "type":"CHAR", "def":"", "ro":"YES", "rq":"NO", "len":"80", "hid":"YES" }, { "id":"EVT_FROM_LR_OFFSET", "lbl":"From Ref. Offset", "type":"CHAR", "def":"", "ro":"YES", "rq":"NO", "len":"24", "hid":"YES" }, { "id":"EVT_FROM_LR_OFFSET_DIRECTION", "lbl":"From Ref. Offset Direction", "type":"CHAR", "def":"", "ro":"YES", "rq":"NO", "len":"80", "hid":"YES" }, { "id":"EVT_TO_REFERENCE_POINT", "lbl":"To Reference Point", "type":"LOV-1", "def":"", "ro":"NO", "rq":"NO", "len":"100", "hid":"YES" }, { "id":"EVT_TO_OFFSET", "lbl":"To Offset", "type":"NUM", "def":"", "ro":"NO", "rq":"NO", "len":"24", "hid":"YES" }, { "id":"EVT_TO_OFFSET_PERCENTAGE", "lbl":"To Offset %", "type":"NUM", "def":"", "ro":"NO", "rq":"NO", "len":"5", "hid":"YES" }, { "id":"EVT_TO_OFFSET_DIRECTION", "lbl":"To Offset Direction", "type":"LOV-1", "def":"", "ro":"NO", "rq":"NO", "len":"80", "hid":"YES" }, { "id":"EVT_TO_LR_REFERENCE", "lbl":"To Reference", "type":"CHAR", "def":"", "ro":"YES", "rq":"NO", "len":"80", "hid":"YES" }, { "id":"EVT_TO_LR_OFFSET", "lbl":"To Ref. Offset", "type":"CHAR", "def":"", "ro":"YES", "rq":"NO", "len":"24", "hid":"YES" }, { "id":"EVT_TO_LR_OFFSET_DIRECTION", "lbl":"To Ref. Offset Direction", "type":"CHAR", "def":"", "ro":"YES", "rq":"NO", "len":"80", "hid":"YES" } ] }]}' where cfs_code='TCJOBQ_IPAD' ;

update R5CONFIGSETTINGS set cfs_xmlconfig = '{ "sections": [ { "name": "", "fields": [ { "id": "TOU_TOOL", "lbl": "Tool", "type": "LOV-1", "def": "", "ro": "NO", "rq": "YES", "len": "", "hid": "NO" }, { "id": "TOU_EQUIP", "lbl": "Equipment", "type": "LOV-1", "def": "", "ro": "NO", "rq": "NO", "len": "", "hid": "NO" }, { "id":"TOU_RELATED_WO", "lbl":"Related Work Order", "type":"CHAR", "def":"", "ro":"YES", "rq":"NO", "len":"20", "hid":"NO" }, { "id": "TOU_MRC", "lbl": "Department", "type": "LOV-1", "def": "", "ro": "NO", "rq": "YES", "len": "", "hid": "NO" }, { "id": "TOU_DATEUSED", "lbl": "Date Used", "type": "DATI", "def": "", "ro": "NO", "rq": "YES", "len": "", "hid": "NO" }, { "id": "TOU_ACT", "lbl": "Activity", "type": "CHAR", "def": "", "ro": "YES", "rq": "YES", "len": "", "hid": "NO" }, { "id": "TOU_QTY", "lbl": "Quantity", "type": "NUM", "def": "", "ro": "NO", "rq": "YES", "len": "", "hid": "NO" }, { "id": "TOU_HOURS", "lbl": "Hours Used", "type": "NUM", "decimals":"2", "def": "", "ro": "NO", "rq": "YES", "len": "", "hid": "NO" }, { "id": "TOU_TARIFF", "lbl": "Rate", "type": "NUM", "decimals":"2", "def": "", "ro": "YES", "rq": "NO", "len": "", "hid": "NO" }, { "id": "TOU_COST", "lbl": "Cost", "type": "NUM", "decimals":"2", "def": "", "ro": "YES", "rq": "NO", "len": "", "hid": "NO" } ] } ] }'
where cfs_code = 'TCJTOU_IPAD';

update R5CONFIGSETTINGS set cfs_xmlconfig = '{"sections": [{"name":"Tool Plan","fields": [{"id":"TPL_ACT","lbl":"Activity","type":"LOV-1","def":"","ro":"YES","rq":"NO","len":"","hid":"NO"},{ "id":"TPL_TOOL","lbl":"Tool","type":"LOV-2","def":"","ro":"NO","rq":"YES","len":"","hid":"NO"}, {"id":"TPL_HOURS","lbl":"Hours Requested","type":"NUM","decimals":"2", "def":"","ro":"NO","rq":"YES","len":"","hid":"NO"},{"id":"TPL_QTY","lbl":"Qty. Required","type":"NUM","def":"","ro":"NO","rq":"YES","len":"","hid":"NO"},{"id":"TPL_TOTAL_HOURS_REQUIRED","lbl":"Total Hours Required","type":"NUMDESC","decimals":"2","def":"","ro":"NO","rq":"YES","len":"","hid":"NO"},{"id":"TPL_ACT_DURATION","lbl":"Activity Duration","type":"CHAR","def":"","ro":"NO","rq":"YES","len":"","hid":"NO"},{"id":"TPL_MRC","lbl":"Department","type":"LOV-1","def":"","ro":"NO","rq":"YES","len":"","hid":"NO"},{"id":"TPL_DAILY_CAPACITY","lbl":"Daily Capacity","type":"CHAR","def":"","ro":"NO","rq":"YES","len":"","hid":"NO"}]}]}'
where cfs_code = 'TCJTPL_IPAD';
update R5ConfigSettings set CFS_XMLCONFIG = '{"sections" :[{"name" : "Additional Cost Details","fields" : [{"id":"ADC_DESC","lbl":"Cost Description","type":"CHAR","def":"","ro":"NO","rq":"YES","len":"80","hid":"NO"},{"id":"ADC_ACT","lbl":"Activity","type":"LOV-1","def":"","ro":"NO","rq":"YES","len":"15","hid":"NO"}, {"id":"ADC_EQUIP","lbl":"Equipment","type":"LOV-1","def":"","ro":"NO","rq":"NO","len":"30","hid":"NO"}, {"id":"ADC_RELATED_WO","lbl":"Related Work Order","type":"CHAR","def":"","ro":"YES","rq":"NO","len":"20","hid":"NO"},{"id":"ADC_COST_TYPE","lbl":"Cost Type","type":"PICKER","def":"","ro":"NO","rq":"YES","len":"35","hid":"NO"},{"id":"ADC_QTY","lbl":"Quantity","type":"NUM","def":"","ro":"NO","rq":"YES","len":"24","hid":"NO"},{"id":"ADC_COSTDATE","lbl":"Date","type":"DATE","def":"","ro":"NO","rq":"YES","len":"24","hid":"NO"},{"id":"ADC_COST","lbl":"Cost","type":"NUMDESC","def":"","ro":"NO","rq":"YES","len":"30","hid":"NO"},{"id":"ADC_TOTALCOST","lbl":"Total Cost","type":"NUMDESC","def":"","ro":"YES","rq":"NO","len":"30","hid":"NO"}]}] }'
WHERE CFS_CODE = 'TCJMIS_IPAD';
update R5CONFIGSETTINGS set cfs_xmlconfig = '{"sections" :[{"name" : "Schedule Labor","fields" : [{"id":"ACS_ACTIVITY","lbl":"Activity","type":"LOV-1","def":"","ro":"YES","rq":"YES","len":"","hid":"NO"},{"id":"ACS_RESPONSIBLE","lbl":"Employee","type":"LOV-1","def":"","ro":"NO","rq":"NO","len":"30","hid":"NO"},{"id":"ACS_SCHED","lbl":"Scheduled Date","type":"DATE","def":"","ro":"NO","rq":"YES","len":"30","hid":"NO"},{"id":"ACS_HOURS","lbl":"Scheduled Hours","type":"NUM","decimals":"2","def":"","ro":"NO","rq":"NO","len":"30","hid":"NO"},{"id":"ACS_SCHEDULER","lbl":"Scheduled By","type":"CHAR","def":"","ro":"NO","rq":"NO","len":"80","hid":"NO"},{"id":"ACS_TRADE","lbl":"Trade","type":"LOV-1","def":"","ro":"NO","rq":"YES","len":"30","hid":"NO"},{"id":"ACS_SHIFT","lbl":"Shift","type":"LOV-1","def":"","ro":"NO","rq":"NO","len":"30","hid":"NO"},{"id":"ACS_SCHED_HRS","lbl":"Act. Sched. Hours","type":"CHAR","def":"","ro":"YES","rq":"NO","len":"30","hid":"NO"},{"id":"ACS_ACT_HRS","lbl":"Act. Actual Hours","type":"CHAR","def":"","ro":"YES","rq":"NO","len":"30","hid":"NO"},{"id":"ACS_COMMENT","lbl":"Comment","type":"CHAR","def":"","ro":"NO","rq":"NO","len":"60","hid":"NO"}]}]}'
where cfs_code = 'TCJSCH_IPAD';
UPDATE R5CONFIGSETTINGS
SET CFS_XMLCONFIG = '{"sections":[{"name":"","fields":[{"id":"EVT_CODE","lbl":"Work Order","type":"CHAR","def":"","ro":"YES","rq":"NO","len":"30","hid":"NO"},{"id":"EVT_DESC","lbl":"Description","type":"CHAR","def":"","ro":"NO","rq":"YES","len":"80","hid":"NO"},{"id":"EVT_OBJECT","lbl":"Equipment","type":"LOV-2","def":"","ro":"NO","rq":"YES","len":"30","hid":"NO"},{"id":"EVT_STANDWORK","lbl":"Standard WO","type":"LOV-1","def":"","ro":"NO","rq":"NO","len":"20","hid":"YES"},{"id":"EVT_MRC","lbl":"Department","type":"LOV-1","def":"","ro":"NO","rq":"YES","len":"15","hid":"NO"},{"id":"EVT_JOBTYPE","lbl":"Type","type":"LOV-1","def":"","ro":"NO","rq":"YES","len":"8","hid":"NO"},{"id":"EVT_STATUS","lbl":"Status","type":"PICKER","def":"","ro":"NO","rq":"YES","len":"8","hid":"NO"},{"id":"EVT_SAFETY","lbl":"Safety","type":"BOOL","def":"","ro":"NO","rq":"NO","len":"2","hid":"YES"},{"id":"EVT_WARRANTY","lbl":"Warranty","type":"BOOL","def":"","ro":"NO","rq":"NO","len":"2","hid":"YES"},{"id":"EVT_REPORTED","lbl":"Date Reported","type":"DATE","def":"","ro":"NO","rq":"YES","len":"80","hid":"YES"}]},{"name":"Work Order Details","fields":[{"id":"EVT_LOCATION","lbl":"Location","type":"LOV-1","def":"","ro":"NO","rq":"NO","len":"30","hid":"YES"},{"id":"EVT_CLASS","lbl":"Class","type":"LOV-1","def":"","ro":"NO","rq":"NO","len":"8","hid":"YES"},{"id":"EVT_COSTCODE","lbl":"Cost Code","type":"LOV-1","def":"","ro":"NO","rq":"NO","len":"30","hid":"YES"},{"id":"EVT_TARGET","lbl":"Sched. Start Date","type":"DATE","def":"","ro":"NO","rq":"NO","len":"80","hid":"NO"},{"id":"EVT_DUE","lbl":"Sched. End Date","type":"DATE","def":"","ro":"NO","rq":"NO","len":"80","hid":"NO"},{"id":"EVT_PRIORITY","lbl":"Priority","type":"PICKER","def":"","ro":"NO","rq":"NO","len":"8","hid":"NO"},{"id":"EVT_REQM","lbl":"Problem Code","type":"LOV-1","def":"","ro":"NO","rq":"NO","len":"8","hid":"YES"},{"id":"EVT_PARENT","lbl":"Parent WO","type":"LOV-1","def":"","ro":"NO","rq":"NO","len":"30","hid":"YES"},{"id":"EVT_OBJCRITICALITY","lbl":"Criticality","type":"CHAR","def":"","ro":"NO","rq":"NO","len":"8","hid":"YES"},{"id":"EVT_METUOM","lbl":"Meter","type":"CHAR","def":"","ro":"NO","rq":"NO","len":"30","hid":"YES"},{"id":"EVT_PERSON","lbl":"Assigned To","type":"LOV-1","def":"","ro":"NO","rq":"NO","len":"15","hid":"NO"}]},{"name":"Comment","fields":[{"id":"EVT_CLOSECOMMENT","lbl":"Comment","type":"MEMO-1","def":"","ro":"NO","rq":"NO","len":"200","hid":"NO"}]}]}'
WHERE CFS_CODE = 'TCJOBQ_IPHONE';

UPDATE R5CONFIGSETTINGS set CFS_XMLCONFIG = '{"sections":[{ "name":"Work Order", "fields":[ {"id":"EVT_CODE", "lbl":"Work Order", "type":"CHAR", "def":"", "ro":"YES", "rq":"NO", "len":"30", "hid":"NO" }, {"id":"EVT_DESC", "lbl":"Description", "type":"CHAR", "def":"", "ro":"NO", "rq":"YES", "len":"80", "hid":"NO" }, {"id":"EVT_OBJECT", "lbl":"Equipment", "type":"LOV-2", "def":"", "ro":"YES", "rq":"NO", "len":"30", "hid":"NO" }, {"id":"EVT_STATUS", "lbl":"Status", "type":"PICKER", "def":"", "ro":"NO", "rq":"YES", "len":"8", "hid":"NO" }] }, { "name":"Work Order Details", "fields":[ {"id":"EVT_START", "lbl":"Start Date", "type":"DATI", "def":"", "ro":"NO", "rq":"NO", "len":"80", "hid":"NO" }, {"id":"EVT_COMPLETED", "lbl":"Date Completed", "type":"DATI", "def":"", "ro":"NO", "rq":"NO", "len":"80", "hid":"NO" }, {"id":"EVT_DOWNTIME", "lbl":"Downtime Cost", "type":"NUM", "def":"", "ro":"NO", "rq":"NO", "len":"8", "hid":"NO" }, {"id":"EVT_DOWNTIMEHRS", "lbl":"Downtime Hours", "type":"NUM", "def":"", "ro":"NO", "rq":"NO", "len":"8", "hid":"NO" }] }, { "name":"Closing Codes", "fields":[ {"id":"EVT_REQM", "lbl":"Problem Code", "type":"LOV-1", "def":"", "ro":"NO", "rq":"NO", "len":"8", "hid":"NO" }, {"id":"EVT_FAILURE", "lbl":"Failure Code", "type":"LOV-1", "def":"", "ro":"NO", "rq":"NO", "len":"30", "hid":"NO" }, {"id":"EVT_CAUSE", "lbl":"Cause Code", "type":"LOV-1", "def":"", "ro":"NO", "rq":"NO", "len":"8", "hid":"NO" }, {"id":"EVT_ACTION", "lbl":"Action Code", "type":"LOV-1", "def":"", "ro":"NO", "rq":"NO", "len":"30", "hid":"NO" }] }, { "name":"Closing Comment", "fields":[ {"id":"EVT_CLOSECOMMENT", "lbl":"Closing Comment", "type":"MEMO-1", "def":"", "ro":"NO", "rq":"NO", "len":"4000", "hid":"NO" }] }]}'
where CFS_CODE = 'TCJCLO_IPAD';

ALTER TABLE r5nonconformitysetup add column NCP_MERGERESTRICTIONS varchar(4) NULL;

ALTER TABLE r5storesecurity add column SSC_STSISSUES varchar(1) NULL;

ALTER TABLE r5tasks add column TSK_JOBPLANTYPE varchar(4) NULL;


DROP TABLE r5warcomponents;
CREATE TABLE R5WARCOMPONENTS (
    WCM_PK               NVARCHAR (30) NOT NULL,
    WCM_WARRANTY         NVARCHAR (30),
    WCM_SYSLEVEL         NVARCHAR (30),
    WCM_ASMLEVEL         NVARCHAR (30),
    WCM_COMPLEVEL        NVARCHAR (30),
    DMLTYPE              NCHAR (1)     DEFAULT ('N'),
    WCM_WORKACCOMPLISHED NVARCHAR (30),
    WCM_REASONFORREPAIR  NVARCHAR (30),
    PRIMARY KEY (WCM_PK) 
);
DROP TABLE r5partctplconditions;
CREATE TABLE R5PARTCTPLCONDITIONS (
    PTC_TEMPLATE              VARCHAR (60)     NOT NULL,
    PTC_TEMPLATE_ORG          VARCHAR (30)     NOT NULL,
    PTC_CONDITION             VARCHAR (40)     NOT NULL,
    PTC_DESC                  VARCHAR (160),
    PTC_SUFFIXCODE            VARCHAR (2),
    PTC_RETURNPROCE           NUMERIC (6, 2),
    PTC_ISSUEPRIORITY         NUMERIC (5, 2),
    PTC_RTNTOSTORECONDLIST    VARCHAR (420),
    PTC_RTNTOSTORECONDDEFAULT VARCHAR (40),
    PTC_RCVREPAIRCONDLIST     VARCHAR (420),
    PTC_REPAIRCONDDEFAULT     VARCHAR (40),
    PTC_ORDERABLE             VARCHAR (2),
    PTC_PREVENTISSUE          VARCHAR (2),
    PTC_CREATED               DATETIME (8),
    PTC_CREATEDBY             VARCHAR (255),
    PTC_UPDATED               DATETIME (8),
    PTC_UPDATEDBY             VARCHAR (255),
    PTC_UPDATEDCOUNT          NUMERIC (17, 38),
    DMLTYPE                   NCHAR (1)        DEFAULT ('N'),
    PRIMARY KEY (PTC_TEMPLATE,PTC_TEMPLATE_ORG,PTC_CONDITION) 
);

DROP TABLE R5FLEXSQL;
CREATE TABLE R5FLEXSQL (
    FLX_TABLE          VARCHAR (32)    NOT NULL,
    FLX_TRIGGER        VARCHAR (32)    NOT NULL,
    FLX_SEQ            NUMERIC (38, 0) NOT NULL,
    FLX_STMT           NTEXT,
    FLX_ABORTONFAILURE NVARCHAR (1),
    FLX_REVERSERETURN  NVARCHAR (1),
    FLX_ACTIVE         NVARCHAR (1),
    FLX_MSGFAILURE     NVARCHAR (240),
    FLX_COMMENT        NVARCHAR (240),
    FLX_MUSTEXIST      NVARCHAR (1),
    FLX_UPDATECOUNT    NUMERIC (38, 0),
    DMLTYPE            NVARCHAR (1)    DEFAULT ('N') ,
    PRIMARY KEY(FLX_TABLE,FLX_TRIGGER,FLX_SEQ)
);

ALTER TABLE R5STORESECURITY ADD COLUMN SSC_STSRECEIPTS DEFAULT '-';
ALTER TABLE R5STORESECURITY ADD COLUMN SSC_NONPORECEIPTS DEFAULT '-';
ALTER TABLE R5STORESECURITY ADD COLUMN SSC_CREATESTOCK DEFAULT '-';
ALTER TABLE R5STORESECURITY ADD COLUMN SSC_UPDATESTOCK DEFAULT '-';
ALTER TABLE R5STORESECURITY ADD COLUMN SSC_SCRAPSTOCK  DEFAULT '-';
ALTER TABLE R5STORESECURITY ADD COLUMN SSC_UPDATED;
UPDATE R5LISTENTITY SET LET_UPDATED=NULL WHERE LET_TABLENAME='R5STORESECURITY';

ALTER TABLE R5TASKS ADD COLUMN TSK_CLASS_ORG varchar(15) NULL;
UPDATE R5LISTENTITY SET LET_UPDATED=NULL WHERE LET_TABLENAME='R5TASKS';

ALTER TABLE R5LISTENTITY ADD COLUMN LET_NEWDATAGRID NVARCHAR(100);
ALTER TABLE R5EVENTS ADD COLUMN    EVT_UDFCHAR31           NVARCHAR (80);
ALTER TABLE R5EVENTS ADD COLUMN    EVT_UDFCHAR32           NVARCHAR (80);
ALTER TABLE R5EVENTS ADD COLUMN    EVT_UDFCHAR33           NVARCHAR (80);
ALTER TABLE R5EVENTS ADD COLUMN    EVT_UDFCHAR34           NVARCHAR (80);
ALTER TABLE R5EVENTS ADD COLUMN    EVT_UDFCHAR35           NVARCHAR (80);
ALTER TABLE R5EVENTS ADD COLUMN    EVT_UDFCHAR36           NVARCHAR (80);
ALTER TABLE R5EVENTS ADD COLUMN    EVT_UDFCHAR37           NVARCHAR (80);
ALTER TABLE R5EVENTS ADD COLUMN    EVT_UDFCHAR38           NVARCHAR (80);
ALTER TABLE R5EVENTS ADD COLUMN    EVT_UDFCHAR39           NVARCHAR (80);
ALTER TABLE R5EVENTS ADD COLUMN    EVT_UDFCHAR40           NVARCHAR (80);
ALTER TABLE R5EVENTS ADD COLUMN    EVT_UDFCHAR41           NVARCHAR (80);
ALTER TABLE R5EVENTS ADD COLUMN    EVT_UDFCHAR42           NVARCHAR (80);
ALTER TABLE R5EVENTS ADD COLUMN    EVT_UDFCHAR43           NVARCHAR (80);
ALTER TABLE R5EVENTS ADD COLUMN    EVT_UDFCHAR44           NVARCHAR (80);
ALTER TABLE R5EVENTS ADD COLUMN    EVT_UDFCHAR45           NVARCHAR (80);

ALTER TABLE R5EVENTS ADD COLUMN    EVT_UDFNUM06            NUMERIC (24, 6);
ALTER TABLE R5EVENTS ADD COLUMN    EVT_UDFNUM07            NUMERIC (24, 6);
ALTER TABLE R5EVENTS ADD COLUMN    EVT_UDFNUM08            NUMERIC (24, 6);
ALTER TABLE R5EVENTS ADD COLUMN    EVT_UDFNUM09            NUMERIC (24, 6);
ALTER TABLE R5EVENTS ADD COLUMN    EVT_UDFNUM10            NUMERIC (24, 6);

ALTER TABLE R5EVENTS ADD COLUMN    EVT_UDFDATE06           DATETIME;
ALTER TABLE R5EVENTS ADD COLUMN    EVT_UDFDATE07           DATETIME;
ALTER TABLE R5EVENTS ADD COLUMN    EVT_UDFDATE08           DATETIME;
ALTER TABLE R5EVENTS ADD COLUMN    EVT_UDFDATE09           DATETIME;
ALTER TABLE R5EVENTS ADD COLUMN    EVT_UDFDATE10           DATETIME;

ALTER TABLE R5EVENTS ADD COLUMN    EVT_UDFCHKBOX06         NVARCHAR (1) DEFAULT '-' ;
ALTER TABLE R5EVENTS ADD COLUMN    EVT_UDFCHKBOX07         NVARCHAR (1) DEFAULT '-';
ALTER TABLE R5EVENTS ADD COLUMN    EVT_UDFCHKBOX08         NVARCHAR (1) DEFAULT '-';
ALTER TABLE R5EVENTS ADD COLUMN    EVT_UDFCHKBOX09         NVARCHAR (1) DEFAULT '-';
ALTER TABLE R5EVENTS ADD COLUMN    EVT_UDFCHKBOX10         NVARCHAR (1) DEFAULT '-';
ALTER TABLE R5EVENTS ADD EVT_CONFIRMDELETE nvarchar(8);
UPDATE R5LISTENTITY SET LET_UPDATED=NULL WHERE LET_TABLENAME='R5EVENTS';

ALTER TABLE R5PARTS add column PAR_PREVENTREORDERS nvarchar(1) DEFAULT '-';
UPDATE R5LISTENTITY SET LET_UPDATED=NULL WHERE LET_TABLENAME='R5PARTS';

ALTER TABLE R5OBJECTS ADD COLUMN    OBJ_GISGDBPATH          VARCHAR (500);
ALTER TABLE R5OBJECTS ADD COLUMN    OBJ_GISLAYERSERVICEPATH          VARCHAR (500);
ALTER TABLE R5OBJECTS ADD COLUMN    OBJ_FLAG          NCHAR (1);
ALTER TABLE R5OBJECTS ADD COLUMN    OBJ_OBJFLAG       NCHAR (1) DEFAULT '+';
ALTER TABLE R5OBJECTS ADD COLUMN    OBJ_WOFLAG        NCHAR (1) DEFAULT '-';
UPDATE R5LISTENTITY SET LET_UPDATED=NULL WHERE LET_TABLENAME='R5OBJECTS';

ALTER TABLE R5NONCONFORMOBSERVATIONS ADD COLUMN NCO_EVT_DESC varchar(80) NULL;
ALTER TABLE R5NONCONFORMOBSERVATIONS ADD COLUMN NCO_EVT_OBJECT varchar(30) NULL;
ALTER TABLE R5NONCONFORMOBSERVATIONS ADD COLUMN NCO_EVT_OBJECT_ORG varchar(15) NULL;
ALTER TABLE R5NONCONFORMOBSERVATIONS ADD COLUMN NCO_EVT_MRC varchar(15) NULL;
ALTER TABLE R5NONCONFORMOBSERVATIONS ADD COLUMN NCO_EVT_LOCATION varchar(30) NULL;
ALTER TABLE R5NONCONFORMOBSERVATIONS ADD COLUMN NCO_EVT_PRIORITY varchar(8) NULL;
ALTER TABLE R5NONCONFORMOBSERVATIONS ADD COLUMN NCO_EVT_STATUS varchar(4) NULL;
ALTER TABLE R5NONCONFORMOBSERVATIONS ADD COLUMN NCO_EVT_JOBTYPE varchar(8) NULL;
ALTER TABLE R5NONCONFORMOBSERVATIONS ADD COLUMN NCO_EVT_PERSON varchar(15) NULL;
ALTER TABLE R5NONCONFORMOBSERVATIONS ADD COLUMN NCO_EVT_SCHEDGRP varchar(30) NULL;
UPDATE R5LISTENTITY SET LET_UPDATED=NULL WHERE LET_TABLENAME='R5NONCONFORMOBSERVATIONS';

update R5LISTENTITY set let_updated = NULL where let_datagrid = 'BCFLEX';
update R5LISTENTITY set let_updated = NULL where let_datagrid = 'WCWARC';
update R5LISTENTITY set let_updated = NULL where let_datagrid = 'SCPARTCON';
update R5LISTENTITY set LET_ORGKEY='EVT_ORG' where LET_DATAGRID='OCEVTOBJ_IPAD';
update R5LISTENTITY set LET_NEWDATAGRID='NEW_WCJOBS_FULL_IPAD' where LET_DATAGRID = 'WCJOBS_FULL_IPAD';
update R5LISTENTITY set LET_NEWDATAGRID='NEW_WCMATL_IPAD' where LET_DATAGRID = 'WCMATL_IPAD';
update R5LISTENTITY set LET_NEWDATAGRID='NEW_WCBKEV_IPAD' where LET_DATAGRID = 'WCBKEV';
update R5LISTENTITY set LET_NEWDATAGRID='NEW_WCACTJ_FULL_IPAD' where LET_DATAGRID = 'WCACTJ_FULL_IPAD';
update R5LISTENTITY set LET_NEWDATAGRID='NEW_BCCOMWO_IPAD' where LET_DATAGRID = 'BCCOMWO';
update R5LISTENTITY set LET_NEWDATAGRID='NEW_BCPROMWO_IPAD' where LET_DATAGRID = 'BCPROMWO';
update R5LISTENTITY set LET_NEWDATAGRID='NEW_BCCOMOBJWO_IPAD' where LET_DATAGRID = 'BCCOMOBJWO';
update R5LISTENTITY set LET_NEWDATAGRID='NEW_BCPROMOBJWO_IPAD' where LET_DATAGRID = 'BCPROMOBJWO';
update R5LISTENTITY set LET_NEWDATAGRID='NEW_ICRSLT_IPAD' where LET_DATAGRID = 'ICRSLT';
update R5LISTENTITY set LET_NEWDATAGRID='NEW_WCJOBDEL_IPAD' where LET_DATAGRID = 'WCJOBDEL';
update R5LISTENTITY set LET_NEWDATAGRID='NEW_WCATCP_IPAD' where LET_DATAGRID = 'WCATCP_IPAD';
update R5LISTENTITY set LET_NEWDATAGRID='NEW_WCMISC_IPAD' where LET_DATAGRID = 'WCMISC_IPAD';
update R5LISTENTITY set LET_NEWDATAGRID='NEW_BCDOCWO_IPAD' where LET_DATAGRID = 'BCDOCWO_IPAD';
update R5LISTENTITY set LET_NEWDATAGRID='NEW_WCMECS_MEC_IPAD' where LET_DATAGRID = 'WCMECS_MEC_IPAD';
update R5LISTENTITY set LET_NEWDATAGRID='NEW_WCBKEV_MEC_IPAD' where LET_DATAGRID = 'WCBKEV_MEC_IPAD';
update R5LISTENTITY set LET_NEWDATAGRID='NEW_WCTRAN_MEC_IPAD' where LET_DATAGRID = 'WCTRAN_MEC_IPAD';
update R5LISTENTITY set LET_NEWDATAGRID='NEW_WCTRAL_MEC_IPAD' where LET_DATAGRID = 'WCTRAL_MEC_IPAD';
update R5LISTENTITY set LET_NEWDATAGRID='NEW_BCCOMOBJWO_MEC_IPAD' where LET_DATAGRID = 'BCCOMOBJWO_MEC_IPAD';
update R5LISTENTITY set LET_NEWDATAGRID='NEW_ICRSLT_MEC_IPAD' where LET_DATAGRID = 'ICRSLT_MEC_IPAD';
update R5LISTENTITY set LET_NEWDATAGRID='NEW_BCDOCOBJWO_MEC_IPAD' where LET_DATAGRID = 'BCDOCOBJWO_MEC_IPAD';
update R5LISTENTITY set LET_NEWDATAGRID='NEW_BCCOMPPM_IPAD' where LET_DATAGRID = 'BCCOMPPM_IPAD';
update R5LISTENTITY set LET_NEWDATAGRID='NEW_WCJTPL_IPAD' where LET_DATAGRID = 'WCJTPL_IPAD';
update R5LISTENTITY set LET_NEWDATAGRID='NEW_WCJTOU_IPAD' where LET_DATAGRID = 'WCJTOU_IPAD';
update R5LISTENTITY set LET_NEWDATAGRID='NEW_WCJTOU_MEC_IPAD' where LET_DATAGRID = 'WCJTOU_MEC_IPAD';
update R5LISTENTITY set LET_NEWDATAGRID='NEW_WCSCHED_IPAD' where LET_DATAGRID = 'WCSCHED_IPAD';
update R5LISTENTITY set LET_NEWDATAGRID='NEW_WCDFAC_IPAD' where LET_DATAGRID = 'WCDFAC_IPAD';
update R5LISTENTITY set LET_NEWDATAGRID='NEW_WCNOCF_IPAD' where LET_DATAGRID = 'WCNOCF_IPAD';
update R5LISTENTITY set LET_NEWDATAGRID='NEW_WCMISC_MEC_IPAD' where LET_DATAGRID = 'WCMISC_MEC_IPAD';
update R5LISTENTITY set LET_NEWDATAGRID='NEW_BCCOMOBJ_IPAD' where LET_DATAGRID = 'BCCOMOBJ';
update R5LISTENTITY set LET_NEWDATAGRID='NEW_OCOBJC_FULL_IPAD' where LET_DATAGRID = 'OCOBJC_FULL_IPAD';
update R5LISTENTITY set LET_NEWDATAGRID='NEW_OCUSGD_IPAD' where LET_DATAGRID = 'OCUSGD_IPAD';
update R5LISTENTITY set LET_NEWDATAGRID='NEW_OCWARR_IPAD' where LET_DATAGRID = 'OCWARR';
update R5LISTENTITY set LET_NEWDATAGRID='NEW_ICPONT_IPAD' where LET_DATAGRID = 'ICPONT';
update R5LISTENTITY set LET_NEWDATAGRID='NEW_ICMONT_IPAD' where LET_DATAGRID = 'ICMONT';
update R5LISTENTITY set LET_NEWDATAGRID='NEW_BCPROMOBJ_IPAD' where LET_DATAGRID = 'BCPROMOBJ';
update R5LISTENTITY set LET_NEWDATAGRID='NEW_BCDOCOBJ_IPAD' where LET_DATAGRID = 'BCDOCOBJ_IPAD';
update R5LISTENTITY set LET_NEWDATAGRID='NEW_OCSTRU_FULL_IPAD' where LET_DATAGRID = 'OCSTRU_FULL_IPAD';
update R5LISTENTITY set LET_NEWDATAGRID='NEW_OCEQLREF_IPAD' where LET_DATAGRID = 'OCEQLREF_IPAD';
update R5LISTENTITY set LET_NEWDATAGRID='NEW_OCEVTOBJ_IPAD' where LET_DATAGRID = 'OCEVTOBJ_IPAD';
update R5LISTENTITY set LET_NEWDATAGRID='NEW_OCREAD_IPAD' where LET_DATAGRID = 'OCREAD_IPAD';
update R5LISTENTITY set LET_NEWDATAGRID='NEW_OCCATLOC_FULL_IPAD' where LET_DATAGRID = 'OCCATLOC_FULL_IPAD';
update R5LISTENTITY set LET_NEWDATAGRID='NEW_OCJOBHW_EVT_IPAD' where LET_DATAGRID = 'OCJOBHW_EVT_IPAD';
update R5LISTENTITY set LET_NEWDATAGRID='NEW_OCJOBHW_ACT_IPAD' where LET_DATAGRID = 'OCJOBHW_ACT_IPAD';
update R5LISTENTITY set LET_NEWDATAGRID='NEW_OCJOBHW_ADD_IPAD' where LET_DATAGRID = 'OCJOBHW_ADD_IPAD';
update R5LISTENTITY set LET_NEWDATAGRID='NEW_OCJOBHW_DOC_IPAD' where LET_DATAGRID = 'OCJOBHW_DOC_IPAD';
update R5LISTENTITY set LET_NEWDATAGRID='NEW_OCJOBHW_PRV_IPAD' where LET_DATAGRID = 'OCJOBHW_PRV_IPAD';
update R5LISTENTITY set LET_NEWDATAGRID='NEW_OCJOBHO_EVT_IPAD' where LET_DATAGRID = 'OCJOBHO_EVT_IPAD';
update R5LISTENTITY set LET_NEWDATAGRID='NEW_OCJOBHO_ACT_IPAD' where LET_DATAGRID = 'OCJOBHO_ACT_IPAD';
update R5LISTENTITY set LET_NEWDATAGRID='NEW_OCJOBHO_ADD_IPAD' where LET_DATAGRID = 'OCJOBHO_ADD_IPAD';
update R5LISTENTITY set LET_NEWDATAGRID='NEW_OCJOBHO_DOC_IPAD' where LET_DATAGRID = 'OCJOBHO_DOC_IPAD';
update R5LISTENTITY set LET_NEWDATAGRID='NEW_OCJOBHO_PRV_IPAD' where LET_DATAGRID = 'OCJOBHO_PRV_IPAD';
update R5LISTENTITY set LET_NEWDATAGRID='NEW_WCJOBDEL_MEC_IPAD' where LET_DATAGRID = 'WCJOBDEL_MEC';

UPDATE R5LISTENTITY SET LET_FILTER = NULL WHERE LET_DATAGRID='WCTRAD';
UPDATE R5LISTENTITY SET LET_FILTER = NULL WHERE LET_DATAGRID='OCFACO_IPAD';
UPDATE R5LISTENTITY SET LET_FILTER = NULL WHERE LET_DATAGRID='OCFACC';
UPDATE R5LISTENTITY SET LET_FILTER = NULL WHERE LET_DATAGRID='OCCACO_IPAD';
UPDATE R5LISTENTITY SET LET_FILTER = NULL WHERE LET_DATAGRID='OCCACC' ;
UPDATE R5LISTENTITY SET LET_FILTER = NULL WHERE LET_DATAGRID='OCACCO_IPAD';
UPDATE R5LISTENTITY SET LET_FILTER = NULL WHERE LET_DATAGRID='OCACCC';
UPDATE R5LISTENTITY SET LET_FILTER = NULL WHERE LET_DATAGRID='OCRECO_IPAD';
UPDATE R5LISTENTITY SET LET_FILTER = NULL WHERE LET_DATAGRID='OCRECC';
UPDATE R5LISTENTITY SET LET_FILTER = NULL WHERE LET_DATAGRID='WCMATLIST_IPAD';
UPDATE R5LISTENTITY SET LET_FILTER = NULL WHERE LET_DATAGRID='WCWARC';
UPDATE R5LISTENTITY SET LET_FILTER = NULL WHERE LET_DATAGRID='WCVMRS_IPAD';
UPDATE R5LISTENTITY SET LET_FILTER = NULL WHERE LET_DATAGRID='WCTOOL_IPAD';
UPDATE R5LISTENTITY SET LET_FILTER = NULL WHERE LET_DATAGRID='ICASPT_IPAD';
UPDATE R5LISTENTITY SET LET_FILTER = NULL WHERE LET_DATAGRID='ICASPN_IPAD' ;
UPDATE R5LISTENTITY SET LET_FILTER = NULL WHERE LET_DATAGRID='OCCLCH_IPAD';
UPDATE R5LISTENTITY SET LET_FILTER = NULL WHERE LET_DATAGRID='BCCOMPPM_IPAD';

INSERT INTO R5LISTENTITY(LET_DATAGRID,LET_SEQNO,LET_GROUPID,LET_DELINSUPD,LET_FILTER,LET_TABLENAME,LET_ORGKEY,LET_CONNECTEDMODE,LET_ALWAYSDOWNLOAD,LET_CLEARCONDITION) VALUES('BCCOMMNBK_IPAD',234,0,3,'OCMNBK','R5ADDETAILS',NULL,'-','-','AND ADD_RENTITY=''MNBK''');


UPDATE R5APPSETTINGS SET AST_VALUE = '11500' WHERE AST_NAME='DBVERSION';

DELETE FROM r5mobiletexts WHERE mot_number > 1500;
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1501 , 'Selected Item', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1502 , 'Replace With', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1503 , 'Receipt Trans. Description', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1504 , 'Record Type', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1505 , 'Use ION API for Authentication', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1506 , 'To Status', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1507 , 'User data has been reset for the logged in user. Enter password to login again.', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1508 , 'Supplier Org.', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1509 , 'Service Category', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1510 , 'Service Category Org.', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1511 , 'Service code', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1512 , 'Service Code Org.', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1513 , 'Depending on the selected Record Type, the system will select all nonconformities or nonconformity observations of the work order and will update the status of these records with the selected To Status.', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1514 , 'Cancel All', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1515 , 'Select Record Type.', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1516 , 'Select To Status.', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1517 , 'The map cannot be displayed because GIS credentials have not been entered on the GIS Settings screen.', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1518 , 'No Update Status', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1519 , 'إعداد السجل', 'AR');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1519 , 'Log Setup', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1519 , 'Configuración del registro', 'ES');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1519 , 'Lokin määritys', 'FI');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1519 , 'Paramétrage de journal', 'FR');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1519 , 'Protokolleinrichtung', 'GE');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1519 , 'Impostazione registro', 'IT');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1519 , 'ﾛｸﾞ設定', 'JP');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1519 , '로그 설정', 'KO');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1519 , 'Logboekinstellingen', 'NL');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1519 , 'Loggoppsett', 'NO');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1519 , 'Konfiguracja dziennika', 'PL');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1519 , 'Configuração de log', 'PT');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1519 , 'Настройка журнала', 'RU');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1519 , 'Logginställningar', 'SV');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1519 , '日志设置', 'ZH');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1519 , '日誌設定', 'ZT');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1520 , 'تمكين السجل', 'AR');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1520 , 'Enable Log', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1520 , 'Habilitar registro', 'ES');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1520 , 'Ota loki käyttöön', 'FI');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1520 , 'Activer journal', 'FR');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1520 , 'Protokoll aktivieren', 'GE');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1520 , 'Abilita registro', 'IT');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1520 , 'ﾛｸﾞ有効化', 'JP');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1520 , '로그 유효화', 'KO');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1520 , 'Logboek inschakelen', 'NL');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1520 , 'Aktiver logg', 'NO');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1520 , 'Wyłącz dziennik', 'PL');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1520 , 'Ativar log', 'PT');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1520 , 'Включить ведение журнала', 'RU');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1520 , 'Aktivera logg', 'SV');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1520 , '启用日志', 'ZH');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1520 , '啟用日誌', 'ZT');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1521 , 'سجل البريد الإلكتروني', 'AR');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1521 , 'Email Log', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1521 , 'Registro de correo electrónico', 'ES');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1521 , 'Sähköpostiloki', 'FI');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1521 , 'E-mail journal', 'FR');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1521 , 'Protokoll per E-Mail senden', 'GE');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1521 , 'Invia registro tramite E-mail', 'IT');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1521 , 'ﾛｸﾞをﾒｰﾙ', 'JP');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1521 , '이메일 로그', 'KO');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1521 , 'Logboek e-mailen', 'NL');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1521 , 'E-postlogg', 'NO');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1521 , 'Dziennik e-mail', 'PL');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1521 , 'Enviar log por email', 'PT');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1521 , 'Отправить журнал по электронной почте', 'RU');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1521 , 'Mejla logg', 'SV');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1521 , '电子邮件日志', 'ZH');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1521 , '用電子郵件傳送日誌', 'ZT');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1522 , 'تنزيل تصريح العمل', 'AR');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1522 , 'Download Permit to Work', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1522 , 'Descargar permiso de trabajo', 'ES');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1522 , 'Lataa työlupa', 'FI');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1522 , 'Télécharger permis de travail', 'FR');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1522 , 'Arbeitsgenehmigung herunterladen', 'GE');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1522 , 'Scarica permesso di lavoro', 'IT');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1522 , '作業許可証ﾀﾞｳﾝﾛｰﾄﾞ', 'JP');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1522 , '작업 허가 다운로드', 'KO');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1522 , 'Werkvergunning downloaden', 'NL');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1522 , 'Last ned tillatelse til å arbeide', 'NO');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1522 , 'Pobierz pozwolenie na pracę', 'PL');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1522 , 'Baixar Autorização de trabalho', 'PT');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1522 , 'Загрузить допуск к работе', 'RU');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1522 , 'Ladda ned arbetstillstånd', 'SV');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1522 , '下载工作安全许可', 'ZH');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1522 , '下載工作許可證', 'ZT');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1523 , 'Asset Description', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1524 , 'Model Number', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1525 , 'Start Job', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1526 , 'EAM Version', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1527 , 'Stop Job', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1528 , 'Comp Lvl', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1529 , 'Completed Successfully.', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1530 , 'Reason for Repair is a Required Field.', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1531 , 'Select a Code', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1532 , 'Location Attributes', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1533 , 'No Permit To Work found', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1534 , 'Component Swap', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1535 , 'Component Replaced Successfully.', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1536 , 'Please confirm if these items need to be swapped', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1537 , 'Scrap Selected Item', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1538 , 'Confirm', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1539 , 'Replace', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1540 , 'تغيير كلمة المرور', 'AR');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1540 , 'Change password', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1540 , 'Cambiar contraseña', 'ES');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1540 , 'Vaihda salasana', 'FI');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1540 , 'Modifier le mot de passe', 'FR');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1540 , 'Kennwort ändern', 'GE');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1540 , 'Cambia password', 'IT');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1540 , 'ﾊﾟｽﾜｰﾄﾞ変更', 'JP');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1540 , '암호 변경', 'KO');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1540 , 'Wachtwoord wijzigen', 'NL');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1540 , 'Endre passord', 'NO');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1540 , 'Zmiana hasła', 'PL');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1540 , 'Alterar senha', 'PT');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1540 , 'Изменение пароля', 'RU');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1540 , 'Byt lösenord', 'SV');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1540 , '更改密码', 'ZH');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1540 , '變更密碼', 'ZT');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1541 , 'اسم المستخدم', 'AR');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1541 , 'User Name', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1541 , 'Nombre de usuario', 'ES');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1541 , 'Käyttäjän nimi', 'FI');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1541 , 'Nom d''utilisateur', 'FR');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1541 , 'Benutzername', 'GE');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1541 , 'Nome utente', 'IT');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1541 , 'ﾕｰｻﾞ名', 'JP');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1541 , '사용자 이름', 'KO');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1541 , 'Gebruikersnaam', 'NL');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1541 , 'Brukernavn', 'NO');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1541 , 'Nazwa użytkownika', 'PL');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1541 , 'Nome do usuário', 'PT');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1541 , 'Имя пользователя', 'RU');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1541 , 'Användarnamn', 'SV');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1541 , '用户名', 'ZH');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1541 , '使用者名稱', 'ZT');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1542 , 'كلمة المرور الحالية', 'AR');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1542 , 'Current Password', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1542 , 'Contraseña actual', 'ES');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1542 , 'Nykyinen salasana', 'FI');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1542 , 'Mot de passe actuel', 'FR');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1542 , 'Aktuelles Kennwort', 'GE');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1542 , 'Password corrente', 'IT');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1542 , '現在のﾊﾟｽﾜｰﾄﾞ', 'JP');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1542 , '현 암호', 'KO');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1542 , 'Huidig wachtwoord', 'NL');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1542 , 'Gjeldende passord', 'NO');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1542 , 'Aktualne hasło', 'PL');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1542 , 'Senha atual', 'PT');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1542 , 'Текущий пароль', 'RU');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1542 , 'Aktuellt lösenord', 'SV');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1542 , '当前密码', 'ZH');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1542 , '目前密碼', 'ZT');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1543 , 'كلمة مرور جديدة', 'AR');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1543 , 'New Password', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1543 , 'Nueva contraseña', 'ES');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1543 , 'Uusi salasana', 'FI');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1543 , 'Nouveau mot de passe', 'FR');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1543 , 'Neues Kennwort', 'GE');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1543 , 'Nuova password', 'IT');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1543 , '新規ﾊﾟｽﾜｰﾄﾞ', 'JP');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1543 , '새 암호', 'KO');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1543 , 'Nieuw wachtwoord', 'NL');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1543 , 'Nytt passord', 'NO');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1543 , 'Nowe hasło', 'PL');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1543 , 'Nova senha', 'PT');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1543 , 'Новый пароль', 'RU');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1543 , 'Nytt lösenord', 'SV');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1543 , '新密码', 'ZH');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1543 , '新密碼', 'ZT');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1544 , 'تأكيد كلمة المرور', 'AR');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1544 , 'Confirm Password', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1544 , 'Confirmar contraseña', 'ES');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1544 , 'Vahvista salasana', 'FI');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1544 , 'Confirmer mot de passe', 'FR');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1544 , 'Kennwort wiederholen', 'GE');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1544 , 'Conferma password', 'IT');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1544 , 'ﾊﾟｽﾜｰﾄﾞ確認', 'JP');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1544 , '암호 확인', 'KO');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1544 , 'Wachtwoord bevestigen', 'NL');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1544 , 'Bekreft passord', 'NO');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1544 , 'Wpisz hasło ponownie', 'PL');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1544 , 'Confirmar senha', 'PT');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1544 , 'Подтверждение пароля', 'RU');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1544 , 'Bekräfta lösenord', 'SV');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1544 , '确认密码', 'ZH');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1544 , '確認密碼', 'ZT');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1545 , 'Password must not be longer than 48 characters.', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1546 , 'The length of the password cannot be less than', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1547 , 'Please enter current password', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1548 , 'Please enter new password', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1549 , 'Please confirm new password', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1550 , 'Estimated Hours exceed available hours. People Required are available 24 hours per day for the duration of the activity.', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1551 , 'Restore User Data', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1552 , 'Restoring the user data will delete all data on the mobile device, for the logged in user-organization combination. Do you want to continue?', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1553 , 'Last Sync', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1554 , 'Auto sync is completed.', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1555 , 'A record using this value already exists.', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1556 , 'The new password and the confirm password are not the same. Enter the correct password and try again.', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1557 , 'Navigate', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1558 , 'This feature is only available when there is a network connection.', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1559 , 'Device Basemaps', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1560 , 'Levels', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1561 , 'Choose Basemap', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1562 , 'Change Map Area To Match Extent', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1563 , 'Search Map Configurations', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1564 , 'Change map', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1565 , 'Map Configurations', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1566 , 'Change Password', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1567 , 'Notify the system administrator because the EAM length of :PARAM1 may be significantly different than the GIS length of :PARAM2.', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1568 , 'The From Point or To Point has been adjusted based on the equipment length, versus feature length, to avoid a length validation error.', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1569 , 'Set to equipment length', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1570 , 'سجل أخطاء التزامن', 'AR');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1570 , 'Sync Error Log', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1570 , 'Registro de errores de sincronización', 'ES');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1570 , 'Synkronointivirheloki', 'FI');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1570 , 'Journal d''erreur de synchronisation', 'FR');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1570 , 'Fehlerprotokoll synchronisieren', 'GE');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1570 , 'Registro errori di sincronizzazione', 'IT');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1570 , '同期ｴﾗｰﾛｸﾞ', 'JP');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1570 , '동기화 오류 로그', 'KO');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1570 , 'Logboek synchronisatiefouten', 'NL');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1570 , 'Synkroniser feillogg', 'NO');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1570 , 'Dziennik błędów synch.', 'PL');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1570 , 'Sincronizar o log de erros', 'PT');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1570 , 'Журнал ошибок синхронизации', 'RU');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1570 , 'Synkroniseringsfellogg', 'SV');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1570 , '同步错误日志', 'ZH');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1570 , '同步錯誤日誌', 'ZT');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1571 , 'No GIS Map Configurations Found', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1572 , 'ArcGIS credential information has been cleared!', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1573 , 'Clear Credentials', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1574 , 'Connection unavailable!', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1575 , 'REMOVED', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1576 , 'A default map could not be found. Select a map from the users list to continue.', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1577 , 'The Standard WO field has changed, but the WO activities cannot be replaced because they are referenced elsewhere. Select Yes to save without replacing the activities. Select Cancel to abort the save.', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1578 , 'The Standard WO field has changed. Should the WO activities be replaced?', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1579 , 'The Standard WO field has changed and filled in checklists exist. Should the WO activities be replaced?', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1580 , 'The task plan cannot be associated to the activity because transactions exist for one or more existing activity jobs.', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1581 , 'The activity has plan labor, plan parts, plan tools, checklist items, or jobs. These records will be removed prior to copying task plan information. Continue?', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1582 , 'The activity has plan labor, plan parts, plan tools, checklist items, or jobs. There are checklist items that have been filled in. These records will be removed prior to copying task plan information. Continue?', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1583 , 'The From Point and/or To Point has been adjusted based on the equipment length, versus feature length, to avoid a length validation error.', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1584 , 'Notebook', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1585 , ':PARAM1 is invalid.', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1586 , 'The new password and current password are the same. Enter a new password and try again.', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1587 , 'From Ref. Description', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1588 , 'From Geographical Ref.', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1589 , 'To Ref. Description', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1590 , 'To Geographical Ref.', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1591 , 'Status not allowed. Checklist Performed By credentials are still required.', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1592 , 'Status not allowed. Checklist Reviewed By credentials are still required.', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1593 , 'Status not allowed with required checklist items still pending.', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1594 , 'Hours Requested must be in a range of 0 to 24.', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1595 , 'The labor correction cannot be performed because there is insufficient booked labor for one or more work order equipment.', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1596 , '?The record must be synced before performing this action.', 'AR');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1596 , 'The record must be synced before performing this action.', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1596 , 'Debe sincronizarse el registro antes de realizar esta acción.', 'ES');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1596 , '?The record must be synced before performing this action.', 'FI');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1596 , '?The record must be synced before performing this action.', 'FR');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1596 , 'Der Datensatz muss synchronisiert werden, bevor Sie diese Funktion ausführen.', 'GE');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1596 , 'È necessario sincronizzare il record prima di eseguire l''azione.', 'IT');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1596 , '記録を同期してから、この操作を実行します。', 'JP');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1596 , '?The record must be synced before performing this action.', 'KO');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1596 , 'Om deze actie te kunnen uitvoeren moet de record gesynchroniseerd worden.', 'NL');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1596 , '?The record must be synced before performing this action.', 'NO');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1596 , '?The record must be synced before performing this action.', 'PL');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1596 , '?The record must be synced before performing this action.', 'PT');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1596 , '?The record must be synced before performing this action.', 'RU');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1596 , '?The record must be synced before performing this action.', 'SV');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1596 , '?The record must be synced before performing this action.', 'ZH');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1596 , '執行此動作前必須先同步記錄。', 'ZT');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1597 , 'تم تمكين مصادقة متعددة العوامل لهذا الخادم. أدخل كلمة المرور الثانية.', 'AR');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1597 , 'Multi-Factor Authentication is enabled for this server. Enter the second password.', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1597 , 'Autenticación de múltiples factores habilitada para este servidor. Especifique una segunda contraseña.', 'ES');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1597 , 'Monen tekijän todennus on käytössä tällä palvelimella. Anna toinen salasana.', 'FI');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1597 , 'L''authentification multi-facteur est activée pour ce serveur. Saisissez le deuxième mot de passe.', 'FR');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1597 , 'Für diesen Server ist Multi-Faktor-Authentifizierung aktiviert. Geben Sie das zweite Kennwort ein.', 'GE');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1597 , 'Autenticazione a più fattori attivata per questo server. Immettere la seconda password.', 'IT');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1597 , 'このｻｰﾊﾞは多要素認証が有効です。第2のﾊﾟｽﾜｰﾄﾞを入力してください。', 'JP');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1597 , '이 서버에 다중 요소 인증이 유효화되어 있습니다. 두 번째 암호를 입력하십시오.', 'KO');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1597 , 'Verificatie op basis van twee controles is voor deze server ingeschakeld. Vul het tweede wachtwoord in.', 'NL');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1597 , 'Flerfaktorautentisering er aktivert for denne serveren. Skriv inn det andre passordet.', 'NO');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1597 , 'Na tym serwerze obowiązuje uwierzytelnianie wieloczynnikowe. Wprowadź drugie hasło.', 'PL');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1597 , 'A Autenticação multifator está ativada para este servidor. Insira a segunda senha.', 'PT');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1597 , 'Для этого сервера включена многофакторная проверка подлинности. Введите второй пароль.', 'RU');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1597 , 'Multifaktorautentisering är aktiverad för denna server. Ange det andra lösenordet.', 'SV');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1597 , '此服务器已启用多元素身份验证。请输入第二个密码。', 'ZH');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1597 , '已針對此伺服器啟用多因子驗證。請輸入第二個密碼。', 'ZT');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1598 , '?Continue', 'AR');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1598 , 'Continue', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1598 , 'Continuar', 'ES');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1598 , '?Continue', 'FI');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1598 , 'Continuer', 'FR');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1598 , 'Weiter', 'GE');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1598 , 'Continua', 'IT');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1598 , '継続', 'JP');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1598 , '계속', 'KO');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1598 , 'Doorgaan', 'NL');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1598 , 'Fortsett', 'NO');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1598 , 'Kontynuuj', 'PL');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1598 , 'Continuar', 'PT');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1598 , 'Продолжить', 'RU');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1598 , 'Fortsätt', 'SV');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1598 , '继续', 'ZH');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1598 , '繼續', 'ZT');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1599 , 'انذار', 'AR');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1599 , 'Warning', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1599 , 'Advertencia', 'ES');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1599 , 'Varoitus', 'FI');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1599 , 'Avertissement', 'FR');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1599 , 'Warnung', 'GE');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1599 , 'Avviso', 'IT');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1599 , '警告', 'JP');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1599 , '경고', 'KO');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1599 , 'Waarschuwing', 'NL');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1599 , 'Advarsel', 'NO');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1599 , 'Ostrzeżenie', 'PL');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1599 , 'Aviso', 'PT');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1599 , 'Предупреждение', 'RU');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1599 , 'Varning', 'SV');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1599 , '警告', 'ZH');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1599 , '警告', 'ZT');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1600 , 'Task plan reference cannot be removed because transactions exist for one or more activity jobs.', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1601 , 'Authorization failed. You are not authorized to perform this function.', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1602 , 'Test Connection', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1603 , 'Perform By Responsibility', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1604 , 'Review Responsibility', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1605 , 'No map files exist. Ensure GIS credentials have been entered, perform a sync, and try again', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1606 , 'No Operator Checklists found', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1607 , 'No Notebook Found', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1608 , 'Search Permit To Work', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1609 , 'Notebook Details', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1610 , 'Additional Details', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1611 , 'Notebook Reference', 'EN');
INSERT INTO r5mobiletexts (mot_number, mot_text, mot_lang) VALUES (1612 , 'Copy Source', 'EN');


UPDATE R5LISTENTITY SET LET_MASTERTABLE='R5EVENTS' WHERE IFNULL(LET_NEWDATAGRID,LET_DATAGRID)='BCCOMWONOCO_IPAD';
UPDATE R5LISTENTITY SET LET_MASTERTABLE='R5EVENTS' WHERE IFNULL(LET_NEWDATAGRID,LET_DATAGRID)='NEW_BCDOCOBJWO_MEC_IPAD';
UPDATE R5LISTENTITY SET LET_MASTERTABLE='R5EVENTS' WHERE IFNULL(LET_NEWDATAGRID,LET_DATAGRID)='NEW_BCPROMOBJWO_IPAD';
UPDATE R5LISTENTITY SET LET_MASTERTABLE='R5EVENTS' WHERE IFNULL(LET_NEWDATAGRID,LET_DATAGRID)='NEW_ICRSLT_IPAD';
UPDATE R5LISTENTITY SET LET_MASTERTABLE='R5EVENTS' WHERE IFNULL(LET_NEWDATAGRID,LET_DATAGRID)='NEW_OCJOBHW_ACT_IPAD';
UPDATE R5LISTENTITY SET LET_MASTERTABLE='R5EVENTS' WHERE IFNULL(LET_NEWDATAGRID,LET_DATAGRID)='NEW_OCJOBHW_PRV_IPAD';
UPDATE R5LISTENTITY SET LET_MASTERTABLE='R5EVENTS' WHERE IFNULL(LET_NEWDATAGRID,LET_DATAGRID)='NEW_WCBKEV_MEC_IPAD';
UPDATE R5LISTENTITY SET LET_MASTERTABLE='R5EVENTS' WHERE IFNULL(LET_NEWDATAGRID,LET_DATAGRID)='NEW_WCACTJ_FULL_IPAD';
UPDATE R5LISTENTITY SET LET_MASTERTABLE='R5EVENTS' WHERE IFNULL(LET_NEWDATAGRID,LET_DATAGRID)='NEW_WCMECS_MEC_IPAD';
UPDATE R5LISTENTITY SET LET_MASTERTABLE='R5EVENTS' WHERE IFNULL(LET_NEWDATAGRID,LET_DATAGRID)='NEW_WCNOCF_IPAD';
UPDATE R5LISTENTITY SET LET_MASTERTABLE='R5EVENTS' WHERE IFNULL(LET_NEWDATAGRID,LET_DATAGRID)='NEW_WCTRAL_MEC_IPAD';
UPDATE R5LISTENTITY SET LET_MASTERTABLE='R5EVENTS' WHERE IFNULL(LET_NEWDATAGRID,LET_DATAGRID)='NEW_WCTRAN_MEC_IPAD';
UPDATE R5LISTENTITY SET LET_MASTERTABLE='R5EVENTS' WHERE IFNULL(LET_NEWDATAGRID,LET_DATAGRID)='WCNOCO_IPAD';
UPDATE R5LISTENTITY SET LET_MASTERTABLE='R5EVENTS' WHERE IFNULL(LET_NEWDATAGRID,LET_DATAGRID)='NEW_BCCOMOBJWO_IPAD';
UPDATE R5LISTENTITY SET LET_MASTERTABLE='R5EVENTS' WHERE IFNULL(LET_NEWDATAGRID,LET_DATAGRID)='NEW_BCCOMOBJWO_MEC_IPAD';
UPDATE R5LISTENTITY SET LET_MASTERTABLE='R5EVENTS' WHERE IFNULL(LET_NEWDATAGRID,LET_DATAGRID)='NEW_WCJOBS_FULL_IPAD';
UPDATE R5LISTENTITY SET LET_MASTERTABLE='R5EVENTS' WHERE IFNULL(LET_NEWDATAGRID,LET_DATAGRID)='NEW_WCJTOU_IPAD';
UPDATE R5LISTENTITY SET LET_MASTERTABLE='R5EVENTS' WHERE IFNULL(LET_NEWDATAGRID,LET_DATAGRID)='NEW_WCJTOU_MEC_IPAD';
UPDATE R5LISTENTITY SET LET_MASTERTABLE='R5EVENTS' WHERE IFNULL(LET_NEWDATAGRID,LET_DATAGRID)='NEW_WCJTPL_IPAD';
UPDATE R5LISTENTITY SET LET_MASTERTABLE='R5EVENTS' WHERE IFNULL(LET_NEWDATAGRID,LET_DATAGRID)='NEW_WCMATL_IPAD';
UPDATE R5LISTENTITY SET LET_MASTERTABLE='R5EVENTS' WHERE IFNULL(LET_NEWDATAGRID,LET_DATAGRID)='NEW_WCDFAC_IPAD';
UPDATE R5LISTENTITY SET LET_MASTERTABLE='R5EVENTS' WHERE IFNULL(LET_NEWDATAGRID,LET_DATAGRID)='NEW_WCMISC_IPAD';
UPDATE R5LISTENTITY SET LET_MASTERTABLE='R5EVENTS' WHERE IFNULL(LET_NEWDATAGRID,LET_DATAGRID)='NEW_WCMISC_MEC_IPAD';
UPDATE R5LISTENTITY SET LET_MASTERTABLE='R5EVENTS' WHERE IFNULL(LET_NEWDATAGRID,LET_DATAGRID)='NEW_WCSCHED_IPAD';
UPDATE R5LISTENTITY SET LET_MASTERTABLE='R5EVENTS' WHERE IFNULL(LET_NEWDATAGRID,LET_DATAGRID)='NEW_WCTRAL_IPAD';
UPDATE R5LISTENTITY SET LET_MASTERTABLE='R5EVENTS' WHERE IFNULL(LET_NEWDATAGRID,LET_DATAGRID)='NEW_WCTRAN_IPAD';
UPDATE R5LISTENTITY SET LET_MASTERTABLE='R5EVENTS' WHERE IFNULL(LET_NEWDATAGRID,LET_DATAGRID)='NEW_OCJOBHW_ADD_IPAD';
UPDATE R5LISTENTITY SET LET_MASTERTABLE='R5EVENTS' WHERE IFNULL(LET_NEWDATAGRID,LET_DATAGRID)='NEW_OCJOBHW_DOC_IPAD';
UPDATE R5LISTENTITY SET LET_MASTERTABLE='R5EVENTS' WHERE IFNULL(LET_NEWDATAGRID,LET_DATAGRID)='NEW_OCJOBHW_EVT_IPAD';
UPDATE R5LISTENTITY SET LET_MASTERTABLE='R5EVENTS' WHERE IFNULL(LET_NEWDATAGRID,LET_DATAGRID)='BCPROMWONOCO_IPAD';
UPDATE R5LISTENTITY SET LET_MASTERTABLE='R5EVENTS' WHERE IFNULL(LET_NEWDATAGRID,LET_DATAGRID)='NEW_WCATCP_IPAD';
UPDATE R5LISTENTITY SET LET_MASTERTABLE='R5EVENTS' WHERE IFNULL(LET_NEWDATAGRID,LET_DATAGRID)='NEW_BCCOMPPM_IPAD';
UPDATE R5LISTENTITY SET LET_MASTERTABLE='R5EVENTS' WHERE IFNULL(LET_NEWDATAGRID,LET_DATAGRID)='NEW_BCCOMWO_IPAD';
UPDATE R5LISTENTITY SET LET_MASTERTABLE='R5EVENTS' WHERE IFNULL(LET_NEWDATAGRID,LET_DATAGRID)='NEW_BCDOCWO_IPAD';
UPDATE R5LISTENTITY SET LET_MASTERTABLE='R5EVENTS' WHERE IFNULL(LET_NEWDATAGRID,LET_DATAGRID)='NEW_BCPROMWO_IPAD';
UPDATE R5LISTENTITY SET LET_MASTERTABLE='R5EVENTS' WHERE IFNULL(LET_NEWDATAGRID,LET_DATAGRID)='NEW_WCBKEV_IPAD';
UPDATE R5LISTENTITY SET LET_MASTERTABLE='R5EVENTS' WHERE IFNULL(LET_NEWDATAGRID,LET_DATAGRID)='BCDOCWACL_IPAD';
UPDATE R5LISTENTITY SET LET_MASTERTABLE='R5EVENTS' WHERE IFNULL(LET_NEWDATAGRID,LET_DATAGRID)='BCDOCWONOCO_IPAD';
UPDATE R5LISTENTITY SET LET_MASTERTABLE='R5EVENTS' WHERE IFNULL(LET_NEWDATAGRID,LET_DATAGRID)='NEW_ICRSLT_MEC_IPAD';

UPDATE R5LISTENTITY SET LET_MASTERTABLE='R5OBJECTS' WHERE IFNULL(LET_NEWDATAGRID,LET_DATAGRID)='NEW_BCCOMOBJ_IPAD';
UPDATE R5LISTENTITY SET LET_MASTERTABLE='R5OBJECTS' WHERE IFNULL(LET_NEWDATAGRID,LET_DATAGRID)='NEW_ICMONT_IPAD';
UPDATE R5LISTENTITY SET LET_MASTERTABLE='R5OBJECTS' WHERE IFNULL(LET_NEWDATAGRID,LET_DATAGRID)='NEW_OCEVTOBJ_IPAD';
UPDATE R5LISTENTITY SET LET_MASTERTABLE='R5OBJECTS' WHERE IFNULL(LET_NEWDATAGRID,LET_DATAGRID)='NEW_OCJOBHO_EVT_IPAD';
UPDATE R5LISTENTITY SET LET_MASTERTABLE='R5OBJECTS' WHERE IFNULL(LET_NEWDATAGRID,LET_DATAGRID)='OCNOCF_IPAD';
UPDATE R5LISTENTITY SET LET_MASTERTABLE='R5OBJECTS' WHERE IFNULL(LET_NEWDATAGRID,LET_DATAGRID)='BCCOMOBJNOCF_IPAD';
UPDATE R5LISTENTITY SET LET_MASTERTABLE='R5OBJECTS' WHERE IFNULL(LET_NEWDATAGRID,LET_DATAGRID)='BCCOMOBJNOCO_IPAD';
UPDATE R5LISTENTITY SET LET_MASTERTABLE='R5OBJECTS' WHERE IFNULL(LET_NEWDATAGRID,LET_DATAGRID)='NEW_OCOBJC_FULL_IPAD';
UPDATE R5LISTENTITY SET LET_MASTERTABLE='R5OBJECTS' WHERE IFNULL(LET_NEWDATAGRID,LET_DATAGRID)='NEW_OCREAD_IPAD';
UPDATE R5LISTENTITY SET LET_MASTERTABLE='R5OBJECTS' WHERE IFNULL(LET_NEWDATAGRID,LET_DATAGRID)='NEW_OCSTRU_FULL_IPAD';
UPDATE R5LISTENTITY SET LET_MASTERTABLE='R5OBJECTS' WHERE IFNULL(LET_NEWDATAGRID,LET_DATAGRID)='OCNOCO_IPAD';
UPDATE R5LISTENTITY SET LET_MASTERTABLE='R5OBJECTS' WHERE IFNULL(LET_NEWDATAGRID,LET_DATAGRID)='NEW_OCEQLREF_IPAD';
UPDATE R5LISTENTITY SET LET_MASTERTABLE='R5OBJECTS' WHERE IFNULL(LET_NEWDATAGRID,LET_DATAGRID)='NEW_OCJOBHO_ACT_IPAD';
UPDATE R5LISTENTITY SET LET_MASTERTABLE='R5OBJECTS' WHERE IFNULL(LET_NEWDATAGRID,LET_DATAGRID)='NEW_OCJOBHO_PRV_IPAD';
UPDATE R5LISTENTITY SET LET_MASTERTABLE='R5OBJECTS' WHERE IFNULL(LET_NEWDATAGRID,LET_DATAGRID)='NEW_OCUSGD_IPAD';
UPDATE R5LISTENTITY SET LET_MASTERTABLE='R5OBJECTS' WHERE IFNULL(LET_NEWDATAGRID,LET_DATAGRID)='NEW_OCWARR_IPAD';
UPDATE R5LISTENTITY SET LET_MASTERTABLE='R5OBJECTS' WHERE IFNULL(LET_NEWDATAGRID,LET_DATAGRID)='NEW_BCDOCOBJ_IPAD';
UPDATE R5LISTENTITY SET LET_MASTERTABLE='R5OBJECTS' WHERE IFNULL(LET_NEWDATAGRID,LET_DATAGRID)='NEW_BCPROMOBJ_IPAD';
UPDATE R5LISTENTITY SET LET_MASTERTABLE='R5OBJECTS' WHERE IFNULL(LET_NEWDATAGRID,LET_DATAGRID)='NEW_ICPONT_IPAD';
UPDATE R5LISTENTITY SET LET_MASTERTABLE='R5OBJECTS' WHERE IFNULL(LET_NEWDATAGRID,LET_DATAGRID)='NEW_OCJOBHO_ADD_IPAD';
UPDATE R5LISTENTITY SET LET_MASTERTABLE='R5OBJECTS' WHERE IFNULL(LET_NEWDATAGRID,LET_DATAGRID)='BCDOCOBJNOCF_IPAD';
UPDATE R5LISTENTITY SET LET_MASTERTABLE='R5OBJECTS' WHERE IFNULL(LET_NEWDATAGRID,LET_DATAGRID)='BCDOCOBJNOCO_IPAD';
UPDATE R5LISTENTITY SET LET_MASTERTABLE='R5OBJECTS' WHERE IFNULL(LET_NEWDATAGRID,LET_DATAGRID)='NEW_OCJOBHO_DOC_IPAD';

UPDATE R5LISTENTITY SET LET_MASTERTABLE='R5PERMITTOWORK' WHERE IFNULL(LET_NEWDATAGRID,LET_DATAGRID)='BCDOCPTW_IPAD';
UPDATE R5LISTENTITY SET LET_MASTERTABLE='R5PERMITTOWORK' WHERE IFNULL(LET_NEWDATAGRID,LET_DATAGRID)='WCPKSF_IPAD';
UPDATE R5LISTENTITY SET LET_MASTERTABLE='R5PERMITTOWORK' WHERE IFNULL(LET_NEWDATAGRID,LET_DATAGRID)='WCPMTW_IPAD';
UPDATE R5LISTENTITY SET LET_MASTERTABLE='R5PERMITTOWORK' WHERE IFNULL(LET_NEWDATAGRID,LET_DATAGRID)='WCPCSO_IPAD';
UPDATE R5LISTENTITY SET LET_MASTERTABLE='R5PERMITTOWORK' WHERE IFNULL(LET_NEWDATAGRID,LET_DATAGRID)='BCCOMPTW_IPAD';
UPDATE R5LISTENTITY SET LET_MASTERTABLE='R5PERMITTOWORK' WHERE IFNULL(LET_NEWDATAGRID,LET_DATAGRID)='BCPROMPTW_IPAD';

UPDATE R5LISTENTITY SET LET_MASTERTABLE='R5MOBILENOTEBOOKS' WHERE IFNULL(LET_NEWDATAGRID,LET_DATAGRID)='BCCOMMNBK_IPAD';
UPDATE R5LISTENTITY SET LET_MASTERTABLE='R5MOBILENOTEBOOKS' WHERE IFNULL(LET_NEWDATAGRID,LET_DATAGRID)='BCDOCMNBK_IPAD';
UPDATE R5LISTENTITY SET LET_MASTERTABLE='R5MOBILENOTEBOOKS' WHERE IFNULL(LET_NEWDATAGRID,LET_DATAGRID)='BCPROMMNBK_IPAD';
UPDATE R5LISTENTITY SET LET_MASTERTABLE='R5MOBILENOTEBOOKS' WHERE IFNULL(LET_NEWDATAGRID,LET_DATAGRID)='OCMNBK_IPAD';
UPDATE R5LISTENTITY SET LET_MASTERTABLE='R5MOBILENOTEBOOKS' WHERE IFNULL(LET_NEWDATAGRID,LET_DATAGRID)='OCMNEM_IPAD';
UPDATE R5LISTENTITY SET LET_MASTERTABLE='R5MOBILENOTEBOOKS' WHERE IFNULL(LET_NEWDATAGRID,LET_DATAGRID)='OCMNRF_IPAD';

-- New WO Equipment Change
ALTER TABLE R5DOCUMENTS ADD DOC_FLAG NCHAR(1);
ALTER TABLE R5WARCOVERAGES ADD WCV_FLAG NCHAR(1);
ALTER TABLE R5OBJUSAGEDEFS ADD OUD_FLAG NCHAR(1);
ALTER TABLE R5STRUCTURES ADD STC_FLAG NCHAR(1);
ALTER TABLE R5READINGS ADD REA_FLAG NCHAR(1);
ALTER TABLE R5OBJLINEARREF ADD LRF_FLAG NCHAR(1);
ALTER TABLE R5POINTS ADD POI_FLAG NCHAR(1);
ALTER TABLE R5ASPECTPOINTS ADD APO_FLAG NCHAR(1);
ALTER TABLE R5NONCONFORMITIES ADD NCF_FLAG NCHAR(1);
ALTER TABLE R5NONCONFORMOBSERVATIONS ADD NCO_FLAG NCHAR(1);

INSERT INTO R5LISTENTITY(LET_DATAGRID,LET_SEQNO,LET_GROUPID,LET_DELINSUPD,LET_FILTER,LET_TABLENAME,LET_ORGKEY,LET_CONNECTEDMODE,LET_ALWAYSDOWNLOAD,LET_CLEARCONDITION) VALUES('ICMONTC_IPAD',250,0,3,'ICMONT','R5ASPECTPOINTS',NULL,'-','-','AND APO_OBTYPE=''C''');
INSERT INTO R5LISTENTITY(LET_DATAGRID,LET_SEQNO,LET_GROUPID,LET_DELINSUPD,LET_FILTER,LET_TABLENAME,LET_ORGKEY,LET_CONNECTEDMODE,LET_ALWAYSDOWNLOAD,LET_CLEARCONDITION) VALUES('ICPONTC_IPAD',251,0,3,'ICMONT','R5POINTS',NULL,'-','-','AND POI_OBTYPE=''C''');

INSERT INTO R5LISTENTITY (LET_DATAGRID,LET_SEQNO,LET_GROUPID,LET_DELINSUPD,LET_FILTER,LET_TABLENAME,LET_ORGKEY,LET_CONNECTEDMODE,LET_ALWAYSDOWNLOAD,LET_CLEARCONDITION, LET_MASTERTABLE,LET_CATEGORY) VALUES('OCOBJCWO_IPAD',260,0,3,'WCJOBS','R5OBJECTSWO',NULL,'-','-','AND 1=1','R5EVENTS','EVNT');
INSERT INTO R5LISTENTITY(LET_DATAGRID,LET_SEQNO,LET_GROUPID,LET_DELINSUPD,LET_FILTER,LET_TABLENAME,LET_ORGKEY,LET_CONNECTEDMODE,LET_ALWAYSDOWNLOAD,LET_CLEARCONDITION,LET_MASTERTABLE,LET_CATEGORY) VALUES('BCDOCOBJWO_IPAD',261,0,3,'WCJOBS','R5DOCUMENTS',NULL,'-','-','AND DOC_RENTITY IN (''OBJ'',''LOC'') AND DOC_FLAG=''-''','R5EVENTS','EVNT');
INSERT INTO R5LISTENTITY(LET_DATAGRID,LET_SEQNO,LET_GROUPID,LET_DELINSUPD,LET_FILTER,LET_TABLENAME,LET_ORGKEY,LET_CONNECTEDMODE,LET_ALWAYSDOWNLOAD,LET_CLEARCONDITION,LET_MASTERTABLE,LET_CATEGORY) VALUES('OCWARRWO_IPAD',262,0,3,'WCJOBS','R5WARCOVERAGES',NULL,'-','-','AND 1=2','R5EVENTS','EVNT');
INSERT INTO R5LISTENTITY(LET_DATAGRID,LET_SEQNO,LET_GROUPID,LET_DELINSUPD,LET_FILTER,LET_TABLENAME,LET_ORGKEY,LET_CONNECTEDMODE,LET_ALWAYSDOWNLOAD,LET_CLEARCONDITION,LET_MASTERTABLE,LET_CATEGORY) VALUES('OCUSGDWO_IPAD',263,0,3,'WCJOBS','R5OBJUSAGEDEFS',NULL,'-','-','AND 1=2','R5EVENTS','EVNT');
INSERT INTO R5LISTENTITY(LET_DATAGRID,LET_SEQNO,LET_GROUPID,LET_DELINSUPD,LET_FILTER,LET_TABLENAME,LET_ORGKEY,LET_CONNECTEDMODE,LET_ALWAYSDOWNLOAD,LET_CLEARCONDITION,LET_MASTERTABLE,LET_CATEGORY) VALUES('OCSTRUWO_IPAD',264,0,3,'WCJOBS','R5STRUCTURES',NULL,'-','-','AND 1=2','R5EVENTS','EVNT');
INSERT INTO R5LISTENTITY(LET_DATAGRID,LET_SEQNO,LET_GROUPID,LET_DELINSUPD,LET_FILTER,LET_TABLENAME,LET_ORGKEY,LET_CONNECTEDMODE,LET_ALWAYSDOWNLOAD,LET_CLEARCONDITION,LET_MASTERTABLE,LET_CATEGORY) VALUES('OCREADWO_IPAD',265,0,3,'OCREAD','R5READINGS',NULL,'-','-','AND 1=2','R5EVENTS','EVNT');
INSERT INTO R5LISTENTITY(LET_DATAGRID,LET_SEQNO,LET_GROUPID,LET_DELINSUPD,LET_FILTER,LET_TABLENAME,LET_ORGKEY,LET_CONNECTEDMODE,LET_ALWAYSDOWNLOAD,LET_CLEARCONDITION,LET_MASTERTABLE,LET_CATEGORY) VALUES('OCEQLREFWO_IPAD',266,0,3,'WCJOBS','R5OBJLINEARREF',NULL,'-','-','AND 1=2','R5EVENTS','EVNT');
INSERT INTO R5LISTENTITY(LET_DATAGRID,LET_SEQNO,LET_GROUPID,LET_DELINSUPD,LET_FILTER,LET_TABLENAME,LET_ORGKEY,LET_CONNECTEDMODE,LET_ALWAYSDOWNLOAD,LET_CLEARCONDITION,LET_MASTERTABLE,LET_CATEGORY) VALUES('ICPONTWO_IPAD',267,0,3,'ICMONT','R5POINTS',NULL,'-','-','AND 1=2','R5EVENTS','EVNT');
INSERT INTO R5LISTENTITY(LET_DATAGRID,LET_SEQNO,LET_GROUPID,LET_DELINSUPD,LET_FILTER,LET_TABLENAME,LET_ORGKEY,LET_CONNECTEDMODE,LET_ALWAYSDOWNLOAD,LET_CLEARCONDITION,LET_MASTERTABLE,LET_CATEGORY) VALUES('ICMONTWO_IPAD',268,0,3,'ICMONT','R5ASPECTPOINTS',NULL,'-','-','AND 1=2','R5EVENTS','EVNT');
INSERT INTO R5LISTENTITY(LET_DATAGRID,LET_SEQNO,LET_GROUPID,LET_DELINSUPD,LET_FILTER,LET_TABLENAME,LET_ORGKEY,LET_CONNECTEDMODE,LET_ALWAYSDOWNLOAD,LET_CLEARCONDITION,LET_MASTERTABLE,LET_CATEGORY) VALUES('OCNOCFWO_IPAD',269,0,3,'OCNOCF','R5NONCONFORMITIES',NULL,'-','-','AND 1=2','R5EVENTS','EVNT');
INSERT INTO R5LISTENTITY(LET_DATAGRID,LET_SEQNO,LET_GROUPID,LET_DELINSUPD,LET_FILTER,LET_TABLENAME,LET_ORGKEY,LET_CONNECTEDMODE,LET_ALWAYSDOWNLOAD,LET_CLEARCONDITION,LET_MASTERTABLE,LET_CATEGORY) VALUES('OCNOCOWO_IPAD',270,0,3,'OCNOCF','R5NONCONFORMOBSERVATIONS',NULL,'-','-','AND 1=2','R5EVENTS','EVNT');
INSERT INTO R5LISTENTITY(LET_DATAGRID,LET_SEQNO,LET_GROUPID,LET_DELINSUPD,LET_FILTER,LET_TABLENAME,LET_ORGKEY,LET_CONNECTEDMODE,LET_ALWAYSDOWNLOAD,LET_CLEARCONDITION,LET_MASTERTABLE,LET_CATEGORY) VALUES('BCCOMNOCFWOOBJ_IPAD',271,0,3,'OCNOCF','R5ADDETAILS',NULL,'-','-','AND 1=2','R5EVENTS','EVNT');
INSERT INTO R5LISTENTITY(LET_DATAGRID,LET_SEQNO,LET_GROUPID,LET_DELINSUPD,LET_FILTER,LET_TABLENAME,LET_ORGKEY,LET_CONNECTEDMODE,LET_ALWAYSDOWNLOAD,LET_CLEARCONDITION,LET_MASTERTABLE,LET_CATEGORY) VALUES('BCCOMNOCOWOOBJ_IPAD',272,0,3,'OCNOCF','R5ADDETAILS',NULL,'-','-','AND 1=2','R5EVENTS','EVNT');
INSERT INTO R5LISTENTITY(LET_DATAGRID,LET_SEQNO,LET_GROUPID,LET_DELINSUPD,LET_FILTER,LET_TABLENAME,LET_ORGKEY,LET_CONNECTEDMODE,LET_ALWAYSDOWNLOAD,LET_CLEARCONDITION,LET_MASTERTABLE,LET_CATEGORY) VALUES('BCDOCNOCFWOOBJ_IPAD',273,0,3,'OCNOCF','R5DOCUMENTS',NULL,'-','-','AND 1=2','R5EVENTS','EVNT');
INSERT INTO R5LISTENTITY(LET_DATAGRID,LET_SEQNO,LET_GROUPID,LET_DELINSUPD,LET_FILTER,LET_TABLENAME,LET_ORGKEY,LET_CONNECTEDMODE,LET_ALWAYSDOWNLOAD,LET_CLEARCONDITION,LET_MASTERTABLE,LET_CATEGORY) VALUES('BCDOCNOCOWOOBJ_IPAD',274,0,3,'OCNOCF','R5DOCUMENTS',NULL,'-','-','AND 1=2','R5EVENTS','EVNT');

UPDATE R5LISTENTITY SET LET_CLEARCONDITION = 'AND DOC_RENTITY IN (''OBJ'',''LOC'') AND IFNULL(DOC_FLAG,''+'')<>''-''' WHERE LET_DATAGRID='BCDOCOBJ_IPAD';
UPDATE R5LISTENTITY SET LET_CLEARCONDITION = 'AND IFNULL(WCV_FLAG,''+'')<>''-''' WHERE LET_DATAGRID='OCWARR';
UPDATE R5LISTENTITY SET LET_CLEARCONDITION = 'AND IFNULL(OUD_FLAG,''+'')<>''-''' WHERE LET_DATAGRID='OCUSGD_IPAD';
UPDATE R5LISTENTITY SET LET_CLEARCONDITION = 'AND IFNULL(STC_FLAG,''+'')<>''-''' WHERE LET_DATAGRID='OCSTRU_FULL_IPAD';
UPDATE R5LISTENTITY SET LET_CLEARCONDITION = 'AND IFNULL(REA_FLAG,''+'')<>''-''' WHERE LET_DATAGRID='OCREAD_IPAD';
UPDATE R5LISTENTITY SET LET_CLEARCONDITION = 'AND IFNULL(LRF_FLAG,''+'')<>''-''' WHERE LET_DATAGRID='OCEQLREF_IPAD';
UPDATE R5LISTENTITY SET LET_CLEARCONDITION = 'AND IFNULL(POI_FLAG,''+'')<>''-'' AND POI_OBTYPE<>''C''' WHERE LET_DATAGRID='ICPONT';
UPDATE R5LISTENTITY SET LET_CLEARCONDITION = 'AND IFNULL(APO_FLAG,''+'')<>''-'' AND APO_OBTYPE<>''C''' WHERE LET_DATAGRID='ICMONT';
UPDATE R5LISTENTITY SET LET_CLEARCONDITION = 'AND NCF_HISTORYFLAG=''+'' AND IFNULL(NCF_FLAG,''+'')<>''-''' WHERE LET_DATAGRID='OCNOCF_IPAD';
UPDATE R5LISTENTITY SET LET_CLEARCONDITION = 'AND NCO_HISTORYFLAG=''+'' AND IFNULL(NCO_FLAG,''+'')<>''-''' WHERE LET_DATAGRID='OCNOCO_IPAD';
UPDATE R5LISTENTITY SET LET_CLEARCONDITION = 'AND ADD_RENTITY=''NOCF'' AND IFNULL(ADD_FLAG,''+'')<>''-''' WHERE LET_DATAGRID='BCCOMOBJNOCF_IPAD';
UPDATE R5LISTENTITY SET LET_CLEARCONDITION = 'AND ADD_RENTITY=''NOCO'' AND IFNULL(ADD_FLAG,''+'')<>''-''' WHERE LET_DATAGRID='BCCOMOBJNOCO_IPAD';
UPDATE R5LISTENTITY SET LET_CLEARCONDITION = 'AND DOC_RENTITY=''NOCF'' AND IFNULL(DOC_FLAG,''+'')<>''-''' WHERE LET_DATAGRID='BCDOCOBJNOCF_IPAD';
UPDATE R5LISTENTITY SET LET_CLEARCONDITION = 'AND DOC_RENTITY=''NOCO'' AND IFNULL(DOC_FLAG,''+'')<>''-''' WHERE LET_DATAGRID='BCDOCOBJNOCO_IPAD';
UPDATE R5LISTENTITY SET LET_CLEARCONDITION = 'AND OBJ_OBRTYPE IN (''C'',''I'')' WHERE LET_DATAGRID='OCCATLOC_FULL_IPAD';
UPDATE R5LISTENTITY SET LET_CLEARCONDITION = 'AND OBJ_OBRTYPE IN(''A'',''S'',''P'',''L'') AND IFNULL(OBJ_WOFLAG,'''') = ''-''' WHERE LET_DATAGRID='OCOBJC_FULL_IPAD';

DELETE FROM R5LISTENTITY WHERE LET_DATAGRID='BCDOCOBJWO_MEC_IPAD';
DELETE FROM R5LISTENTITY WHERE LET_DATAGRID='BCCOMOBJWO_MEC_IPAD';
UPDATE R5LISTENTITY SET LET_DATAGRID = 'SCPART_IPAD' WHERE LET_DATAGRID='SCPART';

CREATE TABLE R5OBJECTSWO (
OBJ_CODE                NVARCHAR (30)   NOT NULL,
OBJ_ORG                 NVARCHAR (15)   NOT NULL,
OBJ_DESC                NVARCHAR (80),
OBJ_OBTYPE              NVARCHAR (4),
OBJ_OBRTYPE             NVARCHAR (4),
OBJ_STATUS              NVARCHAR (4),
OBJ_RSTATUS             NVARCHAR (4),
OBJ_MRC                 NVARCHAR (15),
OBJ_CLASS               NVARCHAR (8),
OBJ_CLASS_ORG           NVARCHAR (15),
OBJ_CATEGORY            NVARCHAR (30),
OBJ_MANUFACT            NVARCHAR (45),
OBJ_LOCATION            NVARCHAR (30),
OBJ_LOCATION_ORG        NVARCHAR (15),
OBJ_PERSON              NVARCHAR (15),
OBJ_VALUE               NUMERIC,
OBJ_SERIALNO            NVARCHAR (30),
OBJ_MANUFACTMODEL       NVARCHAR (30),
OBJ_COMMISS             DATETIME,
OBJ_CRITICALITY         NVARCHAR (8),
OBJ_COSTCODE            NVARCHAR (30),
OBJ_PART                NVARCHAR (30),
OBJ_STORE               NVARCHAR (15),
OBJ_LOT                 NVARCHAR (12),
OBJ_PART_ORG            NVARCHAR (15),
OBJ_DORMSTART           DATETIME,
OBJ_DORMEND             DATETIME,
OBJ_SYSLEVEL            NVARCHAR (30),
OBJ_ASMLEVEL            NVARCHAR (30),
OBJ_COMPLEVEL           NVARCHAR (30),
OBJ_SAFETY              NCHAR (1),
OBJ_PRIMARYUOM          NVARCHAR (30),
OBJ_BIN                 NVARCHAR (15),
OBJ_NOTUSED             NCHAR (1),
OBJ_USERTAG             INTEGER         DEFAULT (0),
OBJ_CGMP                NCHAR (1),
OBJ_GISOBJID            NUMERIC (38, 0),
OBJ_ADDRESS             NVARCHAR (2000),
OBJ_UDFCHAR01           NVARCHAR (80),
OBJ_UDFCHAR02           NVARCHAR (80),
OBJ_UDFCHAR03           NVARCHAR (80),
OBJ_UDFCHAR04           NVARCHAR (80),
OBJ_UDFCHAR05           NVARCHAR (80),
OBJ_UDFCHAR06           NVARCHAR (80),
OBJ_UDFCHAR07           NVARCHAR (80),
OBJ_UDFCHAR08           NVARCHAR (80),
OBJ_UDFCHAR09           NVARCHAR (80),
OBJ_UDFCHAR10           NVARCHAR (80),
OBJ_UDFCHAR11           NVARCHAR (80),
OBJ_UDFCHAR12           NVARCHAR (80),
OBJ_UDFCHAR13           NVARCHAR (80),
OBJ_UDFCHAR14           NVARCHAR (80),
OBJ_UDFCHAR15           NVARCHAR (80),
OBJ_UDFCHAR16           NVARCHAR (80),
OBJ_UDFCHAR17           NVARCHAR (80),
OBJ_UDFCHAR18           NVARCHAR (80),
OBJ_UDFCHAR19           NVARCHAR (80),
OBJ_UDFCHAR20           NVARCHAR (80),
OBJ_UDFCHAR21           NVARCHAR (80),
OBJ_UDFCHAR22           NVARCHAR (80),
OBJ_UDFCHAR23           NVARCHAR (80),
OBJ_UDFCHAR24           NVARCHAR (80),
OBJ_UDFCHAR25           NVARCHAR (80),
OBJ_UDFCHAR26           NVARCHAR (80),
OBJ_UDFCHAR27           NVARCHAR (80),
OBJ_UDFCHAR28           NVARCHAR (80),
OBJ_UDFCHAR29           NVARCHAR (80),
OBJ_UDFCHAR30           NVARCHAR (80),
OBJ_UDFCHAR31           NVARCHAR (80),
OBJ_UDFCHAR32           NVARCHAR (80),
OBJ_UDFCHAR33           NVARCHAR (80),
OBJ_UDFCHAR34           NVARCHAR (80),
OBJ_UDFCHAR35           NVARCHAR (80),
OBJ_UDFCHAR36           NVARCHAR (80),
OBJ_UDFCHAR37           NVARCHAR (80),
OBJ_UDFCHAR38           NVARCHAR (80),
OBJ_UDFCHAR39           NVARCHAR (80),
OBJ_UDFCHAR40           NVARCHAR (80),
OBJ_UDFCHAR41           NVARCHAR (80),
OBJ_UDFCHAR42           NVARCHAR (80),
OBJ_UDFCHAR43           NVARCHAR (80),
OBJ_UDFCHAR44           NVARCHAR (80),
OBJ_UDFCHAR45           NVARCHAR (80),
OBJ_UDFNUM01            NUMERIC (24, 6),
OBJ_UDFNUM02            NUMERIC (24, 6),
OBJ_UDFNUM03            NUMERIC (24, 6),
OBJ_UDFNUM04            NUMERIC (24, 6),
OBJ_UDFNUM05            NUMERIC (24, 6),
OBJ_UDFNUM06            NUMERIC (24, 6),
OBJ_UDFNUM07            NUMERIC (24, 6),
OBJ_UDFNUM08            NUMERIC (24, 6),
OBJ_UDFNUM09            NUMERIC (24, 6),
OBJ_UDFNUM10            NUMERIC (24, 6),
OBJ_UDFDATE01           DATETIME,
OBJ_UDFDATE02           DATETIME,
OBJ_UDFDATE03           DATETIME,
OBJ_UDFDATE04           DATETIME,
OBJ_UDFDATE05           DATETIME,
OBJ_UDFDATE06           DATETIME,
OBJ_UDFDATE07           DATETIME,
OBJ_UDFDATE08           DATETIME,
OBJ_UDFDATE09           DATETIME,
OBJ_UDFDATE10           DATETIME,
OBJ_UDFCHKBOX01         NVARCHAR (1),
OBJ_UDFCHKBOX02         NVARCHAR (1),
OBJ_UDFCHKBOX03         NVARCHAR (1),
OBJ_UDFCHKBOX04         NVARCHAR (1),
OBJ_UDFCHKBOX05         NVARCHAR (1),
OBJ_UDFCHKBOX06         NVARCHAR (1),
OBJ_UDFCHKBOX07         NVARCHAR (1),
OBJ_UDFCHKBOX08         NVARCHAR (1),
OBJ_UDFCHKBOX09         NVARCHAR (1),
OBJ_UDFCHKBOX10         NVARCHAR (1),
DMLTYPE                 NCHAR (1)       DEFAULT ('N'),
OBJ_XCOORDINATE         REAL,
OBJ_YCOORDINATE         REAL,
obj_position            VARCHAR (30),
obj_position_org        VARCHAR (15),
OBJ_COMPLOCATION        NVARCHAR (80),
OBJ_PROFILE             NVARCHAR (30),
OBJ_PROFILE_ORG         NVARCHAR (15),
OBJ_PARENT              NVARCHAR (30),
OBJ_PARENT_ORG          NVARCHAR (15),
OBJ_GISLAYER            NVARCHAR (60),
OBJ_GISMAP              NVARCHAR (30),
OBJ_GISMAP_ORG          NVARCHAR (15),
OBJ_XLOCATION           NUMERIC (24, 6),
OBJ_YLOCATION           NUMERIC (24, 6),
OBJ_LENGTH              NUMERIC (24, 6),
OBJ_LENGTHUOM           NVARCHAR (10),
OBJ_LINEARREFUOM        NVARCHAR (10),
OBJ_LINEARREFPRECISION  NUMERIC (2),
OBJ_GEOREF              NVARCHAR (1000),
OBJ_INSPECTIONDIRECTION NVARCHAR (8),
OBJ_FLOW                NVARCHAR (8),
OBJ_GISPROFILE          NVARCHAR (1),
OBJ_LINKGISWO           NVARCHAR (1),
OBJ_GIS_UPDATECOUNT     NUMERIC (24, 6),
OBJ_GIS_SYNCCOUNT       NUMERIC (24, 6),
OBJ_IMAGEURL            NVARCHAR (1000),
OBJ_PRIMARYSYSTEM       NVARCHAR (30),
OBJ_PRIMARYSYSTEM_ORG   NVARCHAR (15),
OBJ_FROMPOINT           NUMERIC (24, 6),
OBJ_TOPOINT             NUMERIC (24, 6),
OBJ_DIRECTION           NVARCHAR (8),
OBJ_LINEAROBJTYPE       NVARCHAR (8),
OBJ_LINEARCOSTWEIGHT    NUMERIC (6, 0),
OBJ_ESUSER              NVARCHAR (40),
OBJ_ESPASSWORD          NVARCHAR (12),
OBJ_ESTYPE              NVARCHAR (8),
OBJ_ESCERTNUM           NVARCHAR (20),
OBJ_ESCERTTYPE          NVARCHAR (8),
OBJ_EXTERNALDATE        DATETIME,
OBJ_GISOBJID_TEMP       NVARCHAR (30),
OBJ_TOLERANCE_SIZE      NUMERIC (24, 6),
OBJ_CONDITIONSCORE      NUMERIC (24, 6),
OBJ_CONDITIONINDEX      NVARCHAR (8),
OBJ_UDFNOTE01           NVARCHAR (2000),
OBJ_UDFNOTE02           NVARCHAR (2000),
OBJ_ALIAS               VARCHAR (30),
OBJ_YEARBUILT           NUMERIC (4, 0),
OBJ_SERVICELIFE         NUMERIC (3, 0),
OBJ_OPERATIONALSTATUS   VARCHAR (4),
OBJ_GISGDBPATH          VARCHAR (500),
OBJ_GISLAYERSERVICEPATH VARCHAR (500),
OBJ_FLAG                NCHAR (1),
OBJ_OBJFLAG             NCHAR (1)       DEFAULT ('-'),
OBJ_WOFLAG              NCHAR (1)       DEFAULT ('+'),
PRIMARY KEY (
OBJ_CODE,
OBJ_ORG
)
);

INSERT INTO R5SYSCOLUMNS VALUES ('R5OBJECTSWO', 'OBJ_CODE','+', NULL, NULL, NULL, NULL, NULL, NULL, 'N');
INSERT INTO R5SYSCOLUMNS VALUES ('R5OBJECTSWO', 'OBJ_ORG','+', NULL, NULL, NULL, NULL, NULL, NULL, 'N');
