CommitteeSetupForm.jsp 11.9 KB
Newer Older
Thitichaipun Wutthisak committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86
<!DOCTYPE html>
<%@page contentType="text/html; charset=UTF-8" %>
<%@page import="com.csc.library.utilities.*" %>
<%
  UProfile up = null;
  if (session != null) {
    up = (UProfile) session.getAttribute("userprofile");
  }
  CheckNull chk = new CheckNull();
  String candidateid = chk.chkNullString(request.getParameter("__candidateid"), "0");
  String applicantid = chk.chkNullString(request.getParameter("__applicantid"), "0");
  String parentPage = request.getParameter("__page");
  FileDownloadUtils downloadutils = new FileDownloadUtils("RECRUIT_UPLOAD", "dir", "cutter", "PICTURE");
  downloadutils.setDefaultFileName("DEFAULTPERSON.jpg");
  String path = downloadutils.getViewURL();
  String[] strPath = path.split("cutter");
%>
<html ng-app="RECRUIT">
<head>
  <title>Committee Setup Form</title>
  <meta http-equiv="Content-Type" name="viewport" content="width=device-width, initial-scale=1" charset=UTF-8/>

    <link href="../JS/jquery-ui-1.11.4.custom/jquery-ui.min.css" rel="stylesheet" type="text/css"/>
  <link href="../public/lib/angular-material/angular-material.min.css" rel="stylesheet" type="text/css"/>
  <link rel="stylesheet" type="text/css" href="../CSS/Bootstrap/css/bootstrap.min.css"/>
  <link rel="stylesheet" type="text/css" href="../CSS/Bootstrap/css/dataTables.bootstrap.min.css"/>
  <link href="../CSS/font-awesome.min.css" rel="stylesheet" type="text/css"/>
  <link rel='stylesheet' href='CSS/Recruit.css'/>

  <script type='text/javascript' src='../JS/SCREEN.js'></script>
  <script type='text/javascript' src="../JS/HOTKEY.js"></script>
  <script type='text/javascript' src='../JS/urljobboard.js'></script>
  <script type="text/javascript" src="../JS/jquery-2.1.3.min.js"></script>
  <script type="text/javascript" src="../JS/jquery-ui-1.11.4.js"></script>
  <script type="text/javascript" src="../JS/jquery-datepicker-language.js"></script>
  <script type="text/javascript" src="../CSS/Bootstrap/js/bootstrap.mins.js"></script>
  <script type="text/javascript" src="../JS/jquery.dataTables.min.js"></script>
  <script type="text/javascript" src="../JS/dataTables.bootstrap.min.js"></script>

  <script type="text/javascript" src="../JS/CLASS/FormApplicant.Class.js"></script>

  <script type="text/javascript" src='../public/lib/angular/angular.min.js'></script>
  <script type="text/javascript" src='../public/lib/angular-resource/angular-resource.min.js'></script>
  <script type='text/javascript' src='../public/lib/angular-sanitize/angular-sanitize.min.js'></script>
  <script type="text/javascript" src="../public/lib/angular-material/angular-material.js"></script>
  <script type="text/javascript" src="../public/lib/angular-animate/angular-animate.js"></script>
  <script type="text/javascript" src="../public/lib/angular-aria/angular-aria.js"></script>
  <script type="text/javascript" src="../public/lib/angular-messages/angular-messages.js"></script>
  <script type="text/javascript" src="../public/lib/chart.js/dist/Chart.min.js"></script>
  <script type="text/javascript" src="../public/lib/angular-chart.js/dist/angular-chart.min.js"></script>

  <script type="text/javascript" src="../JS/ANGULAR/SCREEN_ANGULAR.js"></script>
  <script type='text/javascript' src="../JS/ANGULAR/swaplang.factory.js"></script>
  <script type='text/javascript' src='../EXAM/JS/config.js'></script>
  <script type='text/javascript' src='../EXAM/JS/CLASS/Question.Class.js'></script>

  <script type='text/javascript' src='js/CommitteeSetup/Module.Controller.js'></script>
  <script type='text/javascript' src='js/services.js'></script>
  <script type='text/javascript' src='js/CommitteeSetup/CommitteeSetup.Controller.js'></script>
  <script type='text/javascript'>
    setLang('<%=up.get("lang")%>');

    $(function () {
      let candidateid = '<%=candidateid%>'
      let applicantid = '<%=applicantid%>'
      let dbName = '<%=up.getDbName()%>'
      let scope = angular.element($('form[name="cscform"]')).scope();
      scope.$apply(function () {
        scope.dbName = dbName
        if(candidateid != '0'){
          scope.queryCandidate(candidateid);
        }else if(applicantid != '0'){
          scope.queryApplicant(applicantid);
        }
        
      });
    });
  </script>
</head>
<body ng-controller='CommitteeSetup' id="popupContainer">
<form id="myform" name="cscform" method="post" action="CommitteeSetupForm.jsp">
  <input type="hidden" name="__cmd">
  <input type="hidden" name="candidateid" value='<%=candidateid%>'>
  <input type="hidden" name="applicantid" value='<%=applicantid%>'>
  <input type="hidden" name="committeeid">
  <input type="hidden" name="jobid">
peema_phongam committed
87
  <input type="hidden" name="judge">
Thitichaipun Wutthisak committed
88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160
  <input type="hidden" name="notedit" value='true'>
  <input type="hidden" name="parentPage" value='<%=parentPage%>'>

  <br>
  <div class="container-fluid">
    <div class="header-panel-csc text-right panel-heading">
      <span><swaplang code="SW013303">Setup Commitee</swaplang></span>
    </div>
    <div class="panel-body body-panel-csc">
      <div ng-clock>
        <md-content>
          <md-card>
            <md-card-title>
              <md-card-title-text>
                <legend class="md-headline csctheme">
                  <swaplang code="SW012958">Personal Information</swaplang>
                </legend>
              </md-card-title-text>
            </md-card-title>
            <md-card-content>
              <div class="text-center">
                <img class="img-thumbnail" src="<%=strPath[0]%>{{clsFormApplicant.formApplicant.personal.imgname}}<%=strPath[1]%>" name="employeePic" style="width: 152px;height: 152px">
              </div>
              <br>
              <div class="form-horizontal">
                <div class="form-group">
                  <label class="control-label col-sm-6">
                    <swaplang code="SW002115">Applicant's Name</swaplang>
                  </label>
                  <div class="col-sm-6">
                    <label class="control-label">
                      <master-prefix code="{{clsFormApplicant.formApplicant.personal.prefixid}}"></master-prefix>
                      {{clsFormApplicant.formApplicant.personal.fname[lang]}}  {{clsFormApplicant.formApplicant.personal.lname[lang]}}
                    </label>
                  </div>
                </div>
                <div class="form-group">
                  <label class="control-label col-sm-6">
                    <swaplang code="SW012970">Job title</swaplang>
                  </label>
                  <div class="col-sm-6">
                    <label class="control-label">
                      {{job}}
                    </label>
                  </div>
                </div>
              </div>
            </md-card-content>
          </md-card>
        </md-content>
      </div>

      <br>
      <div ng-clock>
        <md-content>
          <md-card>
            <md-card-title>
              <md-card-title-text>
                <legend class="md-headline csctheme">
                  <swaplang code="SW003355">List of committee</swaplang>
                </legend>
              </md-card-title-text>
            </md-card-title>
            <md-card-content>
              <table class="table table-hover table-head-csctheme">
                <thead>
                  <tr>
                    <th colspan='2' class='text-center'><swaplang code="SW013310">Committee ID</swaplang></th>
                    <th><swaplang code="SW006993">Committee Name</swaplang></th>
                    <th><swaplang code="BU2">Department</swaplang></th>
                    <th><swaplang code="SW000057">Position</swaplang></th>
                    <th ng-hide="chkPage()"><swaplang code="SW000019">Status</swaplang></th>
                    <th><swaplang code="SW001055">Sequencing</swaplang></th>
161
                    <th class="text-center">สถานะการประเมิน</th>
Thitichaipun Wutthisak committed
162 163 164 165 166 167 168 169 170 171 172 173 174 175 176
                  </tr>
                </thead>
                <tbody>
                  <tr ng-repeat='committee in committee'>
                    <td class='non-padding'>
                      <md-button class="md-icon-button non-margin non-padding " ng-show='isgetreferre' aria-label="Search Committee" ng-click="SearchCommittee($event, $index)">
                        <md-tooltip md-direction="bottom"><swaplang code="SW003537">Search</swaplang></md-tooltip>
                        <i class="fa fa-search"></i>
                      </md-button>
                      <md-button class="md-icon-button non-margin non-padding" aria-label="Search Committee" ng-click="delCommittee($index)">
                        <md-tooltip md-direction="bottom"><swaplang code="SW000123">Delete</swaplang></md-tooltip>
                        <i class="fa fa-trash-o"></i>
                      </md-button>
                    </td>
                    <td>
peema_phongam committed
177
                      <a ng-hide="chkPage()" ng-click='viewApsForm(committee.employeeid, committee.seq, committee.judge)'>
Thitichaipun Wutthisak committed
178 179 180 181 182 183 184 185 186 187 188 189 190 191
                        {{committee.employeeid}}
                        <md-tooltip md-direction="bottom"><swaplang code="SW012131">Interview Results</swaplang></md-tooltip>
                      </a>
                      <div ng-show="chkPage()">{{committee.employeeid}}</div>
                    </td>
                    <td>{{committee.fullname}}</td>
                    <td>{{committee.bu3}}</td>
                    <td>{{committee.position}}</td>
                    <td ng-hide="chkPage()">{{getApsStatus($index)}}</td>
                    <td>
                      <select class="form-control" ng-model="committee.seq">
                        <option ng-repeat='list in seqlist' value="{{list.value}}">{{list.value}}</option>
                      </select>
                    </td>
peema_phongam committed
192
                    <td class="text-center">
193 194 195 196 197 198 199 200 201 202
<%--                                 <span ng-if="committee.referee_level > 1">--%>
<%--                        {{refereeStatus[committee.referee_level]}}--%>
<%--                      </span>--%>
<%--                      <md-checkbox ng-if="committee.referee_level == '1'" ng-disabled="haveJudge() && committee.judge !== '1'" ng-model="committee.judge" ng-false-value="'0'" ng-true-value="'1'" aria-label="Judge" ng-change="changeJudge()">--%>
                      <select class="form-control" ng-model="committee.judge">
                        <option ng-repeat="item in refereeStatus | filter:{id:'0'}" value="{{item.id}}">{{ item.desc }}</option>
                        <option ng-if="committee.referee_level > '0'" ng-repeat="item in refereeStatus | filter:{id:committee.referee_level}" value="{{item.id}}">{{ item.desc }}</option>
                      </select>


peema_phongam committed
203
                    </td>
Thitichaipun Wutthisak committed
204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230
                  </tr>
                </tbody>
              </table>
            </md-card-content>
            <md-card-content class="text-center">
              <md-button class="md-icon-button non-margin non-padding" aria-label="Search Committee" ng-click="addCommittee()">
                <md-tooltip md-direction="bottom"><swaplang code="SW013045">Add</swaplang></md-tooltip>
                <i class="fa fa-plus fa-2x csctheme" role="button" tabindex="0"></i>
              </md-button>
              <md-button class="md-icon-button non-margin non-padding" aria-label="Search Committee" ng-click="save('0')">
                <md-tooltip md-direction="bottom"><swaplang code="SW000117">Save</swaplang></md-tooltip>
                <i class="fa fa-floppy-o fa-2x csctheme" role="button" tabindex="0"></i>
              </md-button>
              <md-button class="md-icon-button non-margin non-padding" ng-show="hascommittee && chkPage()==false" aria-label="Process" ng-click="showConfirm($event)" >
                <md-tooltip md-direction="bottom" ><swaplang code="SW000872">Process</swaplang></md-tooltip>
                <i class="fa fa-cogs fa-2x csctheme" role="button" tabindex="0"></i>
              </md-button>
            </md-card-content>
          </md-card>
        </md-content>
      </div>
    </div>
    <div class="panel-footer footer-panel-csc"></div>
  </div>
</form>
</body>
</html>