@@ -0,0 +1,225 @@ | |||
using Learun.Application.TwoDevelopment.EducationalAdministration; | |||
using Learun.Util; | |||
using System.Data; | |||
using System.Web.Mvc; | |||
namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||
{ | |||
/// <summary> | |||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
/// 创 建:超级管理员 | |||
/// 日 期:2022-11-23 10:48 | |||
/// 描 述:阳光教育 | |||
/// </summary> | |||
public class SunshineEducationController : MvcControllerBase | |||
{ | |||
private SunshineEducationIBLL sunshineEducationIBLL = new SunshineEducationBLL(); | |||
#region 视图功能 | |||
/// <summary> | |||
/// 主页面 | |||
/// </summary> | |||
/// <returns></returns> | |||
[HttpGet] | |||
public ActionResult Index() | |||
{ | |||
return View(); | |||
} | |||
/// <summary> | |||
/// 主页面 | |||
/// </summary> | |||
/// <returns></returns> | |||
[HttpGet] | |||
public ActionResult IndexComplaint() | |||
{ | |||
return View(); | |||
} | |||
/// <summary> | |||
/// 主页面 | |||
/// </summary> | |||
/// <returns></returns> | |||
[HttpGet] | |||
public ActionResult IndexHelp() | |||
{ | |||
return View(); | |||
} | |||
/// <summary> | |||
/// 主页面 | |||
/// </summary> | |||
/// <returns></returns> | |||
[HttpGet] | |||
public ActionResult IndexPolicy() | |||
{ | |||
return View(); | |||
} | |||
/// <summary> | |||
/// 主页面 | |||
/// </summary> | |||
/// <returns></returns> | |||
[HttpGet] | |||
public ActionResult IndexPraise() | |||
{ | |||
return View(); | |||
} | |||
/// <summary> | |||
/// 主页面 | |||
/// </summary> | |||
/// <returns></returns> | |||
[HttpGet] | |||
public ActionResult IndexSuggest() | |||
{ | |||
return View(); | |||
} | |||
/// <summary> | |||
/// 表单页 | |||
/// </summary> | |||
/// <returns></returns> | |||
[HttpGet] | |||
public ActionResult Form() | |||
{ | |||
return View(); | |||
} | |||
/// <summary> | |||
/// 表单页 | |||
/// </summary> | |||
/// <returns></returns> | |||
[HttpGet] | |||
public ActionResult FormReply() | |||
{ | |||
return View(); | |||
} | |||
#endregion | |||
#region 获取数据 | |||
/// <summary> | |||
/// 身份 | |||
/// </summary> | |||
/// <returns></returns> | |||
public ActionResult GetQuestionerIdentity(string ProblemType) | |||
{ | |||
var data = sunshineEducationIBLL.GetQuestionerIdentity(ProblemType); | |||
return Success(data); | |||
} | |||
/// <summary> | |||
/// 部门班级 | |||
/// </summary> | |||
/// <returns></returns> | |||
public ActionResult GetMatterType(string ProblemType) | |||
{ | |||
var data = sunshineEducationIBLL.GetMatterType(ProblemType); | |||
return Success(data); | |||
} | |||
/// <summary> | |||
/// 身份证类型 | |||
/// </summary> | |||
/// <returns></returns> | |||
public ActionResult GetMatterTypeContent(string ProblemType) | |||
{ | |||
var data = sunshineEducationIBLL.GetMatterTypeContent(ProblemType); | |||
return Success(data); | |||
} | |||
/// <summary> | |||
/// 获取列表数据 | |||
/// </summary> | |||
/// <param name="queryJson">查询参数</param> | |||
/// <returns></returns> | |||
[HttpGet] | |||
[AjaxOnly] | |||
public ActionResult GetList(string queryJson) | |||
{ | |||
var data = sunshineEducationIBLL.GetList(queryJson); | |||
return Success(data); | |||
} | |||
/// <summary> | |||
/// 获取列表分页数据 | |||
/// </summary> | |||
/// <param name="pagination">分页参数</param> | |||
/// <param name="queryJson">查询参数</param> | |||
/// <returns></returns> | |||
[HttpGet] | |||
[AjaxOnly] | |||
public ActionResult GetPageList(string pagination, string queryJson) | |||
{ | |||
Pagination paginationobj = pagination.ToObject<Pagination>(); | |||
var data = sunshineEducationIBLL.GetPageList(paginationobj, queryJson); | |||
var jsonData = new | |||
{ | |||
rows = data, | |||
total = paginationobj.total, | |||
page = paginationobj.page, | |||
records = paginationobj.records | |||
}; | |||
return Success(jsonData); | |||
} | |||
/// <summary> | |||
/// 获取表单数据 | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
/// <returns></returns> | |||
[HttpGet] | |||
[AjaxOnly] | |||
public ActionResult GetFormData(string keyValue) | |||
{ | |||
var data = sunshineEducationIBLL.GetEntity(keyValue); | |||
data.Contents = WebHelper.HtmlDecode(data.Contents); | |||
return Success(data); | |||
} | |||
#endregion | |||
#region 提交数据 | |||
/// <summary> | |||
/// 删除实体数据 | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
/// <returns></returns> | |||
[HttpPost] | |||
[AjaxOnly] | |||
public ActionResult DeleteForm(string keyValue) | |||
{ | |||
sunshineEducationIBLL.DeleteEntity(keyValue); | |||
return Success("删除成功!"); | |||
} | |||
/// <summary> | |||
/// 保存实体数据(新增、修改) | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
/// <param name="entity">实体</param> | |||
/// <returns></returns> | |||
[HttpPost] | |||
[ValidateAntiForgeryToken] | |||
[AjaxOnly] | |||
[ValidateInput(false)] | |||
public ActionResult SaveForm(string keyValue, SunshineEducationEntity entity) | |||
{ | |||
if (!string.IsNullOrEmpty(keyValue)) | |||
{ | |||
var data = sunshineEducationIBLL.GetEntity(keyValue); | |||
} | |||
else | |||
{ | |||
entity.Contents = WebHelper.HtmlEncode(entity.Contents); | |||
} | |||
sunshineEducationIBLL.SaveEntity(keyValue, entity); | |||
return Success("保存成功!"); | |||
} | |||
/// <summary> | |||
/// 受理中 | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
/// <returns></returns> | |||
[HttpPost] | |||
[AjaxOnly] | |||
public ActionResult ReplyForm(string keyValue) | |||
{ | |||
sunshineEducationIBLL.ReplyEntity(keyValue); | |||
return Success("操作成功!"); | |||
} | |||
#endregion | |||
} | |||
} |
@@ -0,0 +1,47 @@ | |||
@{ | |||
ViewBag.Title = "舆情反映"; | |||
Layout = "~/Views/Shared/_Form.cshtml"; | |||
} | |||
<div class="lr-form-wrap" id="form"> | |||
@*<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">问题类型</div> | |||
<input id="ProblemType" type="text" class="form-control" /> | |||
</div>*@ | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">提问者身份</div> | |||
<input id="QuestionerIdentity" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">事项类型</div> | |||
<input id="MatterType" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">事项类别内容</div> | |||
<input id="MatterTypeContent" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">电话号码</div> | |||
<input id="Phone" type="text" class="form-control" /> | |||
</div><div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">标题</div> | |||
<input id="Title" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">公告内容</div> | |||
<div id="editor" style="height:300px;"></div> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">E-Mail</div> | |||
<input id="EMail" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">地址</div> | |||
<input id="Address" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">附件</div> | |||
<div id="Path"></div> | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/SunshineEducation/Form.js") |
@@ -0,0 +1,49 @@ | |||
/* | |||
* 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) | |||
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2022-11-23 10:48 | |||
* 描 述:舆情反映 | |||
*/ | |||
var acceptClick; | |||
var keyValue = request('keyValue'); | |||
var bootstrap = function ($, learun) { | |||
"use strict"; | |||
var ue; | |||
var page = { | |||
init: function () { | |||
page.bind(); | |||
page.initData(); | |||
}, | |||
bind: function () { | |||
$('#Path').lrUploader(); | |||
//内容编辑器 | |||
ue = UE.getEditor('editor'); | |||
}, | |||
initData: function () { | |||
if (!!keyValue) { | |||
$.lrSetForm(top.$.rootUrl + '/EducationalAdministration/SunshineEducation/GetFormData?keyValue=' + keyValue, function (data) { | |||
$('#form').lrSetFormData(data); | |||
setTimeout(function () { | |||
ue.setContent(data.Contents); | |||
}, 100); | |||
}); | |||
} | |||
} | |||
}; | |||
// 保存数据 | |||
acceptClick = function (callBack) { | |||
if (!$('#form').lrValidform()) { | |||
return false; | |||
} | |||
var postData = $('#form').lrGetFormData(); | |||
postData["Contents"] = ue.getContent(null, null, true); | |||
$.lrSaveForm(top.$.rootUrl + '/EducationalAdministration/SunshineEducation/SaveForm?keyValue=' + keyValue, postData, function (res) { | |||
// 保存成功后才回调 | |||
if (!!callBack) { | |||
callBack(); | |||
} | |||
}); | |||
}; | |||
page.init(); | |||
} |
@@ -0,0 +1,52 @@ | |||
@{ | |||
ViewBag.Title = "舆情反映"; | |||
Layout = "~/Views/Shared/_Form.cshtml"; | |||
} | |||
<div class="lr-form-wrap" id="form"> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">问题类型</div> | |||
<input id="ProblemType" type="text" class="form-control" readonly="readonly" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">提问者身份</div> | |||
<input id="QuestionerIdentity" type="text" class="form-control" readonly="readonly" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">事项类型</div> | |||
<input id="MatterType" type="text" class="form-control" readonly="readonly" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">事项类别内容</div> | |||
<input id="MatterTypeContent" type="text" class="form-control" readonly="readonly" /> | |||
</div> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">标题</div> | |||
<input id="Title" type="text" class="form-control" readonly="readonly" /> | |||
</div> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">公告内容</div> | |||
<div id="editor" style="height:300px;"></div> | |||
</div> | |||
<div class="col-xs-4 lr-form-item"> | |||
<div class="lr-form-item-title">电话号码</div> | |||
<input id="Phone" type="text" class="form-control" readonly="readonly" /> | |||
</div> | |||
<div class="col-xs-4 lr-form-item"> | |||
<div class="lr-form-item-title">E-Mail</div> | |||
<input id="EMail" type="text" class="form-control" readonly="readonly" /> | |||
</div> | |||
<div class="col-xs-4 lr-form-item"> | |||
<div class="lr-form-item-title">地址</div> | |||
<input id="Address" type="text" class="form-control" readonly="readonly" /> | |||
</div> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">附件</div> | |||
<div id="Path" readonly="readonly"></div> | |||
</div> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">回复</div> | |||
<textarea id="Responses" style="height:150px;width:90%"></textarea> | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/SunshineEducation/FormReply.js") |
@@ -0,0 +1,47 @@ | |||
/* | |||
* 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) | |||
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2022-11-23 10:48 | |||
* 描 述:舆情反映 | |||
*/ | |||
var acceptClick; | |||
var keyValue = request('keyValue'); | |||
var bootstrap = function ($, learun) { | |||
"use strict"; | |||
var ue; | |||
var page = { | |||
init: function () { | |||
page.bind(); | |||
page.initData(); | |||
}, | |||
bind: function () { | |||
$('#Path').lrUploader({ isUpload: false }); | |||
//内容编辑器 | |||
ue = UE.getEditor('editor'); | |||
}, | |||
initData: function () { | |||
if (!!keyValue) { | |||
$.lrSetForm(top.$.rootUrl + '/EducationalAdministration/SunshineEducation/GetFormData?keyValue=' + keyValue, function (data) { | |||
$('#form').lrSetFormData(data); | |||
setTimeout(function () { | |||
ue.setContent(data.Contents); | |||
}, 100);}); | |||
} | |||
} | |||
}; | |||
// 保存数据 | |||
acceptClick = function (callBack) { | |||
if (!$('#form').lrValidform()) { | |||
return false; | |||
} | |||
var postData = $('#form').lrGetFormData(); | |||
$.lrSaveForm(top.$.rootUrl + '/EducationalAdministration/SunshineEducation/SaveForm?keyValue=' + keyValue, postData, function (res) { | |||
// 保存成功后才回调 | |||
if (!!callBack) { | |||
callBack(); | |||
} | |||
}); | |||
}; | |||
page.init(); | |||
} |
@@ -0,0 +1,66 @@ | |||
@{ | |||
ViewBag.Title = "舆情反映"; | |||
Layout = "~/Views/Shared/_Index.cshtml"; | |||
} | |||
<div class="lr-layout "> | |||
<div class="lr-layout-center"> | |||
<div class="lr-layout-wrap lr-layout-wrap-notitle "> | |||
<div class="lr-layout-tool"> | |||
<div class="lr-layout-tool-left"> | |||
<div class="lr-layout-tool-item"> | |||
<div id="multiple_condition_query"> | |||
<div class="lr-query-formcontent"> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">标题</div> | |||
<input id="Title" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">提问者身份</div> | |||
<div id="QuestionerIdentity"></div> | |||
</div> | |||
@*<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">事项类别</div> | |||
<div id="MatterType"></div> | |||
</div> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">类别分类</div> | |||
<div id="MatterTypeContent"></div> | |||
</div>*@ | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">受理单位</div> | |||
<div id="AcceptanceUnit"></div> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">受理状态</div> | |||
<div id="Status"></div> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">受理用户</div> | |||
<input id="UserName" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">受理单号</div> | |||
<input id="AcceptanceCode" type="text" class="form-control" /> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="lr-layout-tool-right"> | |||
<div class=" btn-group btn-group-sm"> | |||
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a> | |||
</div> | |||
<div class=" btn-group btn-group-sm" learun-authorize="yes"> | |||
<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i> 新增</a> | |||
@* <a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 编辑</a>*@ | |||
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i> 删除</a> | |||
<a id="lr_reply" class="btn btn-default"><i class="fa fa-plus"></i> 受理</a> | |||
<a id="lr_acceptance" class="btn btn-default"><i class="fa fa-plus"></i> 回复</a> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="lr-layout-body" id="gridtable"></div> | |||
</div> | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/SunshineEducation/Index.js") |
@@ -0,0 +1,242 @@ | |||
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) | |||
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2022-11-23 10:48 | |||
* 描 述:舆情反映 | |||
*/ | |||
var refreshGirdData; | |||
var bootstrap = function ($, learun) { | |||
"use strict"; | |||
var page = { | |||
init: function () { | |||
page.initGird(); | |||
page.bind(); | |||
}, | |||
bind: function () { | |||
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) { | |||
page.search(queryJson); | |||
}, 280, 400); | |||
$('#Status').lrselect({ | |||
data: [{ text: "未受理", value: "0" }, { text: "受理中", value: "1" }, { text: "已受理", value: "2" }], | |||
text: "text", | |||
value: "value" | |||
}) | |||
$('#QuestionerIdentity').lrselect({ | |||
width: '150px', | |||
placeholder: "请选择提问者身份", | |||
allowSearch: true, | |||
url: top.$.rootUrl + '/EducationalAdministration/SunshineEducation/GetQuestionerIdentity?ProblemType=' + "舆情反映", | |||
value: 'ID', | |||
text: 'QuestionerIdentity' | |||
}); | |||
//$('#MatterType').lrselect({ | |||
// width: '150px', | |||
// placeholder: "请选择事项类别", | |||
// allowSearch: true, | |||
// url: top.$.rootUrl + '/EducationalAdministration/SunshineEducation/GetMatterType', | |||
// value: 'ID', | |||
// text: 'MatterType' | |||
//}); | |||
//$('#MatterTypeContent').lrselect({ | |||
// width: '150px', | |||
// placeholder: "请选择类别分类", | |||
// allowSearch: true, | |||
// url: top.$.rootUrl + '/EducationalAdministration/SunshineEducation/GetMatterTypeContent', | |||
// value: 'ID', | |||
// text: 'MatterTypeContent' | |||
//}); | |||
$('#AcceptanceUnit').lrDepartmentSelect(); | |||
// 刷新 | |||
$('#lr_refresh').on('click', function () { | |||
location.reload(); | |||
}); | |||
// 新增 | |||
$('#lr_add').on('click', function () { | |||
learun.layerForm({ | |||
id: 'form', | |||
title: '新增', | |||
url: top.$.rootUrl + '/EducationalAdministration/SunshineEducation/Form', | |||
width: 800, | |||
height: 600, | |||
callBack: function (id) { | |||
return top[id].acceptClick(refreshGirdData); | |||
} | |||
}); | |||
}); | |||
// 编辑 | |||
$('#lr_edit').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('ID'); | |||
if (learun.checkrow(keyValue)) { | |||
var Status = $('#gridtable').jfGridValue('Status'); | |||
if (Status != 0) { | |||
learun.alert.warning("当前项已受理或受理中不可编辑!"); | |||
return; | |||
} | |||
learun.layerForm({ | |||
id: 'form', | |||
title: '编辑', | |||
url: top.$.rootUrl + '/EducationalAdministration/SunshineEducation/Form?keyValue=' + keyValue, | |||
width: 800, | |||
height: 400, | |||
callBack: function (id) { | |||
return top[id].acceptClick(refreshGirdData); | |||
} | |||
}); | |||
} | |||
}); | |||
// 删除 | |||
$('#lr_delete').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('ID'); | |||
if (learun.checkrow(keyValue)) { | |||
var Status = $('#gridtable').jfGridValue('Status'); | |||
if (Status != 0) { | |||
learun.alert.warning("当前项已受理或受理中不可删除!"); | |||
return; | |||
} | |||
learun.layerConfirm('是否确认删除该项!', function (res) { | |||
if (res) { | |||
learun.deleteForm(top.$.rootUrl + '/EducationalAdministration/SunshineEducation/DeleteForm', { keyValue: keyValue }, function () { | |||
}); | |||
} | |||
}); | |||
} | |||
}); | |||
//受理标识 | |||
$('#lr_reply').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('ID'); | |||
if (learun.checkrow(keyValue)) { | |||
var Status = $('#gridtable').jfGridValue('Status'); | |||
if (Status != 0) { | |||
learun.alert.warning("当前项已受理完成!"); | |||
return; | |||
} | |||
learun.layerConfirm('是否确认受理该项?', function (res) { | |||
if (res) { | |||
learun.postForm(top.$.rootUrl + '/EducationalAdministration/SunshineEducation/ReplyForm', { keyValue: keyValue }, function () { | |||
refreshGirdData(); | |||
}); | |||
} | |||
}); | |||
} | |||
}); | |||
//回复 | |||
$('#lr_acceptance').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('ID'); | |||
if (learun.checkrow(keyValue)) { | |||
var Status = $('#gridtable').jfGridValue('Status'); | |||
if (Status == 0) { | |||
learun.alert.warning("当前项不可回复!"); | |||
return; | |||
} | |||
learun.layerForm({ | |||
id: 'formReply', | |||
title: '回复', | |||
url: top.$.rootUrl + '/EducationalAdministration/SunshineEducation/FormReply?keyValue=' + keyValue, | |||
width: 800, | |||
height: 900, | |||
callBack: function (id) { | |||
return top[id].acceptClick(refreshGirdData); | |||
} | |||
}); | |||
} | |||
}); | |||
}, | |||
initGird: function () { | |||
$('#gridtable').lrAuthorizeJfGrid({ | |||
url: top.$.rootUrl + '/EducationalAdministration/SunshineEducation/GetPageList', | |||
headData: [ | |||
{ label: '问题类型', name: 'ProblemType', width: 100, align: "left" }, | |||
{ label: '提问者身份', name: 'QuestionerIdentity', width: 100, align: "left" }, | |||
{ label: '事项类型', name: 'MatterType', width: 100, align: "left" }, | |||
{ label: '事项类别内容', name: 'MatterTypeContent', width: 150, align: "left" }, | |||
{ label: '标题', name: 'Title', width: 200, align: "left" }, | |||
{ label: '信件内容', name: 'Contents', width: 300, align: "left" }, | |||
{ label: '姓名', name: 'Name', width: 100, align: "left" }, | |||
{ label: '电话号码', name: 'Phone', width: 100, align: "left" }, | |||
{ label: 'EMail', name: 'EMail', width: 120, align: "left" }, | |||
{ label: '地址', name: 'Address', width: 200, align: "left" }, | |||
{ | |||
label: '提交时间', name: 'Createdate', width: 140, align: "left", | |||
formatter: function (cellvalue) { | |||
return learun.formatDate(cellvalue, 'yyyy-MM-dd hh:mm:ss'); | |||
}, | |||
}, | |||
{ | |||
label: '受理状态', name: 'Status', width: 80, align: "left", | |||
formatter: function (cellvalue) { | |||
if (cellvalue == '0') { | |||
return '未受理'; | |||
} else if (cellvalue == '1') { | |||
return '受理中'; | |||
} else if (cellvalue == '2') { | |||
return '已受理'; | |||
} | |||
}, | |||
}, | |||
{ | |||
label: '受理单位', name: 'AcceptanceUnit', width: 200, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'classdata', | |||
key: value, | |||
keyId: 'id', | |||
callback: function (_data) { | |||
callback(_data['name']); | |||
} | |||
}); | |||
} | |||
}, | |||
{ | |||
label: '受理时间', name: 'AcceptanceTime', width: 140, align: "left", | |||
formatter: function (cellvalue) { | |||
return learun.formatDate(cellvalue, 'yyyy-MM-dd hh:mm:ss'); | |||
}, | |||
}, | |||
{ label: '受理单号', name: 'AcceptanceCode', width: 140, align: "left" }, | |||
{ | |||
label: '回复用户', name: 'AcceptanceId', width: 200, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('user', { | |||
key: value, | |||
callback: function (_data) { | |||
callback(_data.name); | |||
} | |||
}); | |||
} | |||
}, | |||
{ label: '评论意见', name: 'CriticalReview', width: 200, align: "left" }, | |||
{ | |||
label: '评论打分', name: 'RatingReview', width: 100, align: "left", | |||
formatter: function (cellvalue) { | |||
if (cellvalue == '0') { | |||
return '非常满意'; | |||
} else if (cellvalue == '1') { | |||
return '满意'; | |||
} else if (cellvalue == '2') { | |||
return '一般'; | |||
} else { | |||
return '不满意'; | |||
} | |||
}, | |||
}, | |||
{ label: '回复内容', name: 'Responses', width: 200, align: "left" }, | |||
{ label: '点击次数', name: 'Clicks', width: 200, align: "left" }, | |||
], | |||
mainId: 'ID', | |||
sidx: 'Createdate desc', | |||
isPage: true | |||
}); | |||
page.search(); | |||
}, | |||
search: function (param) { | |||
param = param || {}; | |||
param.SqlParam = " and ProblemType ='舆情反应'"; | |||
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | |||
} | |||
}; | |||
refreshGirdData = function () { | |||
$('#gridtable').jfGridSet('reload'); | |||
}; | |||
page.init(); | |||
} |
@@ -0,0 +1,65 @@ | |||
@{ | |||
ViewBag.Title = "投诉受理"; | |||
Layout = "~/Views/Shared/_Index.cshtml"; | |||
}<div class="lr-layout "> | |||
<div class="lr-layout-center"> | |||
<div class="lr-layout-wrap lr-layout-wrap-notitle "> | |||
<div class="lr-layout-tool"> | |||
<div class="lr-layout-tool-left"> | |||
<div class="lr-layout-tool-item"> | |||
<div id="multiple_condition_query"> | |||
<div class="lr-query-formcontent"> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">标题</div> | |||
<input id="Title" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">受理状态</div> | |||
<div id="Status"></div> | |||
</div> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">提问者身份</div> | |||
<div id="QuestionerIdentity"></div> | |||
</div> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">事项类别</div> | |||
<div id="MatterType"></div> | |||
</div> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">类别分类</div> | |||
<div id="MatterTypeContent"></div> | |||
</div> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">受理单位</div> | |||
<div id="AcceptanceUnit"></div> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">受理单号</div> | |||
<input id="AcceptanceCode" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">受理用户</div> | |||
<input id="UserName" type="text" class="form-control" /> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="lr-layout-tool-right"> | |||
<div class=" btn-group btn-group-sm"> | |||
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a> | |||
</div> | |||
<div class=" btn-group btn-group-sm" learun-authorize="yes"> | |||
@*<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i> 新增</a> | |||
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 编辑</a>*@ | |||
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i> 删除</a> | |||
<a id="lr_reply" class="btn btn-default"><i class="fa fa-plus"></i> 受理</a> | |||
<a id="lr_acceptance" class="btn btn-default"><i class="fa fa-plus"></i> 回复</a> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="lr-layout-body" id="gridtable"></div> | |||
</div> | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/SunshineEducation/IndexComplaint.js") |
@@ -0,0 +1,242 @@ | |||
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) | |||
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2022-11-23 10:48 | |||
* 描 述:投诉受理 | |||
*/ | |||
var refreshGirdData; | |||
var bootstrap = function ($, learun) { | |||
"use strict"; | |||
var page = { | |||
init: function () { | |||
page.initGird(); | |||
page.bind(); | |||
}, | |||
bind: function () { | |||
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) { | |||
page.search(queryJson); | |||
}, 280, 400); | |||
$('#Status').lrselect({ | |||
data: [{ text: "未受理", value: "0" }, { text: "受理中", value: "1" }, { text: "已受理", value: "2" }], | |||
text: "text", | |||
value: "value" | |||
}) | |||
$('#QuestionerIdentity').lrselect({ | |||
width: '150px', | |||
placeholder: "请选择提问者身份", | |||
allowSearch: true, | |||
url: top.$.rootUrl + '/EducationalAdministration/SunshineEducation/GetQuestionerIdentity?ProblemType=' + "投诉受理", | |||
value: 'ID', | |||
text: 'QuestionerIdentity' | |||
}); | |||
$('#MatterType').lrselect({ | |||
width: '150px', | |||
placeholder: "请选择事项类别", | |||
allowSearch: true, | |||
url: top.$.rootUrl + '/EducationalAdministration/SunshineEducation/GetMatterType?ProblemType=' + "投诉受理", | |||
value: 'ID', | |||
text: 'MatterType' | |||
}); | |||
$('#MatterTypeContent').lrselect({ | |||
width: '150px', | |||
placeholder: "请选择类别分类", | |||
allowSearch: true, | |||
url: top.$.rootUrl + '/EducationalAdministration/SunshineEducation/GetMatterTypeContent?ProblemType=' + "投诉受理", | |||
value: 'ID', | |||
text: 'MatterTypeContent' | |||
}); | |||
$('#AcceptanceUnit').lrDepartmentSelect(); | |||
// 刷新 | |||
$('#lr_refresh').on('click', function () { | |||
location.reload(); | |||
}); | |||
// 新增 | |||
$('#lr_add').on('click', function () { | |||
learun.layerForm({ | |||
id: 'form', | |||
title: '新增', | |||
url: top.$.rootUrl + '/EducationalAdministration/SunshineEducation/Form', | |||
width: 800, | |||
height: 600, | |||
callBack: function (id) { | |||
return top[id].acceptClick(refreshGirdData); | |||
} | |||
}); | |||
}); | |||
// 编辑 | |||
$('#lr_edit').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('ID'); | |||
if (learun.checkrow(keyValue)) { | |||
var Status = $('#gridtable').jfGridValue('Status'); | |||
if (Status != 0) { | |||
learun.alert.warning("当前项已受理或受理中不可编辑!"); | |||
return; | |||
} | |||
learun.layerForm({ | |||
id: 'form', | |||
title: '编辑', | |||
url: top.$.rootUrl + '/EducationalAdministration/SunshineEducation/Form?keyValue=' + keyValue, | |||
width: 800, | |||
height: 400, | |||
callBack: function (id) { | |||
return top[id].acceptClick(refreshGirdData); | |||
} | |||
}); | |||
} | |||
}); | |||
// 删除 | |||
$('#lr_delete').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('ID'); | |||
if (learun.checkrow(keyValue)) { | |||
var Status = $('#gridtable').jfGridValue('Status'); | |||
if (Status != 0) { | |||
learun.alert.warning("当前项已受理或受理中不可删除!"); | |||
return; | |||
} | |||
learun.layerConfirm('是否确认删除该项!', function (res) { | |||
if (res) { | |||
learun.deleteForm(top.$.rootUrl + '/EducationalAdministration/SunshineEducation/DeleteForm', { keyValue: keyValue }, function () { | |||
}); | |||
} | |||
}); | |||
} | |||
}); | |||
//受理标识 | |||
$('#lr_reply').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('ID'); | |||
if (learun.checkrow(keyValue)) { | |||
var Status = $('#gridtable').jfGridValue('Status'); | |||
if (Status != 0) { | |||
learun.alert.warning("当前项已受理完成!"); | |||
return; | |||
} | |||
learun.layerConfirm('是否确认受理该项?', function (res) { | |||
if (res) { | |||
learun.postForm(top.$.rootUrl + '/EducationalAdministration/SunshineEducation/ReplyForm', { keyValue: keyValue }, function () { | |||
refreshGirdData(); | |||
}); | |||
} | |||
}); | |||
} | |||
}); | |||
//回复 | |||
$('#lr_acceptance').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('ID'); | |||
if (learun.checkrow(keyValue)) { | |||
var Status = $('#gridtable').jfGridValue('Status'); | |||
if (Status == 0) { | |||
learun.alert.warning("当前项不可回复!"); | |||
return; | |||
} | |||
learun.layerForm({ | |||
id: 'formReply', | |||
title: '回复', | |||
url: top.$.rootUrl + '/EducationalAdministration/SunshineEducation/FormReply?keyValue=' + keyValue, | |||
width: 800, | |||
height: 900, | |||
callBack: function (id) { | |||
return top[id].acceptClick(refreshGirdData); | |||
} | |||
}); | |||
} | |||
}); | |||
}, | |||
initGird: function () { | |||
$('#gridtable').lrAuthorizeJfGrid({ | |||
url: top.$.rootUrl + '/EducationalAdministration/SunshineEducation/GetPageList', | |||
headData: [ | |||
{ label: '问题类型', name: 'ProblemType', width: 100, align: "left" }, | |||
{ label: '提问者身份', name: 'QuestionerIdentity', width: 100, align: "left" }, | |||
{ label: '事项类型', name: 'MatterType', width: 100, align: "left" }, | |||
{ label: '事项类别内容', name: 'MatterTypeContent', width: 150, align: "left" }, | |||
{ label: '标题', name: 'Title', width: 200, align: "left" }, | |||
{ label: '信件内容', name: 'Contents', width: 300, align: "left" }, | |||
{ label: '姓名', name: 'Name', width: 100, align: "left" }, | |||
{ label: '电话号码', name: 'Phone', width: 100, align: "left" }, | |||
{ label: 'EMail', name: 'EMail', width: 120, align: "left" }, | |||
{ label: '地址', name: 'Address', width: 200, align: "left" }, | |||
{ | |||
label: '提交时间', name: 'Createdate', width: 140, align: "left", | |||
formatter: function (cellvalue) { | |||
return learun.formatDate(cellvalue, 'yyyy-MM-dd hh:mm:ss'); | |||
}, | |||
}, | |||
{ | |||
label: '受理状态', name: 'Status', width: 80, align: "left", | |||
formatter: function (cellvalue) { | |||
if (cellvalue == '0') { | |||
return '未受理'; | |||
} else if (cellvalue == '1') { | |||
return '受理中'; | |||
} else if (cellvalue == '2') { | |||
return '已受理'; | |||
} | |||
}, | |||
}, | |||
{ | |||
label: '受理单位', name: 'AcceptanceUnit', width: 200, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'classdata', | |||
key: value, | |||
keyId: 'id', | |||
callback: function (_data) { | |||
callback(_data['name']); | |||
} | |||
}); | |||
} | |||
}, | |||
{ | |||
label: '受理时间', name: 'AcceptanceTime', width: 140, align: "left", | |||
formatter: function (cellvalue) { | |||
return learun.formatDate(cellvalue, 'yyyy-MM-dd hh:mm:ss'); | |||
}, | |||
}, | |||
{ label: '受理单号', name: 'AcceptanceCode', width: 140, align: "left" }, | |||
{ | |||
label: '回复用户', name: 'AcceptanceId', width: 200, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('user', { | |||
key: value, | |||
callback: function (_data) { | |||
callback(_data.name); | |||
} | |||
}); | |||
} | |||
}, | |||
{ label: '评论意见', name: 'CriticalReview', width: 200, align: "left" }, | |||
{ | |||
label: '评论打分', name: 'RatingReview', width: 100, align: "left", | |||
formatter: function (cellvalue) { | |||
if (cellvalue == '0') { | |||
return '非常满意'; | |||
} else if (cellvalue == '1') { | |||
return '满意'; | |||
} else if (cellvalue == '2') { | |||
return '一般'; | |||
} else { | |||
return '不满意'; | |||
} | |||
}, | |||
}, | |||
{ label: '回复内容', name: 'Responses', width: 200, align: "left" }, | |||
{ label: '点击次数', name: 'Clicks', width: 200, align: "left" }, | |||
], | |||
mainId: 'ID', | |||
sidx: 'Createdate desc', | |||
isPage: true | |||
}); | |||
page.search(); | |||
}, | |||
search: function (param) { | |||
param = param || {}; | |||
param.SqlParam = " and ProblemType ='投诉受理'"; | |||
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | |||
} | |||
}; | |||
refreshGirdData = function () { | |||
$('#gridtable').jfGridSet('reload'); | |||
}; | |||
page.init(); | |||
} |
@@ -0,0 +1,66 @@ | |||
@{ | |||
ViewBag.Title = "求助帮扶"; | |||
Layout = "~/Views/Shared/_Index.cshtml"; | |||
} | |||
<div class="lr-layout "> | |||
<div class="lr-layout-center"> | |||
<div class="lr-layout-wrap lr-layout-wrap-notitle "> | |||
<div class="lr-layout-tool"> | |||
<div class="lr-layout-tool-left"> | |||
<div class="lr-layout-tool-item"> | |||
<div id="multiple_condition_query"> | |||
<div class="lr-query-formcontent"> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">标题</div> | |||
<input id="Title" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">提问者身份</div> | |||
<div id="QuestionerIdentity"></div> | |||
</div> | |||
@*<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">事项类别</div> | |||
<div id="MatterType"></div> | |||
</div> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">类别分类</div> | |||
<div id="MatterTypeContent"></div> | |||
</div>*@ | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">受理单位</div> | |||
<div id="AcceptanceUnit"></div> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">受理状态</div> | |||
<div id="Status"></div> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">受理用户</div> | |||
<input id="UserName" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">受理单号</div> | |||
<input id="AcceptanceCode" type="text" class="form-control" /> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="lr-layout-tool-right"> | |||
<div class=" btn-group btn-group-sm"> | |||
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a> | |||
</div> | |||
<div class=" btn-group btn-group-sm" learun-authorize="yes"> | |||
@*<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i> 新增</a> | |||
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 编辑</a>*@ | |||
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i> 删除</a> | |||
<a id="lr_reply" class="btn btn-default"><i class="fa fa-plus"></i> 受理</a> | |||
<a id="lr_acceptance" class="btn btn-default"><i class="fa fa-plus"></i> 回复</a> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="lr-layout-body" id="gridtable"></div> | |||
</div> | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/SunshineEducation/IndexHelp.js") |
@@ -0,0 +1,242 @@ | |||
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) | |||
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2022-11-23 10:48 | |||
* 描 述:求助帮扶 | |||
*/ | |||
var refreshGirdData; | |||
var bootstrap = function ($, learun) { | |||
"use strict"; | |||
var page = { | |||
init: function () { | |||
page.initGird(); | |||
page.bind(); | |||
}, | |||
bind: function () { | |||
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) { | |||
page.search(queryJson); | |||
}, 280, 400); | |||
$('#Status').lrselect({ | |||
data: [{ text: "未受理", value: "0" }, { text: "受理中", value: "1" }, { text: "已受理", value: "2" }], | |||
text: "text", | |||
value: "value" | |||
}) | |||
$('#QuestionerIdentity').lrselect({ | |||
width: '150px', | |||
placeholder: "请选择提问者身份", | |||
allowSearch: true, | |||
url: top.$.rootUrl + '/EducationalAdministration/SunshineEducation/GetQuestionerIdentity?ProblemType=' + "求助帮扶", | |||
value: 'ID', | |||
text: 'QuestionerIdentity' | |||
}); | |||
//$('#MatterType').lrselect({ | |||
// width: '150px', | |||
// placeholder: "请选择事项类别", | |||
// allowSearch: true, | |||
// url: top.$.rootUrl + '/EducationalAdministration/SunshineEducation/GetMatterType', | |||
// value: 'ID', | |||
// text: 'MatterType' | |||
//}); | |||
//$('#MatterTypeContent').lrselect({ | |||
// width: '150px', | |||
// placeholder: "请选择类别分类", | |||
// allowSearch: true, | |||
// url: top.$.rootUrl + '/EducationalAdministration/SunshineEducation/GetMatterTypeContent', | |||
// value: 'ID', | |||
// text: 'MatterTypeContent' | |||
//}); | |||
$('#AcceptanceUnit').lrDepartmentSelect(); | |||
// 刷新 | |||
$('#lr_refresh').on('click', function () { | |||
location.reload(); | |||
}); | |||
// 新增 | |||
$('#lr_add').on('click', function () { | |||
learun.layerForm({ | |||
id: 'form', | |||
title: '新增', | |||
url: top.$.rootUrl + '/EducationalAdministration/SunshineEducation/Form', | |||
width: 800, | |||
height: 600, | |||
callBack: function (id) { | |||
return top[id].acceptClick(refreshGirdData); | |||
} | |||
}); | |||
}); | |||
// 编辑 | |||
$('#lr_edit').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('ID'); | |||
if (learun.checkrow(keyValue)) { | |||
var Status = $('#gridtable').jfGridValue('Status'); | |||
if (Status != 0) { | |||
learun.alert.warning("当前项已受理或受理中不可编辑!"); | |||
return; | |||
} | |||
learun.layerForm({ | |||
id: 'form', | |||
title: '编辑', | |||
url: top.$.rootUrl + '/EducationalAdministration/SunshineEducation/Form?keyValue=' + keyValue, | |||
width: 800, | |||
height: 400, | |||
callBack: function (id) { | |||
return top[id].acceptClick(refreshGirdData); | |||
} | |||
}); | |||
} | |||
}); | |||
// 删除 | |||
$('#lr_delete').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('ID'); | |||
if (learun.checkrow(keyValue)) { | |||
var Status = $('#gridtable').jfGridValue('Status'); | |||
if (Status != 0) { | |||
learun.alert.warning("当前项已受理或受理中不可删除!"); | |||
return; | |||
} | |||
learun.layerConfirm('是否确认删除该项!', function (res) { | |||
if (res) { | |||
learun.deleteForm(top.$.rootUrl + '/EducationalAdministration/SunshineEducation/DeleteForm', { keyValue: keyValue }, function () { | |||
}); | |||
} | |||
}); | |||
} | |||
}); | |||
//受理标识 | |||
$('#lr_reply').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('ID'); | |||
if (learun.checkrow(keyValue)) { | |||
var Status = $('#gridtable').jfGridValue('Status'); | |||
if (Status != 0) { | |||
learun.alert.warning("当前项已受理完成!"); | |||
return; | |||
} | |||
learun.layerConfirm('是否确认受理该项?', function (res) { | |||
if (res) { | |||
learun.postForm(top.$.rootUrl + '/EducationalAdministration/SunshineEducation/ReplyForm', { keyValue: keyValue }, function () { | |||
refreshGirdData(); | |||
}); | |||
} | |||
}); | |||
} | |||
}); | |||
//回复 | |||
$('#lr_acceptance').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('ID'); | |||
if (learun.checkrow(keyValue)) { | |||
var Status = $('#gridtable').jfGridValue('Status'); | |||
if (Status == 0) { | |||
learun.alert.warning("当前项不可回复!"); | |||
return; | |||
} | |||
learun.layerForm({ | |||
id: 'formReply', | |||
title: '回复', | |||
url: top.$.rootUrl + '/EducationalAdministration/SunshineEducation/FormReply?keyValue=' + keyValue, | |||
width: 800, | |||
height: 900, | |||
callBack: function (id) { | |||
return top[id].acceptClick(refreshGirdData); | |||
} | |||
}); | |||
} | |||
}); | |||
}, | |||
initGird: function () { | |||
$('#gridtable').lrAuthorizeJfGrid({ | |||
url: top.$.rootUrl + '/EducationalAdministration/SunshineEducation/GetPageList', | |||
headData: [ | |||
{ label: '问题类型', name: 'ProblemType', width: 100, align: "left" }, | |||
{ label: '提问者身份', name: 'QuestionerIdentity', width: 100, align: "left" }, | |||
{ label: '事项类型', name: 'MatterType', width: 100, align: "left" }, | |||
{ label: '事项类别内容', name: 'MatterTypeContent', width: 150, align: "left" }, | |||
{ label: '标题', name: 'Title', width: 200, align: "left" }, | |||
{ label: '信件内容', name: 'Contents', width: 300, align: "left" }, | |||
{ label: '姓名', name: 'Name', width: 100, align: "left" }, | |||
{ label: '电话号码', name: 'Phone', width: 100, align: "left" }, | |||
{ label: 'EMail', name: 'EMail', width: 120, align: "left" }, | |||
{ label: '地址', name: 'Address', width: 200, align: "left" }, | |||
{ | |||
label: '提交时间', name: 'Createdate', width: 140, align: "left", | |||
formatter: function (cellvalue) { | |||
return learun.formatDate(cellvalue, 'yyyy-MM-dd hh:mm:ss'); | |||
}, | |||
}, | |||
{ | |||
label: '受理状态', name: 'Status', width: 80, align: "left", | |||
formatter: function (cellvalue) { | |||
if (cellvalue == '0') { | |||
return '未受理'; | |||
} else if (cellvalue == '1') { | |||
return '受理中'; | |||
} else if (cellvalue == '2') { | |||
return '已受理'; | |||
} | |||
}, | |||
}, | |||
{ | |||
label: '受理单位', name: 'AcceptanceUnit', width: 200, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'classdata', | |||
key: value, | |||
keyId: 'id', | |||
callback: function (_data) { | |||
callback(_data['name']); | |||
} | |||
}); | |||
} | |||
}, | |||
{ | |||
label: '受理时间', name: 'AcceptanceTime', width: 140, align: "left", | |||
formatter: function (cellvalue) { | |||
return learun.formatDate(cellvalue, 'yyyy-MM-dd hh:mm:ss'); | |||
}, | |||
}, | |||
{ label: '受理单号', name: 'AcceptanceCode', width: 140, align: "left" }, | |||
{ | |||
label: '回复用户', name: 'AcceptanceId', width: 200, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('user', { | |||
key: value, | |||
callback: function (_data) { | |||
callback(_data.name); | |||
} | |||
}); | |||
} | |||
}, | |||
{ label: '评论意见', name: 'CriticalReview', width: 200, align: "left" }, | |||
{ | |||
label: '评论打分', name: 'RatingReview', width: 100, align: "left", | |||
formatter: function (cellvalue) { | |||
if (cellvalue == '0') { | |||
return '非常满意'; | |||
} else if (cellvalue == '1') { | |||
return '满意'; | |||
} else if (cellvalue == '2') { | |||
return '一般'; | |||
} else { | |||
return '不满意'; | |||
} | |||
}, | |||
}, | |||
{ label: '回复内容', name: 'Responses', width: 200, align: "left" }, | |||
{ label: '点击次数', name: 'Clicks', width: 200, align: "left" }, | |||
], | |||
mainId: 'ID', | |||
sidx: 'Createdate desc', | |||
isPage: true | |||
}); | |||
page.search(); | |||
}, | |||
search: function (param) { | |||
param = param || {}; | |||
param.SqlParam = " and ProblemType ='求助帮扶'"; | |||
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | |||
} | |||
}; | |||
refreshGirdData = function () { | |||
$('#gridtable').jfGridSet('reload'); | |||
}; | |||
page.init(); | |||
} |
@@ -0,0 +1,65 @@ | |||
@{ | |||
ViewBag.Title = "政策咨询"; | |||
Layout = "~/Views/Shared/_Index.cshtml"; | |||
}<div class="lr-layout "> | |||
<div class="lr-layout-center"> | |||
<div class="lr-layout-wrap lr-layout-wrap-notitle "> | |||
<div class="lr-layout-tool"> | |||
<div class="lr-layout-tool-left"> | |||
<div class="lr-layout-tool-item"> | |||
<div id="multiple_condition_query"> | |||
<div class="lr-query-formcontent"> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">标题</div> | |||
<input id="Title" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">受理状态</div> | |||
<div id="Status"></div> | |||
</div> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">提问者身份</div> | |||
<div id="QuestionerIdentity"></div> | |||
</div> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">事项类别</div> | |||
<div id="MatterType"></div> | |||
</div> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">类别分类</div> | |||
<div id="MatterTypeContent"></div> | |||
</div> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">受理单位</div> | |||
<div id="AcceptanceUnit"></div> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">受理单号</div> | |||
<input id="AcceptanceCode" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">受理用户</div> | |||
<input id="UserName" type="text" class="form-control" /> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="lr-layout-tool-right"> | |||
<div class=" btn-group btn-group-sm"> | |||
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a> | |||
</div> | |||
<div class=" btn-group btn-group-sm" learun-authorize="yes"> | |||
@*<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i> 新增</a> | |||
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 编辑</a>*@ | |||
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i> 删除</a> | |||
<a id="lr_reply" class="btn btn-default"><i class="fa fa-plus"></i> 受理</a> | |||
<a id="lr_acceptance" class="btn btn-default"><i class="fa fa-plus"></i> 回复</a> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="lr-layout-body" id="gridtable"></div> | |||
</div> | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/SunshineEducation/IndexPolicy.js") |
@@ -0,0 +1,242 @@ | |||
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) | |||
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2022-11-23 10:48 | |||
* 描 述:政策咨询 | |||
*/ | |||
var refreshGirdData; | |||
var bootstrap = function ($, learun) { | |||
"use strict"; | |||
var page = { | |||
init: function () { | |||
page.initGird(); | |||
page.bind(); | |||
}, | |||
bind: function () { | |||
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) { | |||
page.search(queryJson); | |||
}, 280, 400); | |||
$('#Status').lrselect({ | |||
data: [{ text: "未受理", value: "0" }, { text: "受理中", value: "1" }, { text: "已受理", value: "2" }], | |||
text: "text", | |||
value: "value" | |||
}) | |||
$('#QuestionerIdentity').lrselect({ | |||
width: '150px', | |||
placeholder: "请选择提问者身份", | |||
allowSearch: true, | |||
url: top.$.rootUrl + '/EducationalAdministration/SunshineEducation/GetQuestionerIdentity?ProblemType=' + "政策咨询", | |||
value: 'ID', | |||
text: 'QuestionerIdentity' | |||
}); | |||
$('#MatterType').lrselect({ | |||
width: '150px', | |||
placeholder: "请选择事项类别", | |||
allowSearch: true, | |||
url: top.$.rootUrl + '/EducationalAdministration/SunshineEducation/GetMatterType?ProblemType=' + "政策咨询", | |||
value: 'ID', | |||
text: 'MatterType' | |||
}); | |||
$('#MatterTypeContent').lrselect({ | |||
width: '150px', | |||
placeholder: "请选择类别分类", | |||
allowSearch: true, | |||
url: top.$.rootUrl + '/EducationalAdministration/SunshineEducation/GetMatterTypeContent?ProblemType=' + "政策咨询", | |||
value: 'ID', | |||
text: 'MatterTypeContent' | |||
}); | |||
$('#AcceptanceUnit').lrDepartmentSelect(); | |||
// 刷新 | |||
$('#lr_refresh').on('click', function () { | |||
location.reload(); | |||
}); | |||
// 新增 | |||
$('#lr_add').on('click', function () { | |||
learun.layerForm({ | |||
id: 'form', | |||
title: '新增', | |||
url: top.$.rootUrl + '/EducationalAdministration/SunshineEducation/Form', | |||
width: 800, | |||
height: 600, | |||
callBack: function (id) { | |||
return top[id].acceptClick(refreshGirdData); | |||
} | |||
}); | |||
}); | |||
// 编辑 | |||
$('#lr_edit').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('ID'); | |||
if (learun.checkrow(keyValue)) { | |||
var Status = $('#gridtable').jfGridValue('Status'); | |||
if (Status != 0) { | |||
learun.alert.warning("当前项已受理或受理中不可编辑!"); | |||
return; | |||
} | |||
learun.layerForm({ | |||
id: 'form', | |||
title: '编辑', | |||
url: top.$.rootUrl + '/EducationalAdministration/SunshineEducation/Form?keyValue=' + keyValue, | |||
width: 800, | |||
height: 400, | |||
callBack: function (id) { | |||
return top[id].acceptClick(refreshGirdData); | |||
} | |||
}); | |||
} | |||
}); | |||
// 删除 | |||
$('#lr_delete').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('ID'); | |||
if (learun.checkrow(keyValue)) { | |||
var Status = $('#gridtable').jfGridValue('Status'); | |||
if (Status != 0) { | |||
learun.alert.warning("当前项已受理或受理中不可删除!"); | |||
return; | |||
} | |||
learun.layerConfirm('是否确认删除该项!', function (res) { | |||
if (res) { | |||
learun.deleteForm(top.$.rootUrl + '/EducationalAdministration/SunshineEducation/DeleteForm', { keyValue: keyValue }, function () { | |||
}); | |||
} | |||
}); | |||
} | |||
}); | |||
//受理标识 | |||
$('#lr_reply').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('ID'); | |||
if (learun.checkrow(keyValue)) { | |||
var Status = $('#gridtable').jfGridValue('Status'); | |||
if (Status != 0) { | |||
learun.alert.warning("当前项已受理完成!"); | |||
return; | |||
} | |||
learun.layerConfirm('是否确认受理该项?', function (res) { | |||
if (res) { | |||
learun.postForm(top.$.rootUrl + '/EducationalAdministration/SunshineEducation/ReplyForm', { keyValue: keyValue }, function () { | |||
refreshGirdData(); | |||
}); | |||
} | |||
}); | |||
} | |||
}); | |||
//回复 | |||
$('#lr_acceptance').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('ID'); | |||
if (learun.checkrow(keyValue)) { | |||
var Status = $('#gridtable').jfGridValue('Status'); | |||
if (Status == 0) { | |||
learun.alert.warning("当前项不可回复!"); | |||
return; | |||
} | |||
learun.layerForm({ | |||
id: 'formReply', | |||
title: '回复', | |||
url: top.$.rootUrl + '/EducationalAdministration/SunshineEducation/FormReply?keyValue=' + keyValue, | |||
width: 800, | |||
height: 900, | |||
callBack: function (id) { | |||
return top[id].acceptClick(refreshGirdData); | |||
} | |||
}); | |||
} | |||
}); | |||
}, | |||
initGird: function () { | |||
$('#gridtable').lrAuthorizeJfGrid({ | |||
url: top.$.rootUrl + '/EducationalAdministration/SunshineEducation/GetPageList', | |||
headData: [ | |||
{ label: '问题类型', name: 'ProblemType', width: 100, align: "left" }, | |||
{ label: '提问者身份', name: 'QuestionerIdentity', width: 100, align: "left" }, | |||
{ label: '事项类型', name: 'MatterType', width: 100, align: "left" }, | |||
{ label: '事项类别内容', name: 'MatterTypeContent', width: 150, align: "left" }, | |||
{ label: '标题', name: 'Title', width: 200, align: "left" }, | |||
{ label: '信件内容', name: 'Contents', width: 300, align: "left" }, | |||
{ label: '姓名', name: 'Name', width: 100, align: "left" }, | |||
{ label: '电话号码', name: 'Phone', width: 100, align: "left" }, | |||
{ label: 'EMail', name: 'EMail', width: 120, align: "left" }, | |||
{ label: '地址', name: 'Address', width: 200, align: "left" }, | |||
{ | |||
label: '提交时间', name: 'Createdate', width: 140, align: "left", | |||
formatter: function (cellvalue) { | |||
return learun.formatDate(cellvalue, 'yyyy-MM-dd hh:mm:ss'); | |||
}, | |||
}, | |||
{ | |||
label: '受理状态', name: 'Status', width: 80, align: "left", | |||
formatter: function (cellvalue) { | |||
if (cellvalue == '0') { | |||
return '未受理'; | |||
} else if (cellvalue == '1') { | |||
return '受理中'; | |||
} else if (cellvalue == '2') { | |||
return '已受理'; | |||
} | |||
}, | |||
}, | |||
{ | |||
label: '受理单位', name: 'AcceptanceUnit', width: 200, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'classdata', | |||
key: value, | |||
keyId: 'id', | |||
callback: function (_data) { | |||
callback(_data['name']); | |||
} | |||
}); | |||
} | |||
}, | |||
{ | |||
label: '受理时间', name: 'AcceptanceTime', width: 140, align: "left", | |||
formatter: function (cellvalue) { | |||
return learun.formatDate(cellvalue, 'yyyy-MM-dd hh:mm:ss'); | |||
}, | |||
}, | |||
{ label: '受理单号', name: 'AcceptanceCode', width: 140, align: "left" }, | |||
{ | |||
label: '回复用户', name: 'AcceptanceId', width: 200, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('user', { | |||
key: value, | |||
callback: function (_data) { | |||
callback(_data.name); | |||
} | |||
}); | |||
} | |||
}, | |||
{ label: '评论意见', name: 'CriticalReview', width: 200, align: "left" }, | |||
{ | |||
label: '评论打分', name: 'RatingReview', width: 100, align: "left", | |||
formatter: function (cellvalue) { | |||
if (cellvalue == '0') { | |||
return '非常满意'; | |||
} else if (cellvalue == '1') { | |||
return '满意'; | |||
} else if (cellvalue == '2') { | |||
return '一般'; | |||
} else { | |||
return '不满意'; | |||
} | |||
}, | |||
}, | |||
{ label: '回复内容', name: 'Responses', width: 200, align: "left" }, | |||
{ label: '点击次数', name: 'Clicks', width: 200, align: "left" }, | |||
], | |||
mainId: 'ID', | |||
sidx: 'Createdate desc', | |||
isPage: true | |||
}); | |||
page.search(); | |||
}, | |||
search: function (param) { | |||
param = param || {}; | |||
param.SqlParam = " and ProblemType ='政策咨询'"; | |||
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | |||
} | |||
}; | |||
refreshGirdData = function () { | |||
$('#gridtable').jfGridSet('reload'); | |||
}; | |||
page.init(); | |||
} |
@@ -0,0 +1,66 @@ | |||
@{ | |||
ViewBag.Title = "我要表扬"; | |||
Layout = "~/Views/Shared/_Index.cshtml"; | |||
} | |||
<div class="lr-layout "> | |||
<div class="lr-layout-center"> | |||
<div class="lr-layout-wrap lr-layout-wrap-notitle "> | |||
<div class="lr-layout-tool"> | |||
<div class="lr-layout-tool-left"> | |||
<div class="lr-layout-tool-item"> | |||
<div id="multiple_condition_query"> | |||
<div class="lr-query-formcontent"> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">标题</div> | |||
<input id="Title" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">提问者身份</div> | |||
<div id="QuestionerIdentity"></div> | |||
</div> | |||
@*<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">事项类别</div> | |||
<div id="MatterType"></div> | |||
</div> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">类别分类</div> | |||
<div id="MatterTypeContent"></div> | |||
</div>*@ | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">受理单位</div> | |||
<div id="AcceptanceUnit"></div> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">受理状态</div> | |||
<div id="Status"></div> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">受理用户</div> | |||
<input id="UserName" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">受理单号</div> | |||
<input id="AcceptanceCode" type="text" class="form-control" /> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="lr-layout-tool-right"> | |||
<div class=" btn-group btn-group-sm"> | |||
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a> | |||
</div> | |||
<div class=" btn-group btn-group-sm" learun-authorize="yes"> | |||
@*<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i> 新增</a> | |||
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 编辑</a>*@ | |||
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i> 删除</a> | |||
<a id="lr_reply" class="btn btn-default"><i class="fa fa-plus"></i> 受理</a> | |||
<a id="lr_acceptance" class="btn btn-default"><i class="fa fa-plus"></i> 回复</a> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="lr-layout-body" id="gridtable"></div> | |||
</div> | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/SunshineEducation/IndexPraise.js") |
@@ -0,0 +1,242 @@ | |||
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) | |||
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2022-11-23 10:48 | |||
* 描 述:我要表扬 | |||
*/ | |||
var refreshGirdData; | |||
var bootstrap = function ($, learun) { | |||
"use strict"; | |||
var page = { | |||
init: function () { | |||
page.initGird(); | |||
page.bind(); | |||
}, | |||
bind: function () { | |||
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) { | |||
page.search(queryJson); | |||
}, 280, 400); | |||
$('#Status').lrselect({ | |||
data: [{ text: "未受理", value: "0" }, { text: "受理中", value: "1" }, { text: "已受理", value: "2" }], | |||
text: "text", | |||
value: "value" | |||
}) | |||
$('#QuestionerIdentity').lrselect({ | |||
width: '150px', | |||
placeholder: "请选择提问者身份", | |||
allowSearch: true, | |||
url: top.$.rootUrl + '/EducationalAdministration/SunshineEducation/GetQuestionerIdentity?ProblemType=' + "我要表扬", | |||
value: 'ID', | |||
text: 'QuestionerIdentity' | |||
}); | |||
//$('#MatterType').lrselect({ | |||
// width: '150px', | |||
// placeholder: "请选择事项类别", | |||
// allowSearch: true, | |||
// url: top.$.rootUrl + '/EducationalAdministration/SunshineEducation/GetMatterType', | |||
// value: 'ID', | |||
// text: 'MatterType' | |||
//}); | |||
//$('#MatterTypeContent').lrselect({ | |||
// width: '150px', | |||
// placeholder: "请选择类别分类", | |||
// allowSearch: true, | |||
// url: top.$.rootUrl + '/EducationalAdministration/SunshineEducation/GetMatterTypeContent', | |||
// value: 'ID', | |||
// text: 'MatterTypeContent' | |||
//}); | |||
$('#AcceptanceUnit').lrDepartmentSelect(); | |||
// 刷新 | |||
$('#lr_refresh').on('click', function () { | |||
location.reload(); | |||
}); | |||
// 新增 | |||
$('#lr_add').on('click', function () { | |||
learun.layerForm({ | |||
id: 'form', | |||
title: '新增', | |||
url: top.$.rootUrl + '/EducationalAdministration/SunshineEducation/Form', | |||
width: 800, | |||
height: 600, | |||
callBack: function (id) { | |||
return top[id].acceptClick(refreshGirdData); | |||
} | |||
}); | |||
}); | |||
// 编辑 | |||
$('#lr_edit').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('ID'); | |||
if (learun.checkrow(keyValue)) { | |||
var Status = $('#gridtable').jfGridValue('Status'); | |||
if (Status != 0) { | |||
learun.alert.warning("当前项已受理或受理中不可编辑!"); | |||
return; | |||
} | |||
learun.layerForm({ | |||
id: 'form', | |||
title: '编辑', | |||
url: top.$.rootUrl + '/EducationalAdministration/SunshineEducation/Form?keyValue=' + keyValue, | |||
width: 800, | |||
height: 400, | |||
callBack: function (id) { | |||
return top[id].acceptClick(refreshGirdData); | |||
} | |||
}); | |||
} | |||
}); | |||
// 删除 | |||
$('#lr_delete').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('ID'); | |||
if (learun.checkrow(keyValue)) { | |||
var Status = $('#gridtable').jfGridValue('Status'); | |||
if (Status != 0) { | |||
learun.alert.warning("当前项已受理或受理中不可删除!"); | |||
return; | |||
} | |||
learun.layerConfirm('是否确认删除该项!', function (res) { | |||
if (res) { | |||
learun.deleteForm(top.$.rootUrl + '/EducationalAdministration/SunshineEducation/DeleteForm', { keyValue: keyValue }, function () { | |||
}); | |||
} | |||
}); | |||
} | |||
}); | |||
//受理标识 | |||
$('#lr_reply').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('ID'); | |||
if (learun.checkrow(keyValue)) { | |||
var Status = $('#gridtable').jfGridValue('Status'); | |||
if (Status != 0) { | |||
learun.alert.warning("当前项已受理完成!"); | |||
return; | |||
} | |||
learun.layerConfirm('是否确认受理该项?', function (res) { | |||
if (res) { | |||
learun.postForm(top.$.rootUrl + '/EducationalAdministration/SunshineEducation/ReplyForm', { keyValue: keyValue }, function () { | |||
refreshGirdData(); | |||
}); | |||
} | |||
}); | |||
} | |||
}); | |||
//回复 | |||
$('#lr_acceptance').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('ID'); | |||
if (learun.checkrow(keyValue)) { | |||
var Status = $('#gridtable').jfGridValue('Status'); | |||
if (Status == 0) { | |||
learun.alert.warning("当前项不可回复!"); | |||
return; | |||
} | |||
learun.layerForm({ | |||
id: 'formReply', | |||
title: '回复', | |||
url: top.$.rootUrl + '/EducationalAdministration/SunshineEducation/FormReply?keyValue=' + keyValue, | |||
width: 800, | |||
height: 900, | |||
callBack: function (id) { | |||
return top[id].acceptClick(refreshGirdData); | |||
} | |||
}); | |||
} | |||
}); | |||
}, | |||
initGird: function () { | |||
$('#gridtable').lrAuthorizeJfGrid({ | |||
url: top.$.rootUrl + '/EducationalAdministration/SunshineEducation/GetPageList', | |||
headData: [ | |||
{ label: '问题类型', name: 'ProblemType', width: 100, align: "left" }, | |||
{ label: '提问者身份', name: 'QuestionerIdentity', width: 100, align: "left" }, | |||
{ label: '事项类型', name: 'MatterType', width: 100, align: "left" }, | |||
{ label: '事项类别内容', name: 'MatterTypeContent', width: 150, align: "left" }, | |||
{ label: '标题', name: 'Title', width: 200, align: "left" }, | |||
{ label: '信件内容', name: 'Contents', width: 300, align: "left" }, | |||
{ label: '姓名', name: 'Name', width: 100, align: "left" }, | |||
{ label: '电话号码', name: 'Phone', width: 100, align: "left" }, | |||
{ label: 'EMail', name: 'EMail', width: 120, align: "left" }, | |||
{ label: '地址', name: 'Address', width: 200, align: "left" }, | |||
{ | |||
label: '提交时间', name: 'Createdate', width: 140, align: "left", | |||
formatter: function (cellvalue) { | |||
return learun.formatDate(cellvalue, 'yyyy-MM-dd hh:mm:ss'); | |||
}, | |||
}, | |||
{ | |||
label: '受理状态', name: 'Status', width: 80, align: "left", | |||
formatter: function (cellvalue) { | |||
if (cellvalue == '0') { | |||
return '未受理'; | |||
} else if (cellvalue == '1') { | |||
return '受理中'; | |||
} else if (cellvalue == '2') { | |||
return '已受理'; | |||
} | |||
}, | |||
}, | |||
{ | |||
label: '受理单位', name: 'AcceptanceUnit', width: 200, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'classdata', | |||
key: value, | |||
keyId: 'id', | |||
callback: function (_data) { | |||
callback(_data['name']); | |||
} | |||
}); | |||
} | |||
}, | |||
{ | |||
label: '受理时间', name: 'AcceptanceTime', width: 140, align: "left", | |||
formatter: function (cellvalue) { | |||
return learun.formatDate(cellvalue, 'yyyy-MM-dd hh:mm:ss'); | |||
}, | |||
}, | |||
{ label: '受理单号', name: 'AcceptanceCode', width: 140, align: "left" }, | |||
{ | |||
label: '回复用户', name: 'AcceptanceId', width: 200, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('user', { | |||
key: value, | |||
callback: function (_data) { | |||
callback(_data.name); | |||
} | |||
}); | |||
} | |||
}, | |||
{ label: '评论意见', name: 'CriticalReview', width: 200, align: "left" }, | |||
{ | |||
label: '评论打分', name: 'RatingReview', width: 100, align: "left", | |||
formatter: function (cellvalue) { | |||
if (cellvalue == '0') { | |||
return '非常满意'; | |||
} else if (cellvalue == '1') { | |||
return '满意'; | |||
} else if (cellvalue == '2') { | |||
return '一般'; | |||
} else { | |||
return '不满意'; | |||
} | |||
}, | |||
}, | |||
{ label: '回复内容', name: 'Responses', width: 200, align: "left" }, | |||
{ label: '点击次数', name: 'Clicks', width: 200, align: "left" }, | |||
], | |||
mainId: 'ID', | |||
sidx: 'Createdate desc', | |||
isPage: true | |||
}); | |||
page.search(); | |||
}, | |||
search: function (param) { | |||
param = param || {}; | |||
param.SqlParam = " and ProblemType ='我要表扬'"; | |||
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | |||
} | |||
}; | |||
refreshGirdData = function () { | |||
$('#gridtable').jfGridSet('reload'); | |||
}; | |||
page.init(); | |||
} |
@@ -0,0 +1,66 @@ | |||
@{ | |||
ViewBag.Title = "我要建议"; | |||
Layout = "~/Views/Shared/_Index.cshtml"; | |||
} | |||
<div class="lr-layout "> | |||
<div class="lr-layout-center"> | |||
<div class="lr-layout-wrap lr-layout-wrap-notitle "> | |||
<div class="lr-layout-tool"> | |||
<div class="lr-layout-tool-left"> | |||
<div class="lr-layout-tool-item"> | |||
<div id="multiple_condition_query"> | |||
<div class="lr-query-formcontent"> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">标题</div> | |||
<input id="Title" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">提问者身份</div> | |||
<div id="QuestionerIdentity"></div> | |||
</div> | |||
@*<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">事项类别</div> | |||
<div id="MatterType"></div> | |||
</div> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">类别分类</div> | |||
<div id="MatterTypeContent"></div> | |||
</div>*@ | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">受理单位</div> | |||
<div id="AcceptanceUnit"></div> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">受理状态</div> | |||
<div id="Status"></div> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">受理用户</div> | |||
<input id="UserName" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">受理单号</div> | |||
<input id="AcceptanceCode" type="text" class="form-control" /> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="lr-layout-tool-right"> | |||
<div class=" btn-group btn-group-sm"> | |||
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a> | |||
</div> | |||
<div class=" btn-group btn-group-sm" learun-authorize="yes"> | |||
@*<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i> 新增</a> | |||
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 编辑</a>*@ | |||
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i> 删除</a> | |||
<a id="lr_reply" class="btn btn-default"><i class="fa fa-plus"></i> 受理</a> | |||
<a id="lr_acceptance" class="btn btn-default"><i class="fa fa-plus"></i> 回复</a> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="lr-layout-body" id="gridtable"></div> | |||
</div> | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/SunshineEducation/IndexSuggest.js") |
@@ -0,0 +1,243 @@ | |||
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) | |||
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2022-11-23 10:48 | |||
* 描 述:我要建议 | |||
*/ | |||
var refreshGirdData; | |||
var bootstrap = function ($, learun) { | |||
"use strict"; | |||
var page = { | |||
init: function () { | |||
page.initGird(); | |||
page.bind(); | |||
}, | |||
bind: function () { | |||
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) { | |||
page.search(queryJson); | |||
}, 280, 400); | |||
$('#Status').lrselect({ | |||
data: [{ text: "未受理", value: "0" }, { text: "受理中", value: "1" }, { text: "已受理", value: "2" }], | |||
text: "text", | |||
value: "value" | |||
}) | |||
$('#QuestionerIdentity').lrselect({ | |||
width: '150px', | |||
placeholder: "请选择提问者身份", | |||
allowSearch: true, | |||
url: top.$.rootUrl + '/EducationalAdministration/SunshineEducation/GetQuestionerIdentity?ProblemType=' + "我要建议", | |||
value: 'ID', | |||
text: 'QuestionerIdentity' | |||
}); | |||
//$('#MatterType').lrselect({ | |||
// width: '150px', | |||
// placeholder: "请选择事项类别", | |||
// allowSearch: true, | |||
// url: top.$.rootUrl + '/EducationalAdministration/SunshineEducation/GetMatterType', | |||
// value: 'ID', | |||
// text: 'MatterType' | |||
//}); | |||
//$('#MatterTypeContent').lrselect({ | |||
// width: '150px', | |||
// placeholder: "请选择类别分类", | |||
// allowSearch: true, | |||
// url: top.$.rootUrl + '/EducationalAdministration/SunshineEducation/GetMatterTypeContent', | |||
// value: 'ID', | |||
// text: 'MatterTypeContent' | |||
//}); | |||
$('#AcceptanceUnit').lrDepartmentSelect(); | |||
// 刷新 | |||
$('#lr_refresh').on('click', function () { | |||
location.reload(); | |||
}); | |||
// 新增 | |||
$('#lr_add').on('click', function () { | |||
learun.layerForm({ | |||
id: 'form', | |||
title: '新增', | |||
url: top.$.rootUrl + '/EducationalAdministration/SunshineEducation/Form', | |||
width: 800, | |||
height: 600, | |||
callBack: function (id) { | |||
return top[id].acceptClick(refreshGirdData); | |||
} | |||
}); | |||
}); | |||
// 编辑 | |||
$('#lr_edit').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('ID'); | |||
if (learun.checkrow(keyValue)) { | |||
var Status = $('#gridtable').jfGridValue('Status'); | |||
if (Status != 0) { | |||
learun.alert.warning("当前项已受理或受理中不可编辑!"); | |||
return; | |||
} | |||
learun.layerForm({ | |||
id: 'form', | |||
title: '编辑', | |||
url: top.$.rootUrl + '/EducationalAdministration/SunshineEducation/Form?keyValue=' + keyValue, | |||
width: 800, | |||
height: 400, | |||
callBack: function (id) { | |||
return top[id].acceptClick(refreshGirdData); | |||
} | |||
}); | |||
} | |||
}); | |||
// 删除 | |||
$('#lr_delete').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('ID'); | |||
if (learun.checkrow(keyValue)) { | |||
var Status = $('#gridtable').jfGridValue('Status'); | |||
if (Status != 0) { | |||
learun.alert.warning("当前项已受理或受理中不可删除!"); | |||
return; | |||
} | |||
learun.layerConfirm('是否确认删除该项!', function (res) { | |||
if (res) { | |||
learun.deleteForm(top.$.rootUrl + '/EducationalAdministration/SunshineEducation/DeleteForm', { keyValue: keyValue }, function () { | |||
}); | |||
} | |||
}); | |||
} | |||
}); | |||
//受理标识 | |||
$('#lr_reply').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('ID'); | |||
if (learun.checkrow(keyValue)) { | |||
var Status = $('#gridtable').jfGridValue('Status'); | |||
if (Status != 0) { | |||
learun.alert.warning("当前项已受理完成!"); | |||
return; | |||
} | |||
learun.layerConfirm('是否确认受理该项?', function (res) { | |||
if (res) { | |||
learun.postForm(top.$.rootUrl + '/EducationalAdministration/SunshineEducation/ReplyForm', { keyValue: keyValue }, function () { | |||
refreshGirdData(); | |||
}); | |||
} | |||
}); | |||
} | |||
}); | |||
//回复 | |||
$('#lr_acceptance').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('ID'); | |||
if (learun.checkrow(keyValue)) { | |||
var Status = $('#gridtable').jfGridValue('Status'); | |||
console.log(Status) | |||
if (Status == 0) { | |||
learun.alert.warning("当前项不可回复!"); | |||
return; | |||
} | |||
learun.layerForm({ | |||
id: 'formReply', | |||
title: '回复', | |||
url: top.$.rootUrl + '/EducationalAdministration/SunshineEducation/FormReply?keyValue=' + keyValue, | |||
width: 800, | |||
height: 900, | |||
callBack: function (id) { | |||
return top[id].acceptClick(refreshGirdData); | |||
} | |||
}); | |||
} | |||
}); | |||
}, | |||
initGird: function () { | |||
$('#gridtable').lrAuthorizeJfGrid({ | |||
url: top.$.rootUrl + '/EducationalAdministration/SunshineEducation/GetPageList', | |||
headData: [ | |||
{ label: '问题类型', name: 'ProblemType', width: 100, align: "left" }, | |||
{ label: '提问者身份', name: 'QuestionerIdentity', width: 100, align: "left" }, | |||
{ label: '事项类型', name: 'MatterType', width: 100, align: "left" }, | |||
{ label: '事项类别内容', name: 'MatterTypeContent', width: 150, align: "left" }, | |||
{ label: '标题', name: 'Title', width: 200, align: "left" }, | |||
{ label: '信件内容', name: 'Contents', width: 300, align: "left" }, | |||
{ label: '姓名', name: 'Name', width: 100, align: "left" }, | |||
{ label: '电话号码', name: 'Phone', width: 100, align: "left" }, | |||
{ label: 'EMail', name: 'EMail', width: 120, align: "left" }, | |||
{ label: '地址', name: 'Address', width: 200, align: "left" }, | |||
{ | |||
label: '提交时间', name: 'Createdate', width: 140, align: "left", | |||
formatter: function (cellvalue) { | |||
return learun.formatDate(cellvalue, 'yyyy-MM-dd hh:mm:ss'); | |||
}, | |||
}, | |||
{ | |||
label: '受理状态', name: 'Status', width: 80, align: "left", | |||
formatter: function (cellvalue) { | |||
if (cellvalue == '0') { | |||
return '未受理'; | |||
} else if (cellvalue == '1') { | |||
return '受理中'; | |||
} else if (cellvalue == '2') { | |||
return '已受理'; | |||
} | |||
}, | |||
}, | |||
{ | |||
label: '受理单位', name: 'AcceptanceUnit', width: 200, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'classdata', | |||
key: value, | |||
keyId: 'id', | |||
callback: function (_data) { | |||
callback(_data['name']); | |||
} | |||
}); | |||
} | |||
}, | |||
{ | |||
label: '受理时间', name: 'AcceptanceTime', width: 140, align: "left", | |||
formatter: function (cellvalue) { | |||
return learun.formatDate(cellvalue, 'yyyy-MM-dd hh:mm:ss'); | |||
}, | |||
}, | |||
{ label: '受理单号', name: 'AcceptanceCode', width: 140, align: "left" }, | |||
{ | |||
label: '回复用户', name: 'AcceptanceId', width: 200, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('user', { | |||
key: value, | |||
callback: function (_data) { | |||
callback(_data.name); | |||
} | |||
}); | |||
} | |||
}, | |||
{ label: '评论意见', name: 'CriticalReview', width: 200, align: "left" }, | |||
{ | |||
label: '评论打分', name: 'RatingReview', width: 100, align: "left", | |||
formatter: function (cellvalue) { | |||
if (cellvalue == '0') { | |||
return '非常满意'; | |||
} else if (cellvalue == '1') { | |||
return '满意'; | |||
} else if (cellvalue == '2') { | |||
return '一般'; | |||
} else { | |||
return '不满意'; | |||
} | |||
}, | |||
}, | |||
{ label: '回复内容', name: 'Responses', width: 200, align: "left" }, | |||
{ label: '点击次数', name: 'Clicks', width: 200, align: "left" }, | |||
], | |||
mainId: 'ID', | |||
sidx: 'Createdate desc', | |||
isPage: true | |||
}); | |||
page.search(); | |||
}, | |||
search: function (param) { | |||
param = param || {}; | |||
param.SqlParam = " and ProblemType ='我要建议'"; | |||
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | |||
} | |||
}; | |||
refreshGirdData = function () { | |||
$('#gridtable').jfGridSet('reload'); | |||
}; | |||
page.init(); | |||
} |
@@ -846,6 +846,7 @@ | |||
<Compile Include="Areas\EducationalAdministration\Controllers\HiringRegistrationController.cs" /> | |||
<Compile Include="Areas\EducationalAdministration\Controllers\WorkStaffController.cs" /> | |||
<Compile Include="Areas\EducationalAdministration\Controllers\TalentsJoinInfoController.cs" /> | |||
<Compile Include="Areas\EducationalAdministration\Controllers\SunshineEducationController.cs" /> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<Content Include="Areas\AdmissionsPlatform\Views\AP_OnlineUserInfo\DropOutIndex.js" /> | |||
@@ -1127,6 +1128,12 @@ | |||
<Content Include="Areas\EducationalAdministration\Views\StuScore\GraduateScoreQueryAllIndex.js" /> | |||
<Content Include="Areas\EducationalAdministration\Views\StuScore\ScoreQueryAllIndexTeacher.js" /> | |||
<Content Include="Areas\EducationalAdministration\Views\StuScore\ScoreQueryAllIndex.js" /> | |||
<Content Include="Areas\EducationalAdministration\Views\SunshineEducation\FormReply.js" /> | |||
<Content Include="Areas\EducationalAdministration\Views\SunshineEducation\IndexPolicy.js" /> | |||
<Content Include="Areas\EducationalAdministration\Views\SunshineEducation\IndexComplaint.js" /> | |||
<Content Include="Areas\EducationalAdministration\Views\SunshineEducation\IndexSuggest.js" /> | |||
<Content Include="Areas\EducationalAdministration\Views\SunshineEducation\IndexPraise.js" /> | |||
<Content Include="Areas\EducationalAdministration\Views\SunshineEducation\IndexHelp.js" /> | |||
<Content Include="Areas\EducationalAdministration\Views\Sys_DefaultPwdConfig\Form.js" /> | |||
<Content Include="Areas\EducationalAdministration\Views\Sys_DefaultPwdConfig\Index.js" /> | |||
<Content Include="Areas\EducationalAdministration\Views\Sys_PsychologicalCounse\Form.js" /> | |||
@@ -6399,6 +6406,10 @@ | |||
<Content Include="Areas\EducationalAdministration\Views\TalentsJoinInfo\Index.js" /> | |||
<Content Include="Areas\EducationalAdministration\Views\TalentsJoinInfo\Form.cshtml" /> | |||
<Content Include="Areas\EducationalAdministration\Views\TalentsJoinInfo\Form.js" /> | |||
<Content Include="Areas\EducationalAdministration\Views\SunshineEducation\Index.cshtml" /> | |||
<Content Include="Areas\EducationalAdministration\Views\SunshineEducation\Index.js" /> | |||
<Content Include="Areas\EducationalAdministration\Views\SunshineEducation\Form.cshtml" /> | |||
<Content Include="Areas\EducationalAdministration\Views\SunshineEducation\Form.js" /> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<Folder Include="Areas\EducationalAdministration\Views\HomeStatistics\" /> | |||
@@ -7688,6 +7699,12 @@ | |||
<Content Include="Areas\EducationalAdministration\Views\Sys_PsychologicalCounse\Index.cshtml" /> | |||
<Content Include="Areas\EducationalAdministration\Views\Sys_PsychologicalCounse\IndexRecive.cshtml" /> | |||
<Content Include="Areas\EducationalAdministration\Views\StuLeaveManagement\FormView.cshtml" /> | |||
<Content Include="Areas\EducationalAdministration\Views\SunshineEducation\FormReply.cshtml" /> | |||
<Content Include="Areas\EducationalAdministration\Views\SunshineEducation\IndexComplaint.cshtml" /> | |||
<Content Include="Areas\EducationalAdministration\Views\SunshineEducation\IndexHelp.cshtml" /> | |||
<Content Include="Areas\EducationalAdministration\Views\SunshineEducation\IndexPolicy.cshtml" /> | |||
<Content Include="Areas\EducationalAdministration\Views\SunshineEducation\IndexPraise.cshtml" /> | |||
<Content Include="Areas\EducationalAdministration\Views\SunshineEducation\IndexSuggest.cshtml" /> | |||
<None Include="Properties\PublishProfiles\CustomProfile.pubxml" /> | |||
<None Include="Properties\PublishProfiles\FolderProfile.pubxml" /> | |||
<Content Include="Views\Login\Default-beifen.cshtml" /> | |||
@@ -0,0 +1,29 @@ | |||
using Learun.Application.TwoDevelopment.EducationalAdministration; | |||
using System.Data.Entity.ModelConfiguration; | |||
namespace Learun.Application.Mapping | |||
{ | |||
/// <summary> | |||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
/// 创 建:超级管理员 | |||
/// 日 期:2022-11-23 10:48 | |||
/// 描 述:阳光教育 | |||
/// </summary> | |||
public class SunshineEducationMap : EntityTypeConfiguration<SunshineEducationEntity> | |||
{ | |||
public SunshineEducationMap() | |||
{ | |||
#region 表、主键 | |||
//表 | |||
this.ToTable("SUNSHINEEDUCATION"); | |||
//主键 | |||
this.HasKey(t => t.ID); | |||
#endregion | |||
#region 配置关系 | |||
#endregion | |||
} | |||
} | |||
} | |||
@@ -602,6 +602,7 @@ | |||
<Compile Include="EducationalAdministration\WorkStaffSonMap.cs" /> | |||
<Compile Include="EducationalAdministration\WorkStaffMap.cs" /> | |||
<Compile Include="EducationalAdministration\TalentsJoinInfoMap.cs" /> | |||
<Compile Include="EducationalAdministration\SunshineEducationMap.cs" /> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<ProjectReference Include="..\..\..\Learun.Application.Organization\Learun.Application.Organization.csproj"> | |||
@@ -0,0 +1,274 @@ | |||
using Learun.Util; | |||
using System; | |||
using System.Data; | |||
using System.Collections.Generic; | |||
using System.Linq; | |||
namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||
{ | |||
/// <summary> | |||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
/// 创 建:超级管理员 | |||
/// 日 期:2022-11-23 10:48 | |||
/// 描 述:阳光教育 | |||
/// </summary> | |||
public class SunshineEducationBLL : SunshineEducationIBLL | |||
{ | |||
private SunshineEducationService sunshineEducationService = new SunshineEducationService(); | |||
#region 获取数据 | |||
/// <summary> | |||
/// 获取列表数据 | |||
/// </summary> | |||
/// <param name="queryJson">查询参数</param> | |||
/// <returns></returns> | |||
public IEnumerable<SunshineEducationEntity> GetList(string queryJson) | |||
{ | |||
try | |||
{ | |||
return sunshineEducationService.GetList(queryJson); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowBusinessException(ex); | |||
} | |||
} | |||
} | |||
/// <summary> | |||
/// 获取列表数据 | |||
/// </summary> | |||
/// <param name="queryJson">查询参数</param> | |||
/// <returns></returns> | |||
public IEnumerable<SunshineEducationEntity> GetAllList() | |||
{ | |||
try | |||
{ | |||
return sunshineEducationService.GetAllList(); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowBusinessException(ex); | |||
} | |||
} | |||
} | |||
/// <summary> | |||
/// 获取列表分页数据 | |||
/// </summary> | |||
/// <param name="pagination">分页参数</param> | |||
/// <param name="queryJson">查询参数</param> | |||
/// <returns></returns> | |||
public IEnumerable<SunshineEducationEntity> GetPageList(Pagination pagination, string queryJson) | |||
{ | |||
try | |||
{ | |||
return sunshineEducationService.GetPageList(pagination, queryJson); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowBusinessException(ex); | |||
} | |||
} | |||
} | |||
/// <summary> | |||
/// 获取实体数据 | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
/// <returns></returns> | |||
public SunshineEducationEntity GetEntity(string keyValue) | |||
{ | |||
try | |||
{ | |||
return sunshineEducationService.GetEntity(keyValue); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowBusinessException(ex); | |||
} | |||
} | |||
} | |||
public List<SunshineEducationEntity> GetQuestionerIdentity(string ProblemType) | |||
{ | |||
try | |||
{ | |||
return sunshineEducationService.GetQuestionerIdentity(ProblemType).Select(x => new SunshineEducationEntity { ID = x.QuestionerIdentity, QuestionerIdentity = x.QuestionerIdentity }).Distinct().ToList(); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowBusinessException(ex); | |||
} | |||
} | |||
} | |||
public List<SunshineEducationEntity> GetMatterType(string ProblemType) | |||
{ | |||
try | |||
{ | |||
return sunshineEducationService.GetMatterType(ProblemType).Select(x => new SunshineEducationEntity { ID = x.MatterType, MatterType = x.MatterType }).Distinct().ToList(); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowBusinessException(ex); | |||
} | |||
} | |||
} | |||
public List<SunshineEducationEntity> GetMatterTypeContent(string ProblemType) | |||
{ | |||
try | |||
{ | |||
return sunshineEducationService.GetMatterTypeContent(ProblemType).Select(x => new SunshineEducationEntity { ID = x.MatterTypeContent, MatterTypeContent = x.MatterTypeContent }).Distinct().ToList(); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowBusinessException(ex); | |||
} | |||
} | |||
} | |||
#endregion | |||
#region 提交数据 | |||
/// <summary> | |||
/// 删除实体数据 | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
public void DeleteEntity(string keyValue) | |||
{ | |||
try | |||
{ | |||
sunshineEducationService.DeleteEntity(keyValue); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowBusinessException(ex); | |||
} | |||
} | |||
} | |||
/// <summary> | |||
/// 保存实体数据(新增、修改) | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
/// <param name="entity">实体</param> | |||
public void SaveEntity(string keyValue, SunshineEducationEntity entity) | |||
{ | |||
try | |||
{ | |||
sunshineEducationService.SaveEntity(keyValue, entity); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowBusinessException(ex); | |||
} | |||
} | |||
} | |||
/// <summary> | |||
/// 删除实体数据 | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
public void ReplyEntity(string keyValue) | |||
{ | |||
try | |||
{ | |||
sunshineEducationService.ReplyEntity(keyValue); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowBusinessException(ex); | |||
} | |||
} | |||
} | |||
/// <summary> | |||
/// 删除实体数据 | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
public void ClicksEntity(string keyValue) | |||
{ | |||
try | |||
{ | |||
sunshineEducationService.ClicksEntity(keyValue); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowBusinessException(ex); | |||
} | |||
} | |||
} | |||
#endregion | |||
} | |||
} |
@@ -0,0 +1,179 @@ | |||
using Learun.Util; | |||
using System; | |||
using System.ComponentModel.DataAnnotations.Schema; | |||
namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||
{ | |||
/// <summary> | |||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
/// 创 建:超级管理员 | |||
/// 日 期:2022-11-23 10:48 | |||
/// 描 述:阳光教育 | |||
/// </summary> | |||
public class SunshineEducationEntity | |||
{ | |||
#region 实体成员 | |||
/// <summary> | |||
/// ID | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("ID")] | |||
public string ID { get; set; } | |||
/// <summary> | |||
/// 问题类型 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("PROBLEMTYPE")] | |||
public string ProblemType { get; set; } | |||
/// <summary> | |||
/// 提问者身份 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("QUESTIONERIDENTITY")] | |||
public string QuestionerIdentity { get; set; } | |||
/// <summary> | |||
/// 事项类型 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("MATTERTYPE")] | |||
public string MatterType { get; set; } | |||
/// <summary> | |||
/// 事项类别内容 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("MATTERTYPECONTENT")] | |||
public string MatterTypeContent { get; set; } | |||
/// <summary> | |||
/// 标题 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("TITLE")] | |||
public string Title { get; set; } | |||
/// <summary> | |||
/// Contents | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("CONTENTS")] | |||
public string Contents { get; set; } | |||
/// <summary> | |||
/// 姓名 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("NAME")] | |||
public string Name { get; set; } | |||
/// <summary> | |||
/// 电话号码 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("PHONE")] | |||
public string Phone { get; set; } | |||
/// <summary> | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("EMAIL")] | |||
public string EMail { get; set; } | |||
/// <summary> | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("QQ")] | |||
public string QQ { get; set; } | |||
/// <summary> | |||
/// Address | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("ADDRESS")] | |||
public string Address { get; set; } | |||
/// <summary> | |||
/// 提交时间 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("CREATEDATE")] | |||
public DateTime? Createdate { get; set; } | |||
/// <summary> | |||
/// 文件 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("PATH")] | |||
public string Path { get; set; } | |||
/// <summary> | |||
/// 受理状态 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("STATUS")] | |||
public int? Status { get; set; } | |||
/// <summary> | |||
/// 受理单位 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("ACCEPTANCEUNIT")] | |||
public string AcceptanceUnit { get; set; } | |||
/// <summary> | |||
/// 受理时间 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("ACCEPTANCETIME")] | |||
public DateTime? AcceptanceTime { get; set; } | |||
/// <summary> | |||
/// AcceptanceCode | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("ACCEPTANCECODE")] | |||
public string AcceptanceCode { get; set; } | |||
/// <summary> | |||
/// AcceptanceId | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("ACCEPTANCEID")] | |||
public string AcceptanceId { get; set; } | |||
/// <summary> | |||
/// 评论意见 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("CRITICALREVIEW")] | |||
public string CriticalReview { get; set; } | |||
/// <summary> | |||
/// 评论打分 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("RATINGREVIEW")] | |||
public string RatingReview { get; set; } | |||
/// <summary> | |||
/// 回复内容 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("RESPONSES")] | |||
public string Responses { get; set; } | |||
/// <summary> | |||
/// 点击次数 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("CLICKS")] | |||
public int? Clicks { get; set; } | |||
#endregion | |||
#region 扩展操作 | |||
/// <summary> | |||
/// 新增调用 | |||
/// </summary> | |||
public void Create() | |||
{ | |||
this.ID = Guid.NewGuid().ToString(); | |||
this.Clicks = 0; | |||
this.Status = 0; | |||
this.Createdate = DateTime.Now; | |||
} | |||
/// <summary> | |||
/// 编辑调用 | |||
/// </summary> | |||
/// <param name="keyValue"></param> | |||
public void Modify(string keyValue) | |||
{ | |||
this.ID = keyValue; | |||
} | |||
#endregion | |||
} | |||
} | |||
@@ -0,0 +1,72 @@ | |||
using Learun.Util; | |||
using System.Data; | |||
using System.Collections.Generic; | |||
namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||
{ | |||
/// <summary> | |||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
/// 创 建:超级管理员 | |||
/// 日 期:2022-11-23 10:48 | |||
/// 描 述:阳光教育 | |||
/// </summary> | |||
public interface SunshineEducationIBLL | |||
{ | |||
#region 获取数据 | |||
/// <summary> | |||
/// 获取列表数据 | |||
/// </summary> | |||
/// <param name="queryJson">查询参数</param> | |||
/// <returns></returns> | |||
IEnumerable<SunshineEducationEntity> GetList( string queryJson ); | |||
IEnumerable<SunshineEducationEntity> GetAllList(); | |||
/// <summary> | |||
/// 获取列表分页数据 | |||
/// </summary> | |||
/// <param name="pagination">分页参数</param> | |||
/// <param name="queryJson">查询参数</param> | |||
/// <returns></returns> | |||
IEnumerable<SunshineEducationEntity> GetPageList(Pagination pagination, string queryJson); | |||
/// <summary> | |||
/// 获取实体数据 | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
/// <returns></returns> | |||
SunshineEducationEntity GetEntity(string keyValue); | |||
List<SunshineEducationEntity> GetQuestionerIdentity(string ProblemType); | |||
List<SunshineEducationEntity> GetMatterType(string ProblemType); | |||
List<SunshineEducationEntity> GetMatterTypeContent(string ProblemType); | |||
#endregion | |||
#region 提交数据 | |||
/// <summary> | |||
/// 删除实体数据 | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
void DeleteEntity(string keyValue); | |||
/// <summary> | |||
/// 保存实体数据(新增、修改) | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
/// <param name="entity">实体</param> | |||
void SaveEntity(string keyValue, SunshineEducationEntity entity); | |||
/// <summary> | |||
/// 删除实体数据 | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
void ReplyEntity(string keyValue); | |||
/// <summary> | |||
/// 点击 | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
void ClicksEntity(string keyValue); | |||
#endregion | |||
} | |||
} |
@@ -0,0 +1,388 @@ | |||
using Dapper; | |||
using Learun.DataBase.Repository; | |||
using Learun.Util; | |||
using System; | |||
using System.Collections.Generic; | |||
using System.Data; | |||
using System.Text; | |||
using System.Linq; | |||
namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||
{ | |||
/// <summary> | |||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
/// 创 建:超级管理员 | |||
/// 日 期:2022-11-23 10:48 | |||
/// 描 述:阳光教育 | |||
/// </summary> | |||
public class SunshineEducationService : RepositoryFactory | |||
{ | |||
#region 获取数据 | |||
/// <summary> | |||
/// 获取列表数据 | |||
/// </summary> | |||
/// <param name="queryJson">条件参数</param> | |||
/// <returns></returns> | |||
public IEnumerable<SunshineEducationEntity> GetList(string queryJson) | |||
{ | |||
try | |||
{ | |||
var strSql = new StringBuilder(); | |||
strSql.Append("SELECT t.*"); | |||
strSql.Append(" FROM SunshineEducation t "); | |||
var queryParam = queryJson.ToJObject(); | |||
// 虚拟参数 | |||
var dp = new DynamicParameters(new { }); | |||
if (!queryParam["SqlParam"].IsEmpty()) | |||
{ | |||
strSql.Append(queryParam["SqlParam"].ToString()); | |||
} | |||
if (!queryParam["Status"].IsEmpty()) | |||
{ | |||
dp.Add("Status", queryParam["Status"].ToString(), DbType.String); | |||
strSql.Append(" AND t.Status = @Status "); | |||
} | |||
if (!queryParam["QuestionerIdentity"].IsEmpty()) | |||
{ | |||
dp.Add("QuestionerIdentity", queryParam["QuestionerIdentity"].ToString(), DbType.String); | |||
strSql.Append(" AND t.QuestionerIdentity = @QuestionerIdentity "); | |||
} | |||
if (!queryParam["MatterType"].IsEmpty()) | |||
{ | |||
dp.Add("MatterType", queryParam["MatterType"].ToString(), DbType.String); | |||
strSql.Append(" AND t.MatterType = @MatterType "); | |||
} | |||
if (!queryParam["MatterTypeContent"].IsEmpty()) | |||
{ | |||
dp.Add("MatterTypeContent", queryParam["MatterTypeContent"].ToString(), DbType.String); | |||
strSql.Append(" AND t.MatterTypeContent = @MatterTypeContent "); | |||
} | |||
if (!queryParam["Title"].IsEmpty()) | |||
{ | |||
dp.Add("Title", "%" + queryParam["Title"].ToString() + "%", DbType.String); | |||
strSql.Append(" AND t.Title Like @Title "); | |||
} | |||
if (!queryParam["AcceptanceUnit"].IsEmpty()) | |||
{ | |||
dp.Add("AcceptanceUnit", queryParam["AcceptanceUnit"].ToString(), DbType.String); | |||
strSql.Append(" AND t.AcceptanceUnit = @AcceptanceUnit "); | |||
} | |||
if (!queryParam["UserName"].IsEmpty()) | |||
{ | |||
dp.Add("UserName", "%" + queryParam["UserName"].ToString() + "%", DbType.String); | |||
strSql.Append(" AND u.F_RealName Like @UserName "); | |||
} | |||
return this.BaseRepository("CollegeMIS").FindList<SunshineEducationEntity>(strSql.ToString(), dp); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowServiceException(ex); | |||
} | |||
} | |||
} | |||
public IEnumerable<SunshineEducationEntity> GetAllList() | |||
{ | |||
try | |||
{ | |||
return this.BaseRepository("CollegeMIS").FindList<SunshineEducationEntity>(); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowServiceException(ex); | |||
} | |||
} | |||
} | |||
/// <summary> | |||
/// 获取列表分页数据 | |||
/// </summary> | |||
/// <param name="pagination">分页参数</param> | |||
/// <param name="queryJson">条件参数</param> | |||
/// <returns></returns> | |||
public IEnumerable<SunshineEducationEntity> GetPageList(Pagination pagination, string queryJson) | |||
{ | |||
try | |||
{ | |||
var basedbname = BaseRepository().getDbConnection().Database; | |||
var strSql = new StringBuilder(); | |||
strSql.Append("SELECT t.*"); | |||
strSql.Append(" FROM SunshineEducation t "); | |||
strSql.Append(" left join " + basedbname + ".dbo.LR_Base_User u on u.F_UserId=t.AcceptanceId "); | |||
strSql.Append(" where 1=1 "); | |||
var queryParam = queryJson.ToJObject(); | |||
var dp = new DynamicParameters(new { }); | |||
if (!queryParam["SqlParam"].IsEmpty()) | |||
{ | |||
strSql.Append(queryParam["SqlParam"].ToString()); | |||
} | |||
if (!queryParam["Status"].IsEmpty()) | |||
{ | |||
dp.Add("Status", queryParam["Status"].ToString(), DbType.String); | |||
strSql.Append(" AND t.Status = @Status "); | |||
} | |||
if (!queryParam["QuestionerIdentity"].IsEmpty()) | |||
{ | |||
dp.Add("QuestionerIdentity", queryParam["QuestionerIdentity"].ToString(), DbType.String); | |||
strSql.Append(" AND t.QuestionerIdentity = @QuestionerIdentity "); | |||
} | |||
if (!queryParam["MatterType"].IsEmpty()) | |||
{ | |||
dp.Add("MatterType", queryParam["MatterType"].ToString(), DbType.String); | |||
strSql.Append(" AND t.MatterType = @MatterType "); | |||
} | |||
if (!queryParam["MatterTypeContent"].IsEmpty()) | |||
{ | |||
dp.Add("MatterTypeContent", queryParam["MatterTypeContent"].ToString(), DbType.String); | |||
strSql.Append(" AND t.MatterTypeContent = @MatterTypeContent "); | |||
} | |||
if (!queryParam["Title"].IsEmpty()) | |||
{ | |||
dp.Add("Title", "%" + queryParam["Title"].ToString() + "%", DbType.String); | |||
strSql.Append(" AND t.Title Like @Title "); | |||
} | |||
if (!queryParam["AcceptanceUnit"].IsEmpty()) | |||
{ | |||
dp.Add("AcceptanceUnit", queryParam["AcceptanceUnit"].ToString(), DbType.String); | |||
strSql.Append(" AND t.AcceptanceUnit = @AcceptanceUnit "); | |||
} | |||
if (!queryParam["UserName"].IsEmpty()) | |||
{ | |||
dp.Add("UserName", "%" + queryParam["UserName"].ToString() + "%", DbType.String); | |||
strSql.Append(" AND u.F_RealName Like @UserName "); | |||
} | |||
return this.BaseRepository("CollegeMIS").FindList<SunshineEducationEntity>(strSql.ToString(), dp, pagination); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowServiceException(ex); | |||
} | |||
} | |||
} | |||
/// <summary> | |||
/// 获取实体数据 | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
/// <returns></returns> | |||
public SunshineEducationEntity GetEntity(string keyValue) | |||
{ | |||
try | |||
{ | |||
return this.BaseRepository("CollegeMIS").FindEntity<SunshineEducationEntity>(keyValue); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowServiceException(ex); | |||
} | |||
} | |||
} | |||
public List<SunshineEducationEntity> GetQuestionerIdentity(string ProblemType) | |||
{ | |||
try | |||
{ | |||
string sql = " select distinct QuestionerIdentity from SunshineEducation where ProblemType='" + ProblemType + "' and QuestionerIdentity is not null order by QuestionerIdentity "; | |||
return this.BaseRepository("CollegeMIS").FindList<SunshineEducationEntity>(sql).ToList(); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowServiceException(ex); | |||
} | |||
} | |||
} | |||
public List<SunshineEducationEntity> GetMatterType(string ProblemType) | |||
{ | |||
try | |||
{ | |||
string sql = " select distinct MatterType from SunshineEducation where ProblemType='" + ProblemType + "' and MatterType is not null order by MatterType "; | |||
return this.BaseRepository("CollegeMIS").FindList<SunshineEducationEntity>(sql).ToList(); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowServiceException(ex); | |||
} | |||
} | |||
} | |||
public List<SunshineEducationEntity> GetMatterTypeContent(string ProblemType) | |||
{ | |||
try | |||
{ | |||
string sql = " select distinct MatterTypeContent from SunshineEducation where ProblemType='" + ProblemType + "' and MatterTypeContent is not null order by MatterTypeContent "; | |||
return this.BaseRepository("CollegeMIS").FindList<SunshineEducationEntity>(sql).ToList(); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowServiceException(ex); | |||
} | |||
} | |||
} | |||
#endregion | |||
#region 提交数据 | |||
/// <summary> | |||
/// 删除实体数据 | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
public void DeleteEntity(string keyValue) | |||
{ | |||
try | |||
{ | |||
this.BaseRepository("CollegeMIS").Delete<SunshineEducationEntity>(t => t.ID == keyValue); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowServiceException(ex); | |||
} | |||
} | |||
} | |||
/// <summary> | |||
/// 保存实体数据(新增、修改) | |||
/// <param name="keyValue">主键</param> | |||
/// <param name="entity">实体</param> | |||
/// </summary> | |||
public void SaveEntity(string keyValue, SunshineEducationEntity entity) | |||
{ | |||
try | |||
{ | |||
if (!string.IsNullOrEmpty(keyValue)) | |||
{ | |||
entity.Modify(keyValue); | |||
if (!string.IsNullOrEmpty(entity.Responses)) | |||
{ | |||
var userlogin = LoginUserInfo.Get(); | |||
entity.AcceptanceUnit = userlogin.departmentId; | |||
entity.AcceptanceId = userlogin.userId; | |||
entity.Status = 2; | |||
} | |||
this.BaseRepository("CollegeMIS").Update(entity); | |||
} | |||
else | |||
{ | |||
entity.Create(); | |||
this.BaseRepository("CollegeMIS").Insert(entity); | |||
} | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowServiceException(ex); | |||
} | |||
} | |||
} | |||
/// <summary> | |||
/// 受理中 | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
public void ReplyEntity(string keyValue) | |||
{ | |||
try | |||
{ | |||
var entity = this.BaseRepository("CollegeMIS").FindEntity<SunshineEducationEntity>(keyValue); | |||
entity.AcceptanceTime = DateTime.Now; | |||
entity.AcceptanceCode = DateTime.Now.ToString("yyyyMMddHHmmsss"); | |||
entity.Status = 1; | |||
this.BaseRepository("CollegeMIS").Update(entity); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowServiceException(ex); | |||
} | |||
} | |||
} | |||
/// <summary> | |||
/// 点击实体数据 | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
public void ClicksEntity(string keyValue) | |||
{ | |||
try | |||
{ | |||
var entity = this.BaseRepository("CollegeMIS").FindEntity<SunshineEducationEntity>(keyValue); | |||
entity.Clicks += entity.Clicks; | |||
this.BaseRepository("CollegeMIS").Update(entity); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowServiceException(ex); | |||
} | |||
} | |||
} | |||
#endregion | |||
} | |||
} |
@@ -1843,6 +1843,10 @@ | |||
<Compile Include="EducationalAdministration\TalentsJoinInfo\TalentsJoinInfoService.cs" /> | |||
<Compile Include="EducationalAdministration\TalentsJoinInfo\TalentsJoinInfoBLL.cs" /> | |||
<Compile Include="EducationalAdministration\TalentsJoinInfo\TalentsJoinInfoIBLL.cs" /> | |||
<Compile Include="EducationalAdministration\SunshineEducation\SunshineEducationEntity.cs" /> | |||
<Compile Include="EducationalAdministration\SunshineEducation\SunshineEducationService.cs" /> | |||
<Compile Include="EducationalAdministration\SunshineEducation\SunshineEducationIBLL.cs" /> | |||
<Compile Include="EducationalAdministration\SunshineEducation\SunshineEducationBLL.cs" /> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<ProjectReference Include="..\..\..\Learun.Application.Organization\Learun.Application.Organization.csproj"> | |||