177 lines
7.3 KiB
Plaintext
177 lines
7.3 KiB
Plaintext
<%@page language="java" contentType="text/html;charset=utf-8" pageEncoding="UTF-8" %>
|
|
|
|
<div ng-controller="ENDR100Controller" 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">--%>
|
|
|
|
<section class="content">
|
|
<div class="row">
|
|
<div class="col-xs-12">
|
|
<div class="panel">
|
|
<header class="panel-heading">
|
|
จัดการ Data
|
|
<%--รายการข้อมูลสั่งพิมพ์--%>
|
|
</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="97%;">
|
|
<tbody>
|
|
<tr>
|
|
<td width="20%;" valign="top" height="40px">เลือกระบบ <em style="color: #e40000">*</em></td>
|
|
<td width="80%;">
|
|
<div class="controls form-inline">
|
|
<select id="systemCode"
|
|
name="systemCode"
|
|
ng-model="systemCode"
|
|
class="form-control input-sm"
|
|
style="width: 200px; height: 35px;"
|
|
placeholder="system"
|
|
ng-required="true"
|
|
ng-change="setType();"
|
|
>
|
|
<option ng-selected="systemCode==i.codeId" ng-repeat="i in systemLst track by $index" value="{{i.codeId}}">{{i.systemName}}</option>
|
|
</select>
|
|
<span ng-show="msgErrorSch==1 && searchForm.systemCode.$error.required" style="color: #e40000">Required !!!</span>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td width="20%;" valign="top" height="40px">เลือก Type ทำงาน <em style="color: #e40000">*</em></td>
|
|
<td width="80%;">
|
|
<div class="controls form-inline">
|
|
<select id="processTypeCode"
|
|
name="processTypeCode"
|
|
ng-model="processTypeCode"
|
|
class="form-control input-sm"
|
|
style="width: 200px; height: 35px;"
|
|
placeholder="Process Type"
|
|
ng-required="true"
|
|
>
|
|
<%--<option ng-selected="schForm.team==''" value="">ALL TEAM</option>--%>
|
|
<%--<option ng-selected="schForm.team==''" value="">SELECT TEAM</option>--%>
|
|
<option ng-selected="processTypeCode==i.processTypeCode" ng-repeat="i in processTypeLst track by $index" value="{{i.processTypeCode}}">{{i.processTypeName}}</option>
|
|
</select>
|
|
<span ng-show="msgErrorSch==1 && searchForm.processTypeCode.$error.required" style="color: #e40000">Required !!!</span>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
|
|
<td width="20%;" align="left" valign="top">Text Sql : </td>
|
|
<td width="80%;">
|
|
<div class="controls form-inline">
|
|
<textarea class="controls form-inline"
|
|
<%--ng-maxlength="2000" --%>
|
|
name="txtSql"
|
|
ng-required="true" rows="10" cols="80"
|
|
ng-model="txtSql">
|
|
</textarea>
|
|
<span ng-show="msgErrorSch==1 && searchForm.txtSql.$error.required" style="color: #e40000">Required Remark !!!</span>
|
|
<span ng-show="searchForm.txtSql.$error.maxlength" style="color: #e40000">maxlength <= 2000 !!!</span>
|
|
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td width="20%"></td>
|
|
<td width="80%;" align="left" valign="top">
|
|
<%-- --%>
|
|
<input type="button" ng-click="doSearch(searchForm)" class="btn btn-info btn-sm" style="width: 70px; height: 30px;" value="Call"/>
|
|
<%--<input type="button" ng-click="doClearSch(searchForm)" class="btn btn-warning" style="width: 70px; height: 30px;" value="Cancel"/>--%>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<br ng-show="dataLst.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="dataLst.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 ng-repeat="i in columnLst track by $index"><div align="left">{{i}}</div></th>
|
|
|
|
<tbody ng-show="dataLst.length!=0" ng-repeat="row in dataLst | slices:((currentPage1-1) * perPages):(((currentPage1-1) * perPages)+perPages) track by $index">
|
|
<%--<tbody ng-show="dataLst.length!=0" ng-repeat="row in dataLst track by $index">--%>
|
|
|
|
<tr>
|
|
<td height="30px;" align="left" ng-repeat="cl in row.dataRow track by $index">
|
|
{{cl}}
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
<%--// down page--%>
|
|
<div ng-show="dataLst.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> |