Files
luos/workflow/engine/xmlform/steps/steps_Options.xml

75 lines
2.4 KiB
XML
Raw Normal View History

2010-12-02 23:34:41 +00:00
<?xml version="1.0" encoding="UTF-8"?>
<dynaForm type="xmlmenu">
<MNU_ADD type="link" value="" link="#" onclick="stepAdd(); return false;" colAlign="left" colWidth="35">
<en>New</en>
</MNU_ADD>
<PROCESS type="hidden" showInTable="0"/>
<TASK type="hidden" showInTable="0"/>
<CONFIRM type="hidden" showInTable="0"/>
<URL_STEPS_EDIT type="private" defaultValue="../steps/steps_New"/>
<URL_STEP_DELETE type="private" defaultValue="../steps/steps_Delete"/>
<URL_STEP_UP type="private" defaultValue="../steps/steps_Up"/>
<URL_STEP_DOWN type="private" defaultValue="../steps/steps_Down"/>
<URL_DYNAFORM_EDITOR type="private" defaultValue="../dynaforms/dynaforms_Editor"/>
<PAGED_TABLE_ID type="private"/>
<js type="javascript"><![CDATA[
function stepAdd(){
popupWindow('@G::LoadTranslation(ID_NEW_STEP)', '@G::encryptlink(@#URL_STEPS_EDIT)?PROCESS=@#PROCESS&TASK=@#TASK', 500, 420);
}
function stepSave(sProcess, sTask, sType, sUID) {
PROCESSMAP_STEP_EDIT = true;
var oRPC = new leimnud.module.rpc.xmlhttp({
url : '../steps/steps_Save',
async : false,
method: 'POST',
args : 'sProcess=' + sProcess + '&sTask=' + sTask + '&sType=' + sType + '&sUID=' + sUID + '&sMode=' + document.getElementById('STEP_MODE_' + sUID).value
});
oRPC.make();
currentPopupWindow.remove();
@#PAGED_TABLE_ID.refresh();
}
function
stepUp( uid, stepPos ){
result = ajax_function('@G::encryptlink(@#URL_STEP_UP)','','STEP_UID='+uid+'&TASK=@#TASK&STEP_POSITION='+stepPos,'POST');
@#PAGED_TABLE_ID.refresh();
}
function stepDown( uid, stepPos ){
result = ajax_function('@G::encryptlink(@#URL_STEP_DOWN)','','STEP_UID='+uid+'&TASK=@#TASK&STEP_POSITION='+stepPos,'POST');
@#PAGED_TABLE_ID.refresh();
}
function stepDelete( uid, stepPos ){
PROCESSMAP_STEP_EDIT = true;
new leimnud.module.app.confirm().make({label:'@#CONFIRM',action:function(){
ajax_function('@G::encryptlink(@#URL_STEP_DELETE)','','STEP_UID='+uid+'&TASK=@#TASK&STEP_POSITION='+stepPos,'POST');
@#PAGED_TABLE_ID.refresh();
}.extend(this)
});
}
function externalStepEdit(stpUid, urlExternalStepEdit ){
popupWindow('@G::LoadTranslation(ID_EDIT)', '@G::encryptlink(' + urlExternalStepEdit + ')?STP_UID=' + stpUid , 550, 350);
}
function dynaformEdit( uid, pro_uid ){
window.location.href = "@G::encryptlink(@#URL_DYNAFORM_EDITOR)?PRO_UID="+pro_uid+"&DYN_UID="+uid;
}
]]></js>
</dynaForm>