BUG 10699 Databases Source list no tiene search SOLVED

- Missing filter field in the list
- Added filter field to the list
This commit is contained in:
Julio Cesar Laura
2013-02-07 11:01:04 -04:00
parent 6786b5d069
commit c080eaa8d3
8 changed files with 55 additions and 33 deletions

View File

@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<dynaForm type="pagetable" menu="dbConnections/dbConnections_Options"> <dynaForm type="pagetable" menu="dbConnections/dbConnections_Options" searchBy="DBS_DATABASE_NAME|CON_VALUE">
<DBS_UID type="private" showInTable="0"/> <DBS_UID type="private" showInTable="0"/>
@@ -29,7 +29,18 @@
<en>Delete</en> <en>Delete</en>
</DBS_DELETE> </DBS_DELETE>
<GET_UID type="link" colWidth="40" value="UID" link="#" onclick="msgBox(&#039;UID: &#039;+@QDBS_UID, &#039;info&#039;);return false;"/> <GET_UID type="link" colWidth="40" value="UID" link="#" onclick="msgBox(&#039;UID: &#039;+@QDBS_UID, &#039;info&#039;);return false;"/>
<SEARCH type="button" onclick="pagedTableFilter(this.form);" showInTable="0">
<en>Apply Filter</en>
</SEARCH>
</dynaForm> <PAGED_TABLE_ID type="private" showInTable="0"/>
<JSFILTER type="javascript" replaceTags="1" showInTable="0">
function pagedTableFilter(form) {
@#PAGED_TABLE_ID.doFilter(form);
}
</JSFILTER>
</dynaForm>

View File

@@ -7,4 +7,11 @@
<en>New</en> <en>New</en>
</MNU_ADD> </MNU_ADD>
</dynaForm> <PAGED_TABLE_ID type="private"/>
<PAGED_TABLE_FAST_SEARCH type="FastSearch" label="@G::LoadTranslation(ID_SEARCH)"/>
<SEARCH_FILTER_FORM type="private"/>
<js type="javascript" replaceTags="1"><![CDATA[
var currentPagedTable = @#PAGED_TABLE_ID;
]]></js>
</dynaForm>

View File

@@ -6,6 +6,8 @@
</MNU_ADD> </MNU_ADD>
<PAGED_TABLE_ID type="private"/> <PAGED_TABLE_ID type="private"/>
<PAGED_TABLE_FAST_SEARCH type="FastSearch" label="@G::LoadTranslation(ID_SEARCH)"/>
<PRO_UID type="private"/> <PRO_UID type="private"/>
<dynaformsEdit type="private" defaultValue="../dynaforms/dynaforms_Edit"/> <dynaformsEdit type="private" defaultValue="../dynaforms/dynaforms_Edit"/>

View File

@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<dynaForm menu="dynaforms/dynaforms_Options" width="100%" rowsPerPage="12"> <dynaForm menu="dynaforms/dynaforms_Options" width="100%" rowsPerPage="12" searchBy="C1.CON_VALUE">
<DYN_UID type="hidden" showInTable="0"/> <DYN_UID type="hidden" showInTable="0"/>
<PRO_UID type="hidden" showInTable="1"/> <PRO_UID type="hidden" showInTable="1"/>
@@ -31,4 +31,4 @@ function pagedTableFilter( form ) {
} }
</JSFILTER> </JSFILTER>
</dynaForm> </dynaForm>

View File

@@ -5,6 +5,7 @@
<en>New</en> <en>New</en>
</MNU_ADD> </MNU_ADD>
<PAGED_TABLE_ID type="private"/> <PAGED_TABLE_ID type="private"/>
<PAGED_TABLE_FAST_SEARCH type="FastSearch" label="@G::LoadTranslation(ID_SEARCH)"/>
<PRO_UID type="private"/> <PRO_UID type="private"/>
<inputdocsEdit type="private" defaultValue="../inputdocs/inputdocs_Edit"/> <inputdocsEdit type="private" defaultValue="../inputdocs/inputdocs_Edit"/>
@@ -22,7 +23,7 @@ var currentPagedTable = @#PAGED_TABLE_ID;
sw = sw && (getField('INP_DOC_TITLE').value!=''); sw = sw && (getField('INP_DOC_TITLE').value!='');
return sw; return sw;
} }
function inputdocsSave( form ) { function inputdocsSave( form ) {
var nameInput = getField('INP_DOC_TITLE').value; var nameInput = getField('INP_DOC_TITLE').value;
var proUid = getField('PRO_UID').value; var proUid = getField('PRO_UID').value;
if(getField('INP_DOC_UID').value==''){ if(getField('INP_DOC_UID').value==''){
@@ -49,10 +50,10 @@ var currentPagedTable = @#PAGED_TABLE_ID;
} }
} }
function inputdocsDelete( uid ) { function inputdocsDelete( uid ) {
result = ajax_function('@G::encryptlink(@#inputdocsDelete)','getRelationInfDoc','INP_DOC_UID='+uid,'POST'); result = ajax_function('@G::encryptlink(@#inputdocsDelete)','getRelationInfDoc','INP_DOC_UID='+uid,'POST');
labelToshow = (result)?'@G::LoadTranslation(ID_MSG_CONFIRM_DELETE_IDOCUMENT)':'@G::LoadTranslation(ID_MSG_CONFIRM_DELETE_DOCUMENT)'; labelToshow = (result)?'@G::LoadTranslation(ID_MSG_CONFIRM_DELETE_IDOCUMENT)':'@G::LoadTranslation(ID_MSG_CONFIRM_DELETE_DOCUMENT)';
new leimnud.module.app.confirm().make({ new leimnud.module.app.confirm().make({
label:labelToshow, label:labelToshow,
action:function() action:function()

View File

@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<dynaForm sqlConnection="" menu="inputdocs/inputdocs_Options" width="100%" rowsPerPage="10"> <dynaForm sqlConnection="" menu="inputdocs/inputdocs_Options" width="100%" rowsPerPage="10" searchBy="INP_DOC_TITLE">
<INP_DOC_UID type="hidden" showInTable="0"/> <INP_DOC_UID type="hidden" showInTable="0"/>
@@ -26,4 +26,4 @@ function pagedTableFilter(form) {
} }
</JSFILTER> </JSFILTER>
</dynaForm> </dynaForm>

View File

@@ -5,6 +5,7 @@
<en>New</en> <en>New</en>
</MNU_ADD> </MNU_ADD>
<PAGED_TABLE_ID type="private"/> <PAGED_TABLE_ID type="private"/>
<PAGED_TABLE_FAST_SEARCH type="FastSearch" label="@G::LoadTranslation(ID_SEARCH)"/>
<PRO_UID type="private"/><![CDATA[> <PRO_UID type="private"/><![CDATA[>
]]><outputdocs_New type="private" defaultValue="../outputdocs/outputdocs_New"/> ]]><outputdocs_New type="private" defaultValue="../outputdocs/outputdocs_New"/>
@@ -18,27 +19,27 @@ var outputdocsEditor;
function outputdocsAdd(){ function outputdocsAdd(){
popupWindow('@G::LoadTranslation(ID_OUTPUT_DOCUMENTS)', '@G::encryptlink(@#outputdocs_New)?PRO_UID=@%PRO_UID' , 600, 410); popupWindow('@G::LoadTranslation(ID_OUTPUT_DOCUMENTS)', '@G::encryptlink(@#outputdocs_New)?PRO_UID=@%PRO_UID' , 600, 410);
} }
function PopupCenter(pageURL, title,w,h) { function PopupCenter(pageURL, title,w,h) {
clientWinSize = getClientWindowSize(); clientWinSize = getClientWindowSize();
var left = (screen.width/2)-(w/2); var left = (screen.width/2)-(w/2);
var top = (screen.height/2);//-(h/2); var top = (screen.height/2);//-(h/2);
var targetWin = window.open (pageURL, title, 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width='+w+', height='+h+', top='+top+', left='+left); var targetWin = window.open (pageURL, title, 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width='+w+', height='+h+', top='+top+', left='+left);
} }
//////////////////////////////////////////////////// ////////////////////////////////////////////////////
var outputdocsEditor; var outputdocsEditor;
function outputdocsEdit( uid, typ ) { function outputdocsEdit( uid, typ ) {
if (( _BROWSER.name == 'msie' ) && ( _BROWSER.version < '9' )) { if (( _BROWSER.name == 'msie' ) && ( _BROWSER.version < '9' )) {
PopupCenter('../outputdocs/outputdocs_Edit?OUT_DOC_UID=' + uid, 's', 800, 410); PopupCenter('../outputdocs/outputdocs_Edit?OUT_DOC_UID=' + uid, 's', 800, 410);
return false; return false;
} }
wi=770; he=510; wi=770; he=510;
if ( typ == 'JRXML' || typ == 'ACROFORM' ) { wi=500; he=310; } if ( typ == 'JRXML' || typ == 'ACROFORM' ) { wi=500; he=310; }
outputdocsEditor = new leimnud.module.panel(); outputdocsEditor = new leimnud.module.panel();
outputdocsEditor.options={ outputdocsEditor.options={
limit : true, limit : true,
@@ -48,10 +49,10 @@ var outputdocsEditor;
control : {close:true,resize:false},fx: {modal:false}, control : {close:true,resize:false},fx: {modal:false},
fx : {shadow:false,modal:false} fx : {shadow:false,modal:false}
}; };
outputdocsEditor.make(); outputdocsEditor.make();
var oRPC = new leimnud.module.rpc.xmlhttp({ var oRPC = new leimnud.module.rpc.xmlhttp({
url : '../outputdocs/outputdocs_Ajax', url : '../outputdocs/outputdocs_Ajax',
args: 'action=loadOutputEditor&OUT_DOC_UID='+uid+'&OUT_DOC_TYPE='+typ args: 'action=loadOutputEditor&OUT_DOC_UID='+uid+'&OUT_DOC_TYPE='+typ
@@ -66,38 +67,38 @@ var outputdocsEditor;
}.extend(this); }.extend(this);
oRPC.make(); oRPC.make();
} }
function outputdocsProperties( uid ) { function outputdocsProperties( uid ) {
popupWindow('@G::LoadTranslation(ID_OUTPUT_DOCUMENTS)', '@G::encryptlink(@#outputdocs_Properties)?OUT_DOC_UID='+ uid , 600, 530); popupWindow('@G::LoadTranslation(ID_OUTPUT_DOCUMENTS)', '@G::encryptlink(@#outputdocs_Properties)?OUT_DOC_UID='+ uid , 600, 530);
} }
function outputdocsPropertiesSave( form ) { function outputdocsPropertiesSave( form ) {
var doc = getField("OUT_DOC_FILENAME"); var doc = getField("OUT_DOC_FILENAME");
if(doc.value=='') if(doc.value=='')
{ alert(G_STRINGS.ID_FILEGENERATED); { alert(G_STRINGS.ID_FILEGENERATED);
} }
else else
{ {
/*ajax_post( form.action, form, 'POST', function(){ /*ajax_post( form.action, form, 'POST', function(){
currentPopupWindow.remove(); currentPopupWindow.remove();
@#PAGED_TABLE_ID.refresh(); @#PAGED_TABLE_ID.refresh();
}, },
true true
);*/ );*/
ajax_post( form.action, form, 'POST' ); ajax_post( form.action, form, 'POST' );
currentPopupWindow.remove(); currentPopupWindow.remove();
@#PAGED_TABLE_ID.refresh(); @#PAGED_TABLE_ID.refresh();
} }
} }
function outputdocsSave( form ) { function outputdocsSave( form ) {
tinyMCE.execCommand('mceRemoveControl',false,'form[OUT_DOC_TEMPLATE]'); tinyMCE.execCommand('mceRemoveControl',false,'form[OUT_DOC_TEMPLATE]');
form.action = '../outputdocs/outputdocs_Save'; form.action = '../outputdocs/outputdocs_Save';
ajax_post( form.action, form, 'POST' ); ajax_post( form.action, form, 'POST' );
outputdocsEditor.remove(); outputdocsEditor.remove();
@#PAGED_TABLE_ID.refresh(); @#PAGED_TABLE_ID.refresh();
} }
function outputdocsDelete( uid ) { function outputdocsDelete( uid ) {
@@ -114,4 +115,4 @@ var outputdocsEditor;
<SEARCH_FILTER_FORM type="private"/> <SEARCH_FILTER_FORM type="private"/>
</dynaForm> </dynaForm>

View File

@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<dynaForm menu="outputdocs/outputdocs_Options" rowsPerPage="10"> <dynaForm menu="outputdocs/outputdocs_Options" rowsPerPage="10" searchBy="OUT_DOC_TITLE">
<OUT_DOC_UID type="hidden" showInTable="0"/> <OUT_DOC_UID type="hidden" showInTable="0"/>
@@ -32,4 +32,4 @@ function pagedTableFilter(form) {
} }
</JSFILTER> </JSFILTER>
</dynaForm> </dynaForm>