'use strict'; var fnPageInit = function () { var canDo = new CanDo({ sortField: 'OrderByValue', sortOrder: 'asc', /** * 當前程式所有ID名稱集合 */ idKeys: ['OrgID', 'ArgumentClassID', 'ArgumentID'], /** * Grid欄位設置(可以是 function) */ gridFields: [ { name: "RowIndex", title: 'common.RowNumber', align: 'center', width: 50, sorting: false }, { name: "ArgumentClassID", title: 'ArgumentClassMaintain_Qry.ArgumentClassID', width: 300 }, { name: "ArgumentClassName", title: 'ArgumentClassMaintain_Qry.ArgumentClassName', width: 200 }, { name: "Effective", title: 'common.Status', width: 200, align: 'center', itemTemplate: function (val) { return val === 'Y' ? i18next.t('common.Enable') : i18next.t('common.Disable'); } }, { name: "OrderByValue", title: 'common.OrderByValue', type: "select", width: 200, itemTemplate: function (val, item) { return this._createSelect = $("