76 lines
5.3 KiB
Plaintext
76 lines
5.3 KiB
Plaintext
<!-- >>> fubagTools.html_content.propgrid <<<
|
|
//***********************************************************************
|
|
//
|
|
// This file is part of the "fubagToolbox" System
|
|
// Author: Marko Seidel, Klaus Wendel
|
|
// Copyright (C) 2021, archium GmbH
|
|
//
|
|
//***********************************************************************
|
|
-->
|
|
<div id="tabs_%project%_propgrid" class="easyui-tabs" data-options="onSelect:function(title, index){/*console.log(title, index);*/}" style="width:100%;height:100%;">
|
|
<div id="tab_%project%_file" title="tab_%project%_file" data-options="tools:[{iconCls:'icon-mini-refresh',handler:function(){app.module[app.active_module].loadmenu()}}]" style="padding:0px;display:none;">
|
|
<table id="%pg_file%" class="easyui-propertygrid" style="width:300px" data-options="
|
|
showGroup:true,
|
|
scrollbarSize:0,
|
|
singleSelect:false,
|
|
fit:true,
|
|
fitColumns:true,
|
|
toolbar:'#modul_%project%_propgrid_file_toolbar',
|
|
groupFormatter: groupFormattersearch,
|
|
onLoadSuccess: loadSuccessfile" idField="%id_file%">
|
|
</table>
|
|
<div id='modul_%project%_propgrid_file_toolbar' class='datagrid-toolbar' style="padding:2px 5px;">
|
|
<a id='AC_file_expand' onclick="app.module[app.active_module].func(this, 'expand',true)" title="Expand all entries" class="mod-tb-btn easyui-menubutton easyui-tooltip" data-options="hasDownArrow:false" href="#" onmousedown="return false"><%"expand;matrix(0.8,0,0,0.8,2,2);30;30;0 0 32 32;"%></a>
|
|
<a id='AC_file_collapse' onclick="app.module[app.active_module].func(this, 'expand',false)" title="Collapse all entries" class="mod-tb-btn easyui-menubutton easyui-tooltip mod-tb-btn-hide" data-options="hasDownArrow:false" href="#" onmousedown="return false"><%"collapse;matrix(0.8,0,0,0.8,2,2);30;30;0 0 32 32;"%></a>
|
|
</div>
|
|
<script>
|
|
function groupFormattersearch(_value, _rows){
|
|
return app.module[app.active_module].getgrouptitle(_value);
|
|
}
|
|
function formatValue(val,row){
|
|
console.log(val, row);
|
|
return val;
|
|
}
|
|
function loadSuccessfile(){
|
|
var gcount = $(this).datagrid('options').view.groups.length;
|
|
for(var i=0; i<gcount; i++){
|
|
$(this).datagrid('collapseGroup', i);
|
|
}
|
|
}
|
|
</script>
|
|
</div>
|
|
<div id="tab_%project%_search" title="tab_%project%_search" data-options="closable:false" style="overflow:auto;padding:0px;display:none;">
|
|
<table id="%pg_search%" class="easyui-propertygrid" style="width:300px" data-options="
|
|
showGroup:true,
|
|
scrollbarSize:0,
|
|
singleSelect:false,
|
|
fit:true,
|
|
fitColumns:true,
|
|
toolbar:'#modul_%project%_propgrid_search_toolbar',
|
|
groupFormatter: groupFormattersearch,
|
|
onLoadSuccess: loadSuccesssearch" idField="%id_search%">
|
|
</table>
|
|
<div id='modul_%project%_propgrid_search_toolbar' class='datagrid-toolbar' style="padding:2px 5px;">
|
|
<a id='AC_search_check' onclick="app.module[app.active_module].func(this, 'check',true)" title="Check all entries" class="mod-tb-btn easyui-menubutton easyui-tooltip" data-options="hasDownArrow:false" href="#" onmousedown="return false"><%"checked;matrix(0.8,0,0,0.8,2,2);30;30;0 0 32 32;"%></a>
|
|
<a id='AC_search_uncheck' onclick="app.module[app.active_module].func(this, 'check',false)" title="Uncheck all entries" class="mod-tb-btn easyui-menubutton easyui-tooltip mod-tb-btn-hide" data-options="hasDownArrow:false" href="#" onmousedown="return false"><%"unchecked;matrix(0.8,0,0,0.8,2,2);30;30;0 0 32 32;"%></a>
|
|
<a id='AC_search_expand' onclick="app.module[app.active_module].func(this, 'expand',true)" title="Expand all entries (it takes a while)" class="mod-tb-btn easyui-menubutton easyui-tooltip" data-options="hasDownArrow:false" href="#" onmousedown="return false"><%"expand;matrix(0.8,0,0,0.8,2,2);30;30;0 0 32 32;"%></a>
|
|
<a id='AC_search_collapse' onclick="app.module[app.active_module].func(this, 'expand',false)" title="Collapse all entries (it takes a while)" class="mod-tb-btn easyui-menubutton easyui-tooltip mod-tb-btn-hide" data-options="hasDownArrow:false" href="#" onmousedown="return false"><%"collapse;matrix(0.8,0,0,0.8,2,2);30;30;0 0 32 32;"%></a>
|
|
<span class="app-tb-btn-sep"></span>
|
|
<a id='AC_search_save' onclick="app.module[app.active_module].func(this, 'save','csv')" title="Save selected entries" class="mod-tb-btn easyui-menubutton easyui-tooltip" data-options="hasDownArrow:false,disabled:true" href="#" onmousedown="return false"><%"disk;matrix(0.9,0,0,0.9,0,0);30;30;0 0 32 32;"%></a>
|
|
<a id='AC_search_excel' onclick="app.module[app.active_module].func(this, 'save', 'excel')" title="excel" class="mod-tb-btn easyui-menubutton easyui-tooltip" data-options="hasDownArrow:false,disabled:true" style="display:none;" href="#" onmousedown="return false"><%"excel;matrix(0.8,0,0,0.8,2,2);30;30;0 0 32 32;"%></a>
|
|
|
|
</div>
|
|
<script>
|
|
function groupFormattersearch(_value, _rows){
|
|
return app.module[app.active_module].getgrouptitle(_value);
|
|
}
|
|
function loadSuccesssearch(){
|
|
var gcount = $(this).datagrid('options').view.groups.length;
|
|
for(var i=0; i<gcount; i++){
|
|
$(this).datagrid('collapseGroup', i);
|
|
}
|
|
}
|
|
</script>
|
|
</div>
|
|
</div>
|