| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319 |
- <%@ include file="../common/header.jsp"%>
- <script type="text/javascript" src="./js/autocomplete/jquery.js"></script>
- <script type='text/javascript' src='./js/autocomplete/jquery.bgiframe.min.js'></script>
- <script type='text/javascript' src='./js/autocomplete/jquery.ajaxQueue.js'></script>
- <script type='text/javascript' src='./js/autocomplete/thickbox-compressed.js'></script>
- <script type='text/javascript' src='./js/autocomplete/jquery.autocomplete.js'></script>
- <script type='text/javascript' src='./js/autocomplete/localdata.js'></script>
- <script type="text/javascript" language="javascript">
- <!--
- $(function() {
- function format(jsonmap) {
- return jsonmap.name+' - '+jsonmap.value;
- }
- $("#idNhBilCon").autocomplete('nhBillerConfig.do?action=loadBillerCodeAndName', {
- dataType: "json",
- parse: function(data) {
- return $.map(data, function(row) {
- return {
- data: row,
- value: row.name,
- result: row.name
- }
- });
- },
- formatItem: function(jsonmap) {
- return format(jsonmap);
- }
- }).result(function(e, jsonmap) {
- //after select
- $("#idNhBilCon").val(format(jsonmap));
- $("#idNameBiller").val(jsonmap.value);
- });
- });
-
- function doActive(id,status){
- var x = window.confirm(" Are you sure activate this record?")
- if (x) {
- document.forms.nhBillerConfig.id.value=id;
- document.forms.nhBillerConfig.status.value=status;
- document.forms.nhBillerConfig.action.value="update_status";
- document.forms.nhBillerConfig.submit();
- }
- }
- function doInactive(id,status){
- var x = window.confirm(" Are you sure inactivate this record?")
- if (x) {
- document.forms.nhBillerConfig.id.value=id;
- document.forms.nhBillerConfig.status.value=status;
- document.forms.nhBillerConfig.action.value="update_status";
- document.forms.nhBillerConfig.submit();
- }
- }
- function doActiveStart(id,status){
- var x = window.confirm(" Are you sure activate this record?")
- if (x) {
- document.forms.nhBillerConfig.id.value=id;
- document.forms.nhBillerConfig.status.value=status;
- document.forms.nhBillerConfig.action.value="update_status";
- document.forms.nhBillerConfig.submit();
- }
- }
-
- function doBack(){
- document.forms.nhBillerConfig.action.value="edit";
- document.forms.nhBillerConfig.clear.value="true";
- document.forms.nhBillerConfig.submit();
- doDisable(document.forms.billerCategory, "button");
- }
-
- function doEditSearch(){
- document.forms.nhBillerConfig.action.value="edit_search";
- document.forms.nhBillerConfig.clear.value="true";
- document.forms.nhBillerConfig.submit();
- doDisable(document.forms.billerCategory, "button");
- }
-
- function doEditOk(){
- var x = window.confirm("<bean:message key="confirm.edit" />");
- if(x){
- document.forms.nhBillerConfig.action.value="edit_ok";
- document.forms.nhBillerConfig.clear.value="true";
- document.forms.nhBillerConfig.submit();
- doDisable(document.forms.nhBillerConfig, "button");
- }
- }
- -->
- </script>
- <!-- CONTENT -->
- <form name="nhBillerConfig" method="post" action="nhBillerConfig.do">
- <input type="hidden" name="action" value =""/>
- <input type="hidden" name="clear" value =""/>
- <input type="hidden" name="status" value="<logic:notEmpty name="nhBillerConfig" property="status"><bean:write name="nhBillerConfig" property="status" /></logic:notEmpty>">
- <input type="hidden" name="id" value="<logic:notEmpty name="nhBillerConfig" property="id"><bean:write name="nhBillerConfig" property="id" /></logic:notEmpty>">
- <input type="hidden" name="nameBillerConfig" value="<bean:write name="nhBillerConfig" property="name"/>">
- <table width="100%" border="0" align="center" cellpadding="2" cellspacing="4">
- <tr>
- <td class="titleHeader"><bean:message key="project.nhBillerConfig.key"/> - EDIT</td>
- </tr>
- <tr><td colspan="7"><html:errors/></td></tr>
- </table>
- <table width="100%" border="0" align="center" cellpadding="2" cellspacing="4">
- <tr>
- <td align="center">
- <logic:empty name="nhBillerConfig" property="id">
- <table width="100%" border="0" cellspacing="1" cellpadding="2">
- <tr align = "left">
- <td width="20%"><b><bean:message key="nhBillerConfig.biller.key"/></b></td>
- <td width="1%">:</td>
- <td width="79%" valign="top" colspan="4">
- <table>
- <tr>
- <td><input type="text" id="idNhBilCon" size="50" name="idNhBillerConfig"></TD>
- <td></td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </logic:empty>
- <logic:notEmpty name="nhBillerConfig" property="id">
- <table width="100%" border="0" cellspacing="1" cellpadding="2">
- <tr align = "left">
- <td width="20%"><b><bean:message key="nhBillerConfig.biller.key"/></b></td>
- <td width="1%">:</td>
- <td width="79%" align="left" colspan="4">
- <bean:write name="nhBillerConfig" property="id"/> - <bean:write name="nhBillerConfig" property="name"/>
- </td>
- <td colspan="4"> </td>
- </tr>
- <%/*<tr align = "left">
- <td width="20%"><b><bean:message key="nhBillerConfig.name.key"/></b></td>
- <td width>:</td>
- <td valign="top">
- <bean:write name="nhBillerConfig" property="name"/>
- <input type="hidden" name="nameBillerConfig" value="<bean:write name="nhBillerConfig" property="name"/>">
- </td>
- <td colspan="4"></td>
- </tr>*/%>
- <tr align = "left">
- <td width="20%"><b><bean:message key="nhBillerConfig.datasourceProvider.key"/></b></td>
- <td width="1%">:</td>
- <td width="79%" align="left" colspan="4">
- <html:text name="nhBillerConfig" property="datasourceProvider"/>
- </td>
- </tr>
- <tr align = "left">
- <td width="20%"><b><bean:message key="nhBillerConfig.databaseHost.key"/></b></td>
- <td width="1%">:</td>
- <td width="79%" align="left" colspan="4">
- <html:text name="nhBillerConfig" property="databaseHost"/>
- </td>
- </tr>
- <tr align = "left">
- <td width="20%"><b><bean:message key="nhBillerConfig.databasePort.key"/></b></td>
- <td width="1%">:</td>
- <td width="79%" align="left" colspan="4">
- <html:text name="nhBillerConfig" property="databasePort"/>
- </td>
- </tr>
- <tr align = "left">
- <td width="20%"><b><bean:message key="nhBillerConfig.databaseName.key"/></b></td>
- <td width="1%">:</td>
- <td width="79%" valign="left" colspan="4">
- <html:text name="nhBillerConfig" property="databaseName"/>
- </td>
- </tr>
- <tr align = "left">
- <td width="20%"><b><bean:message key="nhBillerConfig.defaultSchema.key"/></b></td>
- <td width="1%">:</td>
- <td width="79%" align="left" colspan="4">
- <html:text name="nhBillerConfig" property="defaultSchema"/>
- </td>
- </tr>
- <tr align = "left">
- <td width="20%"><b><bean:message key="nhBillerConfig.databaseUser.key"/></b></td>
- <td width="1%">:</td>
- <td width="79%" align="left" colspan="4">
- <html:text name="nhBillerConfig" property="databaseUser"/>
- </td>
- </tr>
- <tr align = "left">
- <td width="20%"><b><bean:message key="nhBillerConfig.databasePassword.key"/></b></td>
- <td width="1%">:</td>
- <td width="79%" align="left" colspan="4">
- <input type="password" name="databasePassword" value="*****">
- <%/*<html:password name="nhBillerConfig" property="databasePassword"/>*/%>
- </td>
- </tr>
- <tr align = "left">
- <td width="20%"><b><bean:message key="nhBillerConfig.dbms.key"/></b></td>
- <td width="1%">:</td>
- <td width="79%" align="left" colspan="4">
- <SELECT name="dbms">
- <option value="">Pilih Salah Satu</option>
- <option value="DB2"
- <logic:equal name="nhBillerConfig" property="dbms" value="DB2">
- SELECTED
- </logic:equal>
- >DB2</option>
- <option value="SQLServer"
- <logic:equal name="nhBillerConfig" property="dbms" value="SQLServer">
- SELECTED
- </logic:equal>
- >Microsoft SQL Server</option>
- <option value="MySQL"
- <logic:equal name="nhBillerConfig" property="dbms" value="MySQL">
- SELECTED
- </logic:equal>
- >MySQL</option>
- </SELECT>
- </td>
- <td colspan="4"> </td>
- </tr>
- <tr align = "left">
- <td width="20%"><b><bean:message key="nhBillerConfig.as400file.key"/></b></td>
- <td width="1%">:</td>
- <td width="79%" align="left" colspan="4">
- <html:text name="nhBillerConfig" property="AS400FILE"/>
- </td>
- </tr>
- <tr align = "left">
- <td width="20%"><b><bean:message key="nhBillerConfig.synchronizeType.key"/></b></td>
- <td width="1%">:</td>
- <td width="79%" align="left" colspan="4">
- <SELECT name="synchronizeType">
- <option value=""> Pilih Salah Satu </option>
- <option value="1"
- <logic:equal name="nhBillerConfig" property="synchronizeType" value="1">
- SELECTED
- </logic:equal>
- >Tagihan - Pembayaran </option>
- <option value="2"
- <logic:equal name="nhBillerConfig" property="synchronizeType" value="2">
- SELECTED
- </logic:equal>
- >Tagihan</option>
- <option value="3"
- <logic:equal name="nhBillerConfig" property="synchronizeType" value="3">
- SELECTED
- </logic:equal>
- >Pembayaran</option>
- </SELECT>
- </td>
- </tr>
- <%/*<tr align = "left">
- <td width="20%"><b><bean:message key="nhBillerConfig.billerType.key"/></b></td>
- <td width>:</td>
- <td valign="top">
- <SELECT name="billerType">
- <option value=""> Pilih Salah Satu </option>
- <option value="UNIVERSITAS"
- <logic:equal name="nhBillerConfig" property="billerType" value="UNIVERSITAS">
- SELECTED
- </logic:equal>
- >UNIVERSITAS</option>
- <option value="NON_UNIVERSITAS"
- <logic:equal name="nhBillerConfig" property="billerType" value="NON_UNIVERSITAS">
- SELECTED
- </logic:equal>
- >NON_UNIVERSITAS</option>
- </SELECT>
- </td>
- <td colspan="4"> </td>
- </tr>*/%>
- <tr align = "left">
- <td width="20%"><b><bean:message key="nhBillerConfig.maxTagihan.key"/></b></td>
- <td width="1%">:</td>
- <td width="79%" align="left" colspan="4">
- <html:text name="nhBillerConfig" property="maxTagihan"/>
- </td>
- </tr>
- <tr align = "left">
- <td width="20%"><b><bean:message key="nhBillerConfig.status.key"/></b></td>
- <td width="1%">:</td>
- <td width="79%" align="left" colspan="4">
- <bean:write name="nhBillerConfig" property="status"/>
- </td>
- </tr>
- </table>
- </logic:notEmpty>
- <table width="100%" border="0" cellspacing="1" cellpadding="2">
- <tr>
- <td width="20%" valign="top"></td>
- <td width="1%" valign="top"></td>
- <td width="79%" valign="top" colspan="4">
- <logic:empty name="nhBillerConfig" property="id">
- <input type="button" value="<bean:message key="button.edit" />" onclick="javascript:doEditSearch();">
- </logic:empty>
- <logic:notEmpty name="nhBillerConfig" property="id">
-
- <input type="button" value="<bean:message key="button.back" />" onclick="javascript:doBack();">
-
- <input type="button" value="<bean:message key="button.submit"/>" onclick="javascript:doEditOk();">
-
- <logic:equal name="nhBillerConfig" property="status" value="ACTIVE">
- <input type="button" value="<bean:message key="button.inactive"/>" onclick="doInactive('<bean:write name="nhBillerConfig" property="id"/>','INACTIVE');">
- </logic:equal>
- <logic:equal name="nhBillerConfig" property="status" value="NEW">
- <input type="button" value="<bean:message key="button.active"/>" onclick="doActiveStart('<bean:write name="nhBillerConfig" property="id"/>','ACTIVE');">
- </logic:equal>
- <logic:equal name="nhBillerConfig" property="status" value="INACTIVE">
- <input type="button" value="<bean:message key="button.active"/>" onclick="doActive('<bean:write name="nhBillerConfig" property="id"/>','ACTIVE');">
- </logic:equal>
- </logic:notEmpty>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </form>
- <!-- END CONTENT -->
- <%@ include file="../common/footer.jsp"%>
|