﻿// JScript File

var DeleteConfirmation = 'Delete the selected record(s)?';
var NotSelectedForDelete = 'Please select record(s) to delete';

var UndeleteConfirmation = 'Undelete the selected record(s)?';
var NotSelectedForUndelete = 'Please select record(s) to undelete';

var AssignDefaultConfirmation = 'Assign Default to the selected record(s)?';
var NotSelectedForDefaultAssignment = 'Please select record(s) to assign default values';

var SaveChangesConfirmation = 'Save the modified record(s)?';

//The below 2 variables determine whether the column is displayed or not in the grid 
var SHOWCOLUMN = "1";
var HIDECOLUMN = "0";

/*There Variables are used as constants to determine what action has been performed on the grid
    RECORD_NOACTION - Takes place when the grid is loaded and no action is performed on the record
    RECORD_ADD - When a new row is added to the grid
    RECORD_EDIT - When existing row is edited
    RECORD_DELETE - When a record is deleted
*/
var RECORD_NOACTION = 0;
var RECORD_ADD = 1;
var RECORD_EDIT = 2;
var RECORD_DELETE = 3;

//The below 2 variables denote the 2 modes of each row like 'Normal' and 'Search'
var ROWMODE_NORMAL = "0";
var ROWMODE_SEARCH = "1";

// The below 5 variables denote the various types of columns generated in the table dynamically created
var COLUMN_DATA = "0";
var COLUMN_LINKTYPE = "1";
var COLUMN_LINKTYPE_PASSINGPARAMETERS = "2";
var COLUMN_CHECKBOXTYPE = "3";
var COLUMN_CHECKBOXTYPE_PASSINGPARAMETERS = "4";

//The below variables are used to store the values for various alignment positions that can be given
var ALIGN_LEFT = "left";
var ALIGN_RIGHT = "right";
var ALIGN_CENTER = "center";

//
var VALUEMUSTBENUMERIC = "Value must be numeric";
var VALUEMUSTBECHARACTER = "Only alphabets allowed";
var VALUEMUSTBEDATE = 'Value must be date';
var VALUEREQUIRED = 'Value required';