Bladeren bron

【增加】教师信息增加获奖信息管理;

塔里木分支
dyy 3 maanden geleden
bovenliggende
commit
5594d792e6
16 gewijzigde bestanden met toevoegingen van 1238 en 73 verwijderingen
  1. +133
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/PM_WinPrizeController.cs
  2. +76
    -72
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/EmpInfo/Form.cshtml
  3. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/EmpInfo/Form.js
  4. +23
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PM_WinPrize/Form.cshtml
  5. +58
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PM_WinPrize/Form.js
  6. +66
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PM_WinPrize/Index.cshtml
  7. +243
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PM_WinPrize/Index.js
  8. +5
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj
  9. +29
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/EducationalAdministration/PM_WinPrize.cs
  10. +1
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Learun.Application.Mapping.csproj
  11. +5
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/EmpInfo/EmpInfoEntity.cs
  12. +170
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/PM_WinPrize/PM_WinPrizeBLL.cs
  13. +129
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/PM_WinPrize/PM_WinPrizeEntity.cs
  14. +57
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/PM_WinPrize/PM_WinPrizeIBLL.cs
  15. +238
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/PM_WinPrize/PM_WinPrizeService.cs
  16. +4
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Learun.Application.TwoDevelopment.csproj

+ 133
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/PM_WinPrizeController.cs Bestand weergeven

@@ -0,0 +1,133 @@
using Learun.Util;
using System.Data;
using Learun.Application.TwoDevelopment.EducationalAdministration;
using System.Web.Mvc;
using System.Collections.Generic;
using System;

namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
{
/// <summary>
/// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园
/// Copyright (c) 2013-2018 北京泉江科技有限公司
/// 创 建:超级管理员
/// 日 期:2020-03-30 14:00
/// 描 述:获奖信息
/// </summary>
public class PM_WinPrizeController : MvcControllerBase
{
private PM_WinPrizeIBLL pM_WinPrizeIBLL = new PM_WinPrizeBLL();

#region 视图功能

/// <summary>
/// 主页面
/// <summary>
/// <returns></returns>
[HttpGet]
public ActionResult Index()
{
return View();
}
/// <summary>
/// 表单页
/// <summary>
/// <returns></returns>
[HttpGet]
public ActionResult Form()
{
return View();
}
#endregion

#region 获取数据

/// <summary>
/// 获取页面显示列表数据
/// <summary>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
[HttpGet]
[AjaxOnly]
public ActionResult GetPageList(string pagination, string queryJson)
{
Pagination paginationobj = pagination.ToObject<Pagination>();
var data = pM_WinPrizeIBLL.GetPageList(paginationobj, queryJson);
var jsonData = new
{
rows = data,
total = paginationobj.total,
page = paginationobj.page,
records = paginationobj.records
};
return Success(jsonData);
}
/// <summary>
/// 获取表单数据
/// <summary>
/// <returns></returns>
[HttpGet]
[AjaxOnly]
public ActionResult GetFormData(string keyValue)
{
var PM_WinPrizeData = pM_WinPrizeIBLL.GetPM_WinPrizeEntity(keyValue);
var jsonData = new
{
PM_WinPrize = PM_WinPrizeData,
};
return Success(jsonData);
}
#endregion

#region 提交数据

/// <summary>
/// 删除实体数据
/// <param name="keyValue">主键</param>
/// <summary>
/// <returns></returns>
[HttpPost]
[AjaxOnly]
public ActionResult DeleteForm(string keyValue)
{
pM_WinPrizeIBLL.DeleteEntity(keyValue);
return Success("删除成功!");
}
/// <summary>
/// 保存实体数据(新增、修改)
/// <param name="keyValue">主键</param>
/// <summary>
/// <returns></returns>
[HttpPost]
[ValidateAntiForgeryToken]
[AjaxOnly]
public ActionResult SaveForm(string keyValue, string strEntity)
{
PM_WinPrizeEntity entity = strEntity.ToObject<PM_WinPrizeEntity>();
pM_WinPrizeIBLL.SaveEntity(keyValue, entity);
return Success("保存成功!");
}


/// <summary>
/// 提交
/// </summary>
/// <param name="keyValue"></param>
/// <param name="empId"></param>
/// <returns></returns>
public ActionResult Submit(string empId, bool status)
{
pM_WinPrizeIBLL.Submit(empId, status);
if (status)
{
return Success("提交成功!");
}
else
{
return Success("取消提交成功");
}
}
#endregion

}
}

+ 76
- 72
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/EmpInfo/Form.cshtml Bestand weergeven

@@ -38,6 +38,7 @@
<li><a data-value="tab6">家庭情况</a></li>
<li class="showInViewLi"><a data-value="tab7">证书信息</a></li>
<li class="showInViewLi"><a data-value="tab8">培训信息</a></li>
<li><a data-value="tab9">获奖信息</a></li>
</ul>
</div>
<div class="tab-content lr-tab-content" id="lr_tab_content">
@@ -158,25 +159,25 @@
<div id="DeptNo"></div>
</div>*@
@*<div class="col-xs-4 lr-form-item" data-table="EmpInfo">
<div class="lr-form-item-title">岗位类别</div>
<div id="EmpSortNo"></div>
</div>
<div class="col-xs-4 lr-form-item" data-table="EmpInfo">
<div class="lr-form-item-title">岗位名称</div>
<input id="TitleOfTechPostNo" type="text" class="form-control" />
</div>
<div class="col-xs-4 lr-form-item" data-table="EmpInfo">
<div class="lr-form-item-title">岗位职级</div>
<div id="PostRank"></div>
</div>
<div class="col-xs-4 lr-form-item" data-table="EmpInfo">
<div class="lr-form-item-title">现聘工资级别</div>
<div id="PositionLevel"></div>
</div>
<div class="col-xs-4 lr-form-item" data-table="EmpInfo">
<div class="lr-form-item-title">聘任时间</div>
<input id="InSchoolDate" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd',onpicked: function () { $('#InSchoolDate').trigger('change'); } })" />
</div>*@
<div class="lr-form-item-title">岗位类别</div>
<div id="EmpSortNo"></div>
</div>
<div class="col-xs-4 lr-form-item" data-table="EmpInfo">
<div class="lr-form-item-title">岗位名称</div>
<input id="TitleOfTechPostNo" type="text" class="form-control" />
</div>
<div class="col-xs-4 lr-form-item" data-table="EmpInfo">
<div class="lr-form-item-title">岗位职级</div>
<div id="PostRank"></div>
</div>
<div class="col-xs-4 lr-form-item" data-table="EmpInfo">
<div class="lr-form-item-title">现聘工资级别</div>
<div id="PositionLevel"></div>
</div>
<div class="col-xs-4 lr-form-item" data-table="EmpInfo">
<div class="lr-form-item-title">聘任时间</div>
<input id="InSchoolDate" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd',onpicked: function () { $('#InSchoolDate').trigger('change'); } })" />
</div>*@
<div class="col-xs-4 lr-form-item" data-table="EmpInfo">
<div class="lr-form-item-title">编制类别</div>
<div id="CompilationCategory"></div>
@@ -186,69 +187,69 @@
<input id="AddWorkDate" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd',onpicked: function () { $('#AddWorkDate').trigger('change'); } })" />
</div>
@*<div class="col-xs-4 lr-form-item" data-table="EmpInfo">
<div class="lr-form-item-title">工龄偏移量(月)</div>
<input id="AddWorkOffset" type="text" class="form-control" />
</div>
<div class="col-xs-4 lr-form-item" data-table="EmpInfo">
<div class="lr-form-item-title">工龄(减去偏移量)</div>
<input id="AddWorkHours" type="text" class="form-control" />
</div>
<div class="col-xs-4 lr-form-item" data-table="EmpInfo">
<div class="lr-form-item-title">进入集团时间</div>
<input id="GroupDate" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd',onpicked: function () { $('#GroupDate').trigger('change'); } })" />
</div>
<div class="col-xs-4 lr-form-item" data-table="EmpInfo">
<div class="lr-form-item-title">集团龄偏移量(月)</div>
<input id="GroupOffset" type="text" class="form-control" />
</div>
<div class="col-xs-4 lr-form-item" data-table="EmpInfo">
<div class="lr-form-item-title">集团龄(减去偏移量)</div>
<input id="GroupHours" type="text" class="form-control" />
</div>*@
<div class="lr-form-item-title">工龄偏移量(月)</div>
<input id="AddWorkOffset" type="text" class="form-control" />
</div>
<div class="col-xs-4 lr-form-item" data-table="EmpInfo">
<div class="lr-form-item-title">工龄(减去偏移量)</div>
<input id="AddWorkHours" type="text" class="form-control" />
</div>
<div class="col-xs-4 lr-form-item" data-table="EmpInfo">
<div class="lr-form-item-title">进入集团时间</div>
<input id="GroupDate" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd',onpicked: function () { $('#GroupDate').trigger('change'); } })" />
</div>
<div class="col-xs-4 lr-form-item" data-table="EmpInfo">
<div class="lr-form-item-title">集团龄偏移量(月)</div>
<input id="GroupOffset" type="text" class="form-control" />
</div>
<div class="col-xs-4 lr-form-item" data-table="EmpInfo">
<div class="lr-form-item-title">集团龄(减去偏移量)</div>
<input id="GroupHours" type="text" class="form-control" />
</div>*@
<div class="col-xs-4 lr-form-item" data-table="EmpInfo">
<div class="lr-form-item-title">进入教育系统时间</div>
<input id="EducationalDate" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd',onpicked: function () { $('#EducationalDate').trigger('change'); } })" />
</div>
@*<div class="col-xs-4 lr-form-item" data-table="EmpInfo">
<div class="lr-form-item-title">教龄偏移量(月)</div>
<input id="EducationalOffset" type="text" class="form-control" />
</div>
<div class="col-xs-4 lr-form-item" data-table="EmpInfo">
<div class="lr-form-item-title">教龄(减去偏移量)</div>
<input id="EducationalHours" type="text" class="form-control" />
</div>*@
<div class="lr-form-item-title">教龄偏移量(月)</div>
<input id="EducationalOffset" type="text" class="form-control" />
</div>
<div class="col-xs-4 lr-form-item" data-table="EmpInfo">
<div class="lr-form-item-title">教龄(减去偏移量)</div>
<input id="EducationalHours" type="text" class="form-control" />
</div>*@
<div class="col-xs-4 lr-form-item" data-table="EmpInfo">
<div class="lr-form-item-title">来校时间</div>
<input id="SchoolDate" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd',onpicked: function () { $('#SchoolDate').trigger('change'); } })" />
</div>
@*<div class="col-xs-4 lr-form-item" data-table="EmpInfo">
<div class="lr-form-item-title">校龄偏移量(月)</div>
<input id="SchoolOffset" type="text" class="form-control" />
</div>
<div class="col-xs-4 lr-form-item" data-table="EmpInfo">
<div class="lr-form-item-title">校龄(减去偏移量)</div>
<input id="SchoolHours" type="text" class="form-control" />
</div>
<div class="col-xs-4 lr-form-item" data-table="EmpInfo">
<div class="lr-form-item-title">拟退休时间</div>
<input id="FictitiousRetireTime" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd',onpicked: function () { $('#FictitiousRetireTime').trigger('change'); } })" />
</div>
<div class="col-xs-4 lr-form-item" data-table="EmpInfo">
<div class="lr-form-item-title">转正时间</div>
<input id="FormalTime" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd',onpicked: function () { $('#FormalTime').trigger('change'); } })" />
</div>
<div class="col-xs-4 lr-form-item" data-table="EmpInfo">
<div class="lr-form-item-title">从教三十年表彰年度</div>
<input id="CommendationYear" type="text" class="form-control" />
</div>*@
<div class="lr-form-item-title">校龄偏移量(月)</div>
<input id="SchoolOffset" type="text" class="form-control" />
</div>
<div class="col-xs-4 lr-form-item" data-table="EmpInfo">
<div class="lr-form-item-title">校龄(减去偏移量)</div>
<input id="SchoolHours" type="text" class="form-control" />
</div>
<div class="col-xs-4 lr-form-item" data-table="EmpInfo">
<div class="lr-form-item-title">拟退休时间</div>
<input id="FictitiousRetireTime" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd',onpicked: function () { $('#FictitiousRetireTime').trigger('change'); } })" />
</div>
<div class="col-xs-4 lr-form-item" data-table="EmpInfo">
<div class="lr-form-item-title">转正时间</div>
<input id="FormalTime" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd',onpicked: function () { $('#FormalTime').trigger('change'); } })" />
</div>
<div class="col-xs-4 lr-form-item" data-table="EmpInfo">
<div class="lr-form-item-title">从教三十年表彰年度</div>
<input id="CommendationYear" type="text" class="form-control" />
</div>*@
<div class="col-xs-4 lr-form-item" data-table="EmpInfo">
<div class="lr-form-item-title">职称</div>
<div id="ProfessionalTitle"></div>
</div>
@*<div class="col-xs-4 lr-form-item" data-table="EmpInfo">
<div class="lr-form-item-title">职称岗位等级</div>
<div id="ProfessionalTitleLevel"></div>
</div>*@
<div class="lr-form-item-title">职称岗位等级</div>
<div id="ProfessionalTitleLevel"></div>
</div>*@
<div class="col-xs-4 lr-form-item" data-table="EmpInfo">
<div class="lr-form-item-title">职称获得时间</div>
<input id="ProfessionalTitleGetTime" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd',onpicked: function () { $('#ProfessionalTitleGetTime').trigger('change'); } })" />
@@ -277,9 +278,9 @@
<div id="CultureDegreeNo"></div>
</div>
@*<div class="col-xs-4 lr-form-item" data-table="EmpInfo">
<div class="lr-form-item-title">初始学历获取方式</div>
<div id="ObtainWay"></div>
</div>*@
<div class="lr-form-item-title">初始学历获取方式</div>
<div id="ObtainWay"></div>
</div>*@
<div class="col-xs-4 lr-form-item" data-table="EmpInfo">
<div class="lr-form-item-title">最高学位</div>
<div id="DegreeNo"></div>
@@ -381,8 +382,8 @@
<iframe id="PM_TechnicalPost" width="100%" scrolling="no" height="100%" frameborder="0"></iframe>
</div>
@*<div class="lr-form-wrap tab-pane tabClass" id="tab4">
<iframe id="PM_WorkerTechnology" width="100%" scrolling="no" height="100%" frameborder="0"></iframe>
</div>*@
<iframe id="PM_WorkerTechnology" width="100%" scrolling="no" height="100%" frameborder="0"></iframe>
</div>*@
<div class="lr-form-wrap tab-pane tabClass" id="tab5">
<iframe id="PM_Resume" width="100%" scrolling="no" height="100%" frameborder="0"></iframe>
</div>
@@ -395,6 +396,9 @@
<div class="lr-form-wrap tab-pane tabClass" id="tab8">
<iframe id="TeacherTrain" width="100%" scrolling="no" height="100%" frameborder="0"></iframe>
</div>
<div class="lr-form-wrap tab-pane tabClass" id="tab9">
<iframe id="PM_WinPrize" width="100%" scrolling="no" height="100%" frameborder="0"></iframe>
</div>
</div>

<script src="~/Content/ueditor/ueditor.config.js"></script>


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/EmpInfo/Form.js Bestand weergeven

@@ -67,6 +67,7 @@ var bootstrap = function ($, learun) {
$("#PM_FamilySituation").attr("src", "/EducationalAdministration/PM_FamilySituation/Index?empId=" + NewEmpId);
$("#TeacherCertificate").attr("src", "/PersonnelManagement/TeacherCertificate/Index?empId=" + NewEmpId);
$("#TeacherTrain").attr("src", "/PersonnelManagement/TeacherTrain/Index?empId=" + NewEmpId);
$("#PM_WinPrize").attr("src", "/EducationalAdministration/PM_WinPrize/Index?empId=" + NewEmpId);
$('#lr_form_tabs').lrFormTab();
$('#lr_form_tabs ul li').eq(0).trigger('click');
//校区
@@ -176,7 +177,6 @@ var bootstrap = function ($, learun) {
for (var id in data) {
if (!!data[id].length && data[id].length > 0) {
$('#' + id).jfGridSet('refreshdata', data[id]);
console.log(2);
}
else {
$('[data-table="' + id + '"]').lrSetFormData(data[id]);


+ 23
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PM_WinPrize/Form.cshtml Bestand weergeven

@@ -0,0 +1,23 @@
@{
ViewBag.Title = "获奖信息";
Layout = "~/Views/Shared/_Form.cshtml";
}
<div class="lr-form-wrap">
<div class="col-xs-12 lr-form-item" data-table="PM_WinPrize">
<div class="lr-form-item-title">赛事级别<font face="宋体">*</font></div>
<div id="CompetitionLevel" isvalid="yes" checkexpession="NotNull"></div>
</div>
<div class="col-xs-12 lr-form-item" data-table="PM_WinPrize">
<div class="lr-form-item-title">赛事类别<font face="宋体">*</font></div>
<div id="CompetitionCategory" isvalid="yes" checkexpession="NotNull"></div>
</div>
<div class="col-xs-12 lr-form-item" data-table="PM_WinPrize">
<div class="lr-form-item-title">获奖时间<font face="宋体">*</font></div>
<input id="WinTime" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd HH:mm',onpicked: function () { $('#WinTime').trigger('change'); } })" isvalid="yes" checkexpession="NotNull" />
</div>
<div class="col-xs-12 lr-form-item" data-table="PM_WinPrize">
<div class="lr-form-item-title">证书附件上传</div>
<div id="PrizeFile"></div>
</div>
</div>
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/PM_WinPrize/Form.js")

+ 58
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PM_WinPrize/Form.js Bestand weergeven

@@ -0,0 +1,58 @@
/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn)
* Copyright (c) 2013-2018 北京泉江科技有限公司
* 创建人:超级管理员
* 日 期:2020-03-30 14:00
* 描 述:获奖信息
*/
var acceptClick;
var keyValue = request('keyValue');
var empId = request('empId');
var bootstrap = function ($, learun) {
"use strict";
var page = {
init: function () {
$('.lr-form-wrap').lrscroll();
page.bind();
page.initData();
},
bind: function () {
$('#CompetitionLevel').lrDataItemSelect({ code: 'CompetitionLevel' });
$('#CompetitionCategory').lrDataItemSelect({ code: 'CompetitionCategory' });
$('#PrizeFile').lrUploader();
},
initData: function () {
if (!!keyValue) {
$.lrSetForm(top.$.rootUrl + '/EducationalAdministration/PM_WinPrize/GetFormData?keyValue=' + keyValue, function (data) {
for (var id in data) {
if (!!data[id].length && data[id].length > 0) {
$('#' + id).jfGridSet('refreshdata', data[id]);
}
else {
$('[data-table="' + id + '"]').lrSetFormData(data[id]);
}
}
});
}
}
};
// 保存数据
acceptClick = function (callBack) {
if (!$('body').lrValidform()) {
return false;
}
var data = $('body').lrGetFormData();
if (!keyValue) {
data["EmpId"] = empId;
}
var postData = {
strEntity: JSON.stringify(data)
};
$.lrSaveForm(top.$.rootUrl + '/EducationalAdministration/PM_WinPrize/SaveForm?keyValue=' + keyValue, postData, function (res) {
// 保存成功后才回调
if (!!callBack) {
callBack();
}
});
};
page.init();
}

+ 66
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PM_WinPrize/Index.cshtml Bestand weergeven

@@ -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-6 lr-form-item">
<div class="lr-form-item-title">职工编号</div>
<input id="EmpNo" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">姓名</div>
<input id="EmpName" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">部门</div>
<div id="F_DepartmentId"></div>
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">性别</div>
<div id="GenderNo"></div>
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">员工状态</div>
<div id="IsInActiveStatus"></div>
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">人员身份</div>
<div id="CompilationCategory"></div>
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">赛事级别</div>
<div id="CompetitionLevel"></div>
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">赛事类别</div>
<div id="CompetitionCategory"></div>
</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>&nbsp;新增</a>
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;编辑</a>
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
<a id="lr_check" class="btn btn-default"><i class="fa fa-lock"></i>&nbsp;提交</a>
<a id="lr_uncheck" class="btn btn-default"><i class="fa fa-unlock"></i>&nbsp;取消提交</a>
</div>
</div>
</div>
<div class="lr-layout-body" id="gridtable"></div>
</div>
</div>
</div>
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/PM_WinPrize/Index.js")

+ 243
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PM_WinPrize/Index.js Bestand weergeven

@@ -0,0 +1,243 @@
/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn)
* Copyright (c) 2013-2018 北京泉江科技有限公司
* 创建人:超级管理员
* 日 期:2020-03-30 14:00
* 描 述:获奖信息
*/
var refreshGirdData;
var empId = request('empId');
var status = false;
var bootstrap = function ($, learun) {
"use strict";
var page = {
init: function () {
page.refreshStatus();
page.initGird();
page.bind();
},
refreshStatus: function () {
//获取主表状态
learun.httpAsyncGet(top.$.rootUrl + '/EducationalAdministration/EmpInfo/GetFormData?keyValue=' + empId, function (res) {
if (res.code == 200) {
if (res.data.EmpInfo != null) {
status = res.data.EmpInfo.WinPrizeStatus;
}
}
});
},
bind: function () {
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) {
page.search(queryJson);
}, 220, 550);
// 部门选择
$('#F_DepartmentId').lrselect({
type: 'tree',
// 是否允许搜索
allowSearch: true,
// 访问数据接口地址
url: top.$.rootUrl + '/LR_OrganizationModule/Department/GetTree',
// 访问数据接口参数
param: { parentId: '0' }
});
//性别
$('#GenderNo').lrDataItemSelect({ code: 'usersexbit' });
//人员身份
$('#CompilationCategory').lrDataItemSelect({ code: 'CompilationCategory' });
//员工状态
$('#IsInActiveStatus').lrDataItemSelect({ code: 'JobStatus' });
$('#CompetitionLevel').lrDataItemSelect({ code: 'CompetitionLevel' });
$('#CompetitionCategory').lrDataItemSelect({ code: 'CompetitionCategory' });
// 刷新
$('#lr_refresh').on('click', function () {
location.reload();
});
// 新增
$('#lr_add').on('click', function () {
if (empId.length <= 0) {
learun.alert.warning("未选择用户!");
return false;
}
if (status == 'true') {
learun.alert.warning('已提交,不能再修改!');
return;
}
learun.layerForm({
id: 'formInPM_WinPrize',
title: '新增',
url: top.$.rootUrl + '/EducationalAdministration/PM_WinPrize/Form?empId=' + empId,
width: 600,
height: 400,
callBack: function (id) {
return top[id].acceptClick(refreshGirdData);
}
});
});
// 编辑
$('#lr_edit').on('click', function () {
if (status == 'true') {
learun.alert.warning('已提交,不能再修改!');
return;
}
var keyValue = $('#gridtable').jfGridValue('ID');
if (learun.checkrow(keyValue)) {
learun.layerForm({
id: 'formInPM_WinPrize',
title: '编辑',
url: top.$.rootUrl + '/EducationalAdministration/PM_WinPrize/Form?keyValue=' + keyValue,
width: 600,
height: 400,
callBack: function (id) {
return top[id].acceptClick(refreshGirdData);
}
});
}
});
// 删除
$('#lr_delete').on('click', function () {
if (status == 'true') {
learun.alert.warning('已提交,不能再修改!');
return;
}
var keyValue = $('#gridtable').jfGridValue('ID');
if (learun.checkrow(keyValue)) {
learun.layerConfirm('是否确认删除该项!', function (res) {
if (res) {
learun.deleteForm(top.$.rootUrl + '/EducationalAdministration/PM_WinPrize/DeleteForm', { keyValue: keyValue }, function () {
refreshGirdData();
});
}
});
}
});
// 提交
$('#lr_check').on('click', function () {
if (status == 'true') {
learun.alert.warning('已提交,不能再修改!');
return;
}
if (empId.length <= 0) {
learun.alert.warning("未选择用户!");
return;
}
learun.layerConfirm('是否确认提交!', function (res) {
if (res) {
learun.postForm(top.$.rootUrl + '/EducationalAdministration/PM_WinPrize/Submit', { empId: empId, status: true }, function (info) {
refreshGirdData();
});
}
});
});
// 取消提交
$('#lr_uncheck').on('click', function () {
if (empId.length <= 0) {
learun.alert.warning("未选择用户!");
return;
}
learun.layerConfirm('是否取消提交!', function (res) {
if (res) {
learun.postForm(top.$.rootUrl + '/EducationalAdministration/PM_WinPrize/Submit', { empId: empId, status: false }, function () {
refreshGirdData();
});
}
});
});
},
// 初始化列表
initGird: function () {
$('#gridtable').jfGrid({
url: top.$.rootUrl + '/EducationalAdministration/PM_WinPrize/GetPageList',
headData: [
{ label: "职工编号", name: "EmpNo", width: 100, align: "left" },
{ label: "姓名", name: "EmpName", width: 100, align: "left" },
{
label: "部门", name: "F_DepartmentId", width: 100, 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: "GenderNo", width: 80, align: "left",
formatter: function (cellvalue) {
return cellvalue == true ? "男" : "女";
}
},
{
label: "员工状态", name: "IsInActiveStatus", width: 100, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('dataItem', {
key: value,
code: 'JobStatus',
callback: function (_data) {
callback(_data.text);
}
});
}
},
{
label: "人员身份", name: "CompilationCategory", width: 100, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('dataItem', {
key: value,
code: 'CompilationCategory',
callback: function (_data) {
callback(_data.text);
}
});
}
},
{
label: "赛事级别", name: "CompetitionLevel", width: 100, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('dataItem', {
key: value,
code: 'CompetitionLevel',
callback: function (_data) {
callback(_data.text);
}
});
}
},
{
label: "赛事类别", name: "CompetitionCategory", width: 100, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('dataItem', {
key: value,
code: 'CompetitionCategory',
callback: function (_data) {
callback(_data.text);
}
});
}
},
{ label: "获奖时间", name: "WinTime", width: 130, align: "left" },
{
label: "提交状态", name: "SubmitStatus", width: 100, align: "left",
formatter: function (cellvalue) {
return cellvalue == true ? "<i class=\"fa fa-toggle-on\"></i>" : "<i class=\"fa fa-toggle-off\"></i>";
}
},
],
mainId: 'ID',
isPage: true
});
page.search();
},
search: function (param) {
param = param || {};
param.EmpId = empId;
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
}
};
refreshGirdData = function () {
page.search();
page.refreshStatus();
};
page.init();
}

+ 5
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj Bestand weergeven

@@ -338,6 +338,7 @@
<Compile Include="Areas\AssetManagementSystem\Controllers\Ass_UserChangeInfoController.cs" />
<Compile Include="Areas\AssetManagementSystem\Controllers\Ass_WarningController.cs" />
<Compile Include="Areas\EducationalAdministration\Controllers\ElectiveMajorOnlineController.cs" />
<Compile Include="Areas\EducationalAdministration\Controllers\PM_WinPrizeController.cs" />
<Compile Include="Areas\EducationalAdministration\Controllers\StuScoreOnlineController.cs" />
<Compile Include="Areas\EducationalAdministration\Controllers\StuSelectLessonListOfElectiveOnlineController.cs" />
<Compile Include="Areas\EducationalAdministration\Controllers\DoorController.cs" />
@@ -1022,6 +1023,8 @@
<Content Include="Areas\EducationalAdministration\Views\LessonInfoOfElectiveOnline\FormNum.js" />
<Content Include="Areas\EducationalAdministration\Views\LessonInfoOfElectiveOnline\SetIndex.js" />
<Content Include="Areas\EducationalAdministration\Views\LessonInfoOfElectiveOnline\StudentIndex.js" />
<Content Include="Areas\EducationalAdministration\Views\PM_WinPrize\Form.js" />
<Content Include="Areas\EducationalAdministration\Views\PM_WinPrize\Index.js" />
<Content Include="Areas\EducationalAdministration\Views\PsychologyInfo\FormView.js" />
<Content Include="Areas\EducationalAdministration\Views\SchoolLevelScholarship\FormView.js" />
<Content Include="Areas\EducationalAdministration\Views\SchoolLevelScholarship\IndexOfStudent.js" />
@@ -8294,6 +8297,8 @@
<Content Include="Areas\Weixin\Views\web.config" />
<Content Include="Areas\Weixin\Views\VisitManage\Index.cshtml" />
<Content Include="Content\excel\AssFixAssetsOfTeacherImport.xls" />
<Content Include="Areas\EducationalAdministration\Views\PM_WinPrize\Form.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\PM_WinPrize\Index.cshtml" />
<None Include="Properties\PublishProfiles\CustomProfile.pubxml" />
<None Include="Properties\PublishProfiles\FolderProfile.pubxml" />
<Content Include="Views\Login\Default-beifen.cshtml" />


+ 29
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/EducationalAdministration/PM_WinPrize.cs Bestand weergeven

@@ -0,0 +1,29 @@
using Learun.Application.TwoDevelopment.EducationalAdministration;
using System.Data.Entity.ModelConfiguration;

namespace Learun.Application.Mapping
{
/// <summary>
/// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园
/// Copyright (c) 2013-2018 北京泉江科技有限公司
/// 创 建:超级管理员
/// 日 期:2020-03-30 14:00
/// 描 述:获奖信息
/// </summary>
public class PM_WinPrizeMap : EntityTypeConfiguration<PM_WinPrizeEntity>
{
public PM_WinPrizeMap()
{
#region 表、主键
//表
this.ToTable("PM_WINPRIZE");
//主键
this.HasKey(t => t.ID);
#endregion

#region 配置关系
#endregion
}
}
}


+ 1
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Learun.Application.Mapping.csproj Bestand weergeven

@@ -102,6 +102,7 @@
<Compile Include="EducationalAdministration\LeaveSchoolMap.cs" />
<Compile Include="EducationalAdministration\MajorAndSubjectMap.cs" />
<Compile Include="EducationalAdministration\MealCardRunTabMap.cs" />
<Compile Include="EducationalAdministration\PM_WinPrize.cs" />
<Compile Include="EducationalAdministration\PracticeBaseMap.cs" />
<Compile Include="EducationalAdministration\R_EnterBuildingMap.cs" />
<Compile Include="EducationalAdministration\R_EnterSchoolMap.cs" />


+ 5
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/EmpInfo/EmpInfoEntity.cs Bestand weergeven

@@ -533,6 +533,11 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
/// </summary>
[Column("WORKERTECHNOLOGYSTATUS")]
public bool? WorkerTechnologyStatus { get; set; }
/// <summary>
/// 获奖信息提交状态
/// </summary>
[Column("WINPRIZESTATUS")]
public bool? WinPrizeStatus { get; set; }

/// <summary>
/// 任同职级职务时间


+ 170
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/PM_WinPrize/PM_WinPrizeBLL.cs Bestand weergeven

@@ -0,0 +1,170 @@
using Learun.Util;
using System;
using System.Data;
using System.Collections.Generic;

namespace Learun.Application.TwoDevelopment.EducationalAdministration
{
/// <summary>
/// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园
/// Copyright (c) 2013-2018 北京泉江科技有限公司
/// 创 建:超级管理员
/// 日 期:2020-03-30 14:00
/// 描 述:获奖信息
/// </summary>
public class PM_WinPrizeBLL : PM_WinPrizeIBLL
{
private PM_WinPrizeService pM_WinPrizeService = new PM_WinPrizeService();

#region 获取数据

/// <summary>
/// 获取页面显示列表数据
/// <summary>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
public IEnumerable<PM_WinPrizeEntity> GetPageList(Pagination pagination, string queryJson)
{
try
{
return pM_WinPrizeService.GetPageList(pagination, queryJson);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}

/// <summary>
/// 获取PM_WinPrize表实体数据
/// <param name="keyValue">主键</param>
/// <summary>
/// <returns></returns>
public PM_WinPrizeEntity GetPM_WinPrizeEntity(string keyValue)
{
try
{
return pM_WinPrizeService.GetPM_WinPrizeEntity(keyValue);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}

/// <summary>
/// 获取页面显示列表数据
/// <summary>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
public IEnumerable<PM_WinPrizeEntity> GetListByEmpId(string empId)
{
try
{
return pM_WinPrizeService.GetListByEmpId(empId);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}
#endregion

#region 提交数据

/// <summary>
/// 删除实体数据
/// <param name="keyValue">主键</param>
/// <summary>
/// <returns></returns>
public void DeleteEntity(string keyValue)
{
try
{
pM_WinPrizeService.DeleteEntity(keyValue);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}

/// <summary>
/// 保存实体数据(新增、修改)
/// <param name="keyValue">主键</param>
/// <summary>
/// <returns></returns>
public void SaveEntity(string keyValue, PM_WinPrizeEntity entity)
{
try
{
pM_WinPrizeService.SaveEntity(keyValue, entity);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}
/// <summary>
/// 修改提交状态
/// <param name="keyValue">主键</param>
/// <summary>
/// <returns></returns>
public void Submit(string keyValue, bool status)
{
try
{
pM_WinPrizeService.Submit(keyValue, status);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}

#endregion

}
}

+ 129
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/PM_WinPrize/PM_WinPrizeEntity.cs Bestand weergeven

@@ -0,0 +1,129 @@
using Learun.Util;
using System;
using System.ComponentModel.DataAnnotations.Schema;

namespace Learun.Application.TwoDevelopment.EducationalAdministration
{
/// <summary>
/// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园
/// Copyright (c) 2013-2018 北京泉江科技有限公司
/// 创 建:超级管理员
/// 日 期:2020-03-30 14:00
/// 描 述:获奖信息
/// </summary>
public class PM_WinPrizeEntity
{
#region 实体成员
/// <summary>
/// 编号
/// </summary>
[Column("ID")]
public string ID { get; set; }
/// <summary>
/// 人员ID
/// </summary>
[Column("EMPID")]
public string EmpId { get; set; }
/// <summary>
/// 赛事级别
/// </summary>
[Column("COMPETITIONLEVEL")]
public string CompetitionLevel { get; set; }
/// <summary>
/// 赛事类别
/// </summary>
[Column("COMPETITIONCATEGORY")]
public string CompetitionCategory { get; set; }
/// <summary>
/// 获奖时间
/// </summary>
[Column("WINTIME")]
public DateTime? WinTime { get; set; }
/// <summary>
/// 证书附件上传
/// </summary>
[Column("PRIZEFILE")]
public string PrizeFile { get; set; }
/// <summary>
/// 创建用户
/// </summary>
[Column("CREATEUSERID")]
public string CreateUserId { get; set; }
/// <summary>
/// 创建时间
/// </summary>
[Column("CREATETIME")]
public DateTime? CreateTime { get; set; }
/// <summary>
/// 最后修改人
/// </summary>
[Column("UPDATER")]
public string Updater { get; set; }
/// <summary>
/// 最后修改时间
/// </summary>
[Column("UPDATETIME")]
public DateTime? UpdateTime { get; set; }
#endregion

#region 扩展操作
/// <summary>
/// 新增调用
/// </summary>
public void Create()
{
this.ID = Guid.NewGuid().ToString();
this.CreateUserId = LoginUserInfo.Get().userId;
this.CreateTime = DateTime.Now;
}
/// <summary>
/// 编辑调用
/// </summary>
/// <param name="keyValue"></param>
public void Modify(string keyValue)
{
this.ID = keyValue;
this.Updater = LoginUserInfo.Get().userId;
this.UpdateTime = DateTime.Now;
}
#endregion
#region 扩展字段
/// <summary>
/// 提交状态
/// </summary>
[NotMapped]
public bool? SubmitStatus { get; set; }
/// <summary>
/// 职工号
/// </summary>
[NotMapped]
public string EmpNo { get; set; }
/// <summary>
/// 姓名
/// </summary>
[NotMapped]
public string EmpName { get; set; }
/// <summary>
/// 部门
/// </summary>
[NotMapped]
public string F_DepartmentId { get; set; }
/// <summary>
/// 性别
/// </summary>
[NotMapped]
public bool? GenderNo { get; set; }
/// <summary>
/// 员工状态
/// </summary>
[NotMapped]
public string IsInActiveStatus { get; set; }
/// <summary>
/// 人员身份
/// </summary>
[NotMapped]
public string CompilationCategory { get; set; }
#endregion
}
}


+ 57
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/PM_WinPrize/PM_WinPrizeIBLL.cs Bestand weergeven

@@ -0,0 +1,57 @@
using Learun.Util;
using System.Data;
using System.Collections.Generic;

namespace Learun.Application.TwoDevelopment.EducationalAdministration
{
/// <summary>
/// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园
/// Copyright (c) 2013-2018 北京泉江科技有限公司
/// 创 建:超级管理员
/// 日 期:2020-03-30 14:00
/// 描 述:获奖信息
/// </summary>
public interface PM_WinPrizeIBLL
{
#region 获取数据

/// <summary>
/// 获取页面显示列表数据
/// <summary>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
IEnumerable<PM_WinPrizeEntity> GetPageList(Pagination pagination, string queryJson);
/// <summary>
/// 获取PM_WinPrize表实体数据
/// <param name="keyValue">主键</param>
/// <summary>
/// <returns></returns>
PM_WinPrizeEntity GetPM_WinPrizeEntity(string keyValue);

/// <summary>
/// 获取页面显示列表数据
/// <summary>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
IEnumerable<PM_WinPrizeEntity> GetListByEmpId(string empId);
#endregion

#region 提交数据

/// <summary>
/// 删除实体数据
/// <param name="keyValue">主键</param>
/// <summary>
/// <returns></returns>
void DeleteEntity(string keyValue);
/// <summary>
/// 保存实体数据(新增、修改)
/// <param name="keyValue">主键</param>
/// <summary>
/// <returns></returns>
void SaveEntity(string keyValue, PM_WinPrizeEntity entity);
void Submit(string keyValue, bool status);
#endregion

}
}

+ 238
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/PM_WinPrize/PM_WinPrizeService.cs Bestand weergeven

@@ -0,0 +1,238 @@
using Dapper;
using Learun.DataBase.Repository;
using Learun.Util;
using System;
using System.Collections.Generic;
using System.Data;
using System.Text;

namespace Learun.Application.TwoDevelopment.EducationalAdministration
{
/// <summary>
/// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园
/// Copyright (c) 2013-2018 北京泉江科技有限公司
/// 创 建:超级管理员
/// 日 期:2020-03-30 14:00
/// 描 述:获奖信息
/// </summary>
public class PM_WinPrizeService : RepositoryFactory
{
#region 获取数据

/// <summary>
/// 获取页面显示列表数据
/// <summary>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
public IEnumerable<PM_WinPrizeEntity> GetPageList(Pagination pagination, string queryJson)
{
try
{
var strSql = new StringBuilder();
strSql.Append("SELECT t.*,e.WinPrizeStatus as SubmitStatus,e.EmpNo,e.EmpName,e.F_DepartmentId,e.GenderNo,e.IsInActiveStatus,e.CompilationCategory ");
strSql.Append(" FROM PM_WinPrize t ");
strSql.Append(" left join EmpInfo e on t.EmpId=e.EmpId ");
strSql.Append(" WHERE 1=1 ");
var queryParam = queryJson.ToJObject();
// 虚拟参数
var dp = new DynamicParameters(new { });
if (!queryParam["EmpId"].IsEmpty())
{
dp.Add("EmpId", queryParam["EmpId"].ToString(), DbType.String);
strSql.Append(" AND t.EmpId = @EmpId ");
}
if (!queryParam["EmpNo"].IsEmpty())
{
dp.Add("EmpNo", "%" + queryParam["EmpNo"].ToString() + "%", DbType.String);
strSql.Append(" AND e.EmpNo like @EmpNo ");
}
if (!queryParam["EmpName"].IsEmpty())
{
dp.Add("EmpName", "%" + queryParam["EmpName"].ToString() + "%", DbType.String);
strSql.Append(" AND e.EmpName like @EmpName ");
}
if (!queryParam["F_DepartmentId"].IsEmpty())
{
dp.Add("F_DepartmentId", queryParam["F_DepartmentId"].ToString(), DbType.String);
strSql.Append(" AND e.F_DepartmentId = @F_DepartmentId ");
}
if (!queryParam["GenderNo"].IsEmpty())
{
dp.Add("GenderNo", queryParam["GenderNo"].ToString(), DbType.String);
strSql.Append(" AND e.GenderNo = @GenderNo ");
}
if (!queryParam["IsInActiveStatus"].IsEmpty())
{
dp.Add("IsInActiveStatus", queryParam["IsInActiveStatus"].ToString(), DbType.String);
strSql.Append(" AND e.IsInActiveStatus = @IsInActiveStatus ");
}
if (!queryParam["CompilationCategory"].IsEmpty())
{
dp.Add("CompilationCategory", queryParam["CompilationCategory"].ToString(), DbType.String);
strSql.Append(" AND e.CompilationCategory = @CompilationCategory ");
}
if (!queryParam["CompetitionLevel"].IsEmpty())
{
dp.Add("CompetitionLevel", queryParam["CompetitionLevel"].ToString(), DbType.String);
strSql.Append(" AND t.CompetitionLevel = @CompetitionLevel ");
}
if (!queryParam["CompetitionCategory"].IsEmpty())
{
dp.Add("CompetitionCategory", queryParam["CompetitionCategory"].ToString(), DbType.String);
strSql.Append(" AND t.CompetitionCategory = @CompetitionCategory ");
}
return this.BaseRepository("CollegeMIS").FindList<PM_WinPrizeEntity>(strSql.ToString(), dp, pagination);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

/// <summary>
/// 获取PM_WinPrize表实体数据
/// <param name="keyValue">主键</param>
/// <summary>
/// <returns></returns>
public PM_WinPrizeEntity GetPM_WinPrizeEntity(string keyValue)
{
try
{
return this.BaseRepository("CollegeMIS").FindEntity<PM_WinPrizeEntity>(keyValue);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

/// <summary>
/// 获取页面显示列表数据
/// <summary>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
public IEnumerable<PM_WinPrizeEntity> GetListByEmpId(string empId)
{
try
{
return this.BaseRepository("CollegeMIS").FindList<PM_WinPrizeEntity>(x => x.EmpId == empId);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}
#endregion

#region 提交数据

/// <summary>
/// 删除实体数据
/// <param name="keyValue">主键</param>
/// <summary>
/// <returns></returns>
public void DeleteEntity(string keyValue)
{
try
{
this.BaseRepository("CollegeMIS").Delete<PM_WinPrizeEntity>(t => t.ID == keyValue);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

/// <summary>
/// 保存实体数据(新增、修改)
/// <param name="keyValue">主键</param>
/// <summary>
/// <returns></returns>
public void SaveEntity(string keyValue, PM_WinPrizeEntity entity)
{
try
{
if (!string.IsNullOrEmpty(keyValue))
{
entity.Modify(keyValue);
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>
/// 修改提交状态
/// <param name="keyValue">主键</param>
/// <summary>
/// <returns></returns>
public void Submit(string keyValue, bool status)
{
try
{
var empEntity = this.BaseRepository("CollegeMIS").FindEntity<EmpInfoEntity>(a => a.EmpId == keyValue);
if (empEntity != null)
{
empEntity.WinPrizeStatus = status;
this.BaseRepository("CollegeMIS").Update(empEntity);
}
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

#endregion

}
}

+ 4
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Learun.Application.TwoDevelopment.csproj Bestand weergeven

@@ -95,6 +95,10 @@
<Compile Include="EducationalAdministration\ElectiveMajorOnline\ElectiveMajorOnlineEntity.cs" />
<Compile Include="EducationalAdministration\ElectiveMajorOnline\ElectiveMajorOnlineIBLL.cs" />
<Compile Include="EducationalAdministration\ElectiveMajorOnline\ElectiveMajorOnlineService.cs" />
<Compile Include="EducationalAdministration\PM_WinPrize\PM_WinPrizeBLL.cs" />
<Compile Include="EducationalAdministration\PM_WinPrize\PM_WinPrizeEntity.cs" />
<Compile Include="EducationalAdministration\PM_WinPrize\PM_WinPrizeIBLL.cs" />
<Compile Include="EducationalAdministration\PM_WinPrize\PM_WinPrizeService.cs" />
<Compile Include="EducationalAdministration\SignUpOnlineHelper.cs" />
<Compile Include="EducationalAdministration\StuScoreOnline\StuScoreOnlineBLL.cs" />
<Compile Include="EducationalAdministration\StuScoreOnline\StuScoreOnlineEntity.cs" />


Laden…
Annuleren
Opslaan