Files
luos/workflow/engine/xmlform/processes/processes_NewSimple.xml
2011-09-05 12:47:25 -04:00

79 lines
1.9 KiB
XML
Executable File

<?xml version="1.0" encoding="UTF-8"?>
<dynaForm name="processes_New" width="600" labelWidth="115px" mode="edit" enableTemplate="1">
<menuUser type="xmlmenu" xmlfile="processes/processes_NewOptions">
<en></en>
</menuUser>
<TITLE1 type="title" group="1">
<en>Process Information</en>
</TITLE1>
<PRO_TITLE type="text" size="60" maxlength="255" defaultvalue="" required="0" group="1" dependentfields="" linkfield="" strto="" readonly="0" noshowingrid="0" readonlyingrid="0" totalizeable="0" sqlconnection="">
<en>Title</en>
</PRO_TITLE>
<!-- <PRO_DESCRIPTION type="html"> -->
<PRO_DESCRIPTION type="textarea" rows="7" cols="58">
<en>Description</en>
</PRO_DESCRIPTION>
<PRO_CATEGORY type="dropdown" >
SELECT CATEGORY_UID, CATEGORY_NAME FROM PROCESS_CATEGORY
<en>Process Category<option name="">- None -</option></en>
</PRO_CATEGORY>
<SUBMIT type="button" onclick="verifyProcessInformation(this.form);" group="1">
<en>Save</en>
</SUBMIT>
<BTN_CANCEL type="button" onclick="cancel();">
<en>Cancel</en>
</BTN_CANCEL>
<MESSAGE1 type="phpvariable" />
<JS type="javascript" replacetags="1">
document.onkeypress=function(e){
var esIE=(document.all);
var esNS=(document.layers);
tecla=(esIE) ? event.keyCode : e.which;
if(tecla==13){
return false;
}
}
var verifyProcessInformation = function(oForm){
var nameProcess = getField('PRO_TITLE').value;
reqName=ajax_function('processes_Save','lookForNameProcess','NAMEPROCESS='+encodeURIComponent(nameProcess),'POST') ;
var oAux;
var bContinue = true;
oAux = oForm.elements['form[PRO_TITLE]'];
if (oAux.value == '')
{
alert("@#MESSAGE1");
oAux.focus();
bContinue = false;
} else {
if(reqName){
//the process name exists then we can't save it
alert(G_STRINGS.ID_EXIST_PROCESS);return false;
} else {
if (bContinue)
{
oForm.submit();
}
}
}
//return false;
};
function cancel(){
history.back();
}
</JS>
</dynaForm>