Changeset 645 for trunk/web/addons/job_monarch/js
- Timestamp:
- 08/13/09 11:46:36 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/web/addons/job_monarch/js/monarch.js
r644 r645 599 599 function jobCellRender( value, metadata, record, rowindex, colindex, store ) 600 600 { 601 var fieldName = JobsColumnModel.getColumnById( colindex ).dataIndex; 601 var column_id = JobsColumnModel.getColumnId( colindex ); 602 var fieldName = JobsColumnModel.getColumnById( column_id ).dataIndex; 602 603 var fil_dis = 'filter'; 603 604 var fil_ena = 'filterenabled'; … … 762 763 763 764 JobsColumnModel = new Ext.grid.ColumnModel( 764 [ 765 CheckJobs, 766 { 767 header: '#', 768 tooltip: 'Job id', 769 readOnly: true, 770 dataIndex: 'jid', 771 width: 50, 765 { 766 //CheckJobs, 767 defaults: 768 { 772 769 hidden: false, 773 renderer: jobCellRender 774 },{ 775 header: 'S', 776 tooltip: 'Job status', 777 readOnly: true, 778 dataIndex: 'status', 779 width: 20, 780 hidden: false, 781 renderer: jobCellRender 782 },{ 783 header: 'User', 784 tooltip: 'Owner of job', 785 readOnly: true, 786 dataIndex: 'owner', 787 width: 60, 788 hidden: false, 789 renderer: jobCellRender 790 },{ 791 header: 'Queue', 792 tooltip: 'In which queue does this job reside', 793 readOnly: true, 794 dataIndex: 'queue', 795 width: 60, 796 hidden: false, 797 renderer: jobCellRender 798 },{ 799 header: 'Name', 800 tooltip: 'Name of job', 801 readOnly: true, 802 dataIndex: 'name', 803 width: 100, 804 hidden: false 805 },{ 806 header: 'Requested Time', 807 tooltip: 'Amount of requested time (wallclock)', 808 readOnly: true, 809 dataIndex: 'requested_time', 810 width: 100, 811 hidden: false 812 },{ 813 header: 'Requested Memory', 814 tooltip: 'Amount of requested memory', 815 readOnly: true, 816 dataIndex: 'requested_memory', 817 width: 100, 818 hidden: true 819 },{ 820 header: 'P', 821 tooltip: 'Number of processors per node (PPN)', 822 readOnly: true, 823 dataIndex: 'ppn', 824 width: 25, 825 hidden: false 826 },{ 827 header: 'N', 828 tooltip: 'Number of nodes (hosts)', 829 readOnly: true, 830 dataIndex: 'nodect', 831 width: 25, 832 hidden: false 833 },{ 834 header: 'Nodes', 835 readOnly: true, 836 dataIndex: 'nodes', 837 width: 100, 838 hidden: false, 839 renderer: jobCellRender 840 },{ 841 header: 'Queued', 842 tooltip: 'At what time did this job enter the queue', 843 readOnly: true, 844 dataIndex: 'queued_timestamp', 845 width: 120, 846 hidden: false 847 },{ 848 header: 'Started', 849 tooltip: 'At what time did this job enter the running status', 850 readOnly: true, 851 dataIndex: 'start_timestamp', 852 width: 120, 853 hidden: false 854 },{ 855 header: 'Runningtime', 856 tooltip: 'How long has this job been in the running status', 857 readOnly: true, 858 dataIndex: 'runningtime', 859 width: 140, 860 hidden: false 861 } 862 ]); 770 readonly: true, 771 sortable: true 772 }, 773 columns: 774 [ 775 { 776 header: '#', 777 tooltip: 'Job id', 778 dataIndex: 'jid', 779 width: 50, 780 renderer: jobCellRender 781 },{ 782 header: 'S', 783 tooltip: 'Job status', 784 dataIndex: 'status', 785 width: 20, 786 renderer: jobCellRender 787 },{ 788 header: 'User', 789 tooltip: 'Owner of job', 790 dataIndex: 'owner', 791 width: 60, 792 renderer: jobCellRender 793 },{ 794 header: 'Queue', 795 tooltip: 'In which queue does this job reside', 796 dataIndex: 'queue', 797 width: 60, 798 hidden: false, 799 renderer: jobCellRender 800 },{ 801 header: 'Name', 802 tooltip: 'Name of job', 803 dataIndex: 'name', 804 width: 100, 805 },{ 806 header: 'Requested Time', 807 tooltip: 'Amount of requested time (wallclock)', 808 dataIndex: 'requested_time', 809 width: 100, 810 },{ 811 header: 'Requested Memory', 812 tooltip: 'Amount of requested memory', 813 dataIndex: 'requested_memory', 814 width: 100, 815 hidden: true 816 },{ 817 header: 'P', 818 tooltip: 'Number of processors per node (PPN)', 819 dataIndex: 'ppn', 820 width: 25, 821 },{ 822 header: 'N', 823 tooltip: 'Number of nodes (hosts)', 824 dataIndex: 'nodect', 825 width: 25, 826 },{ 827 header: 'Nodes', 828 dataIndex: 'nodes', 829 width: 100, 830 renderer: jobCellRender 831 },{ 832 header: 'Queued', 833 tooltip: 'At what time did this job enter the queue', 834 dataIndex: 'queued_timestamp', 835 width: 120, 836 },{ 837 header: 'Started', 838 tooltip: 'At what time did this job enter the running status', 839 dataIndex: 'start_timestamp', 840 width: 120, 841 },{ 842 header: 'Runningtime', 843 tooltip: 'How long has this job been in the running status', 844 dataIndex: 'runningtime', 845 width: 140, 846 } 847 ] 848 }); 863 849 864 850 JobsColumnModel.defaultSortable = true; … … 1324 1310 var JobListingEditorGrid = 1325 1311 1326 new Ext.grid. EditorGridPanel(1312 new Ext.grid.GridPanel( 1327 1313 { 1328 1314 id: 'JobListingEditorGrid', 1329 1315 region: 'center', 1330 1316 store: JobsDataStore, 1331 c m:JobsColumnModel,1317 colModel: JobsColumnModel, 1332 1318 enableColLock: false, 1333 1319 clicksToEdit: 1,
Note: See TracChangeset
for help on using the changeset viewer.