diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/Form.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/Form.cshtml index f78d6348d..38864e88f 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/Form.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/Form.cshtml @@ -20,9 +20,9 @@ @*
-
通知书号*
- -
*@ +
通知书号*
+ + *@
学号
@@ -52,12 +52,20 @@
+
健康状况
+
+
+
出生日期*
-
-
健康状况
-
+
+
入学年月*
+ +
+
+
报到日期*
+
户口分类
@@ -83,6 +91,10 @@
E-mail
+
+
QQ
+ +
家庭地址*
@@ -111,6 +123,22 @@
与监护人关系
+
+
系部*
+
+
+
+
专业*
+
+
+
+
班级*
+
+
+
+
年级*
+
+
实习状态
@@ -167,69 +195,33 @@
-
年级*
-
-
-
-
本专科
+
现有学历
学制
-
-
报到日期*
- -
学习形式
+ @*
+
入党时间
+ +
*@
-
毕业证号
- -
-
-
毕业日期
- -
-
-
系所*
-
-
-
-
专业*
-
-
-
-
班级*
-
-
-
-
入学年月*
- -
-
-
入党时间
- -
-
入团时间
-
-
校内地址
- -
-
-
校内电话
- -
-
-
QQ
- -
+ @*
+
校内地址
+ +
+
+
校内电话
+ +
*@
特长
@@ -238,6 +230,14 @@
备注
+
+
毕业证号
+ +
+
+
毕业日期
+ +
毕业证书备注
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/FormTran.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/FormTran.cshtml index 5afdf383e..239376159 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/FormTran.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/FormTran.cshtml @@ -20,9 +20,9 @@
@*
-
通知书号*
- -
*@ +
通知书号*
+ +
*@
学号
@@ -52,12 +52,20 @@
+
健康状况
+
+
+
出生日期*
-
-
健康状况
-
+
+
入学年月*
+ +
+
+
报到日期*
+
户口分类
@@ -83,6 +91,10 @@
E-mail
+
+
QQ
+ +
家庭地址*
@@ -111,6 +123,22 @@
与监护人关系
+
+
系部*
+
+
+
+
专业*
+
+
+
+
班级*
+
+
+
+
年级*
+
+
实习状态
@@ -134,15 +162,15 @@
母亲电话*
+
+
+
家庭出身
+
+
+
+
港澳台侨
+
*@ -
-
家庭出身
-
-
-
-
港澳台侨
-
-
分段培养方式
@@ -168,69 +196,33 @@
-
年级*
-
-
-
-
本专科
+
现有学历
学制
-
-
报到日期*
- -
学习形式
+ @*
+
入党时间
+ +
*@
-
毕业证号
- -
-
-
毕业日期
- -
-
-
系所*
-
-
-
-
专业*
-
-
-
-
班级*
-
-
-
-
入学年月*
- -
-
-
入党时间
- -
-
入团时间
-
-
校内地址
- -
-
-
校内电话
- -
-
-
QQ
- -
+ @*
+
校内地址
+ +
+
+
校内电话
+ +
*@
特长
@@ -239,6 +231,14 @@
备注
+
+
毕业证号
+ +
+
+
毕业日期
+ +
毕业证书备注
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/FormView.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/FormView.cshtml index 8f011d1cd..99e50689b 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/FormView.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/FormView.cshtml @@ -30,11 +30,7 @@
  • 性       别 : {{studentInfo.GenderNo | sex}}
  • 出生日期 : {{studentInfo.Birthday | date}}
  • -
  • 联系电话 : {{studentInfo.mobile}}
  • 校       区 : {{baseInfo.companyId | company}}
  • -
  • 学       号 : {{studentInfo.StuNo}}
  • -
  • 本  专  科 : {{studentInfo.GraduateNo | graduateNo}}
  • -
  • 年       级 : {{studentInfo.Grade}}
@@ -47,23 +43,16 @@
  • 民 族 : {{studentInfo.NationalityNo |nationalityNo}}
  • 政治面貌 : {{studentInfo.PartyFaceNo | partyFaceNo}}
  • 身份证号 : {{studentInfo.IdentityCardNo}}
  • -
  • E-mail : {{studentInfo.EMail}}
  • -
  • 户 籍 省 : {{studentInfo.F_ProvinceId | province}}
  • -
  • 户籍地市 : {{studentInfo.F_CityId | city}}
  • -
  • 户籍县区 : {{studentInfo.F_CountyId | area}}
  • -
  • 户籍地址 : {{studentInfo.FatherUnit}}
  • +
  • 户口所在地 : {{studentInfo.FatherUnit}}
  • 家庭情况
    @@ -72,25 +61,25 @@
    学籍信息
    联系方式
    @@ -110,12 +99,14 @@ }, methods: { getData: function () { - $.get('/UserCenter/GetStudentInfo?stuId=' + keyValue, function (ref) { - this.studentInfo = ref.data.userInfo; - this.baseInfo = ref.data.basicInfo; - this.headUrl = ref.data.userInfo.Photo; + $.get('/UserCenter/GetStudentInfo?stuId=' + keyValue, + function (ref) { + this.studentInfo = ref.data.userInfo; + this.baseInfo = ref.data.basicInfo; + this.headUrl = ref.data.userInfo.Photo; - }.bind(this), "json"); + }.bind(this), + "json"); }, getUrl: function () { var loginInfo = top.learun.clientdata.get(['userinfo']); @@ -133,26 +124,28 @@ }, company: function (value) { var result; - top.learun.clientdata.getAsync('custmerData', { - sync: true, - url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'company', - key: value, - keyId: 'f_companyid', - callback: function (_data) { - result = _data.f_fullname; - } - }); + top.learun.clientdata.getAsync('custmerData', + { + sync: true, + url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'company', + key: value, + keyId: 'f_companyid', + callback: function (_data) { + result = _data.f_fullname; + } + }); return result; }, graduateNo: function (value) { var result; - top.learun.clientdata.getAsync('dataItem', { - key: value, - code: 'CollegeType', - callback: function (_data) { - result = _data.text; - } - }); + top.learun.clientdata.getAsync('dataItem', + { + key: value, + code: 'CollegeType', + callback: function (_data) { + result = _data.text; + } + }); return result; }, date: function (value) { @@ -166,24 +159,38 @@ }, nationalityNo: function (value) { var result; - top.learun.clientdata.getAsync('dataItem', { - key: value, - code: 'National', - callback: function (_data) { - result = _data.text; - } - }); + top.learun.clientdata.getAsync('dataItem', + { + key: value, + code: 'National', + callback: function (_data) { + result = _data.text; + } + }); return result; }, partyFaceNo: function (value) { var result; - top.learun.clientdata.getAsync('dataItem', { - key: value, - code: 'BCdPartyFace', - callback: function (_data) { - result = _data.text; - } - }); + top.learun.clientdata.getAsync('dataItem', + { + key: value, + code: 'PolityStatus', + callback: function (_data) { + result = _data.text; + } + }); + return result; + }, + guardiantype: function (value) { + var result; + top.learun.clientdata.getAsync('dataItem', + { + key: value, + code: 'GuardianType', + callback: function (_data) { + result = _data.text; + } + }); return result; }, province: function (value) { diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/Index.js index 658244de8..22171f71c 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/Index.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/Index.js @@ -159,7 +159,7 @@ var bootstrap = function ($, learun) { } learun.layerForm({ id: 'form', - title: '编辑', + title: '查看', url: top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/FormView?keyValue=' + keyValue, width: 1162, height: 600, @@ -437,7 +437,18 @@ var bootstrap = function ($, learun) { formatter: function (cellvalue) { return cellvalue == "1" ? "已审核" : "未审核"; } + }, + { + label: "是否上传头像", name: "Photo", width: 80, align: "center", + formatter: function (cellvalue) { + if (cellvalue != null && cellvalue != "" && cellvalue != undefined) { + return cellvalue = ""; + } else { + return cellvalue= ""; + } + } } + ], mainId: 'StuId', isPage: true, diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Views/ResourceFile/Index.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Views/ResourceFile/Index.cshtml index c7ae00fc7..cd74ce967 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Views/ResourceFile/Index.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Views/ResourceFile/Index.cshtml @@ -31,6 +31,7 @@
    + 文件大小不能超过200M
    diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj b/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj index 2cd5285fa..4d5691e1f 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj @@ -6713,6 +6713,7 @@ + diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/LR_Content/script/lr-form.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/LR_Content/script/lr-form.js index 75ab83149..149723df4 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/LR_Content/script/lr-form.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/LR_Content/script/lr-form.js @@ -130,7 +130,7 @@ break; case "datepicker": var _dateFmt = $obj.attr('data-dateFmt') || 'yyyy-MM-dd'; - $obj.val(learun.formatDate(value, _dateFmt.replace('HH','hh'))); + $obj.val(learun.formatDate(value, _dateFmt.replace('HH', 'hh'))); break; case "lr-Uploader": $obj.lrUploaderSet(value); @@ -865,6 +865,11 @@ if ($(this).hasClass('edui-default')) { if ($(this)[0].ue) { point.text = $(this)[0].ue.getContent(null, null, true); + } else { + if ($(this)[0].getAttribute('id') == 'edui1_iframeholder') { + var idNowIframe = $(this)[0].getElementsByTagName('iframe')[0].getAttribute('id') + point.text = window.frames[idNowIframe].contentWindow.document.body.innerHTML + } } } else { diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/UserCenter/Index.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/UserCenter/Index.cshtml index abe15e070..dfd60aa8d 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/UserCenter/Index.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/UserCenter/Index.cshtml @@ -95,11 +95,14 @@
    • 性       别 : {{studentInfo.GenderNo | sex}}
    • 出生日期 : {{studentInfo.Birthday | date}}
    • +
    • 校       区 : {{baseInfo.companyId | company}}
    • + @*
    • 性       别 : {{studentInfo.GenderNo | sex}}
    • +
    • 出生日期 : {{studentInfo.Birthday | date}}
    • 联系电话 : {{studentInfo.mobile}}
    • 校       区 : {{baseInfo.companyId | company}}
    • 学       号 : {{studentInfo.StuNo}}
    • 本  专  科 : {{studentInfo.GraduateNo | graduateNo}}
    • -
    • 年       级 : {{studentInfo.Grade}}
    • +
    • 年       级 : {{studentInfo.Grade}}
    • *@
    @@ -112,32 +115,51 @@
  • 民 族 : {{studentInfo.NationalityNo |nationalityNo}}
  • 政治面貌 : {{studentInfo.PartyFaceNo | partyFaceNo}}
  • 身份证号 : {{studentInfo.IdentityCardNo}}
  • +
  • 户口所在地 : {{studentInfo.FatherUnit}}
  • + @*
  • 民 族 : {{studentInfo.NationalityNo |nationalityNo}}
  • +
  • 政治面貌 : {{studentInfo.PartyFaceNo | partyFaceNo}}
  • +
  • 身份证号 : {{studentInfo.IdentityCardNo}}
  • E-mail : {{studentInfo.EMail}}
  • 户 籍 省 : {{studentInfo.F_ProvinceId | province}}
  • 户籍地市 : {{studentInfo.F_CityId | city}}
  • 户籍县区 : {{studentInfo.F_CountyId | area}}
  • -
  • 户籍地址 : {{studentInfo.FatherUnit}}
  • +
  • 户籍地址 : {{studentInfo.FatherUnit}}
  • *@
    家庭情况
    学籍信息
    联系方式
    @@ -247,6 +272,18 @@ }); return result; }, + guardiantype: function (value) { + var result; + top.learun.clientdata.getAsync('dataItem', + { + key: value, + code: 'GuardianType', + callback: function (_data) { + result = _data.text; + } + }); + return result; + }, province: function (value) { var result; top.learun.clientdata.getAsync('custmerData', { diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/News/NewsService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/News/NewsService.cs index 09e1fed2c..e15250c2d 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/News/NewsService.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/News/NewsService.cs @@ -202,11 +202,15 @@ namespace Learun.Application.OA if (newEntity.IsSend == "1" && status == 2) { + BaseRepository() + .ExecuteBySql("insert INTO LR_Base_Log(F_LogId,F_CategoryId,F_SourceContentJson) VALUES (newid(),2222,'准备开始run task') "); Task.Run(async () => { sendNew(newEntity); }); } } catch (Exception ex) { + BaseRepository() + .ExecuteBySql("insert INTO LR_Base_Log(F_LogId,F_CategoryId,F_SourceContentJson) VALUES (newid(),2222,'run task 报错"+ex.Message+"') "); if (ex is ExceptionEx) { throw; @@ -233,11 +237,13 @@ namespace Learun.Application.OA string ports = ConfigurationManager.AppSettings["Ports"]; #endregion + BaseRepository() + .ExecuteBySql("insert INTO LR_Base_Log(F_LogId,F_CategoryId,F_SourceContentJson) VALUES (newid(),2222,'准备开始组装实体') "); SemdNewList SendNew = new SemdNewList { Title = newEntity.F_FullHead, SubTitle = newEntity.F_BriefHead, - Content = newEntity.F_NewsContent, + Content = HttpUtility.HtmlDecode(newEntity.F_NewsContent), Author = newEntity.F_AuthorName, Source = newEntity.F_SourceName, AddDate = DateTime.Now, @@ -248,8 +254,12 @@ namespace Learun.Application.OA { { "X-SS-API-KEY", ApiKey } }; + BaseRepository() + .ExecuteBySql("insert INTO LR_Base_Log(F_LogId,F_CategoryId,F_SourceContentJson) VALUES (newid(),2222,'准备开始post cms') "); string responses = HttpMethods.HttpPosts("http://" + ports + "/api/v1/contents/" + siteId + "/" + channelId, SendNew.ToJson(), ApiId); + BaseRepository() + .ExecuteBySql("insert INTO LR_Base_Log(F_LogId,F_CategoryId,F_SourceContentJson) VALUES (newid(),2222,'"+HttpUtility.UrlEncode(responses)+"') "); //#region 修改审核状态 //string Nid = JsonConvert.DeserializeObject(responses).value.id; @@ -272,7 +282,8 @@ namespace Learun.Application.OA } catch (Exception ex) { - + BaseRepository() + .ExecuteBySql("insert INTO LR_Base_Log(F_LogId,F_CategoryId,F_SourceContentJson) VALUES (newid(),2222,'"+ex.Message + "') "); } } diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Util/Learun.Util/Web/HttpMethods.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Util/Learun.Util/Web/HttpMethods.cs index 6e1f9085d..a177705c6 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Util/Learun.Util/Web/HttpMethods.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Util/Learun.Util/Web/HttpMethods.cs @@ -152,28 +152,36 @@ namespace Learun.Util public static string HttpPosts(string url, string json, WebHeaderCollection header) { string result = ""; - HttpWebRequest req = (HttpWebRequest)WebRequest.Create(url); - req.Method = "POST"; - req.ContentType = "application/json;charset=UTF-8"; - req.Headers.Add(header); - byte[] data = Encoding.UTF8.GetBytes(json);//把字符串转换为字节 + try + { + HttpWebRequest req = (HttpWebRequest)WebRequest.Create(url); + req.Method = "POST"; + req.ContentType = "application/json;charset=UTF-8"; + req.Headers.Add(header); + byte[] data = Encoding.UTF8.GetBytes(json);//把字符串转换为字节 - req.ContentLength = data.Length; //请求长度 + req.ContentLength = data.Length; //请求长度 - using (Stream reqStream = req.GetRequestStream()) //获取 - { - reqStream.Write(data, 0, data.Length);//向当前流中写入字节 - reqStream.Close(); //关闭当前流 - } + using (Stream reqStream = req.GetRequestStream()) //获取 + { + reqStream.Write(data, 0, data.Length);//向当前流中写入字节 + reqStream.Close(); //关闭当前流 + } - HttpWebResponse resp = (HttpWebResponse)req.GetResponse(); //响应结果 - Stream stream = resp.GetResponseStream(); - //获取响应内容 - using (StreamReader reader = new StreamReader(stream, Encoding.UTF8)) + HttpWebResponse resp = (HttpWebResponse)req.GetResponse(); //响应结果 + Stream stream = resp.GetResponseStream(); + //获取响应内容 + using (StreamReader reader = new StreamReader(stream, Encoding.UTF8)) + { + result = reader.ReadToEnd(); + } + return result; + } + catch (Exception e) { - result = reader.ReadToEnd(); + throw e; } - return result; + } } }