248 lines
16 KiB
Plaintext
248 lines
16 KiB
Plaintext
|
<%@page language="java" contentType="text/html;charset=utf-8" pageEncoding="UTF-8" %>
|
||
|
<div ng-controller="ENDR400Controller" class="skin-black">
|
||
|
|
||
|
<jsp:include page="TOP_MENU.jsp"/>
|
||
|
|
||
|
<div class="wrapper row-offcanvas row-offcanvas-left">
|
||
|
<!-- Left side column. contains the logo and sidebar -->
|
||
|
<jsp:include page="LEFT_MENU.jsp"/>
|
||
|
|
||
|
|
||
|
<!-- Right side column. Contains the navbar and content of the page -->
|
||
|
<aside class="right-side">
|
||
|
|
||
|
<!-- Insert Section -->
|
||
|
<section class="content" style="margin-bottom: -20px; margin-top: -20px;">
|
||
|
<button class="btn btn-primary pull-right" ng-click="doOpenInsertPanel()"
|
||
|
ng-show="openInsertPanel == false">
|
||
|
เพิ่มสิทธิ์เครื่องพิมพ์
|
||
|
</button>
|
||
|
<div class="row" style="overflow: hidden;" ng-style="openInsertPanel ? showPanelStyle : hidePanelStyle">
|
||
|
<div class="col-xs-12">
|
||
|
<div class="panel">
|
||
|
<header class="panel-heading">
|
||
|
เพิ่มสิทธิ์เครื่องพิมพ์
|
||
|
<button class="btn btn-default pull-right" style="margin-top:-7px;"
|
||
|
ng-click="doCloseInsertPanel()">X
|
||
|
</button>
|
||
|
</header>
|
||
|
<%--INSERT--%>
|
||
|
<div class="panel-body table-responsive">
|
||
|
<form novalidate name="insertEndrProvincialPrintForm">
|
||
|
<fieldset class="form-group"
|
||
|
ng-init="setInsertEndrProvincialPrintForm(insertEndrProvincialPrintForm)">
|
||
|
<div class="row">
|
||
|
<div class="form-group col-sm-4">
|
||
|
<div class="input-group">
|
||
|
<span class="input-group-addon">PROVINCIAL ID<em
|
||
|
style="color: #e40000">*</em></span>
|
||
|
<span ng-show="insertFlag == 1 && insertEndrProvincialPrintForm.provincialId.$error.required"
|
||
|
style="color: #e40000">PROVINCIAL ID Required!!</span>
|
||
|
<select id="provincialId" name="provincialId"
|
||
|
ng-model="insertForm.provincialId"
|
||
|
class="form-control"
|
||
|
data-placeholder="---Select---"
|
||
|
chosen="endrProvincialList"
|
||
|
disable-search="false"
|
||
|
allow-single-deselect="true"
|
||
|
unselect
|
||
|
ng-options="n.provincialId as n.provincialId+' : '+n.provincialDesc for n in endrProvincialList"
|
||
|
required
|
||
|
>
|
||
|
<option value="">กรุณาเลือก</option>
|
||
|
</select>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="form-group col-sm-4">
|
||
|
<div class="input-group">
|
||
|
<span class="input-group-addon">SERVER ID<em
|
||
|
style="color: #e40000">*</em></span>
|
||
|
<span ng-show="insertFlag == 1 && insertEndrProvincialPrintForm.serverId.$error.required"
|
||
|
style="color: #e40000">SERVER ID Required!!</span>
|
||
|
<select id="serverId" name="serverId" ng-model="insertForm.serverId"
|
||
|
class="form-control"
|
||
|
data-placeholder="---Select---"
|
||
|
chosen="endrPrintServerList"
|
||
|
disable-search="false"
|
||
|
allow-single-deselect="true"
|
||
|
unselect
|
||
|
ng-options="n.serverId as n.serverId+' : '+n.serverName for n in endrPrintServerList"
|
||
|
required
|
||
|
>
|
||
|
<option value="">กรุณาเลือก</option>
|
||
|
</select>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="row text-center">
|
||
|
<div type="button" ng-click="doSavePrinter()" class="btn btn-info btn-sm"
|
||
|
style="width: 55px; height: 30px;">Save
|
||
|
</div>
|
||
|
<div type="button" ng-click="doClearInsertForm()"
|
||
|
class="btn btn-warning btn-sm"
|
||
|
style="width: 55px; height: 30px;">Cancel
|
||
|
</div>
|
||
|
</div>
|
||
|
</fieldset>
|
||
|
</form>
|
||
|
</div>
|
||
|
|
||
|
</div><!-- /.box -->
|
||
|
</div>
|
||
|
</div>
|
||
|
</section>
|
||
|
|
||
|
|
||
|
<!-- Search Section -->
|
||
|
<section class="content">
|
||
|
<div class="row">
|
||
|
<div class="col-xs-12">
|
||
|
<div class="panel">
|
||
|
<header class="panel-heading" style="border-top: 1px solid #eee;">
|
||
|
ค้นหาสิทธิ์เครื่องพิมพ์
|
||
|
</header>
|
||
|
<%--Search--%>
|
||
|
<div class="panel-body table-responsive">
|
||
|
|
||
|
<fieldset class="form-group">
|
||
|
<div class="row">
|
||
|
<div class="form-group col-sm-4">
|
||
|
<div class="input-group">
|
||
|
<span class="input-group-addon">PROVINCIAL ID</span>
|
||
|
<select id="schProvincialId" ng-model="schForm.provincialId"
|
||
|
class="form-control"
|
||
|
data-placeholder="---Select---"
|
||
|
chosen="endrProvincialList"
|
||
|
disable-search="false"
|
||
|
allow-single-deselect="true"
|
||
|
unselect
|
||
|
ng-options="n.provincialId as n.provincialId+' : '+n.provincialDesc for n in endrProvincialList"
|
||
|
required
|
||
|
>
|
||
|
<option value="">ทั้งหมด</option>
|
||
|
</select>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="form-group col-sm-4">
|
||
|
<div class="input-group">
|
||
|
<span class="input-group-addon">SERVER ID</span>
|
||
|
<select id="schServerId" ng-model="schForm.serverId"
|
||
|
class="form-control"
|
||
|
data-placeholder="---Select---"
|
||
|
chosen="endrPrintServerList"
|
||
|
disable-search="false"
|
||
|
allow-single-deselect="true"
|
||
|
unselect
|
||
|
ng-options="n.serverId as n.serverId+' : '+n.serverName for n in endrPrintServerList"
|
||
|
required
|
||
|
>
|
||
|
<option value="">ทั้งหมด</option>
|
||
|
</select>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="row text-center">
|
||
|
<div type="button" ng-click="doSearch()" class="btn btn-info btn-sm"
|
||
|
style="width: 55px; height: 30px;">Search
|
||
|
</div>
|
||
|
<div type="button" ng-click="doClearSch()" class="btn btn-warning btn-sm"
|
||
|
style="width: 55px; height: 30px;">Cancel
|
||
|
</div>
|
||
|
</div>
|
||
|
</fieldset>
|
||
|
|
||
|
<fieldset>
|
||
|
<table class="table table-hover" width="97%" id="result">
|
||
|
<%--<th width="3%;">--%>
|
||
|
<%--<div align="center">No</div>--%>
|
||
|
<%--</th>--%>
|
||
|
<th width="3%;">
|
||
|
<div align="center">PROVINCIAL ID</div>
|
||
|
</th>
|
||
|
<th width="10%;">
|
||
|
<div align="left">PROVINCIAL DESC</div>
|
||
|
</th>
|
||
|
<th width="10%;">
|
||
|
<div align="left">PROVINCIAL ADDR</div>
|
||
|
</th>
|
||
|
<th width="5%;">
|
||
|
<div align="center">SERVER ID</div>
|
||
|
</th>
|
||
|
<th width="10%;">
|
||
|
<div align="left">SERVER NAME</div>
|
||
|
</th>
|
||
|
<th width="20%;">
|
||
|
<div align="left">PRINTER NAME</div>
|
||
|
</th>
|
||
|
<th width="20%;">
|
||
|
<div align="left">PRINTER STATUS</div>
|
||
|
</th>
|
||
|
<th width="10%;">
|
||
|
<div align="center">Edit</div>
|
||
|
</th>
|
||
|
|
||
|
<tr ng-show="searchFlag == '1' && onSearch == true">
|
||
|
<td style="color: black;" colspan="9" align="center">Loading ...</td>
|
||
|
</tr>
|
||
|
|
||
|
<tr ng-show="searchFlag == '1' && onSearch == false && endrProvincialPrintList.length == 0">
|
||
|
<td style="color: red" colspan="9" align="center">data not found</td>
|
||
|
</tr>
|
||
|
|
||
|
<tbody ng-show="searchFlag == '1' && onSearch == false && endrProvincialPrintList.length > 0"
|
||
|
ng-repeat="data in endrProvincialPrintList | slices:((currentPage1-1) * perPages):(((currentPage1-1) * perPages)+perPages) track by $index">
|
||
|
<tr>
|
||
|
<%--<td align="right">{{((currentPage1-1)*perPages)+$index+1}}</td>--%>
|
||
|
<td align="right">{{data.provincialId}}</td>
|
||
|
<td align="left">{{data.provincialDesc}}</td>
|
||
|
<td align="left">{{data.provincialAbbr}}</td>
|
||
|
<td align="right">{{data.serverId}}</td>
|
||
|
<td align="left">{{data.serverName}}</td>
|
||
|
<td align="left">{{data.printerName}}</td>
|
||
|
<td align="left">{{data.printerStatus == 1 ? 'ใช้งาน' : 'ไม่ใช้งาน'}}</td>
|
||
|
<td align="center">
|
||
|
<button class="btn btn-danger" ng-click="doDelete(data)">
|
||
|
delete
|
||
|
</button>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
|
||
|
<%--// down page--%>
|
||
|
<div ng-show="endrProvincialPrintList.length > 0">
|
||
|
<!-- total-items="totalItems1" max-size="maxSize" num-pages="40"-->
|
||
|
<pagination total-items="totalItems1" ng-model="currentPage1"
|
||
|
items-per-page="perPages"
|
||
|
max-size="maxSize" class="pagination-sm"
|
||
|
boundary-links="true" rotate="false"
|
||
|
>
|
||
|
</pagination>
|
||
|
</div>
|
||
|
<%--// End down page--%>
|
||
|
|
||
|
</fieldset>
|
||
|
|
||
|
</div><!-- /.box-body -->
|
||
|
</div><!-- /.box -->
|
||
|
</div>
|
||
|
</div>
|
||
|
</section>
|
||
|
|
||
|
<footer style="width:100%;
|
||
|
height:30px;
|
||
|
position:fixed;
|
||
|
bottom:0;
|
||
|
left:0;
|
||
|
background:#aaaaaa;
|
||
|
text-align: center;
|
||
|
border-top: 1px solid #aaaaaa;
|
||
|
padding-top: 5px;
|
||
|
color: #f012be;
|
||
|
">
|
||
|
Copyright © Director, 2015 by PRINT ENDR
|
||
|
</footer>
|
||
|
</aside><!-- /.right-side -->
|
||
|
</div>
|
||
|
|
||
|
</div>
|