| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168 |
- <%@ include file="../common/header.jsp" %>
- <script type="text/javascript" language="javascript">
- <!--
- function loadPageInit() {
- doChangeLoginName();
- }
- function doChangeLoginName() {
- var form = document.forms.appUser;
- try {
- var billerGroupObj = form.billerGroup;
- var loginName = form.loginName.value;
- if (loginName.length > 0) {
- var req = createXMLHttpRequest();
- var url = "appUser.do?action=get_app_user&loginName=" +loginName+ "&ts=" +new Date().getTime();
- var loop = 0;
- req.open("GET", url);
- req.onreadystatechange = function() {
- if (req.readyState == 4) {
- document.getElementById("firstName_div").innerHTML="";
- document.getElementById("lastName_div").innerHTML="";
- billerGroupObj.options[0].selected = true;
- var response = req.responseXML;
- if (response) {
- var optionSelected = 0;
- var xmlRoot = response.getElementsByTagName("APPUSERS")[0];
- if (xmlRoot) {
- var appUser = xmlRoot.childNodes[0];
- var appUserFirstName = appUser.getElementsByTagName("FIRST_NAME")[0].childNodes.length == 0 ? "" : appUser.getElementsByTagName("FIRST_NAME")[0].childNodes[0].nodeValue;
- var appUserLastName = appUser.getElementsByTagName("LAST_NAME")[0].childNodes.length == 0 ? "" : appUser.getElementsByTagName("LAST_NAME")[0].childNodes[0].nodeValue;
- var appUserBillerGroup = appUser.getElementsByTagName("BILLER_GROUP")[0].childNodes[0].nodeValue;
- document.getElementById("firstName_div").innerHTML = appUserFirstName;
- document.getElementById("lastName_div").innerHTML = appUserLastName;
- for (i = 0; i < billerGroupObj.options.length; i++) {
- if (billerGroupObj.options[i].value == appUserBillerGroup) {
- billerGroupObj.options[i].selected = true;
- break;
- }
- }
- } else {
- document.getElementById("firstName_div").innerHTML="";
- document.getElementById("lastName_div").innerHTML="";
- billerGroupObj.options[0].selected = true;
- }
- } else {
- document.getElementById("firstName_div").innerHTML="";
- document.getElementById("lastName_div").innerHTML="";
- billerGroupObj.options[0].selected = true;
- }
- } else {
- document.getElementById("firstName_div").innerHTML="<img alt='wait' src='./images/wait.gif' border=0 > <b>Please Wait...<\/b>";
- document.getElementById("lastName_div").innerHTML="";
- billerGroupObj.options[0].selected = true;
- }
- }
- req.send(null);
- } else {
- document.getElementById("firstName_div").innerHTML="";
- document.getElementById("lastName_div").innerHTML="";
- billerGroupObj.options[0].selected = true;
- }
- } catch(e) {
- alert(e);
- }
- }
- function doEditBillerGroupOk(){
- var x = window.confirm("<bean:message key="confirm.edit"/>")
- if (x) {
- document.forms.appUser.action.value="edit_biller_group_ok";
- document.forms.appUser.submit();
- doDisable(form, "button");
- doDisableImage(form);
- }
- }
- -->
- </script>
- <form name="appUser" action="appUser.do" method="POST">
- <input type="hidden" name="action">
- <input type="hidden" name="redirect" value="edit">
- <input type="hidden" name="sequence">
-
- <table width="100%" border="0" cellspacing="1" cellpadding="2">
- <tr>
- <td class="titleHeader" align="left"><bean:message key="project.appUser.assignGroup.key" /> - EDIT</td>
- </tr>
- </table>
-
- <table width="100%" border="0" cellspacing="1" cellpadding="2">
- <tr><td><html:errors /></td></tr>
- </table>
-
- <table width="98%" border="0" align="center" class="td" cellpadding="2" cellspacing="1">
- <tr>
- <td width="20%" valign="top"><bean:message key="appUser.biller.key" /></td>
- <td width="2%" valign="top">:</td>
- <td width="78%" valign="top">
- <logic:notEmpty name="login.user"><bean:write name="login.user" property="biller.name" /> - <bean:write name="login.user" property="biller.code" /></logic:notEmpty>
- </td>
- </tr>
- <tr>
- <td width="20%" valign="top"><bean:message key="appUser.code.key" /></td>
- <td width="2%" valign="top">:</td>
- <td width="78%" valign="top">
- <select name="loginName" style="width:200" onchange="doChangeLoginName();">
- <option value="">-- Select Application User --</option>
- <logic:notEmpty name="appUserList">
- <logic:iterate id="element_appUser" name="appUserList" >
- <option value="<bean:write name="element_appUser" property="loginName" />"
- <logic:notEmpty name="appUser">
- <logic:equal name="appUser" property="loginName" value="${element_appUser.loginName}">
- selected
- </logic:equal>
- </logic:notEmpty>
- ><bean:write name="element_appUser" property="loginName" /></option>
- </logic:iterate>
- </logic:notEmpty>
- </select>
- </td>
- </tr>
- <tr>
- <td width="20%" valign="top"><bean:message key="appUser.firstName.key" /></td>
- <td width="2%" valign="top">:</td>
- <td width="78%" valign="top">
- <div id="firstName_div" align="left"></div>
- </td>
- </tr>
- <tr>
- <td width="20%" valign="top"><bean:message key="appUser.lastName.key" /></td>
- <td width="2%" valign="top">:</td>
- <td width="78%" valign="top">
- <div id="lastName_div" align="left"></div>
- </td>
- </tr>
- <tr>
- <td width="20%" valign="top"><bean:message key="appUser.billerGroup.key" /></td>
- <td width="2%" valign="top">:</td>
- <td width="78%" valign="top">
- <select name="billerGroup" style="width:200">
- <option value="">-- Select Biller Group --</option>
- <option value="0">All</option>
- <logic:notEmpty name="billerGroupList">
- <logic:iterate id="element_billerGroup" name="billerGroupList" >
- <option value="<bean:write name="element_billerGroup" property="id" />"
- <logic:notEmpty name="appUser">
- <logic:equal name="appUser" property="billerGroup" value="${element_billerGroup.id}">
- selected
- </logic:equal>
- </logic:notEmpty>
- ><bean:write name="element_billerGroup" property="longName" /></option>
- </logic:iterate>
- </logic:notEmpty>
- </select>
- </td>
- </tr>
- <tr>
- <td width="20%"></td>
- <td width="2%"></td>
- <td width="78%"><input type="button" value=<bean:message key="button.submit"/> onclick="doEditBillerGroupOk();" ></td>
- </tr>
- </table>
- </form>
- <script type="text/javascript" language="javascript">loadPageInit();</script>
- <logic:notEmpty name="focus"><bean:write name="focus" filter="false" /></logic:notEmpty>
- <%@ include file="../common/footer.jsp" %>
|