
window.dynamicConditionalOperators = [
    { text: ">", enText: "GreaterThan", value: 1, color: "" },
    { text: "<", enText: "LessThan", value: 2, color: "" },
    { text: "=", enText: "Equal", value: 3, color: "" },
    { text: "<>", enText: "Unequal", value: 4, color: "" },
    { text: ">=", enText: "GreaterThanOrEqual", value: 5, color: "" },
    { text: "<=", enText: "LessThanOrEqual", value: 6, color: "" },
    { text: "بدون مقدار", enText: "IsNull", value: 7, color: "" },
    { text: "دارای مقدار", enText: "IsNotNull", value: 8, color: "" },
    { text: "درست", enText: "IsTrue", value: 9, color: "" },
    { text: "نادرست", enText: "IsFalse", value: 10, color: "" }
];
window.columnFunctions = [
    { text: "تعداد", enText: "Count", value: 1, color: "" },
    { text: "مجموع", enText: "Sum", value: 2, color: "" },
    { text: "میانگین", enText: "Average", value: 3, color: "" }
];
window.conditionalPhraseTypes = [
    { text: "فرمول", enText: "Formula", value: 0, color: "" },
    { text: "ستون جدول", enText: "TableColumn", value: 1, color: "" },
    { text: "تاریخ", enText: "Date", value: 2, color: "" },
    { text: "عبارت متنی", enText: "Text", value: 3, color: "" },
    { text: "عدد ثابت", enText: "Number", value: 4, color: "" }
];
window.destinationCalculationTypes = [
    { text: "ایجاد", enText: "Create", value: 1 },
    { text: "مقداردهی", enText: "SetValue", value: 2}
];
window.computeTypes = [
    { text: "فرمول", enText: "Formula", value: 0 },
    { text: "انتخاب ستون ها", enText: "Column", value: 1 }
];
window.calculationValueTypes = [
    { text: "شماره ردیف", enText: "RowNumber", value: 1,dataTypes:[0] },
    { text: "تعداد ردیف", enText: "RowsCount", value: 2, dataTypes: [0]  },
    { text: "ستون جدول مبدا", enText: "SourceTableColumn", value: 3, dataTypes: [0, 1, 2, 3, 4, 5, 7]  },
    { text: "ستون جدول محاسبات", enText: "CalculationtableColumn", value: 4, dataTypes: [0, 1, 2, 3, 4, 5, 7] },
    { text: "جمع", enText: "Sum", value: 5, dataTypes: [0, 2, 3]  },
    { text: "میانگین", enText: "Average", value: 6, dataTypes: [0, 2, 3]  },
    { text: "مقدار ثابت", enText: "Value", value: 7, dataTypes: [0, 1, 2, 3, 4, 5, 7]  },
    { text: "کمترین", enText: "Min", value: 8, dataTypes: [0, 2, 3]  },
    { text: "بیشترین", enText: "Max", value: 9, dataTypes: [0, 2, 3]  }
];
window.documentCalculationStates = [
    { text: "محاسبه نشده", enText: "NoCalculation", value: 0, color: "blue" },
    { text: "محاسبه موفق", enText: "Successful", value: 1, color: "green" },
    { text: "محاسبه ناموفق", enText: "Failed", value: 2, color: "red" }
];
window.apportionAccountTypes = [
    { text: "معین مقصد", enText: "DestinationAccount", value: 0},
    { text: "معین مبدا", enText: "SourceAccount", value: 1 }
];
window.dynamicdocumentModelRes = {
    id: {
        fa: '#',
        colName: 'id',
        tablecol: false,
        visibleCol: false,
        sortDir: "None",
        alias: null,
        type: "template",
        templateName: "checkbox-table-template"
    },
    priority: {
        fa: 'اولویت',
        colName: 'priority',
        tablecol: true,
        visibleCol: true,
        sortDir: "Ascending",
        alias: null,
        size: 6,
        type: "string"
    },
    code: {
        fa: 'شماره',
        colName: 'code',
        tablecol: true,
        visibleCol: true,
        sortDir: "None",
        alias: null,
        size: 6,
        type: "string"
    },
    title: {
        fa: 'عنوان',
        colName: 'title',
        tablecol: true,
        visibleCol: true,
        sortDir: "None",
        alias: null,
        type: "string",
        popup: true
    },
    documentCalculationState: {
        fa: 'وضعیت اجرا',
        colName: 'documentCalculationState',
        tablecol: true,
        visibleCol: true,
        sortDir: "None",
        alias: null,
        type: "label"
    },
    description: {
        fa: 'شرح',
        colName: 'description',
        tablecol: true,
        visibleCol: false,
        sortDir: "None",
        alias: null,
        type: "string"
    },
    dynamicDocumentType: {
        fa: 'نوع',
        colName: 'dynamicDocumentType',
        tablecol: true,
        visibleCol: true,
        sortDir: "None",
        alias: null,
        groupBy: true,
        groupDir: "Ascending",
        type: "enum"
    },
    stateType: {
        fa: 'وضعیت',
        colName: 'stateType',
        tablecol: true,
        visibleCol: true,
        sortDir: "None",
        alias: null,
        type: "stateSwitch"
    },
   
    timeCreated: {
        fa: 'زمان ایجاد',
        colName: 'timeCreated',
        tablecol: true,
        visibleCol: false,
        sortDir: "None",
        alias: null,
        type: "pdate"
    },
    createByUser: {
        fa: 'کاربر ایجاد کننده',
        colName: 'createByUser',
        tablecol: true,
        visibleCol: false,
        sortDir: "None",
        alias: null,
        type: "string"
    },
    folderName: {
        fa: 'پوشه',
        colName: 'folderName',
        tablecol: true,
        visibleCol: false,
        sortDir: "None",
        alias: "folderId",
        groupBy: true,
        groupDir: "Ascending",
        type: "string"
    },
    tableId: {
        fa: 'نام جدول',
        colName: 'tableId',
        tablecol: false,
        visibleCol: false,
        sortDir: "None",
        alias: null,
        forGroup: false
    },
    sourceTableId: {
        fa: 'جدول مبدا',
        colName: 'sourceTableId',
        tablecol: false,
        visibleCol: false,
        sortDir: "None",
        alias: null, 
        forGroup: false
    },
    expenseCenterTableId: {
        fa: 'مرکز هزینه',
        colName: 'expenseCenterTableId',
        tablecol: false,
        visibleCol: false,
        sortDir: "None",
        alias: null,
        forGroup: false
    },
    destinationTableId: {
        fa: 'جدول مقصد',
        colName: 'destinationTableId',
        tablecol: false,
        visibleCol: false,
        sortDir: "None",
        alias: null,
        forGroup: false
    },
    effectiveDate: {
        fa: 'تاریخ موثر',
        colName: 'effectiveDate',
        tablecol: false,
        visibleCol: false,
        sortDir: "None",
        alias: null,
        forGroup: false
    },
    nodeIdList: {
        fa: 'گره های درختواره',
        colName: 'nodeIdList',
        tablecol: false,
        visibleCol: false,
        sortDir: "None",
        alias: null,
        forGroup: false
    },
    folderId: {
        fa: 'پوشه',
        colName: 'folderId',
        tablecol: false,
        visibleCol: false,
        sortDir: "None",
        alias: null,
        type: "string"
    },
};