@@ -43,12 +43,13 @@
|
||||
mtype: 'POST',
|
||||
url: url,
|
||||
postData: getSearchForJqgrid("cmd", "LIST"),
|
||||
colNames: ['id', 'No', '기관명', 'Target URL', '신청일시'],
|
||||
colNames: ['id', 'No', '기관명', 'Target URL', 'Send URL', '신청일시'],
|
||||
colModel: [
|
||||
{name: 'id', align: 'center', key: true, hidden: true},
|
||||
{name: 'rowNum', align: 'center', width: 45, sortable: false},
|
||||
{name: 'orgName', align: 'left', width: 160},
|
||||
{name: 'targetUrl', align: 'left', width: 380, formatter: formatTargetUrl},
|
||||
{name: 'targetUrl', align: 'left', width: 300, formatter: formatTargetUrl},
|
||||
{name: 'sendUrl', align: 'left', width: 300, formatter: formatTargetUrl},
|
||||
{name: 'createdDate', align: 'center', width: 140}
|
||||
],
|
||||
jsonReader: {repeatitems: false},
|
||||
@@ -125,6 +126,7 @@
|
||||
<colgroup>
|
||||
<col style="width:120px;"><col style="width:200px;">
|
||||
<col style="width:120px;"><col style="width:200px;">
|
||||
<col style="width:120px;"><col style="width:200px;">
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr>
|
||||
@@ -132,6 +134,8 @@
|
||||
<td><input type="text" name="searchOrgName" autocomplete="off"></td>
|
||||
<th>Target URL</th>
|
||||
<td><input type="text" name="searchTargetUrl" autocomplete="off" style="width:95%;"></td>
|
||||
<th>Send URL</th>
|
||||
<td><input type="text" name="searchSendUrl" autocomplete="off" style="width:95%;"></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
@@ -96,6 +96,12 @@
|
||||
$('#targetUrl').focus();
|
||||
return;
|
||||
}
|
||||
var sendUrl = $.trim($('#sendUrl').val());
|
||||
if (sendUrl && !/^https?:\/\/.+/i.test(sendUrl)) {
|
||||
alert('Send URL은 http:// 또는 https:// 로 시작하는 전체 주소를 입력해주세요.');
|
||||
$('#sendUrl').focus();
|
||||
return;
|
||||
}
|
||||
if ($('input[name=eventTypes]:checked').length === 0) {
|
||||
alert('신청 이벤트를 1개 이상 선택해주세요.');
|
||||
return;
|
||||
@@ -125,6 +131,7 @@
|
||||
$('#id').text(data.id != null ? data.id : '');
|
||||
$('#orgName').text(data.orgName || '');
|
||||
$('#targetUrl').val(data.targetUrl || '');
|
||||
$('#sendUrl').val(data.sendUrl || '');
|
||||
$('#secret').text(data.secret || '');
|
||||
$('#userSecret').val(data.userSecret || '');
|
||||
$('#createdDate').text(data.createdDate || '');
|
||||
@@ -141,7 +148,7 @@
|
||||
|
||||
buttonControl('DETAIL');
|
||||
if (!canWrite) {
|
||||
$('#targetUrl, #userSecret').prop('readonly', true);
|
||||
$('#targetUrl, #sendUrl, #userSecret').prop('readonly', true);
|
||||
}
|
||||
|
||||
$.ajax({
|
||||
@@ -190,6 +197,10 @@
|
||||
<th>Target URL <font color="red">*</font></th>
|
||||
<td colspan="3"><input type="text" id="targetUrl" name="targetUrl" maxlength="255" style="width:100%"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Send URL</th>
|
||||
<td colspan="3"><input type="text" id="sendUrl" name="sendUrl" maxlength="255" style="width:100%"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Secret</th>
|
||||
<td colspan="3"><span id="secret"></span></td>
|
||||
|
||||
@@ -89,13 +89,14 @@
|
||||
mtype: 'POST',
|
||||
url: url,
|
||||
postData: getSearchForJqgrid("cmd", "LIST"),
|
||||
colNames: ['id', 'No.', '기관명', '이벤트유형', 'Target URL', 'Status', '성공여부', '재시도', '발송서버', '발송일시'],
|
||||
colNames: ['id', 'No.', '기관명', '이벤트유형', 'Target URL', 'Send URL', 'Status', '성공여부', '재시도', '발송서버', '발송일시'],
|
||||
colModel: [
|
||||
{name: 'id', align: 'center', key: true, hidden: true},
|
||||
{name: 'rowNum', align: 'center', width: 45, sortable: false},
|
||||
{name: 'orgName', align: 'left', width: 140},
|
||||
{name: 'eventType', align: 'center', width: 120, formatter: formatEventType},
|
||||
{name: 'targetUrl', align: 'left', width: 300, formatter: formatTargetUrl},
|
||||
{name: 'targetUrl', align: 'left', width: 250, formatter: formatTargetUrl},
|
||||
{name: 'sendUrl', align: 'left', width: 250, formatter: formatTargetUrl},
|
||||
{name: 'statusCode', align: 'center', width: 60},
|
||||
{name: 'success', align: 'center', width: 70, formatter: formatSuccess},
|
||||
{name: 'retryCount', align: 'center', width: 60},
|
||||
@@ -198,6 +199,14 @@
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>발송기간</th>
|
||||
<td>
|
||||
<input type="text" name="searchStartYYYYMMDD" id="startDatepicker" readonly="readonly" value="" size="10" style="width:100px; border:1px solid #ebebec;">
|
||||
~
|
||||
<input type="text" name="searchEndYYYYMMDD" value="" id="endDatepicker" size="10" readonly="readonly" style="width:100px; border:1px solid #ebebec;">
|
||||
<input type="hidden" name="searchStartDate" value="">
|
||||
<input type="hidden" name="searchEndDate" value="">
|
||||
</td>
|
||||
<th>기관명</th>
|
||||
<td><input type="text" name="searchOrgName" autocomplete="off"></td>
|
||||
<th>이벤트유형</th>
|
||||
@@ -206,7 +215,14 @@
|
||||
<select name="searchEventType"></select>
|
||||
</div>
|
||||
</td>
|
||||
<th>성공여부</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Target URL</th>
|
||||
<td><input type="text" name="searchTargetUrl" autocomplete="off" style="width:95%;"></td>
|
||||
|
||||
<th>Send URL</th>
|
||||
<td><input type="text" name="searchSendUrl" autocomplete="off" style="width:95%;"></td>
|
||||
<th>성공여부</th>
|
||||
<td>
|
||||
<div class="select-style">
|
||||
<select name="searchSuccess">
|
||||
@@ -217,20 +233,6 @@
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Target URL</th>
|
||||
<td><input type="text" name="searchTargetUrl" autocomplete="off" style="width:95%;"></td>
|
||||
<th>발송기간</th>
|
||||
<td>
|
||||
<input type="text" name="searchStartYYYYMMDD" id="startDatepicker" readonly="readonly" value="" size="10" style="width:100px; border:1px solid #ebebec;">
|
||||
~
|
||||
<input type="text" name="searchEndYYYYMMDD" value="" id="endDatepicker" size="10" readonly="readonly" style="width:100px; border:1px solid #ebebec;">
|
||||
<input type="hidden" name="searchStartDate" value="">
|
||||
<input type="hidden" name="searchEndDate" value="">
|
||||
</td>
|
||||
<th></th>
|
||||
<td></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
@@ -37,6 +37,7 @@
|
||||
$('#eventType').text(data.eventTypeName || data.eventType || '')
|
||||
.attr('title', data.eventType || '');
|
||||
$('#targetUrl').text(data.targetUrl || '');
|
||||
$('#sendUrl').text(data.sendUrl || '');
|
||||
$('#statusCode').text(data.statusCode != null ? data.statusCode : '');
|
||||
$('#retryCount').text(data.retryCount != null ? data.retryCount : '');
|
||||
$('#sendBy').text(data.sendBy || '');
|
||||
@@ -100,6 +101,10 @@
|
||||
<th>Target URL</th>
|
||||
<td colspan="3"><span id="targetUrl"></span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Send URL</th>
|
||||
<td colspan="3"><span id="sendUrl"></span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>성공여부</th>
|
||||
<td><span id="success"></span></td>
|
||||
|
||||
Reference in New Issue
Block a user