350 lines
20 KiB
Plaintext
350 lines
20 KiB
Plaintext
<%@page language="java" contentType="text/html;charset=utf-8" pageEncoding="UTF-8" %>
|
|
|
|
<div ng-controller="ENDR001Controller" class="skin-black">
|
|
|
|
<jsp:include page="TOP_MENU.jsp"/>
|
|
<%--<div ng-controller="topMenuController">--%>
|
|
<%--<%–<a href="index.html" class="logo">–%>--%>
|
|
|
|
|
|
<%--<!-- Header Navbar: style can be found in header.less -->--%>
|
|
<%--<nav class="navbar navbar-static-top" role="navigation">--%>
|
|
|
|
|
|
<%--<div style="position: absolute;z-index: 1000;--%>
|
|
<%--margin-bottom: 0;float: left;--%>
|
|
<%--font-size: 20px;--%>
|
|
<%--line-height: 50px;--%>
|
|
<%--text-align: center;--%>
|
|
<%--padding: 0px 20px;--%>
|
|
<%--background-color: #39435c;--%>
|
|
<%--width: 220px;--%>
|
|
<%--/*font-family: 'Kaushan Script', cursive;*/--%>
|
|
<%--font-weight: 500;--%>
|
|
<%--height: 50px;"--%>
|
|
<%-->--%>
|
|
<%--<%–<a href="index.html" class="logo">–%>--%>
|
|
<%--<a ng-click="redirectMainPage('/ENDR001');" style="cursor: pointer;" >--%>
|
|
<%--<!-- Add the class icon to your logo image or logo icon to add the margining -->--%>
|
|
<%--ENDR PRINT--%>
|
|
<%--</a>--%>
|
|
<%--</div>--%>
|
|
|
|
<%--<div class="navbar-right">--%>
|
|
<%--<ul class="nav navbar-nav">--%>
|
|
|
|
<%--<!-- User Account: style can be found in dropdown.less -->--%>
|
|
<%--<li class="dropdown user user-menu">--%>
|
|
|
|
<%--<a href="#" class="dropdown-toggle" data-toggle="dropdown">--%>
|
|
<%--<i class="fa fa-user"></i>--%>
|
|
<%--<span>{{logIn.firstname}} {{logIn.lastname}}<i class="caret"></i></span>--%>
|
|
<%--</a>--%>
|
|
<%--<ul class="dropdown-menu dropdown-custom dropdown-menu-right">--%>
|
|
<%--<li class="dropdown-header text-center"> </li>--%>
|
|
<%--<li ng-click="doLogout();" style="cursor: pointer;">--%>
|
|
<%--<a><i class="fa fa-ban fa-fw pull-right"></i> Logout</a>--%>
|
|
<%--</li>--%>
|
|
<%--</ul>--%>
|
|
|
|
<%--</li>--%>
|
|
<%--</ul>--%>
|
|
<%--</div>--%>
|
|
<%--</nav>--%>
|
|
<%--</div>--%>
|
|
|
|
<div class="wrapper row-offcanvas row-offcanvas-left">
|
|
<!-- Left side column. contains the logo and sidebar -->
|
|
<jsp:include page="LEFT_MENU.jsp"/>
|
|
<%--<aside class="left-side sidebar-offcanvas" ng-controller="leftMenuController">--%>
|
|
<%--<section class="sidebar">--%>
|
|
<%--<ul class="sidebar-menu">--%>
|
|
<%--<li class="active">--%>
|
|
<%--<a ng-click="printing('/ENDR001');" style="cursor: pointer;">--%>
|
|
<%--<i class="fa fa-share"></i> <span>สั่งพิมพ์</span>--%>
|
|
<%--</a>--%>
|
|
<%--</li>--%>
|
|
<%--</ul>--%>
|
|
<%--</section>--%>
|
|
<%--</aside>--%>
|
|
|
|
<!-- Right side column. Contains the navbar and content of the page -->
|
|
<aside class="right-side">
|
|
<section class="content">
|
|
<div class="row">
|
|
<div class="col-xs-12">
|
|
<div class="panel">
|
|
<header class="panel-heading">
|
|
การส่งไฟล์ .DAT เพื่อพิมพ์สลักหลัง
|
|
<%--รายการข้อมูลสั่งพิมพ์--%>
|
|
</header>
|
|
<!-- <div class="box-header"> -->
|
|
<!-- <h3 class="box-title">Responsive Hover Table</h3> -->
|
|
|
|
<!-- </div> -->
|
|
<div class="panel-body table-responsive">
|
|
<form novalidate name="searchForm" class="search-form">
|
|
<fieldset>
|
|
<table width="98%;">
|
|
<tbody>
|
|
<tr>
|
|
<td width="19%;" valign="middle">เลือกรายการที่ต้องการสั่งพิมพ์ <em style="color: #e40000">*</em></td>
|
|
<td width="17%;">
|
|
<div class="controls form-inline">
|
|
<%--<select--%>
|
|
<%--id="team"--%>
|
|
<%--name="team"--%>
|
|
<%--ng-model="schForm.team"--%>
|
|
<%--style="width: 150px;"--%>
|
|
<%--ng-required="true"--%>
|
|
|
|
<%--data-placeholder="ALL TEAM"--%>
|
|
<%--chosen="teamLst"--%>
|
|
<%--disable-search="false"--%>
|
|
<%--allow-single-deselect="true"--%>
|
|
<%--unselect--%>
|
|
<%--ng-options="n.teamCode as n.teamDesc for n in teamLst track by $index"--%>
|
|
<%-->--%>
|
|
<%--<option value=""></option>--%>
|
|
<%--</select>--%>
|
|
<select id="team"
|
|
name="team"
|
|
ng-model="schForm.team"
|
|
class="form-control input-sm"
|
|
style="width: auto; height: 30px;"
|
|
placeholder="ALL TEAM"
|
|
ng-required="true"
|
|
>
|
|
<%--<option ng-selected="schForm.team==''" value="">ALL TEAM</option>--%>
|
|
<option ng-selected="schForm.team==''" value="">SELECT TEAM</option>
|
|
<option ng-selected="schForm.team==i.teamCode" ng-repeat="i in teamLst track by $index" value="{{i.teamCode}}">{{i.teamDesc}}</option>
|
|
</select>
|
|
<span ng-show="msgErrorSch=='0' && searchForm.team.$error.required" style="color: #e40000">Required!</span>
|
|
</div>
|
|
</td>
|
|
|
|
<td width="10%;" align="right" valign="middle">Approve Date : </td>
|
|
<td width="8%;">
|
|
<div class="controls form-inline">
|
|
<input
|
|
id="approveDate"
|
|
name="approveDate"
|
|
ng-model="schForm.approveDate"
|
|
type="text"
|
|
class="form-control input-sm"
|
|
style="width: 86px;"
|
|
mask='39/19/9999'
|
|
datepickers
|
|
<%--placeholder="POLICY NO"--%>
|
|
/>
|
|
<span style="color: #ff0000;" ng-show="searchForm.approveDate.$error.mask">Invalid Date</span>
|
|
</div>
|
|
</td>
|
|
|
|
<td width="8%;" align="right" valign="middle">Policy No : </td>
|
|
<td width="8%;">
|
|
<div class="controls form-inline">
|
|
<input
|
|
id="policyNo"
|
|
name="policyNo"
|
|
ng-model="schForm.policyNo"
|
|
type="text"
|
|
class="form-control input-sm"
|
|
style="width: 92px;"
|
|
<%--placeholder="POLICY NO"--%>
|
|
/>
|
|
</div>
|
|
</td>
|
|
|
|
<td width="8%;" align="right" valign="middle">Client No : </td>
|
|
<td width="8%;">
|
|
<div class="controls form-inline">
|
|
<input
|
|
id="clientNo"
|
|
name="clientNo"
|
|
ng-model="schForm.clientNo"
|
|
type="text"
|
|
class="form-control input-sm"
|
|
style="width: 92px;"
|
|
<%--placeholder="CLIENT NO"--%>
|
|
/>
|
|
</div>
|
|
</td>
|
|
|
|
<td width="12%;">
|
|
<input type="button" ng-click="doSearch(searchForm)" class="btn btn-info btn-sm" style="width: 55px; height: 30px;" value="Search"/>
|
|
<input type="button" ng-click="doClearSch(searchForm)" class="btn btn-warning" style="width: 60px; height: 30px;" value="Cancel"/>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<br ng-show="endrLst.length==0"/>
|
|
</fieldset>
|
|
</form>
|
|
|
|
<%--<div class="box-tools m-b-15">--%>
|
|
<%--<div class="input-group">--%>
|
|
<%--<input type="text" name="table_search" class="form-control input-sm pull-right" style="width: 150px;" placeholder="Search"/>--%>
|
|
<%--<div class="input-group-btn">--%>
|
|
<%--<button class="btn btn-sm btn-default" ng-click="doSearch();"><i class="fa fa-search"></i></button>--%>
|
|
<%--</div>--%>
|
|
<%--</div>--%>
|
|
<%--</div>--%>
|
|
|
|
|
|
<fieldset>
|
|
<%--// Top page--%>
|
|
<div ng-show="endrLst.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 Top page--%>
|
|
|
|
<table class="table table-hover" width="97%">
|
|
<%--<table border="0" cellpadding="0" cellspacing="0" class="tableresult" width="100%">--%>
|
|
|
|
<th width="5%;">
|
|
<div align="center">
|
|
<label style="cursor: pointer;">
|
|
<input
|
|
type="checkbox"
|
|
id="selectAll"
|
|
name="selectAll"
|
|
ng-model="selectAll"
|
|
ng-false-value="0"
|
|
ng-true-value="1"
|
|
<%--ng-click="doSelectAll();"--%>
|
|
ng-change="doSelectAll();"
|
|
style="min-width: 15px; min-height: 15px;"
|
|
ng-checked="selectAll==1"
|
|
>
|
|
</label>
|
|
</div>
|
|
</th>
|
|
<th width="5%;"><div align="center">ลำดับ</div></th>
|
|
<th width="15%;"><div align="center">หมายเลขกรมธรรม์</div></th>
|
|
<th width="10%;"><div align="center">Client No</div></th>
|
|
<th width="30%;"><div align="center">ประเภทสลักหลัง</div></th>
|
|
<th width="10%;"><div align="center">ประเภทเอกสาร</div></th>
|
|
<th width="10%;"><div align="center">วันที่อนุมัติ</div></th>
|
|
<th width="10%;"><div align="center">สถานะ</div></th>
|
|
<th width="10%;"><div align="center">ทีมงาน</div></th>
|
|
|
|
<tr ng-show="endrLst.length==0">
|
|
<td style="color: red" colspan="9" align="center">{{dataNotFound}}</td>
|
|
</tr>
|
|
|
|
<tbody ng-show="endrLst.length!=0" ng-repeat="i in endrLst | slices:((currentPage1-1) * perPages):(((currentPage1-1) * perPages)+perPages) track by $index">
|
|
<tr>
|
|
<td height="30px;">
|
|
<div style="cursor: pointer" align="center">
|
|
<label>
|
|
<input
|
|
type="checkbox"
|
|
<%--value="{{i.taskId}}"--%>
|
|
<%--ng-checked="lstSelect.indexOf(i.taskId) > -1"--%>
|
|
id="selectFlag"
|
|
name="selectFlag"
|
|
ng-model="i.selectFlag"
|
|
ng-click="toggleSelect(i.taskId);"
|
|
style="min-width: 15px; min-height: 15px;"
|
|
ng-checked="i.selectFlag==1"
|
|
ng-false-value="0"
|
|
ng-true-value="1"
|
|
>
|
|
</label>
|
|
</div>
|
|
</td>
|
|
<td align="right">{{((currentPage1-1)*perPages)+$index+1}}</td>
|
|
<td align="center">{{i.policyNo}}</td>
|
|
<td align="center">{{i.clientNo}}</td>
|
|
<td>{{i.endrCode}} {{i.endrDesc}}</td>
|
|
<td align="center">{{i.docType}}</td>
|
|
<td align="center">{{i.approveDateDisplay}}</td>
|
|
<td align="center">{{i.status}}</td>
|
|
<%--<span class="label label-success"></span>--%>
|
|
<td align="center">{{i.team}}</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
<%--// down page--%>
|
|
<div ng-show="endrLst.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>
|
|
|
|
<form novalidate name="printForm" class="print-form">
|
|
<fieldset>
|
|
<%--<br/>--%>
|
|
<table width="97%;" class="table">
|
|
<tbody>
|
|
<tr>
|
|
<td width="70%;" valign="middle">
|
|
<div class="controls form-inline">
|
|
เลือกเครื่องพิมพ์ <em style="color: #e40000">*</em>
|
|
|
|
<select id="serverId"
|
|
name="serverId"
|
|
ng-model="pntForm.serverId"
|
|
class="form-control input-sm"
|
|
style="width: auto; height: 30px;"
|
|
placeholder="Select serverId"
|
|
ng-required="true"
|
|
>
|
|
<option ng-selected="pntForm.serverId==''" value="">SELECT PRINTER</option>
|
|
<option ng-selected="pntForm.serverId==i.serverId" ng-repeat="i in printerLst track by $index" value="{{i.serverId}}">{{i.serverName}}</option>
|
|
</select>
|
|
<span ng-show="msgErrorPrint=='0' && printForm.serverId.$error.required" style="color: #e40000">Required !!!</span>
|
|
|
|
|
|
<input type="button" ng-click="doPrint(printForm)" class="btn btn-info btn-sm" style="width: 70px; height: 30px;" value="Print"/>
|
|
|
|
<%--<input type="button" ng-click="doClearPnt(printForm)" class="btn btn-warning" style="width: 70px; height: 30px;" value="Cancel"/>--%>
|
|
</div>
|
|
</td>
|
|
<td width="30%;" valign="middle">
|
|
<div class="controls form-inline">
|
|
<div align="right">
|
|
<input type="button" ng-click="doRejectPrint();" class="btn btn-danger btn-sm" style="width: 70px; height: 30px;" value="Reject"/>
|
|
</div>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</fieldset>
|
|
</form>
|
|
|
|
</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> |