
DELETE FROM oneit_constant WHERE constant_category_id = 20002;
DELETE FROM oneit_constant_category WHERE object_id = 20002;
INSERT INTO oneit_constant_category 
(object_id, name, description, object_last_updated_date, object_created_date)
VALUES
(20002, 'FieldNames', 'FieldNames', getdate(), getdate());


    
    INSERT INTO oneit_constant 
    (object_id, 
     constant_category_id, 
     name, 
     description, 
     value, 
     validation, 
     object_last_updated_date, 
     object_created_date)
    VALUES
    (25001, 
     20002, 
     'CLASS.FIELD', 
     'CLASS.FIELD', 
     'Field name', 
     '<NODE factory="Participant" class="oneit.utils.parsers.StringParser"/>', 
     getdate(), 
     getdate());

    
    INSERT INTO oneit_constant 
    (object_id, 
     constant_category_id, 
     name, 
     description, 
     value, 
     validation, 
     object_last_updated_date, 
     object_created_date)
    VALUES
    (25002, 
     20002, 
     'CLASS.FIELD$mode', 
     'CLASS.FIELD$mode', 
     'Field name', 
     '<NODE factory="Participant" class="oneit.utils.parsers.StringParser"/>', 
     getdate(), 
     getdate());

    
    INSERT INTO oneit_constant 
    (object_id, 
     constant_category_id, 
     name, 
     description, 
     value, 
     validation, 
     object_last_updated_date, 
     object_created_date)
    VALUES
    (25003, 
     20002, 
     'Debtor.Contact', 
     'Debtor.Contact', 
     'Contat Name', 
     '<NODE factory="Participant" class="oneit.utils.parsers.StringParser"/>', 
     getdate(), 
     getdate());

    
    INSERT INTO oneit_constant 
    (object_id, 
     constant_category_id, 
     name, 
     description, 
     value, 
     validation, 
     object_last_updated_date, 
     object_created_date)
    VALUES
    (25004, 
     20002, 
     'Debtor.CompanyName', 
     'Debtor.CompanyName', 
     'Company', 
     '<NODE factory="Participant" class="oneit.utils.parsers.StringParser"/>', 
     getdate(), 
     getdate());

    
    INSERT INTO oneit_constant 
    (object_id, 
     constant_category_id, 
     name, 
     description, 
     value, 
     validation, 
     object_last_updated_date, 
     object_created_date)
    VALUES
    (25005, 
     20002, 
     'Debtor.Address1', 
     'Debtor.Address1', 
     'Address 1', 
     '<NODE factory="Participant" class="oneit.utils.parsers.StringParser"/>', 
     getdate(), 
     getdate());

    
    INSERT INTO oneit_constant 
    (object_id, 
     constant_category_id, 
     name, 
     description, 
     value, 
     validation, 
     object_last_updated_date, 
     object_created_date)
    VALUES
    (25006, 
     20002, 
     'Debtor.Address2', 
     'Debtor.Address2', 
     'Address 2', 
     '<NODE factory="Participant" class="oneit.utils.parsers.StringParser"/>', 
     getdate(), 
     getdate());

    
    INSERT INTO oneit_constant 
    (object_id, 
     constant_category_id, 
     name, 
     description, 
     value, 
     validation, 
     object_last_updated_date, 
     object_created_date)
    VALUES
    (25007, 
     20002, 
     'Debtor.SUBURB', 
     'Debtor.SUBURB', 
     'Suburb', 
     '<NODE factory="Participant" class="oneit.utils.parsers.StringParser"/>', 
     getdate(), 
     getdate());

    
    INSERT INTO oneit_constant 
    (object_id, 
     constant_category_id, 
     name, 
     description, 
     value, 
     validation, 
     object_last_updated_date, 
     object_created_date)
    VALUES
    (25008, 
     20002, 
     'Debtor.POSTCODE', 
     'Debtor.POSTCODE', 
     'Postcode', 
     '<NODE factory="Participant" class="oneit.utils.parsers.StringParser"/>', 
     getdate(), 
     getdate());

    
    INSERT INTO oneit_constant 
    (object_id, 
     constant_category_id, 
     name, 
     description, 
     value, 
     validation, 
     object_last_updated_date, 
     object_created_date)
    VALUES
    (25009, 
     20002, 
     'Debtor.TERMS', 
     'Debtor.TERMS', 
     'Payment Terms', 
     '<NODE factory="Participant" class="oneit.utils.parsers.StringParser"/>', 
     getdate(), 
     getdate());

    
    INSERT INTO oneit_constant 
    (object_id, 
     constant_category_id, 
     name, 
     description, 
     value, 
     validation, 
     object_last_updated_date, 
     object_created_date)
    VALUES
    (25010, 
     20002, 
     'Invoice.InvoiceNumber', 
     'Invoice.InvoiceNumber', 
     'Invoice Number', 
     '<NODE factory="Participant" class="oneit.utils.parsers.StringParser"/>', 
     getdate(), 
     getdate());

    
    INSERT INTO oneit_constant 
    (object_id, 
     constant_category_id, 
     name, 
     description, 
     value, 
     validation, 
     object_last_updated_date, 
     object_created_date)
    VALUES
    (25011, 
     20002, 
     'Invoice.BalanceDue', 
     'Invoice.BalanceDue', 
     'Balance Due', 
     '<NODE factory="Participant" class="oneit.utils.parsers.StringParser"/>', 
     getdate(), 
     getdate());

    
    INSERT INTO oneit_constant 
    (object_id, 
     constant_category_id, 
     name, 
     description, 
     value, 
     validation, 
     object_last_updated_date, 
     object_created_date)
    VALUES
    (25012, 
     20002, 
     'Invoice.StatusLastChanged', 
     'Invoice.StatusLastChanged', 
     'Status Last Changed', 
     '<NODE factory="Participant" class="oneit.utils.parsers.StringParser"/>', 
     getdate(), 
     getdate());

    
    INSERT INTO oneit_constant 
    (object_id, 
     constant_category_id, 
     name, 
     description, 
     value, 
     validation, 
     object_last_updated_date, 
     object_created_date)
    VALUES
    (25013, 
     20002, 
     'Invoice.DueDate', 
     'Invoice.DueDate', 
     'Due Date', 
     '<NODE factory="Participant" class="oneit.utils.parsers.StringParser"/>', 
     getdate(), 
     getdate());

    
    INSERT INTO oneit_constant 
    (object_id, 
     constant_category_id, 
     name, 
     description, 
     value, 
     validation, 
     object_last_updated_date, 
     object_created_date)
    VALUES
    (25014, 
     20002, 
     'Invoice.InvoiceStatus', 
     'Invoice.InvoiceStatus', 
     'Invoice Status', 
     '<NODE factory="Participant" class="oneit.utils.parsers.StringParser"/>', 
     getdate(), 
     getdate());

    
    INSERT INTO oneit_constant 
    (object_id, 
     constant_category_id, 
     name, 
     description, 
     value, 
     validation, 
     object_last_updated_date, 
     object_created_date)
    VALUES
    (25015, 
     20002, 
     'InvoiceTemplate.StartNext', 
     'InvoiceTemplate.StartNext', 
     'Start Next', 
     '<NODE factory="Participant" class="oneit.utils.parsers.StringParser"/>', 
     getdate(), 
     getdate());

    
    INSERT INTO oneit_constant 
    (object_id, 
     constant_category_id, 
     name, 
     description, 
     value, 
     validation, 
     object_last_updated_date, 
     object_created_date)
    VALUES
    (25016, 
     20002, 
     'InvoiceTemplate.MonthPeriod', 
     'InvoiceTemplate.MonthPeriod', 
     'Month Period', 
     '<NODE factory="Participant" class="oneit.utils.parsers.StringParser"/>', 
     getdate(), 
     getdate());

    
    INSERT INTO oneit_constant 
    (object_id, 
     constant_category_id, 
     name, 
     description, 
     value, 
     validation, 
     object_last_updated_date, 
     object_created_date)
    VALUES
    (25017, 
     20002, 
     'InvoiceTemplate.RaiseInAdvance', 
     'InvoiceTemplate.RaiseInAdvance', 
     'Raise In Advance', 
     '<NODE factory="Participant" class="oneit.utils.parsers.StringParser"/>', 
     getdate(), 
     getdate());

    
    INSERT INTO oneit_constant 
    (object_id, 
     constant_category_id, 
     name, 
     description, 
     value, 
     validation, 
     object_last_updated_date, 
     object_created_date)
    VALUES
    (25018, 
     20002, 
     'InvoiceTemplate.BalanceDue', 
     'InvoiceTemplate.BalanceDue', 
     'Balance Due', 
     '<NODE factory="Participant" class="oneit.utils.parsers.StringParser"/>', 
     getdate(), 
     getdate());

DELETE FROM oneit_constant WHERE constant_category_id = 20003;
DELETE FROM oneit_constant_category WHERE object_id = 20003;
INSERT INTO oneit_constant_category 
(object_id, name, description, object_last_updated_date, object_created_date)
VALUES
(20003, 'GUILabels', 'GUILabels', getdate(), getdate());


    
    INSERT INTO oneit_constant 
    (object_id, 
     constant_category_id, 
     name, 
     description, 
     value, 
     validation, 
     object_last_updated_date, 
     object_created_date)
    VALUES
    (27001, 
     20003, 
     'SampleLabel', 
     'SampleLabel', 
     'SampleValue', 
     '<NODE factory="Participant" class="oneit.utils.parsers.StringParser"/>', 
     getdate(), 
     getdate());

DELETE FROM oneit_constant WHERE constant_category_id = 20004;
DELETE FROM oneit_constant_category WHERE object_id = 20004;
INSERT INTO oneit_constant_category 
(object_id, name, description, object_last_updated_date, object_created_date)
VALUES
(20004, 'Message', 'Message', getdate(), getdate());


    
    INSERT INTO oneit_constant 
    (object_id, 
     constant_category_id, 
     name, 
     description, 
     value, 
     validation, 
     object_last_updated_date, 
     object_created_date)
    VALUES
    (29001, 
     20004, 
     '#', 
     '#', 
     'Please enter a valid ${name}', 
     '<NODE factory="Participant" class="oneit.utils.parsers.StringParser"/>', 
     getdate(), 
     getdate());

    
    INSERT INTO oneit_constant 
    (object_id, 
     constant_category_id, 
     name, 
     description, 
     value, 
     validation, 
     object_last_updated_date, 
     object_created_date)
    VALUES
    (29002, 
     20004, 
     '#mandatory', 
     '#mandatory', 
     'Please enter a value for ${name}', 
     '<NODE factory="Participant" class="oneit.utils.parsers.StringParser"/>', 
     getdate(), 
     getdate());

    
    INSERT INTO oneit_constant 
    (object_id, 
     constant_category_id, 
     name, 
     description, 
     value, 
     validation, 
     object_last_updated_date, 
     object_created_date)
    VALUES
    (29003, 
     20004, 
     '#tooLong', 
     '#tooLong', 
     'The value for ${name} is too long', 
     '<NODE factory="Participant" class="oneit.utils.parsers.StringParser"/>', 
     getdate(), 
     getdate());

    
    INSERT INTO oneit_constant 
    (object_id, 
     constant_category_id, 
     name, 
     description, 
     value, 
     validation, 
     object_last_updated_date, 
     object_created_date)
    VALUES
    (29004, 
     20004, 
     '#invalidFormat', 
     '#invalidFormat', 
     'The ${name} is not valid', 
     '<NODE factory="Participant" class="oneit.utils.parsers.StringParser"/>', 
     getdate(), 
     getdate());

    
    INSERT INTO oneit_constant 
    (object_id, 
     constant_category_id, 
     name, 
     description, 
     value, 
     validation, 
     object_last_updated_date, 
     object_created_date)
    VALUES
    (29005, 
     20004, 
     'CLASS.FIELD#error', 
     'CLASS.FIELD#error', 
     'Message if error occurs against FIELD on CLASS', 
     '<NODE factory="Participant" class="oneit.utils.parsers.StringParser"/>', 
     getdate(), 
     getdate());

    
    INSERT INTO oneit_constant 
    (object_id, 
     constant_category_id, 
     name, 
     description, 
     value, 
     validation, 
     object_last_updated_date, 
     object_created_date)
    VALUES
    (29006, 
     20004, 
     'CLASS.FIELD', 
     'CLASS.FIELD', 
     'Message if any other error occurs against FIELD on CLASS', 
     '<NODE factory="Participant" class="oneit.utils.parsers.StringParser"/>', 
     getdate(), 
     getdate());

    
    INSERT INTO oneit_constant 
    (object_id, 
     constant_category_id, 
     name, 
     description, 
     value, 
     validation, 
     object_last_updated_date, 
     object_created_date)
    VALUES
    (29007, 
     20004, 
     '#greater0', 
     '#greater0', 
     'The value for ${name} must be greater than 0', 
     '<NODE factory="Participant" class="oneit.utils.parsers.StringParser"/>', 
     getdate(), 
     getdate());

    
    INSERT INTO oneit_constant 
    (object_id, 
     constant_category_id, 
     name, 
     description, 
     value, 
     validation, 
     object_last_updated_date, 
     object_created_date)
    VALUES
    (29008, 
     20004, 
     '#tooShort', 
     '#tooShort', 
     'The value for ${name} is too short', 
     '<NODE factory="Participant" class="oneit.utils.parsers.StringParser"/>', 
     getdate(), 
     getdate());

    
    INSERT INTO oneit_constant 
    (object_id, 
     constant_category_id, 
     name, 
     description, 
     value, 
     validation, 
     object_last_updated_date, 
     object_created_date)
    VALUES
    (29009, 
     20004, 
     '#regex', 
     '#regex', 
     'The ${name} is not valid', 
     '<NODE factory="Participant" class="oneit.utils.parsers.StringParser"/>', 
     getdate(), 
     getdate());

    
    INSERT INTO oneit_constant 
    (object_id, 
     constant_category_id, 
     name, 
     description, 
     value, 
     validation, 
     object_last_updated_date, 
     object_created_date)
    VALUES
    (29010, 
     20004, 
     '#tooBig', 
     '#tooBig', 
     'The value of ${name} is too large', 
     '<NODE factory="Participant" class="oneit.utils.parsers.StringParser"/>', 
     getdate(), 
     getdate());

    
    INSERT INTO oneit_constant 
    (object_id, 
     constant_category_id, 
     name, 
     description, 
     value, 
     validation, 
     object_last_updated_date, 
     object_created_date)
    VALUES
    (29011, 
     20004, 
     '#tooSmall', 
     '#tooSmall', 
     'The value of ${name} is too small', 
     '<NODE factory="Participant" class="oneit.utils.parsers.StringParser"/>', 
     getdate(), 
     getdate());

    
    INSERT INTO oneit_constant 
    (object_id, 
     constant_category_id, 
     name, 
     description, 
     value, 
     validation, 
     object_last_updated_date, 
     object_created_date)
    VALUES
    (29012, 
     20004, 
     '#illegalStatus', 
     '#illegalStatus', 
     'The status you have chosen is illegal.', 
     '<NODE factory="Participant" class="oneit.utils.parsers.StringParser"/>', 
     getdate(), 
     getdate());

DELETE FROM oneit_constant WHERE constant_category_id = 20005;
DELETE FROM oneit_constant_category WHERE object_id = 20005;
INSERT INTO oneit_constant_category 
(object_id, name, description, object_last_updated_date, object_created_date)
VALUES
(20005, 'Enums', 'Enums', getdate(), getdate());


    
    INSERT INTO oneit_constant 
    (object_id, 
     constant_category_id, 
     name, 
     description, 
     value, 
     validation, 
     object_last_updated_date, 
     object_created_date)
    VALUES
    (31001, 
     20005, 
     'CustomerType.XXXXX', 
     'CustomerType.XXXXX', 
     'Account Name', 
     '<NODE factory="Participant" class="oneit.utils.parsers.StringParser"/>', 
     getdate(), 
     getdate());
