From 94d81f7af899a0ba863c6239447c3a410b3a1343 Mon Sep 17 00:00:00 2001 From: edy Date: Fri, 28 May 2021 17:23:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=8B=E6=9C=BA=E7=AB=AF=20=E4=B8=AA?= =?UTF-8?q?=E4=BA=BA=E4=BF=A1=E6=81=AF=E5=92=8C=E6=96=B0=E7=94=9F=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E7=9B=B8=E5=85=B3=E9=93=B6=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CppProperties.json | 21 + .../Learun.Application.Mobile/UpgradeLog.htm | Bin 0 -> 31752 bytes .../StuInfoBasic/StuInfoBasic.html | 18 +- .../StuInfoBasic/StuInfoBasic.js | 375 +++++----- .../www/pages/welcome/welcome.html | 297 ++++---- .../www/pages/welcome/welcome.js | 671 +++++++++--------- .../PublishProfiles/FolderProfile4.pubxml | 18 + .../Modules/StuInfoFreshApi.cs | 17 +- .../XmlConfig/system.config | 4 + .../StuInfoFresh/StuInfoFreshService.cs | 1 + 10 files changed, 782 insertions(+), 640 deletions(-) create mode 100644 CppProperties.json create mode 100644 Learun.Framework.Ultimate V7/Learun.Application.Mobile/UpgradeLog.htm create mode 100644 Learun.Framework.Ultimate V7/Learun.Application.Web/Properties/PublishProfiles/FolderProfile4.pubxml diff --git a/CppProperties.json b/CppProperties.json new file mode 100644 index 000000000..f598ba59c --- /dev/null +++ b/CppProperties.json @@ -0,0 +1,21 @@ +{ + "configurations": [ + { + "inheritEnvironments": [ + "msvc_x64" + ], + "name": "x64-Debug", + "includePath": [ + "${env.INCLUDE}", + "${workspaceRoot}\\**" + ], + "defines": [ + "WIN32", + "_DEBUG", + "UNICODE", + "_UNICODE" + ], + "intelliSenseMode": "windows-msvc-x64" + } + ] +} \ No newline at end of file diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/UpgradeLog.htm b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/UpgradeLog.htm new file mode 100644 index 0000000000000000000000000000000000000000..a88cd1b85645e064770138f328333d582b5d9ba8 GIT binary patch literal 31752 zcmeI5NpB>{b;lFB*}{AP3ouaAw5B=ca4E8zOOLw8#bS}orP*An$!-ouBa+2^Z5H<# z39v207RL7IATM7)pTGyhN1uH3$+{bcu96Ri4cLI}-#;Fsb73)ASzKCz8-=ROjEs2k zws`Nwi^#11{ndAZ_k)4pc~A_>!K+{*C!G5qytz2-(*;ep4Xbw8~`+<_mZ-nX-388DIj&P8OsafWfZocr@OpIK`XIPRU+QI< zHWhci?eJIt6V)~B^!u2)%Urk8UzKy?#6hq}$#U?T(sk%ptzxWQYcK}vonVz33;Zs- zw(VE;C9a&%Z~Ge_eC%*q1Ij)ah+B_=c>rataJD-WPUYYf%%iv*fd2s;U8a}MIqpLL zFwzexl62Mcx}$H3t3A&4Y1KjBUS>Jk$3Or0_5YmybaA9CeTm041n-5&ftE&9Q!0t9KKhx8FwD-PEjWs-J|ucW#T{<^AgcL{Dv`YO)>t36Zi z(rNXZ1>-L=)%J8Qq5(_6Cb}fuJ_O$i8l4N8g2ABc{QDsIxFOimdC7kN9Acg^Z{NWN zA&T$fXe$y}aAR@{E(zaz!8F`n<-R2F0&Tk&NK$3$tx>9Rtm`2slVwJiUC(g656v1? zRwCOY%h1YK_txpFG5Ys_RN*7LwCb?zXb_UH-v@>uiQ24izVGChMVn0jpTYsrAU@>j zH$DnvyS$B-l*92Le1)q@{CLbh3fAZ|3(k#=fQwSf!{0sZrTA>eu*9D=rV*k3%JQAT zJxQ|@I``mIV=!xtVDnAUu~(uO|82A%$=GzE)p^|ma5fK^a}$D0_b#`mbd zx;Rqr5s8@(J_7UQ;MjS5Sw6*FyU-!erZKHCzQnb8>MA8!z1bSFy8Uq+N+UY9@|7A7zUz4&K1JeZQo+To^Z18J(JOMdt+B<9Y8x;;>CdTfpCgLl#>m z%d+Xe@8>dGqxkst$5bdSn_=9A%r2W1mx3NNUf}euGi{|k%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_vI0?TguQ!tg)lBQA=)Z6;nicCSMcAKG|`LMg&txS^tS6s(oZ38AT(OxOa?m zOtxL~PtlvS5OF_!c|?-#rQ?zaExutM#>(0G;HhpT0=OA138@M7Mcfa)bke6@#(m)v zx1rhj5%=zoYR)`s#TDL1JPCfV_}+NORAp16?u#$Kn*D>t|DOHJ@gE-j-#q*J zyWi;eudjZ0{$IZO){p<`>z|K*bNp97`RUT%|MAbJ|6}D_um1J@kmKPxpO z)YHp)->G6Hjrl5Ht%bC?h-{l0+VSu6t?jH;j8RvshRPy8W;b*<-dyiT%#-ogz9GF~ z-p4RzKf-;+oz(7RkM=`;i=4OeJ3#AB&K_{x!&NKy^`C(y&h#WziG5pnR$h82)f-gw zjP^xO=cRhNElgUSq~!~BM0Vlgc#GS_0k|N^*j^u>i;a%`q-UYF~^kvaSv^8dF@B6@9Yu=v4ojKt^ctXXElBwQAOiJ9E$s!zgvS@lsqt=KT*PB}2CW%QL@6cAfO@Cq$cq5*~M{s|-{Ga3RjR$}8 zhd}b^1y0f49gKkN^Mx literal 0 HcmV?d00001 diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuInfoBasic/StuInfoBasic.html b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuInfoBasic/StuInfoBasic.html index 85355335d..6435d9a60 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuInfoBasic/StuInfoBasic.html +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuInfoBasic/StuInfoBasic.html @@ -1,4 +1,4 @@ -
+
- -
- -
-
-
自然信息
-
-
- 籍贯 - -
-
-
-
通讯信息
-
-
- 家庭住址 - -
-
- 联系电话 - -
-
-
-
家庭成员(直系家属)
-
-
-
- 姓名 - -
-
- 与本人关系 - -
-
- 性别 - -
-
- 年龄 - -
-
- 政治面貌 - -
-
-
-
-
-
紧急联系人
-
-
-
- 姓名 - -
-
- 与本人关系 - -
-
- 手机号码 - -
-
- 座机号码 - -
-
- 联系地址 - -
-
-
-
+
基本信息
+
+ +
+ 学号 + +
+
+ 准考证号 + +
+
+ 考生号 + +
+
+ 姓名 +
+
+ 性别 + +
+
+ 系别 + +
+
+ 专业 + +
+
+ 班级 + +
+
+ 身份证号 + +
+
+ 出生日期 + +
+
+ 户口类别 + +
+
+ 政治面貌 + +
+
+
+
采集照片信息
+
+ + +
+ + +
+ +
+
+
自然信息
+
+
+ 籍贯 + +
+
+
+
通讯信息
+
+
+ 家庭住址 + +
+
+ 联系电话 + +
-
- -
-
+
+ 基础信息 +
+ 开户银行 + +
+
+
+ 银行卡账号 + +
+
+ 开户行位置 + +
+
+
+
家庭成员(直系家属)
+
+
+
+ 姓名 + +
+
+ 与本人关系 + +
+
+ 性别 + +
+
+ 年龄 + +
+
+ 政治面貌 + +
+
+
+
+
+
紧急联系人
+
+
+
+ 姓名 + +
+
+ 与本人关系 + +
+
+ 手机号码 + +
+
+ 座机号码 + +
+
+ 联系地址 + +
+
+
+
+ +
+ +
+ diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/welcome/welcome.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/welcome/welcome.js index 843db5afa..e7a127e16 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/welcome/welcome.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/welcome/welcome.js @@ -1,338 +1,375 @@ -(function () { - var colDataItemArr = ['GenderNo']; - var colDataItemCode = ['usersex']; - - var page = { - isScroll: false, - init: function ($page) { - // 获取登录者信息 - var userinfo = learun.storage.get('userinfo'); +(function() { + var colDataItemArr = ['GenderNo']; + var colDataItemCode = ['usersex']; + var colDataItemBank = ['DepositBank']; - //增加联系人 - $page.find('.welT i').on('tap', function () { - var FamilyHtml = '
' + - '
' + - '姓名' + - '' + - '
' + - '
' + - '与本人关系' + - '
' + - '
' + - '
' + - '性别' + - '
' + - '
' + - '
' + - '年龄' + - '' + - '
' + - '
' + - '政治面貌' + - '
' + - '
' + - //'
' + - //'身份证号' + - //'' + - //'
' + - '
' + - '
'; - var EmergePeopleHtml = '
' + - '
' + - '姓名' + - '' + - '
' + - '
' + - '与本人关系' + - '' + - '
' + - '
' + - '手机号码' + - '' + - '
' + - '
' + - '座机号码' + - '' + - '
' + - '
' + - '联系地址' + - '' + - '
' + - '
' + - '
'; + var page = { + isScroll: false, + init: function($page) { + // 获取登录者信息 + var userinfo = learun.storage.get('userinfo'); + //增加联系人 + $page.find('.welT i').on('tap', function() { + var FamilyHtml = '
' + + '
' + + '姓名' + + '' + + '
' + + '
' + + '与本人关系' + + '
' + + '
' + + '
' + + '性别' + + '
' + + '
' + + '
' + + '年龄' + + '' + + '
' + + '
' + + '政治面貌' + + '
' + + '
' + + //'
' + + //'身份证号' + + //'' + + //'
' + + '
' + + '
'; + var EmergePeopleHtml = '
' + + '
' + + '姓名' + + '' + + '
' + + '
' + + '与本人关系' + + '' + + '
' + + '
' + + '手机号码' + + '' + + '
' + + '
' + + '座机号码' + + '' + + '
' + + '
' + + '联系地址' + + '' + + '
' + + '
' + + '
'; - var obj = $(this).parent().next(); - if ($(this).attr('title') == '紧急联系人') { - obj.append(EmergePeopleHtml); - } else { - obj.append(FamilyHtml); - } + var obj = $(this).parent().next(); + if ($(this).attr('title') == '紧急联系人') { + obj.append(EmergePeopleHtml); + } else { + obj.append(FamilyHtml); + } - page.bind($page); - }) - //删除联系人 - $page.find('.welBox').on('tap', '.welDel i', function () { - var parents = $(this).parents('.welCon') - learun.layer.confirm('是否删除此联系人?', function (_index) { - _index == 1 ? parents.remove() : '' - }, '提示', ['否', '是']); - }) - //上传照片 - var inputNode = $page.find('#files'); - $page.find('#welImgBtn').on('tap', function () { - var evt = new MouseEvent("click", { - bubbles: false, - cancelable: true, - view: window - }); - inputNode[0].dispatchEvent(evt); - }) - inputNode.on('change', function () { - previewFile(); - }); - //数据绑定 - learun.layer.loading(true, '获取数据中'); - learun.httpget(config.webapi + "StuInfoFresh/stuInfoFreshEntity", userinfo.baseinfo.account, (data) => { - if (data) { - //基本信息 - for (var id in data['StuInfoFreshEntity']) { - var dom = $('#' + id)[0]; - if (dom) { - if (dom.tagName.toLowerCase() == "span") { - $('#' + id).html(data['StuInfoFreshEntity']['' + id + '']); - //数据字典 - if ($.inArray(id, colDataItemArr) >= 0) { - learun.clientdata.get('dataItem', { - code: colDataItemCode[$.inArray(id, colDataItemArr)], - key: data['StuInfoFreshEntity']['' + id + ''], - callback: function (data, op) { - $('#' + id).html(data.text); - } - }); - } - if (id == "PartyFaceNo") { - learun.clientdata.get('sourceData', { - code: 'BCdPartyFace', - key: data['StuInfoFreshEntity']['' + id + ''], - keyId: 'partyfaceno', - callback: function (data, op) { - $("#PartyFaceNo").html(data.partyface); - } - }); - } - } else if (dom.tagName.toLowerCase() == "input") { - $('#' + id).val(data['StuInfoFreshEntity']['' + id + '']); - } - } - } - $("#Birthday").html($("#Birthday").text().substr(0, $("#Birthday").text().indexOf(' '))); - //头像 - $('#PhotoImg').attr('src', config.web + data['Url']); - //家庭成员 - $('#StuInfoFreshFamily').html(""); - $.each(data['StuInfoFreshFamilyList'], function (i, item) { - var html = '
' + - '
' + - '姓名' + - '' + - '
' + - '
' + - '与本人关系' + - //'' + - '
' + - '
' + - '
' + - '性别' + - //'' + - '
' + - '
' + - '
' + - '年龄' + - '' + - '
' + - '
' + - '政治面貌' + - //'' + - '
' + - '
' + - //'
' + - //'身份证号' + - //'' + - //'
' + - '
' + - '
'; - $('#StuInfoFreshFamily').append(html); + page.bind($page); + }) + //删除联系人 + $page.find('.welBox').on('tap', '.welDel i', function() { + var parents = $(this).parents('.welCon') + learun.layer.confirm('是否删除此联系人?', function(_index) { + _index == 1 ? parents.remove() : '' + }, '提示', ['否', '是']); + }) + //上传照片 + var inputNode = $page.find('#files'); + $page.find('#welImgBtn').on('tap', function() { + var evt = new MouseEvent("click", { + bubbles: false, + cancelable: true, + view: window + }); + inputNode[0].dispatchEvent(evt); + }) + inputNode.on('change', function() { + previewFile(); + }); - }); + //数据绑定 + learun.layer.loading(true, '获取数据中'); + learun.httpget(config.webapi + "StuInfoFresh/stuInfoFreshEntity", userinfo.baseinfo.account, ( + data) => { + if (data) { + //基本信息 + for (var id in data['StuInfoFreshEntity']) { + var dom = $('#' + id)[0]; + if (dom) { + if (dom.tagName.toLowerCase() == "span") { + $('#' + id).html(data['StuInfoFreshEntity']['' + id + '']); + //数据字典 + if ($.inArray(id, colDataItemArr) >= 0) { + learun.clientdata.get('dataItem', { + code: colDataItemCode[$.inArray(id, + colDataItemArr)], + key: data['StuInfoFreshEntity']['' + id + ''], + callback: function(data, op) { + $('#' + id).html(data.text); + } + }); + } + if (id == "PartyFaceNo") { + learun.clientdata.get('sourceData', { + code: 'BCdPartyFace', + key: data['StuInfoFreshEntity']['' + id + ''], + keyId: 'partyfaceno', + callback: function(data, op) { + $("#PartyFaceNo").html(data.partyface); + } + }); + } + // if (id == "#DepositBank") { + // learun.clientdata.get('sourceData', { + // code: 'DepositBank', + // key: data['StuInfoFreshEntity']['' + id + ''], + // keyId: 'DepositBank', + // callback: function(data, op) { + // $("#DepositBank").html(data.text); + // } + // }); + // } + } else if (dom.tagName.toLowerCase() == "input") { + $('#' + id).val(data['StuInfoFreshEntity']['' + id + '']); + } + } + } + $("#Birthday").html($("#Birthday").text().substr(0, $("#Birthday").text() + .indexOf(' '))); + $("#DepositBank").lrpickerSet(data.StuInfoFreshEntity.DepositBank); + //头像 + $('#PhotoImg').attr('src', config.web + data['Url']); + //家庭成员 + $('#StuInfoFreshFamily').html(""); + $.each(data['StuInfoFreshFamilyList'], function(i, item) { + var html = '
' + + '
' + + '姓名' + + '' + + '
' + + '
' + + '与本人关系' + + //'' + + '
' + + '
' + + '
' + + '性别' + + //'' + + '
' + + '
' + + '
' + + '年龄' + + '' + + '
' + + '
' + + '政治面貌' + + //'' + + '
' + + '
' + + //'
' + + //'身份证号' + + //'' + + //'
' + + '
' + + '
'; + $('#StuInfoFreshFamily').append(html); - //紧急联系人 - $('#StuInfoFreshEmergePeople').html(""); - $.each(data['StuInfoFreshEmergePeopleList'], function (i, item) { - var html = '
' + - '
' + - '姓名' + - '' + - '
' + - '
' + - '与本人关系' + - '' + - '
' + - '
' + - '手机号码' + - '' + - '
' + - '
' + - '座机号码' + - '' + - '
' + - '
' + - '联系地址' + - '' + - '
' + - '
' + - '
'; - $('#StuInfoFreshEmergePeople').append(html); + }); - }); + //紧急联系人 + $('#StuInfoFreshEmergePeople').html(""); + $.each(data['StuInfoFreshEmergePeopleList'], function(i, item) { + var html = '
' + + '
' + + '姓名' + + '' + + '
' + + '
' + + '与本人关系' + + '' + + '
' + + '
' + + '手机号码' + + '' + + '
' + + '
' + + '座机号码' + + '' + + '
' + + '
' + + '联系地址' + + '' + + '
' + + '
' + + '
'; + $('#StuInfoFreshEmergePeople').append(html); - page.bind($page); - learun.layer.loading(false); + }); - } + page.bind($page); + learun.layer.loading(false); - }); + } - //保存 - $page.find('#saveBtn').on('tap', function () { - var postdata = { - ID: $('#ID').val(), - RegionNo: $('#RegionNo').val(), - FamilyAddress: $('#FamilyAddress').val(), - telephone: $('#telephone').val(), - Photo: $('#Photo').val(), - StuInfoFreshFamilyEntities: family(), - StuInfoFreshEmergePeopleEntities: emergePeople() - }; - learun.layer.loading(true, '正在提交数据'); - learun.httpget(config.webapi + "StuInfoFresh/saveStuInfoFresh", postdata, (data) => { - learun.layer.loading(false); - if (data) { - learun.layer.toast('保存成功'); - location.reload(); - } - }); + }); - }); + //保存 + $page.find('#saveBtn').on('tap', function() { + var postdata = { + ID: $('#ID').val(), + RegionNo: $('#RegionNo').val(), + FamilyAddress: $('#FamilyAddress').val(), + telephone: $('#telephone').val(), + Photo: $('#Photo').val(), + DepositBank: $('#DepositBank').lrpickerGet(), + BankCard: $('#BankCard').val(), + BankLocation: $('#BankLocation').val(), + StuInfoFreshFamilyEntities: family(), + StuInfoFreshEmergePeopleEntities: emergePeople() + }; + console.log(postdata) + // return + learun.layer.loading(true, '正在提交数据'); + learun.httpget(config.webapi + "StuInfoFresh/saveStuInfoFresh", postdata, ( + data) => { + learun.layer.loading(false); + if (data) { + learun.layer.toast('保存成功'); + location.reload(); + } + }); + }); - }, - bind: function ($page) { - //性别 - $.each($page.find('[name="Sex"]'), function (i, item) { - $page.find(item).lrpickerex({ - code: 'usersex', - type: 'dataItem' - }); - //赋值 - $(item).lrpickerSet($(item).attr('value')); - }); - //政治面貌 - $.each($page.find('[name="Politicy"]'), function (i, item) { - $page.find(item).lrpickerex({ - code: 'BCdPartyFace', - type: 'sourceData', - ivalue: 'partyfaceno', - itext: 'partyface' - }); - //赋值 - $(item).lrpickerSet($(item).attr('value')); - }); - //与本人关系 - $.each($page.find('#StuInfoFreshFamily').find('[name="Relation"]'), function (i, item) { - $page.find(item).lrpickerex({ - code: 'FamilyRelation', - type: 'dataItem' - }); - //赋值 - $(item).lrpickerSet($(item).attr('value')); - }); - } - }; - //数据处理 - function family() { - var list = new Array(); - $.each($('#StuInfoFreshFamily').children('.welCon'), function (i, item) { - var o = $(item).children(".welConForm").serializeObject(); - o.Sex = $(item).find('[name="Sex"]').lrpickerGet(); - o.Politicy = $(item).find('[name="Politicy"]').lrpickerGet(); - o.Relation = $(item).find('[name="Relation"]').lrpickerGet(); - list.push(o); - }); - return list; - } - function emergePeople() { - var list = new Array(); - $.each($('#StuInfoFreshEmergePeople').children('.welCon'), function (i, item) { - var o = $(item).children(".welConForm").serializeObject(); - list.push(o); - }); - return list; - } - $.fn.serializeObject = function () { - var o = {}; - var a = this.serializeArray(); - $.each(a, function () { - if (o[this.name]) { - if (!o[this.name].push) { - o[this.name] = [o[this.name]]; - } - o[this.name].push(this.value || ''); - } else { - o[this.name] = this.value || ''; - } - }); - return o; - } + }, + bind: function($page) { + //性别 + $.each($page.find('[name="Sex"]'), function(i, item) { + $page.find(item).lrpickerex({ + code: 'usersex', + type: 'dataItem' + }); + //赋值 + $(item).lrpickerSet($(item).attr('value')); + }); + $page.find('#DepositBank').lrpickerex({ + code: 'DepositBank', + type: 'dataItem' + }); + //政治面貌 + $.each($page.find('[name="Politicy"]'), function(i, item) { + $page.find(item).lrpickerex({ + code: 'BCdPartyFace', + type: 'sourceData', + ivalue: 'partyfaceno', + itext: 'partyface' + }); + //赋值 + $(item).lrpickerSet($(item).attr('value')); + }); + //与本人关系 + $.each($page.find('#StuInfoFreshFamily').find('[name="Relation"]'), function(i, item) { + $page.find(item).lrpickerex({ + code: 'FamilyRelation', + type: 'dataItem' + }); + //赋值 + $(item).lrpickerSet($(item).attr('value')); + }); + } + }; + //数据处理 + function family() { + var list = new Array(); + $.each($('#StuInfoFreshFamily').children('.welCon'), function(i, item) { + var o = $(item).children(".welConForm").serializeObject(); + o.Sex = $(item).find('[name="Sex"]').lrpickerGet(); + o.DepositBank = $(item).find('[name="DepositBank"]').lrpickerGet(); + o.Politicy = $(item).find('[name="Politicy"]').lrpickerGet(); + o.Relation = $(item).find('[name="Relation"]').lrpickerGet(); + list.push(o); + }); + return list; + } - //上传照片 - function previewFile() { - var html = ''; - var file = document.querySelector('input[type=file]').files[0]; - var reader = new FileReader(); - reader.onloadend = function () { - //$('#PhotoImg').attr('src', reader.result); - var postData = { - Base64Url: reader.result - } - learun.httppost(config.webapi + "StuInfoFresh/savePhoto", postData, (data) => { - if (data) { - $('#Photo').val(data.AnnexesFileId); - $('#PhotoImg').attr('src', config.web + data.Url); - } else { - learun.layer.toast('采集照片信息失败!'); - } - }); - } - if (file) { - reader.readAsDataURL(file); - } - } + function emergePeople() { + var list = new Array(); + $.each($('#StuInfoFreshEmergePeople').children('.welCon'), function(i, item) { + var o = $(item).children(".welConForm").serializeObject(); + list.push(o); + }); + return list; + } - //产生随机数 - function GenerateRandom() { - var retstr = ""; - var date = new Date(); - retstr = date.getFullYear().toString() + "-" + date.getMonth().toString() + "-" + date.getDate().toString() + "-" + date.getUTCHours().toString() + "-" + date.getUTCMinutes() + "-" + date.getUTCSeconds().toString(); - var Num = ""; - for (var i = 0; i < 6; i++) { - Num += Math.floor(Math.random() * 10); - } - return retstr + Num; - } + $.fn.serializeObject = function() { + var o = {}; + var a = this.serializeArray(); + $.each(a, function() { + if (o[this.name]) { + if (!o[this.name].push) { + o[this.name] = [o[this.name]]; + } + o[this.name].push(this.value || ''); + } else { + o[this.name] = this.value || ''; + } + }); + return o; + } - return page; + //上传照片 + function previewFile() { + var html = ''; + var file = document.querySelector('input[type=file]').files[0]; + var reader = new FileReader(); + reader.onloadend = function() { + //$('#PhotoImg').attr('src', reader.result); + var postData = { + Base64Url: reader.result + } + learun.httppost(config.webapi + "StuInfoFresh/savePhoto", postData, (data) => { + if (data) { + $('#Photo').val(data.AnnexesFileId); + $('#PhotoImg').attr('src', config.web + data.Url); + } else { + learun.layer.toast('采集照片信息失败!'); + } + }); + } + if (file) { + reader.readAsDataURL(file); + } + } + + //产生随机数 + function GenerateRandom() { + var retstr = ""; + var date = new Date(); + retstr = date.getFullYear().toString() + "-" + date.getMonth().toString() + "-" + date.getDate() + .toString() + "-" + date.getUTCHours().toString() + "-" + date.getUTCMinutes() + "-" + date + .getUTCSeconds() + .toString(); + var Num = ""; + for (var i = 0; i < 6; i++) { + Num += Math.floor(Math.random() * 10); + } + return retstr + Num; + } + + return page; })(); diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Properties/PublishProfiles/FolderProfile4.pubxml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Properties/PublishProfiles/FolderProfile4.pubxml new file mode 100644 index 000000000..3dd3b0238 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Properties/PublishProfiles/FolderProfile4.pubxml @@ -0,0 +1,18 @@ + + + + + FileSystem + FileSystem + Release + Any CPU + + True + False + bin\Release\Publish + False + + \ No newline at end of file diff --git a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/StuInfoFreshApi.cs b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/StuInfoFreshApi.cs index 36524c0dd..37e2fb22e 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/StuInfoFreshApi.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/StuInfoFreshApi.cs @@ -171,6 +171,10 @@ namespace Learun.Application.WebApi.Modules entity.RegionNo = model.RegionNo; entity.FamilyAddress = model.FamilyAddress; entity.telephone = model.telephone; + entity.BankCard = model.BankCard; + entity.BankLocation = model.BankLocation; + entity.DepositBank = model.DepositBank; + if (!string.IsNullOrEmpty(model.Photo)) { entity.IsPhoto = true; @@ -330,7 +334,6 @@ namespace Learun.Application.WebApi.Modules { ReqFormEntity parameter = this.GetReqData(); StuInfoFreshEntity entity = parameter.strEntity.ToObject(); - stuInfoFreshIBLL.SaveEntity(parameter.keyValue, entity); return Success("保存成功!"); } @@ -388,6 +391,18 @@ namespace Learun.Application.WebApi.Modules /// 紧急联系人 /// public List StuInfoFreshEmergePeopleEntities { get; set; } + /// + /// 开户行 + /// + public string DepositBank { get; set; } + /// + /// 银行卡号 + /// + public string BankCard { get; set; } + /// + /// 开户行位置 + /// + public string BankLocation { get; set; } } diff --git a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/XmlConfig/system.config b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/XmlConfig/system.config index 9f5e1c6ec..0fac6f538 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/XmlConfig/system.config +++ b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/XmlConfig/system.config @@ -92,6 +92,10 @@ + + + + diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoFresh/StuInfoFreshService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoFresh/StuInfoFreshService.cs index 20ec72cce..6109d2d1d 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoFresh/StuInfoFreshService.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoFresh/StuInfoFreshService.cs @@ -861,6 +861,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration entity.Modify(keyValue); db.Update(entity); db.Delete(t => t.StuInfoFreshId == stuInfoFreshEntityTmp.ID); + if (null != stuInfoFreshEmergePeopleList && null != stuInfoFreshFamilyList) { foreach (StuInfoFreshEmergePeopleEntity item in stuInfoFreshEmergePeopleList)