diff options
author | 2017-09-01 11:57:47 +0800 | |
---|---|---|
committer | 2017-09-01 11:57:58 +0800 | |
commit | 57dbba269d19bc59fad89160200bb2dbcccb9003 (patch) | |
tree | d466041ceffa2161124ca79a48b3e077777c74b8 /usecaseui-common/src/main/webapp/app/fusionapp/drools/view-models | |
parent | 4ff32341a0af1972b44a7410e76e9b231131e7ab (diff) |
Upload Monitor function code
Change-Id: I33ad76221b4cb771a298ff240245fc24be664efb
Issue-Id: USECASEUI-6
Signed-off-by: shentao <shentao@chinamobile.com>
Diffstat (limited to 'usecaseui-common/src/main/webapp/app/fusionapp/drools/view-models')
4 files changed, 142 insertions, 0 deletions
diff --git a/usecaseui-common/src/main/webapp/app/fusionapp/drools/view-models/droolsList.html b/usecaseui-common/src/main/webapp/app/fusionapp/drools/view-models/droolsList.html new file mode 100644 index 00000000..91e68a15 --- /dev/null +++ b/usecaseui-common/src/main/webapp/app/fusionapp/drools/view-models/droolsList.html @@ -0,0 +1,28 @@ +<div ng-controller="droolsListController"> + <div> + <h1 class="heading1" style="margin-top:20px;">Drools List</h1> + <div style="margin-top:30px"> + <table att-table table-data="tableData" view-per-page="viewPerPage" current-page="currentPage" search-category="searchCategory" search-string="searchString" total-page="totalPage"> + + <thead att-table-row type="header"> + <tr> + <th att-table-header key="droolsFile">Drools File Name</th> + <th att-table-header key="className">Class Name</th> + <th att-table-header key="selectedRules">Run Rule</th> + + </tr> + </thead> + <tbody att-table-row type="body" row-repeat="rowData in tableData"> + <tr> + <td att-table-body ng-bind="rowData['droolsFile']">{{rowData.droolsFile}}</td> + <td att-table-body ng-bind="rowData['className']">{{rowData.className}}</td> + + <td att-table-body > + <div ng-click="openDialog(rowData.droolsFile)" style="font-size:20px;"><a href="javascript:void(0)" class="icon-play"></a></div> + </td> + </tr> + </tbody> + </table> + </div> + </div> + <input ng-model="currentPage"></input> diff --git a/usecaseui-common/src/main/webapp/app/fusionapp/drools/view-models/droolsSinglePage.html b/usecaseui-common/src/main/webapp/app/fusionapp/drools/view-models/droolsSinglePage.html new file mode 100644 index 00000000..a1d0a5ba --- /dev/null +++ b/usecaseui-common/src/main/webapp/app/fusionapp/drools/view-models/droolsSinglePage.html @@ -0,0 +1,72 @@ +<!DOCTYPE html> +<html> + <head> + <meta http-equiv="X-UA-Compatible" content="IE=edge" /> + <meta http-equiv="cache-control" content="max-age=0" /> + <meta http-equiv="cache-control" content="no-cache" /> + <meta http-equiv="expires" content="0" /> + <meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" /> + <meta http-equiv="pragma" content="no-cache" /> + <!-- CSS --> + <link rel="stylesheet" type="text/css" href="app/fusion/external/ebz/fn-ebz.css" > + <link rel="stylesheet" type="text/css" href="app/fusion/external/ebz/sandbox/styles/demo.css" > + <link rel="stylesheet" type="text/css" href="app/fusion/external/ebz/sandbox/styles/base.css" > + <link rel="stylesheet" type="text/css" href="app/fusion/external/ebz/sandbox/styles/btn.css" > + <link rel="stylesheet" type="text/css" href="app/fusion/external/ebz/sandbox/styles/dtpk.css" > + <link rel="stylesheet" type="text/css" href="app/fusion/external/ebz/sandbox/styles/frms.css" > + <link rel="stylesheet" type="text/css" href="app/fusion/external/ebz/sandbox/styles/sldr.css" > + <link rel="stylesheet" type="text/css" href="app/fusion/external/ebz/sandbox/styles/style.css" > + <link rel="stylesheet" type="text/css" href="app/fusion/external/ebz/sandbox/styles/tbs.css" > + <link rel="stylesheet" type="text/css" href="app/fusion/external/ebz/ebz_header/portal_ebz_header.css"> + <link rel="stylesheet" type="text/css" href="static/fusion/css/jquery-ui.css"> + <!-- Basic AngularJS --> + <script src= "app/fusion/external/ebz/angular_js/angular.js"></script> + <script src= "app/fusion/external/ebz/angular_js/angular-sanitize.js"></script> + <script src= "app/fusion/external/ebz/angular_js/angular-route.min.js"></script> + <script src= "app/fusion/external/ebz/angular_js/app.js"></script> + <script src= "app/fusion/external/ebz/angular_js/gestures.js"></script> + <script src= "app/fusion/external/ebz/sandbox/att-abs-tpls.js" type="text/javascript"></script> + <script src="app/fusion/external/angular-ui/ui-bootstrap-tpls-1.1.2.min.js"></script> + <script src= "app/fusion/external/ebz/angular_js/angular-cookies.js"></script> + <!-- jQuery --> + <script src="static/js/jquery-1.10.2.js"></script> + <script src="static/js/jquery.mask.min.js" type="text/javascript"></script> + <script src="static/js/jquery-ui.js" type="text/javascript"></script> + <!-- AngularJS Gridster --> + <script src="static/fusion/js/att_angular_gridster/ui-gridster-tpls.js"></script> + <script src="static/fusion/js/att_angular_gridster/angular-gridster.js"></script> + <!-- AngularJS Config --> + <script src= "app/fusion/external/ebz/angular_js/app.js"></script> + <script src= "app/fusion/external/ebz/angular_js/checklist-model.js"></script> + <!-- Utility --> + <script src="app/fusion/scripts/modalService.js"></script> + <!-- Controller js --> + <script src="app/fusion/scripts/controllers/rolefunctionpopupController.js"></script> + <script src="app/fusion/scripts/controllers/modelpopupController.js"></script> + <script src="app/fusionapp/drools/controller/droolsController.js"></script> + <script src="app/fusionapp/drools/controller/drools-list-controller.js"></script> + <script src="app/fusionapp/drools/controller/drools-view-controller.js"></script> + <!-- Header and Footer --> + <script src="app/fusion/external/ebz/js/attHeaderSnippet.js"></script> + <script src="app/fusion/external/ebz/js/attHeader.js"></script> + <link rel="stylesheet" type="text/css" href="app/fusion/external/ebz/ebz_header/header.css"> + <link rel="stylesheet" type="text/css" href="app/fusion/external/ebz/ebz_header/footer.css" > + <script src="app/fusion/scripts/directives/footer.js"></script> + <script src="app/fusion/external/ebz/js/footer.js"></script> + <script src="app/fusion/scripts/directives/header.js"></script> + <script src="app/fusion/scripts/directives/leftMenu.js"></script> + <script src="app/fusion/scripts/services/leftMenuService.js"></script> + + <!-- Services --> + <script src="app/fusionapp/drools/services/droolsService.js"></script> + <script src="app/fusion/scripts/services/userInfoService.js"></script> + </head> + <body class="appBody" ng-app="abs"> + <div ng-include src="'app/fusion/scripts/view-models/profile-page/popup_modal_rolefunction.html'"></div> + <div ng-include src="'app/fusion/scripts/view-models/profile-page/popup_modal.html'"></div> + <div q-header></div> + <div q-menu class="appLeftMenu"></div> + <div id="rightContentAdmin" ng-view style="min-height: 450px;margin-top:-50px;margin-left:210px;margin-right:10px;"></div> + <div q-footer class="appFooter"></div> + </body> +</html>
\ No newline at end of file diff --git a/usecaseui-common/src/main/webapp/app/fusionapp/drools/view-models/droolsView.html b/usecaseui-common/src/main/webapp/app/fusionapp/drools/view-models/droolsView.html new file mode 100644 index 00000000..bcc80b73 --- /dev/null +++ b/usecaseui-common/src/main/webapp/app/fusionapp/drools/view-models/droolsView.html @@ -0,0 +1,42 @@ +<div ng-controller="droolsViewController" class="modal__informative font-showcase"> + +<h1 class="heading1" style="margin-top:20px;">Drools Rule Engine</h1> + <br> + Please enter below details:<br/> + + <div class="fn-ebz-container"> + Drools File:<br/> + <input class="fn-ebz-text" type="text" ng-model="postDroolsBean.droolsFile" value="" size="25"> + </div> + + <div class="fn-ebz-container"> + Class Name:<br/> + <input class="fn-ebz-text" type="text" ng-model="postDroolsBean.className" value="" size="25"> + </div> + + <div class="fn-ebz-container"> + Selected Rules:<br/> + <input class="fn-ebz-text" type="text" ng-model="postDroolsBean.selectedRules" value="" size="25"> + </div> + + + <div> + <input att-button btn-type="primary" size="small" class="button" type="submit" value="Execute Rules" ng-click="execute(postDroolsBean);" /> + </div> + <br> + {{resultsString}} + <br> + <br> + <br> + <br> + <br> + <br> + <br> + <br> + <br> + + + + +</div> + diff --git a/usecaseui-common/src/main/webapp/app/fusionapp/drools/view-models/dummy.txt b/usecaseui-common/src/main/webapp/app/fusionapp/drools/view-models/dummy.txt new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/usecaseui-common/src/main/webapp/app/fusionapp/drools/view-models/dummy.txt |