| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172 |
- <%@ include file="../common/header.jsp" %>
- <script type="text/javascript" language="javascript">
- <!--
- function loadPageInit() {
- doGenerateBillerGroup();
- }
- function doGenerateBillerGroup() {
- var form = document.forms.billerGroup;
- var biller = form.biller.value;
- loadOneValueAJAX("billerGroup.do?action=generateBillerGroupTree&biller=" +biller+ "&ts=" +new Date().getTime(), "billerGroup_div");
- }
- function doEdit(billerGroupCode){
- var form = document.forms.billerGroup;
- form.action.value = "edit";
- form.billerGroupCode.value = billerGroupCode;
- form.submit();
- doDisable(form, "button");
- doDisableImage(form);
- }
- function doActivate(billerGroupCode){
- var form = document.forms.billerGroup;
- var x = window.confirm("<bean:message key="confirm.activate"/>");
- if (x) {
- form.action.value = "activate";
- form.billerGroupCode.value = billerGroupCode;
- form.submit();
- doDisable(form, "button");
- doDisableImage(form);
- }
- }
- function doInactivate(billerGroupCode){
- var form = document.forms.billerGroup;
- var x = window.confirm("<bean:message key="confirm.inactivate"/>");
- if (x) {
- form.action.value = "inactivate";
- form.billerGroupCode.value = billerGroupCode;
- form.submit();
- doDisable(form, "button");
- doDisableImage(form);
- }
- }
- function doEditOk(){
- var message = "";
- var focus = false;
- var form = document.forms.billerGroup;
- if (trim(form.code.value).length == 0) {
- message = message + ("<bean:message key="error.billerGroup.code"/>\n");
- if (!focus) form.code.focus(); focus = true;
- }
- if (trim(form.name.value).length == 0) {
- message = message + ("<bean:message key="error.billerGroup.name"/>\n");
- if (!focus) form.name.focus(); focus = true;
- }
- if (message == "" ) {
- var x = window.confirm("<bean:message key="confirm.edit"/>");
- if (x) {
- document.forms.billerGroup.action.value="edit_ok";
- document.forms.billerGroup.submit();
- doDisable(form, "button");
- doDisableImage(form);
- }
- } else {
- alert(message);
- }
- }
- -->
- </script>
- <form name="billerGroup" action="billerGroup.do" method="POST">
- <input type="hidden" name="action">
- <input type="hidden" name="biller" value="<logic:notEmpty name="biller"><bean:write name="biller" property="code" /></logic:notEmpty>">
- <input type="hidden" name="billerGroupId" value="<logic:notEmpty name="billerGroup"><bean:write name="billerGroup" property="id" /></logic:notEmpty>">
- <input type="hidden" name="billerGroupCode">
- <input type="hidden" name="redirect" value="edit">
-
- <table width="100%" border="0" cellspacing="1" cellpadding="2">
- <tr>
- <td class="titleHeader" align="left"><bean:message key="project.billerGroup.maintanance.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="billerGroup.biller.key" /></td>
- <td width="2%" valign="top">:</td>
- <td width="78%" valign="top">
- <logic:notEmpty name="biller">
- <bean:write name="biller" property="name" /> - <bean:write name="biller" property="code" />
- </logic:notEmpty>
- </td>
- </tr>
- <tr>
- <td width="20%" valign="top"><bean:message key="billerGroup.billerCategory.key" /></td>
- <td width="2%" valign="top">:</td>
- <td width="78%" valign="top">
- <logic:notEmpty name="biller">
- <bean:write name="biller" property="billerCategory.name" />
- </logic:notEmpty>
- </td>
- </tr>
- <tr>
- <td width="20%" valign="top"><bean:message key="billerGroup.billerGroup.key" /></td>
- <td width="2%" valign="top">:</td>
- <td width="78%" valign="top">
- <div id="billerGroup_div" align="left"></div>
- </td>
- </tr>
- <tr>
- <td width="20%" valign="top"> </td>
- <td width="2%" valign="top"> </td>
- <td width="78%" valign="top"> </td>
- </tr>
- <tr>
- <td width="20%" valign="top"> </td>
- <td width="2%" valign="top"> </td>
- <td width="78%" valign="top">
- <table width="100%" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#CCCCCC">
- <tr bgcolor="#FFFFFF">
- <td valign="top"><b><bean:message key="billerGroup.parent.key" /></b></td>
- <td valign="top"><b><bean:message key="billerGroup.code.key" /></b></td>
- <td valign="top"><b><bean:message key="billerGroup.name.key" /></b></td>
- <td valign="top"> </td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td valign="top">
- <select name="parent" style="width:200">
- <option value="">-- Select Parent --</option>
- <logic:notEmpty name="parentList">
- <logic:iterate id="element_parent" name="parentList" >
- <option value="<bean:write name="element_parent" property="id" />"
- <logic:notEmpty name="billerGroup">
- <logic:notEmpty name="billerGroup" property="parent">
- <logic:equal name="billerGroup" property="parent.id" value="${element_parent.id}">
- selected
- </logic:equal>
- </logic:notEmpty>
- </logic:notEmpty>
- ><bean:write name="element_parent" property="name" /></option>
- </logic:iterate>
- </logic:notEmpty>
- </select>
- </td>
- <td valign="top">
- <input type="text" name="code" value="<logic:notEmpty name="billerGroup"><bean:write name="billerGroup" property="code" /></logic:notEmpty>">
- </td>
- <td valign="top">
- <input type="text" name="name" value="<logic:notEmpty name="billerGroup"><bean:write name="billerGroup" property="name" /></logic:notEmpty>">
- </td>
- <td valign="top"><input type="button" value=<bean:message key="button.add"/> onclick="doEditOk();" ></td>
- </tr>
- </table>
- </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" %>
|