You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

FormView.cshtml 15 KiB

4 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340
  1. @{
  2. ViewBag.Title = "教师信息管理";
  3. Layout = "~/Views/Shared/_Index.cshtml";
  4. }
  5. @Html.AppendCssFile("/Views/UserCenter/user.css")
  6. <style>
  7. .lr-layout-center .lr-layout-wrap .lr-form-wrap {
  8. overflow: auto;
  9. }
  10. </style>
  11. <div class="lr-form-wrap" style="height:100%;overflow:auto">
  12. <div id="teacher" class="user_warpper student_warpper">
  13. <div class="index_sec index_sec1">
  14. @*<div class="userTitle">基本信息</div>*@
  15. <!-- / user_sec1 -->
  16. <div class="user_sec1">
  17. <img src="~/Content/images/Login/user4.png" />
  18. <div class="userSec1Box">
  19. <div class="userSec1L">
  20. <div class="userSec1Img">
  21. @*<img src="~/Content/images/Login/user3.jpg" />*@
  22. <img :src="this.headUrl" />
  23. </div>
  24. <div class="userSec1T">{{teacherInfo.EmpName}}</div>
  25. </div>
  26. <ul class="userSec1R">
  27. <li>职 &nbsp; 工 &nbsp; 号 :{{teacherInfo.EmpNo}} </li>
  28. <li>性 &nbsp; &nbsp; &nbsp; 别 : {{teacherInfo.GenderNo | sex}}</li>
  29. <li>出生日期 : {{teacherInfo.Birthday | date}}</li>
  30. <li>联系电话 : {{teacherInfo.mobile}}</li>
  31. <li v-if="baseInfo">校 &nbsp; &nbsp; &nbsp; 区 : {{baseInfo.companyId | company}}</li>
  32. <li>教职工类别 : {{teacherInfo.EmpSortNo | empSortNo}}</li>
  33. <li>聘任职称 : {{teacherInfo.TitleOfTechPostNo | titleOfTechPostNo}}</li>
  34. </ul>
  35. </div>
  36. </div>
  37. <!-- / user_sec1 -->
  38. <!-- / user_sec2 -->
  39. <div class="user_sec2">
  40. <div class="userSec2Box">
  41. <div class="userSec2T">基本信息 <i class="fa fa-angle-right"></i></div>
  42. <ul class="userSec2List">
  43. <li>民 族 : {{teacherInfo.NationalityNo | nationalityNo}}</li>
  44. <li>政治面貌 : {{teacherInfo.PartyFaceNo | partyFaceNo}}</li>
  45. <li>身份证号 : {{teacherInfo.IdentityCardNo}} </li>
  46. <li>E-mail : {{teacherInfo.EMail}}</li>
  47. <li>档案所在地 : {{teacherInfo.LocusOfArchives}} </li>
  48. <li>户口所在地 : {{teacherInfo.LocusOfResidence}} </li>
  49. </ul>
  50. </div>
  51. <div class="userSec2Box">
  52. <div class="userSec2T">家庭情况 <i class="fa fa-angle-right"></i></div>
  53. <ul class="userSec2List">
  54. <li>港澳台侨 : {{teacherInfo.OverseasChineseNo | overseasChineseNo}} </li>
  55. <li>健康状况 : {{teacherInfo.HealthStatusNo | healthStatusNo}}</li>
  56. <li>家庭出身 : {{teacherInfo.FamilyOriginNo | familyOriginNo}} </li>
  57. <li>外语语种 : {{teacherInfo.ForeignLanguageNo | foreignLanguageNo}} </li>
  58. <li>户籍省份 : {{teacherInfo.ProvinceNo | provinceNo}} </li>
  59. <li>户籍地市 : {{teacherInfo.CityNo | cityNo}} </li>
  60. <li>户籍县区 : {{teacherInfo.RegionNo | regionNo}} </li>
  61. </ul>
  62. </div>
  63. <div class="userSec2Box">
  64. <div class="userSec2T">其他 <i class="fa fa-angle-right"></i></div>
  65. <ul class="userSec2List">
  66. <li>学科门 : {{teacherInfo.SubjectSpeciesNo | subjectSpeciesNo}}</li>
  67. <li>现任职务: {{teacherInfo.Title}}</li>
  68. <li>所在系部 : {{teacherInfo.DeptNo | deptNo}} </li>
  69. <li>文化程度 : {{teacherInfo.CultureDegreeNo | cultureDegreeNo}} </li>
  70. <li>毕业学校 : {{teacherInfo.GraduateSchoolName}} </li>
  71. <li>最高学位 : {{teacherInfo.DegreeNo | degreeNo}}</li>
  72. <li>来校年月 : {{teacherInfo.InSchoolDate | date}}</li>
  73. </ul>
  74. </div>
  75. <div class="userSec2Box">
  76. <div class="userSec2T">联系方式 <i class="fa fa-angle-right"></i></div>
  77. <ul class="userSec2List">
  78. <li>紧急联系人 : {{teacherInfo.Linkman}}</li>
  79. <li>紧急联系人电话 : {{teacherInfo.PhoneOfLinkman}}</li>
  80. </ul>
  81. </div>
  82. </div>
  83. <!-- / user_sec2 -->
  84. </div>
  85. </div>
  86. <script>
  87. var keyValue = request('keyValue');
  88. new Vue({
  89. el: "#teacher",
  90. data: {
  91. headUrl: "",
  92. baseInfo: "",
  93. teacherInfo: "",
  94. },
  95. methods: {
  96. getData: function () {
  97. $.get('/UserCenter/GetTeacherInfoById?id='+keyValue, function (ref) {
  98. this.teacherInfo = ref.data.userInfo;
  99. this.baseInfo = ref.data.basecInfo;
  100. }.bind(this), "json");
  101. },
  102. getUrl: function () {
  103. var loginInfo = top.learun.clientdata.get(['userinfo']);
  104. this.headUrl = '/LR_OrganizationModule/User/GetImg?userId=' + loginInfo.userId;
  105. }
  106. },
  107. created() {
  108. this.getData();
  109. this.getUrl();
  110. },
  111. filters: {
  112. sex: function (value) {
  113. return value ? "男" : "女";
  114. },
  115. date: function (value) {
  116. var date = new Date(value);
  117. return date.toLocaleDateString();
  118. },
  119. company: function (value) {
  120. var result;
  121. top.learun.clientdata.getAsync('custmerData', {
  122. sync: true,
  123. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'company',
  124. key: value,
  125. keyId: 'f_companyid',
  126. callback: function (_data) {
  127. result = _data.f_fullname;
  128. }
  129. });
  130. return result;
  131. },
  132. nationalityNo: function (value) {
  133. var result;
  134. top.learun.clientdata.getAsync('custmerData', {
  135. sync: true,
  136. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BCdNationality',
  137. key: value,
  138. keyId: 'nationalityno',
  139. callback: function (_data) {
  140. result = _data['nationality'];
  141. }
  142. });
  143. return result;
  144. },
  145. partyFaceNo: function (value) {
  146. var result;
  147. top.learun.clientdata.getAsync('custmerData', {
  148. sync: true,
  149. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BCdPartyFace',
  150. key: value,
  151. keyId: 'partyfaceno',
  152. callback: function (_data) {
  153. result = _data['partyface'];
  154. }
  155. });
  156. return result;
  157. },
  158. overseasChineseNo: function (value) {
  159. var result;
  160. top.learun.clientdata.getAsync('custmerData', {
  161. sync: true,
  162. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BCdOverseasChinese',
  163. key: value,
  164. keyId: 'overseaschineseno',
  165. callback: function (_data) {
  166. result = _data.overseaschinesename;
  167. }
  168. });
  169. return result;
  170. },
  171. healthStatusNo: function (value) {
  172. var result;
  173. top.learun.clientdata.getAsync('custmerData', {
  174. sync: true,
  175. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BCdHealthStatus',
  176. key: value,
  177. keyId: 'healthstatusno',
  178. callback: function (_data) {
  179. result = _data.healthstatus;
  180. }
  181. });
  182. return result;
  183. },
  184. deptNo: function (value) {
  185. var result;
  186. top.learun.clientdata.getAsync('custmerData', {
  187. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdDeptInfo',
  188. key: value,
  189. keyId: 'deptno',
  190. callback: function (_data) {
  191. result = _data.deptname;
  192. }.bind(this)
  193. });
  194. return result;
  195. },
  196. subjectSpeciesNo: function (value) {
  197. var result;
  198. top.learun.clientdata.getAsync('custmerData', {
  199. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BCdSubjectSpecies',
  200. key: value,
  201. keyId: 'subjectspeciesno',
  202. callback: function (_data) {
  203. result = _data.subjectspecies;
  204. }.bind(this)
  205. });
  206. return result;
  207. },
  208. familyOriginNo: function (value) {
  209. var result;
  210. top.learun.clientdata.getAsync('custmerData', {
  211. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BCdFamilyOrigin',
  212. key: value,
  213. keyId: 'familyoriginno',
  214. callback: function (_data) {
  215. result = _data.familyorigin;
  216. }.bind(this)
  217. });
  218. return result;
  219. },
  220. foreignLanguageNo: function (value) {
  221. var result;
  222. top.learun.clientdata.getAsync('custmerData', {
  223. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BCdForeignLanguage',
  224. key: value,
  225. keyId: 'foreignlanguageno',
  226. callback: function (_data) {
  227. result = _data.foreignlanguagename;
  228. }.bind(this)
  229. });
  230. return result;
  231. },
  232. provinceNo: function (value) {
  233. var result;
  234. top.learun.clientdata.getAsync('custmerData', {
  235. sync: true,
  236. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'DIC_PROVINCE',
  237. key: value,
  238. keyId: 'pcode',
  239. callback: function (_data) {
  240. result = _data['pname'];
  241. }
  242. });
  243. return result;
  244. },
  245. cityNo: function (value) {
  246. var result;
  247. top.learun.clientdata.getAsync('custmerData', {
  248. sync: true,
  249. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'DIC_CITY',
  250. key: value,
  251. keyId: 'ccode',
  252. callback: function (_data) {
  253. result = _data['cname'];
  254. }
  255. });
  256. return result;
  257. },
  258. regionNo: function (value) {
  259. var result;
  260. top.learun.clientdata.getAsync('custmerData', {
  261. sync: true,
  262. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'DIC_AREA',
  263. key: value,
  264. keyId: 'acode',
  265. callback: function (_data) {
  266. result = _data['aname'];
  267. }
  268. });
  269. return result;
  270. },
  271. cultureDegreeNo: function (value) {
  272. var result;
  273. top.learun.clientdata.getAsync('custmerData', {
  274. sync: true,
  275. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BCdCultureDegree',
  276. key: value,
  277. keyId: 'culturedegreeno',
  278. callback: function (_data) {
  279. result = _data['culturedegree'];
  280. }
  281. });
  282. return result;
  283. },
  284. degreeNo: function (value) {
  285. var result;
  286. top.learun.clientdata.getAsync('custmerData', {
  287. sync: true,
  288. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BCdDegree',
  289. key: value,
  290. keyId: 'degreeno',
  291. callback: function (_data) {
  292. result = _data['degreename'];
  293. }
  294. });
  295. return result;
  296. },
  297. empSortNo: function (value) {
  298. var result;
  299. top.learun.clientdata.getAsync('dataItem', {
  300. key: value,
  301. code: 'EmpSort',
  302. callback: function (_data) {
  303. result = _data.text;
  304. }
  305. });
  306. return result;
  307. },
  308. titleOfTechPostNo: function (value) {
  309. var result;
  310. top.learun.clientdata.getAsync('custmerData', {
  311. sync: true,
  312. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BCdTitleOfTechPost',
  313. key: value,
  314. keyId: 'titleoftechpostno',
  315. callback: function (_data) {
  316. result = _data['titleoftechpost'];
  317. }
  318. });
  319. return result;
  320. }
  321. }
  322. })
  323. </script>
  324. </div>