Files
luos/workflow/engine/xmlform/cases/cases_ReassignBy.xml

70 lines
2.9 KiB
XML
Raw Normal View History

2010-12-02 23:34:41 +00:00
<?xml version="1.0" encoding="UTF-8"?>
<dynaForm type="xmlform" name="cases_ReassignBy.xml" width="600" enabletemplate="1" mode="edit">
2014-04-21 10:21:01 -04:00
<title type="subtitle" enableHTML="1">
<en><![CDATA[<center>Reassignment of Cases</center>]]></en>
</title>
<REASSIGN_BY type="radiogroup" required="0" defaultvalue="1" mode="edit">
<en><![CDATA[Reassign By]]><option name="1"><![CDATA[Case]]></option><option name="2"><![CDATA[User]]></option></en>
</REASSIGN_BY>
<REASSIGN_USER type="dropdown" required="0" readonly="0" mode="edit" sqlconnection="dbarray"><![CDATA[
SELECT * FROM aUserInfo
]]><en><![CDATA[]]><option name=""><![CDATA[- Select -]]></option></en></REASSIGN_USER>
<JS type="javascript"><![CDATA[
2010-12-02 23:34:41 +00:00
2014-04-21 10:21:01 -04:00
var bFlag = false;
var client = getBrowserClient();
2010-12-02 23:34:41 +00:00
2014-04-21 10:21:01 -04:00
var dynaformOnload = function() {
if (!bFlag) {
if( client.browser == 'msie'){
document.getElementById('form[REASSIGN_BY][1]').onclick= function() {
if (this.checked) {
if (window.location.href.indexOf('cases_List?l=to_reassign') == -1) {
window.location = 'cases_List?l=to_reassign';
}
}
};
document.getElementById('form[REASSIGN_BY][2]').onclick= function() {
if (document.getElementById('form[REASSIGN_BY][2]').checked) {
if (window.location.href.indexOf('cases_ReassignByUser') == -1) {
window.location = 'cases_ReassignByUser';
}
}
};
leimnud.event.add(getField('REASSIGN_USER'), 'change', function() {
window.location = 'cases_ReassignByUser?REASSIGN_USER=' + getField('REASSIGN_USER').value;
});
} else { //for other firefox, safari, etc..
leimnud.event.add(getField('REASSIGN_BY][1'), 'click', function() {
if (this.checked) {
if (window.location.href.indexOf('cases_List?l=to_reassign') == -1) {
window.location = 'cases_List?l=to_reassign';
}
}
});
leimnud.event.add(getField('REASSIGN_BY][2'), 'click', function() {
if (this.checked) {
if (window.location.href.indexOf('cases_ReassignByUser') == -1) {
window.location = 'cases_ReassignByUser';
}
}
});
leimnud.event.add(getField('REASSIGN_USER'), 'change', function() {
window.location = 'cases_ReassignByUser?REASSIGN_USER=' + this.value;
});
}
bFlag = true;
}
};
2010-12-02 23:34:41 +00:00
2014-04-21 10:21:01 -04:00
if (getField('REASSIGN_BY][2').checked){
//showRowById('REASSIGN_USER');
document.getElementById('form[REASSIGN_USER]').style.display = 'block';
} else {
//hideRowById('REASSIGN_USER');
document.getElementById('form[REASSIGN_USER]').style.display = 'none';
}
2010-12-02 23:34:41 +00:00
]]></JS>
2014-04-21 10:21:01 -04:00
</dynaForm>