Files
luos/workflow/engine/js/reports/reports.js
2011-09-05 12:47:25 -04:00

43 lines
1.2 KiB
JavaScript
Executable File

var panel;
var panDel=function(uid)
{
panel =new leimnud.module.panel();
panel.options={
size :{w:800,h:400},
position:{x:50,y:50,center:true},
control :{close:true,resize:false},fx:{modal:true},
statusBar:false,
fx :{shadow:true,modal:true}
};
panel.make();
panel.loader.show();
var r = new leimnud.module.rpc.xmlhttp({
url:"reports_Description.php",
method:"POST",
args:"PRO_UID="+uid
});
r.callback=function(rpc)
{
panel.loader.hide();
panel.addContent(rpc.xmlhttp.responseText);
};
r.make();
};
var reports_Description_filter = function(sFrom, sTo, sStartedby, sProuid) {
var oRPC = new leimnud.module.rpc.xmlhttp({
url : '../reports/reports_Description',
args : 'action=reports_Description_filter&FROM=' + sFrom + '&TO=' + sTo + '&STARTEDBY=' + sStartedby + '&PRO_UID=' + sProuid
});
panel.clearContent();
oRPC.callback=function(rpc)
{
//panel.loader.hide();
panel.addContent(rpc.xmlhttp.responseText);
};
oRPC.make();
};