|
@@ -2,148 +2,136 @@
|
|
<div class="dj-card">
|
|
<div class="dj-card">
|
|
<div class="dj-body" activate-input activate-select>
|
|
<div class="dj-body" activate-input activate-select>
|
|
<div class="card">
|
|
<div class="card">
|
|
- <form class="form-horizontal" role="form" id="trainingRecordEditForm"
|
|
|
|
- name="trainingRecordEditForm" ng-submit="save(trainingRecordEditForm.$valid)" novalidate>
|
|
|
|
|
|
+ <form class="form-horizontal" role="form" id="trainingRecordForm"
|
|
|
|
+ name="trainingRecordForm" ng-submit="save(trainingRecordForm.$valid)" novalidate>
|
|
<div class="dj-formtable">
|
|
<div class="dj-formtable">
|
|
<table class="dj-table dj-table3">
|
|
<table class="dj-table dj-table3">
|
|
<tr>
|
|
<tr>
|
|
-<!-- <th>培训对象类型<span style="color: red">*</span></th>-->
|
|
|
|
-<!-- <td ng-class="{ 'has-error' : this.trainingRecordEditForm.pxdxlx.$invalid && this.trainingRecordEditForm.$submitted}">-->
|
|
|
|
-<!-- <select class="form-control show-tick" ng-model="dataModel.pxdxlx"-->
|
|
|
|
-<!-- ng-options="type.dickey as type.dicvalue for type in pxdxlxTypeList"-->
|
|
|
|
-<!-- class="form-control" ng-required="true" name="pxdxlx">-->
|
|
|
|
-<!-- <option value="" selected>--请选择--</option>-->
|
|
|
|
-<!-- </select>-->
|
|
|
|
-<!-- <span ng-show="this.trainingRecordEditForm.pxdxlx.$invalid && this.trainingRecordEditForm.$submitted"-->
|
|
|
|
-<!-- class="error">必填.</span>-->
|
|
|
|
-<!-- </td>-->
|
|
|
|
|
|
+ <th>培训对象类型<span style="color: red">*</span></th>
|
|
|
|
+ <td ng-class="{ 'has-error' : this.trainingRecordForm.pxdxlx.$invalid && this.trainingRecordForm.$submitted}">
|
|
|
|
+ <select class="form-control show-tick" ng-model="dataModel.pxdxlx"
|
|
|
|
+ ng-options="type.dickey as type.dicvalue for type in pxdxlxTypeList"
|
|
|
|
+ class="form-control" ng-required="true" name="pxdxlx">
|
|
|
|
+ <option value="" selected>--请选择--</option>
|
|
|
|
+ </select>
|
|
|
|
+ <span ng-show="this.trainingRecordForm.pxdxlx.$invalid && this.trainingRecordForm.$submitted"
|
|
|
|
+ class="error">必填.</span>
|
|
|
|
+ </td>
|
|
<th>姓名<span style="color: red">*</span></th>
|
|
<th>姓名<span style="color: red">*</span></th>
|
|
- <td ng-class="{ 'has-error' : this.trainingRecordEditForm.name.$invalid && this.trainingRecordEditForm.$submitted}">
|
|
|
|
|
|
+ <td ng-class="{ 'has-error' : this.trainingRecordForm.name.$invalid && this.trainingRecordForm.$submitted}">
|
|
<div class="input-group input-group-search">
|
|
<div class="input-group input-group-search">
|
|
<input name="name" type="text" ng-model="dataModel.name"
|
|
<input name="name" type="text" ng-model="dataModel.name"
|
|
class="form-control" ng-required="true" ng-disabled="nameDisabled"/>
|
|
class="form-control" ng-required="true" ng-disabled="nameDisabled"/>
|
|
- <span class="input-group-addon" data-dataoptions="selectUserlist" title="选择成员" bsselectdata-pro ng-click="nameDisabled=true">
|
|
|
|
|
|
+ <span class="input-group-addon" data-dataoptions="selectUserlist" title="选择成员" bsselectdata-pro>
|
|
<i class="material-icons small">search</i>
|
|
<i class="material-icons small">search</i>
|
|
</span>
|
|
</span>
|
|
- <span class="input-group-addon" ng-click="nameDisabled=false;dataModel.name='';dataModel.rybm='';$event.stopPropagation();">
|
|
|
|
|
|
+ <span class="input-group-addon" ng-click="clearName();$event.stopPropagation();">
|
|
<i class="material-icons small">clear</i>
|
|
<i class="material-icons small">clear</i>
|
|
</span>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
- <span ng-show="this.trainingRecordEditForm.name.$invalid && this.trainingRecordEditForm.$submitted" class="error">必填.</span>
|
|
|
|
|
|
+ <span ng-show="this.trainingRecordForm.name.$invalid && this.trainingRecordForm.$submitted" class="error">必填.</span>
|
|
</td>
|
|
</td>
|
|
<th>性别<span style="color: red">*</span></th>
|
|
<th>性别<span style="color: red">*</span></th>
|
|
- <td ng-class="{ 'has-error' : this.trainingRecordEditForm.gender.$invalid && this.trainingRecordEditForm.$submitted}">
|
|
|
|
- <select class="form-control show-tick" ng-model="dataModel.gender"
|
|
|
|
|
|
+ <td ng-class="{ 'has-error' : this.trainingRecordForm.gender.$invalid && this.trainingRecordForm.$submitted}">
|
|
|
|
+ <select class="form-control show-tick" id="trainingRecordFormGender" ng-model="dataModel.gender"
|
|
ng-options="type.dickey as type.dicvalue for type in sexList"
|
|
ng-options="type.dickey as type.dicvalue for type in sexList"
|
|
- class="form-control" ng-required="true" name="gender">
|
|
|
|
|
|
+ class="form-control" name="gender">
|
|
<option value="" selected>--请选择--</option>
|
|
<option value="" selected>--请选择--</option>
|
|
</select>
|
|
</select>
|
|
- <span ng-show="this.trainingRecordEditForm.gender.$invalid && this.trainingRecordEditForm.$submitted"
|
|
|
|
|
|
+ <span ng-show="this.trainingRecordForm.gender.$invalid && this.trainingRecordForm.$submitted"
|
|
class="error">必填.</span>
|
|
class="error">必填.</span>
|
|
</td>
|
|
</td>
|
|
</tr>
|
|
</tr>
|
|
<tr>
|
|
<tr>
|
|
<th>身份证号<span style="color: red">*</span></th>
|
|
<th>身份证号<span style="color: red">*</span></th>
|
|
- <td ng-class="{ 'has-error' : this.trainingRecordEditForm.sfzh.$invalid && this.trainingRecordEditForm.$submitted}">
|
|
|
|
|
|
+ <td ng-class="{ 'has-error' : this.trainingRecordForm.sfzh.$invalid && this.trainingRecordForm.$submitted}">
|
|
<input type="text" class="form-control" name="sfzh"
|
|
<input type="text" class="form-control" name="sfzh"
|
|
autocomplete="off" autoclose="true" maxlength="18"
|
|
autocomplete="off" autoclose="true" maxlength="18"
|
|
ng-model="dataModel.sfzh" ng-required="true"/>
|
|
ng-model="dataModel.sfzh" ng-required="true"/>
|
|
- <span ng-show="this.trainingRecordEditForm.sfzh.$invalid && this.trainingRecordEditForm.$submitted"
|
|
|
|
|
|
+ <span ng-show="this.trainingRecordForm.sfzh.$invalid && this.trainingRecordForm.$submitted"
|
|
class="error">必填.</span>
|
|
class="error">必填.</span>
|
|
</td>
|
|
</td>
|
|
<th>工作部门<span style="color: red">*</span></th>
|
|
<th>工作部门<span style="color: red">*</span></th>
|
|
- <td ng-class="{ 'has-error' : this.trainingRecordEditForm.gzbm.$invalid && this.trainingRecordEditForm.$submitted}">
|
|
|
|
|
|
+ <td ng-class="{ 'has-error' : this.trainingRecordForm.gzbm.$invalid && this.trainingRecordForm.$submitted}">
|
|
<input type="text" class="form-control" name="gzbm"
|
|
<input type="text" class="form-control" name="gzbm"
|
|
autocomplete="off" autoclose="true"
|
|
autocomplete="off" autoclose="true"
|
|
ng-model="dataModel.gzbm" ng-required="true"/>
|
|
ng-model="dataModel.gzbm" ng-required="true"/>
|
|
- <span ng-show="this.trainingRecordEditForm.gzbm.$invalid && this.trainingRecordEditForm.$submitted"
|
|
|
|
|
|
+ <span ng-show="this.trainingRecordForm.gzbm.$invalid && this.trainingRecordForm.$submitted"
|
|
class="error">必填.</span>
|
|
class="error">必填.</span>
|
|
</td>
|
|
</td>
|
|
<th>职务<span style="color: red">*</span></th>
|
|
<th>职务<span style="color: red">*</span></th>
|
|
- <td ng-class="{ 'has-error' : this.trainingRecordEditForm.zw.$invalid && this.trainingRecordEditForm.$submitted}">
|
|
|
|
|
|
+ <td ng-class="{ 'has-error' : this.trainingRecordForm.zw.$invalid && this.trainingRecordForm.$submitted}">
|
|
<input type="text" class="form-control" name="zw"
|
|
<input type="text" class="form-control" name="zw"
|
|
autocomplete="off" autoclose="true"
|
|
autocomplete="off" autoclose="true"
|
|
ng-model="dataModel.zw" ng-required="true"/>
|
|
ng-model="dataModel.zw" ng-required="true"/>
|
|
- <span ng-show="this.trainingRecordEditForm.zw.$invalid && this.trainingRecordEditForm.$submitted"
|
|
|
|
|
|
+ <span ng-show="this.trainingRecordForm.zw.$invalid && this.trainingRecordForm.$submitted"
|
|
class="error">必填.</span>
|
|
class="error">必填.</span>
|
|
</td>
|
|
</td>
|
|
</tr>
|
|
</tr>
|
|
<tr>
|
|
<tr>
|
|
<th>培训项目名称<span style="color: red">*</span></th>
|
|
<th>培训项目名称<span style="color: red">*</span></th>
|
|
- <td ng-class="{ 'has-error' : this.trainingRecordEditForm.pxxmmc.$invalid && this.trainingRecordEditForm.$submitted}">
|
|
|
|
|
|
+ <td ng-class="{ 'has-error' : this.trainingRecordForm.pxxmmc.$invalid && this.trainingRecordForm.$submitted}">
|
|
<input type="text" class="form-control" name="pxxmmc"
|
|
<input type="text" class="form-control" name="pxxmmc"
|
|
autocomplete="off" autoclose="true"
|
|
autocomplete="off" autoclose="true"
|
|
ng-model="dataModel.pxxmmc" ng-required="true"/>
|
|
ng-model="dataModel.pxxmmc" ng-required="true"/>
|
|
- <span ng-show="this.trainingRecordEditForm.pxxmmc.$invalid && this.trainingRecordEditForm.$submitted"
|
|
|
|
|
|
+ <span ng-show="this.trainingRecordForm.pxxmmc.$invalid && this.trainingRecordForm.$submitted"
|
|
class="error">必填.</span>
|
|
class="error">必填.</span>
|
|
</td>
|
|
</td>
|
|
-<!-- <th>培训形式<span style="color: red">*</span></th>-->
|
|
|
|
-<!-- <td ng-class="{ 'has-error' : this.trainingRecordEditForm.pxxs.$invalid && this.trainingRecordEditForm.$submitted}">-->
|
|
|
|
-<!-- <select class="form-control show-tick" ng-model="dataModel.pxxs"-->
|
|
|
|
-<!-- ng-options="type.dickey as type.dicvalue for type in pxxsTypeList"-->
|
|
|
|
-<!-- class="form-control" ng-required="true" name="pxxs">-->
|
|
|
|
-<!-- <option value="" selected>--请选择--</option>-->
|
|
|
|
-<!-- </select>-->
|
|
|
|
-<!-- <span ng-show="this.trainingRecordEditForm.pxxs.$invalid && this.trainingRecordEditForm.$submitted"-->
|
|
|
|
-<!-- class="error">必填.</span>-->
|
|
|
|
-<!-- </td>-->
|
|
|
|
- <th>参训天数<span style="color: red">*</span></th>
|
|
|
|
- <td ng-class="{ 'has-error' : this.trainingRecordEditForm.cxts.$invalid && this.trainingRecordEditForm.$submitted}">
|
|
|
|
- <input type="number" class="form-control" name="cxts"
|
|
|
|
|
|
+ <th>培训形式<span style="color: red">*</span></th>
|
|
|
|
+ <td ng-class="{ 'has-error' : this.trainingRecordForm.pxxs.$invalid && this.trainingRecordForm.$submitted}">
|
|
|
|
+ <select class="form-control show-tick" ng-model="dataModel.pxxs"
|
|
|
|
+ ng-options="type.dickey as type.dicvalue for type in pxxsTypeList"
|
|
|
|
+ class="form-control" ng-required="true" name="pxxs">
|
|
|
|
+ <option value="" selected>--请选择--</option>
|
|
|
|
+ </select>
|
|
|
|
+ <span ng-show="this.trainingRecordForm.pxxs.$invalid && this.trainingRecordForm.$submitted"
|
|
|
|
+ class="error">必填.</span>
|
|
|
|
+ </td>
|
|
|
|
+ <th>学时数<span style="color: red">*</span></th>
|
|
|
|
+ <td ng-class="{ 'has-error' : this.trainingRecordForm.xss.$invalid && this.trainingRecordForm.$submitted}">
|
|
|
|
+ <input type="number" class="form-control" name="xss"
|
|
autocomplete="off" autoclose="true" min="0" step="1"
|
|
autocomplete="off" autoclose="true" min="0" step="1"
|
|
- ng-model="dataModel.cxts" ng-required="true"/>
|
|
|
|
- <span ng-show="this.trainingRecordEditForm.cxts.$invalid && this.trainingRecordEditForm.$submitted"
|
|
|
|
|
|
+ ng-model="dataModel.xss" ng-required="true"/>
|
|
|
|
+ <span ng-show="this.trainingRecordForm.xss.$invalid && this.trainingRecordForm.$submitted"
|
|
class="error">必填.</span>
|
|
class="error">必填.</span>
|
|
</td>
|
|
</td>
|
|
</tr>
|
|
</tr>
|
|
<tr>
|
|
<tr>
|
|
<th>学习开始时间<span style="color: red">*</span></th>
|
|
<th>学习开始时间<span style="color: red">*</span></th>
|
|
- <td ng-class="{ 'has-error' : this.trainingRecordEditForm.xxkssj.$invalid && this.trainingRecordEditForm.$submitted}">
|
|
|
|
|
|
+ <td ng-class="{ 'has-error' : this.trainingRecordForm.xxkssj.$invalid && this.trainingRecordForm.$submitted}">
|
|
<input name="xxkssj" class="form-control"
|
|
<input name="xxkssj" class="form-control"
|
|
autocomplete="off"
|
|
autocomplete="off"
|
|
autoclose="true" ng-required="true"
|
|
autoclose="true" ng-required="true"
|
|
data-date-format="yyyy-MM-dd" data-date-type="date"
|
|
data-date-format="yyyy-MM-dd" data-date-type="date"
|
|
ng-model="dataModel.xxkssj"
|
|
ng-model="dataModel.xxkssj"
|
|
placeholder="" bs-datepicker/>
|
|
placeholder="" bs-datepicker/>
|
|
- <span ng-show="this.trainingRecordEditForm.xxkssj.$invalid && this.trainingRecordEditForm.$submitted"
|
|
|
|
|
|
+ <span ng-show="this.trainingRecordForm.xxkssj.$invalid && this.trainingRecordForm.$submitted"
|
|
class="error">必填.</span>
|
|
class="error">必填.</span>
|
|
</td>
|
|
</td>
|
|
<th>学习结束时间<span style="color: red">*</span></th>
|
|
<th>学习结束时间<span style="color: red">*</span></th>
|
|
- <td ng-class="{ 'has-error' : this.trainingRecordEditForm.xxjssj.$invalid && this.trainingRecordEditForm.$submitted}">
|
|
|
|
|
|
+ <td ng-class="{ 'has-error' : this.trainingRecordForm.xxjssj.$invalid && this.trainingRecordForm.$submitted}">
|
|
<input name="xxjssj" class="form-control"
|
|
<input name="xxjssj" class="form-control"
|
|
- autocomplete="off"
|
|
|
|
|
|
+ autocomplete="off" data-min-date="{{dataModel.xxkssj}}"
|
|
autoclose="true" ng-required="true"
|
|
autoclose="true" ng-required="true"
|
|
data-date-format="yyyy-MM-dd" data-date-type="date"
|
|
data-date-format="yyyy-MM-dd" data-date-type="date"
|
|
ng-model="dataModel.xxjssj"
|
|
ng-model="dataModel.xxjssj"
|
|
placeholder="" bs-datepicker/>
|
|
placeholder="" bs-datepicker/>
|
|
- <span ng-show="this.trainingRecordEditForm.xxjssj.$invalid && this.trainingRecordEditForm.$submitted"
|
|
|
|
- class="error">必填.</span>
|
|
|
|
- </td>
|
|
|
|
- <th>学时数<span style="color: red">*</span></th>
|
|
|
|
- <td ng-class="{ 'has-error' : this.trainingRecordEditForm.xss.$invalid && this.trainingRecordEditForm.$submitted}">
|
|
|
|
- <input type="number" class="form-control" name="xss"
|
|
|
|
- autocomplete="off" autoclose="true" min="0" step="1"
|
|
|
|
- ng-model="dataModel.xss" ng-required="true"/>
|
|
|
|
- <span ng-show="this.trainingRecordEditForm.xss.$invalid && this.trainingRecordEditForm.$submitted"
|
|
|
|
|
|
+ <span ng-show="this.trainingRecordForm.xxjssj.$invalid && this.trainingRecordForm.$submitted"
|
|
class="error">必填.</span>
|
|
class="error">必填.</span>
|
|
</td>
|
|
</td>
|
|
|
|
+ <th>参训天数<span style="color: red">*</span></th>
|
|
|
|
+ <td>{{interval()}}</td>
|
|
</tr>
|
|
</tr>
|
|
<tr>
|
|
<tr>
|
|
- <th>考核情况<span style="color: red">*</span></th>
|
|
|
|
- <td colspan="2" ng-class="{ 'has-error' : this.trainingRecordEditForm.khqk.$invalid && this.trainingRecordEditForm.$submitted}">
|
|
|
|
|
|
+ <th>考核情况</th>
|
|
|
|
+ <td colspan="2">
|
|
<input type="text" class="form-control" name="khqk"
|
|
<input type="text" class="form-control" name="khqk"
|
|
- autocomplete="off" autoclose="true"
|
|
|
|
- ng-model="dataModel.khqk" ng-required="true"/>
|
|
|
|
- <span ng-show="this.trainingRecordEditForm.khqk.$invalid && this.trainingRecordEditForm.$submitted"
|
|
|
|
- class="error">必填.</span>
|
|
|
|
|
|
+ autocomplete="off" autoclose="true" ng-model="dataModel.khqk"/>
|
|
</td>
|
|
</td>
|
|
- <th>实施机构名称<span style="color: red">*</span></th>
|
|
|
|
- <td colspan="2" ng-class="{ 'has-error' : this.trainingRecordEditForm.ssjgmc.$invalid && this.trainingRecordEditForm.$submitted}">
|
|
|
|
|
|
+ <th>实施机构名称</th>
|
|
|
|
+ <td colspan="2">
|
|
<input type="text" class="form-control" name="ssjgmc"
|
|
<input type="text" class="form-control" name="ssjgmc"
|
|
- autocomplete="off" autoclose="true"
|
|
|
|
- ng-model="dataModel.ssjgmc" ng-required="true"/>
|
|
|
|
- <span ng-show="this.trainingRecordEditForm.ssjgmc.$invalid && this.trainingRecordEditForm.$submitted"
|
|
|
|
- class="error">必填.</span>
|
|
|
|
|
|
+ autocomplete="off" autoclose="true" ng-model="dataModel.ssjgmc"/>
|
|
</td>
|
|
</td>
|
|
</tr>
|
|
</tr>
|
|
<tr>
|
|
<tr>
|
|
@@ -168,7 +156,7 @@
|
|
</div>
|
|
</div>
|
|
<div class="form_foot">
|
|
<div class="form_foot">
|
|
<button type="button" class="btn btn-default" ng-click="pagechange()">取消</button>
|
|
<button type="button" class="btn btn-default" ng-click="pagechange()">取消</button>
|
|
- <button type="submit" class="btn btn-primary" form="trainingRecordEditForm">保存</button>
|
|
|
|
|
|
+ <button type="submit" class="btn btn-primary" form="trainingRecordForm">保存</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</form>
|
|
</div>
|
|
</div>
|