Переглянути джерело

长阳迎新功能

临城职教中职
ndbs 2 роки тому
джерело
коміт
0c31e36884
32 змінених файлів з 3899 додано та 1 видалено
  1. +321
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/StuVolunteerController.cs
  2. +83
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuVolunteer/Form.cshtml
  3. +52
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuVolunteer/Form.js
  4. +571
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuVolunteer/FormApply.cshtml
  5. +47
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuVolunteer/FormSchool.cshtml
  6. +52
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuVolunteer/FormSchool.js
  7. +48
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuVolunteer/Index.cshtml
  8. +133
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuVolunteer/Index.js
  9. +47
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuVolunteer/IndexAccount.cshtml
  10. +128
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuVolunteer/IndexAccount.js
  11. +48
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuVolunteer/IndexDivide.cshtml
  12. +116
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuVolunteer/IndexDivide.js
  13. +47
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuVolunteer/IndexEnroll.cshtml
  14. +116
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuVolunteer/IndexEnroll.js
  15. +48
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuVolunteer/IndexLabel.cshtml
  16. +149
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuVolunteer/IndexLabel.js
  17. +48
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuVolunteer/IndexStatus.cshtml
  18. +116
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuVolunteer/IndexStatus.js
  19. +36
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuVolunteer/Link.cshtml
  20. +46
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuVolunteer/QRCode.cshtml
  21. +149
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuVolunteer/QRCode.js
  22. +133
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuVolunteer/Search.cshtml
  23. +224
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuVolunteer/SearchResult.cshtml
  24. +24
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj
  25. +29
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/EducationalAdministration/StuVolunteerMap.cs
  26. +1
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Learun.Application.Mapping.csproj
  27. +318
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuVolunteer/StuVolunteerBLL.cs
  28. +240
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuVolunteer/StuVolunteerEntity.cs
  29. +104
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuVolunteer/StuVolunteerIBLL.cs
  30. +421
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuVolunteer/StuVolunteerService.cs
  31. +4
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Learun.Application.TwoDevelopment.csproj
  32. BIN
      Learun.Framework.Ultimate V7/UpgradeLog.htm

+ 321
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/StuVolunteerController.cs Переглянути файл

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

namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2021-12-16 10:14
/// 描 述:长阳迎新
/// </summary>
public class StuVolunteerController : MvcControllerBase
{
private StuVolunteerIBLL stuVolunteerIBLL = new StuVolunteerBLL();

#region 视图功能

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

/// <summary>
/// 标注页面
/// <summary>
/// <returns></returns>
[HttpGet]
public ActionResult IndexLabel()
{
return View();
}

/// <summary>
/// 志愿表单页
/// <summary>
/// <returns></returns>
[HttpGet]
public ActionResult FormSchool()
{
return View();
}

/// <summary>
/// 志愿表单页
/// <summary>
/// <returns></returns>
[HttpGet]
public ActionResult IndexAccount()
{
return View();
}

/// <summary>
/// 分班页面
/// <summary>
/// <returns></returns>
[HttpGet]
public ActionResult IndexDivide()
{
return View();
}

/// <summary>
/// 生成学籍
/// <summary>
/// <returns></returns>
[HttpGet]
public ActionResult IndexStatus ()
{
return View();
}


/// <summary>
/// 录取
/// <summary>
/// <returns></returns>
[HttpGet]
public ActionResult IndexEnroll()
{
return View();
}

/// <summary>
/// 生成二维码
/// <summary>
/// <returns></returns>
[HttpGet]
public ActionResult QRCode()
{
return View();
}

/// <summary>
/// 报名
/// <summary>
/// <returns></returns>
[HttpGet]
public ActionResult FormApply()
{
return View();
}

/// <summary>
/// 查询报名
/// <summary>
/// <returns></returns>
[HttpGet]
public ActionResult Search()
{
return View();
}


/// <summary>
/// 查询报名
/// <summary>
/// <returns></returns>
[HttpGet]
public ActionResult SearchResult()
{
return View();
}

#endregion

#region 获取数据

/// <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 = stuVolunteerIBLL.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 StuVolunteerData = stuVolunteerIBLL.GetStuVolunteerEntity(keyValue);
var jsonData = new
{
StuVolunteer = StuVolunteerData,
};
return Success(jsonData);
}
#endregion

#region 提交数据

/// <summary>
/// 删除实体数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
[HttpPost]
[AjaxOnly]
public ActionResult DeleteForm(string keyValue)
{
stuVolunteerIBLL.DeleteEntity(keyValue);
return Success("删除成功!");
}
/// <summary>
/// 保存实体数据(新增、修改)
/// </summary>
/// <param name="keyValue">主键</param>
/// <param name="strEntity">实体</param>
/// <returns></returns>
[HttpPost]
[ValidateAntiForgeryToken]
[AjaxOnly]
public ActionResult SaveForm(string keyValue, string strEntity)
{
StuVolunteerEntity entity = strEntity.ToObject<StuVolunteerEntity>();
var userInfo = LoginUserInfo.Get();
if (string.IsNullOrEmpty(keyValue))
{
entity.CreateUser = userInfo.realName;
entity.CreateTime = DateTime.Now;
}
entity.UpdateUser = userInfo.realName;
entity.UpdateTime = DateTime.Now;
var dWList =
stuVolunteerIBLL.GetRepetitions(entity.H_SchoolNo, entity.ApplyNo, entity.CardNo).Where(x => x.ID != keyValue);
if (dWList.Count() > 0)
{
return Fail("保存失败,请检查数据有重复项");
}
stuVolunteerIBLL.SaveEntity(keyValue, entity);
return Success("保存成功!");
}
#endregion


#region 扩展数据

/// <summary>
/// 标注数据
/// </summary>
/// <param name="keyValue"></param>
/// <returns></returns>
public ActionResult LabelForm(string keyValue)
{
stuVolunteerIBLL.LabelEntity(keyValue);
return Success("标注成功!");
}

/// <summary>
/// 取消数据
/// </summary>
/// <param name="keyValue"></param>
/// <returns></returns>
public ActionResult CancelLabel(string keyValue)
{
stuVolunteerIBLL.CancelLabel(keyValue);
return Success("取消成功!");
}

/// <summary>
/// 填报志愿
/// </summary>
/// <param name="keyValue"></param>
/// <returns></returns>
public ActionResult IsOurSchool(string keyValue, string strEntity)
{
StuVolunteerEntity entity = strEntity.ToObject<StuVolunteerEntity>();
stuVolunteerIBLL.IsOurSchool(keyValue,entity);
return Success("填报成功!");
}

/// <summary>
/// 录取学生
/// </summary>
/// <param name="keyValue"></param>
/// <returns></returns>
public ActionResult EnrollForm(string keyValue)
{
stuVolunteerIBLL.EnrollEntity(keyValue);
return Success("录取成功!");
}

/// <summary>
/// 取消录取学生
/// </summary>
/// <param name="keyValue"></param>
/// <returns></returns>
public ActionResult CancelForm(string keyValue)
{
stuVolunteerIBLL.CancelEntity(keyValue);
return Success("取消成功!");
}

/// <summary>
/// 保存草稿
/// </summary>
/// <param name="keyValue"></param>
/// <param name="strEntity"></param>
/// <returns></returns>
public ActionResult DraftForm(string keyValue, string strEntity)
{
StuVolunteerEntity entity = strEntity.ToObject<StuVolunteerEntity>();
entity.IsSubmit=false;
stuVolunteerIBLL.SaveEntity(keyValue, entity);
return Success("保存成功!");
}
/// <summary>
/// 提交选择专业
/// </summary>
/// <param name="keyValue"></param>
/// <param name="strEntity"></param>
/// <returns></returns>
public ActionResult SubmitForm(string keyValue, string strEntity)
{
StuVolunteerEntity entity = strEntity.ToObject<StuVolunteerEntity>();
entity.IsSubmit = true;
stuVolunteerIBLL.SaveEntity(keyValue, entity);
return Success("提交成功!");
}

#endregion
}
}

+ 83
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuVolunteer/Form.cshtml Переглянути файл

@@ -0,0 +1,83 @@
@{
ViewBag.Title = "长阳迎新";
Layout = "~/Views/Shared/_Form.cshtml";
}
<div class="lr-form-wrap" id="form">
<div class="col-xs-6 lr-form-item" data-table="StuVolunteer">
<div class="lr-form-item-title">县区名称<font face="宋体">*</font></div>
<input id="Address" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
</div>
<div class="col-xs-6 lr-form-item" data-table="StuVolunteer">
<div class="lr-form-item-title">毕业学校<font face="宋体">*</font></div>
<input id="BySchool" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
</div>
<div class="col-xs-6 lr-form-item" data-table="StuVolunteer">
<div class="lr-form-item-title">初中学号<font face="宋体">*</font></div>
<input id="H_SchoolNo" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
</div>
<div class="col-xs-6 lr-form-item" data-table="StuVolunteer">
<div class="lr-form-item-title">报名号<font face="宋体">*</font></div>
<input id="ApplyNo" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
</div>
<div class="col-xs-4 lr-form-item" data-table="StuVolunteer">
<div class="lr-form-item-title">学生姓名<font face="宋体">*</font></div>
<input id="StuName" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
</div>
<div class="col-xs-4 lr-form-item" data-table="StuVolunteer">
<div class="lr-form-item-title">性别<font face="宋体">*</font></div>
<div id="Sex" isvalid="yes" checkexpession="NotNull"></div>
</div>
<div class="col-xs-4 lr-form-item" data-table="StuVolunteer">
<div class="lr-form-item-title">中考总分<font face="宋体">*</font></div>
<input id="StuScore" type="text" class="form-control" isvalid="yes" checkexpession="Num" />
</div>
<div class="col-xs-6 lr-form-item" data-table="StuVolunteer">
<div class="lr-form-item-title">身份证号<font face="宋体">*</font></div>
<input id="CardNo" type="text" class="form-control" isvalid="yes" checkexpession="IDCard" />
</div>
<div class="col-xs-6 lr-form-item" data-table="StuVolunteer">
<div class="lr-form-item-title">录取意向(本校)<font face="宋体">*</font></div>
<div id="IsCYSchool" isvalid="yes" checkexpession="NotNull"></div>
</div>
<div class="col-xs-6 lr-form-item" data-table="StuVolunteer">
<div class="lr-form-item-title">第一志愿</div>
<input id="FirstVolunteer" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item" data-table="StuVolunteer">
<div class="lr-form-item-title">第二志愿</div>
<input id="SecondVolunteer" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item" data-table="StuVolunteer">
<div class="lr-form-item-title">第三志愿</div>
<input id="ThirdVolunteer" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item" data-table="StuVolunteer">
<div class="lr-form-item-title">第四志愿</div>
<input id="FouthVolunteer" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item" data-table="StuVolunteer">
<div class="lr-form-item-title">第五志愿</div>
<input id="FifthVolunteer" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item" data-table="StuVolunteer">
<div class="lr-form-item-title">第六志愿</div>
<input id="SixthVolunteer" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item" data-table="StuVolunteer">
<div class="lr-form-item-title">第七志愿</div>
<input id="SeventhVolunteer" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item" data-table="StuVolunteer">
<div class="lr-form-item-title">第八志愿</div>
<input id="EighthVolunteer" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item" data-table="StuVolunteer">
<div class="lr-form-item-title">第九志愿</div>
<input id="NinthVolunteer" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item" data-table="StuVolunteer">
<div class="lr-form-item-title">备注</div>
<textarea id="Demo" class="form-control" style="height:100px;"></textarea>
</div>
</div>
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/StuVolunteer/Form.js")

+ 52
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuVolunteer/Form.js Переглянути файл

@@ -0,0 +1,52 @@
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
* 创建人:超级管理员
* 日 期:2021-12-16 10:14
* 描 述:长阳迎新
*/
var acceptClick;
var keyValue = request('keyValue');
var bootstrap = function ($, learun) {
"use strict";
var page = {
init: function () {
$('.lr-form-wrap').lrscroll();
page.bind();
page.initData();
},
bind: function () {
$('#IsCYSchool').lrDataItemSelect({ code: 'YesOrNoBit' });
$('#Sex').lrDataItemSelect({ code: 'usersex' });
},
initData: function () {
if (!!keyValue) {
$.lrSetForm(top.$.rootUrl + '/EducationalAdministration/StuVolunteer/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 postData = {
strEntity: JSON.stringify($('body').lrGetFormData())
};
$.lrSaveForm(top.$.rootUrl + '/EducationalAdministration/StuVolunteer/SaveForm?keyValue=' + keyValue, postData, function (res) {
// 保存成功后才回调
if (!!callBack) {
callBack();
}
});
};
page.init();
}

+ 571
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuVolunteer/FormApply.cshtml Переглянути файл

@@ -0,0 +1,571 @@
@{
ViewBag.Title = "Form";
Layout = null;
}

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="renderer" content="webkit">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<meta name="format-detection" content="telephone=no" />
<link rel="shortcut icon" href="" />
<title></title>
<meta name="keywords" content="" />
<meta name="description" content="数字化校园-新生报名" />
<link href="~/Content/css/font-awesome.css" rel="stylesheet" />
<link href="~/Content/css/common.css" rel="stylesheet" />
<link href="~/Content/layui/css/layui.css" rel="stylesheet" media="all" />
<link href="~/Content/css/fromAdd.css" rel="stylesheet" />
<style>
#IdCardPtoUpload1 {
width: 107px;
height: 107px;
border: 1px solid #E9E9E9;
overflow: hidden;
margin: 0;
cursor: pointer;
text-align: center;
}

#IdCardPtoUpload1 img {
width: 100%;
height: 100%;
}

#IdCardPtoUpload1 .layui-upload-img {
width: 50%;
height: auto;
margin-top: 8px;
}

#IdCardPtoUpload1 div {
font-size: 14px;
color: #DCDBDB;
}

#IdCardPtoUpload2 {
width: 107px;
height: 107px;
border: 1px solid #E9E9E9;
overflow: hidden;
margin: 0;
cursor: pointer;
text-align: center;
}

#IdCardPtoUpload2 img {
width: 100%;
height: 100%;
}

#IdCardPtoUpload2 .layui-upload-img {
width: 50%;
height: auto;
margin-top: 8px;
}

#IdCardPtoUpload2 div {
font-size: 14px;
color: #DCDBDB;
}

#MidAchievementUpload {
width: 107px;
height: 107px;
border: 1px solid #E9E9E9;
overflow: hidden;
margin: 0;
cursor: pointer;
text-align: center;
}

#MidAchievementUpload img {
width: 100%;
height: 100%;
}

#MidAchievementUpload .layui-upload-img {
width: 50%;
height: auto;
margin-top: 8px;
}

#MidAchievementUpload div {
font-size: 14px;
color: #DCDBDB;
}
</style>
</head>
<body>

@*<div class="header">
<div class="fromSec">

<a href="#">数字化智慧校园</a> <span class="headerLine">|</span> <span>教职工信息注册</span>
</div>
</div>*@
<div class="warpper" id="app">
<!-- / index_sec5 -->

<div class="chickForm_sec">
<div class="fromSec">
<div class="chickT">报名</div>
<form class="layui-form" action="">
<!-- / chickForm_sec1 -->
<div class="chickForm_sec1">
<div class="chickInput">
<span class="chickInputLable"><span>*</span> 姓名</span>
<input type="text" id="StuName" name="StuName" lay-verify="required" placeholder="请输入姓名" class="layui-input">
</div>
<div class="chickInput">
<span class="chickInputLable"><span>*</span> 性别</span>
<div class="chickInputBox chickInputBoxs">
<select id="Gender" name="Gender" lay-verify="">
<option value="">请选择</option>
<option value="true">男</option>
<option value="false">女</option>
</select>
</div>
</div>
<div class="chickInput">
<span class="chickInputLable">民族</span>
<div class="chickInputBox">
<select id="Nationals" name="Nationals" lay-verify="">
<option value="">请选择</option>
</select>
</div>
</div>
<div class="chickInput">
<span class="chickInputLable"><span>*</span> 住址</span>
<input type="text" id="HomeAddress" name="HomeAddress" lay-verify="required" placeholder="请输入住址" class="layui-input">
</div>
<div class="chickInput">
<span class="chickInputLable"><span>*</span> 身份证号</span>
<input type="text" id="IDCard" name="IDCard" lay-verify="required" placeholder="请输入身份证号" class="layui-input">
</div>
<div class="chickInput">
<span class="chickInputLable"><span>*</span> 手机号</span>
<input type="text" id="StuMobile" name="StuMobile" lay-verify="required" placeholder="请输入手机号" class="layui-input">
</div>
<div class="chickInput">
<span class="chickInputLable"><span>*</span> 毕业学校</span>
<input type="text" id="FromSchool" name="FromSchool" lay-verify="required" placeholder="请输入毕业学校" class="layui-input">
</div>
<div class="chickInput">
<span class="chickInputLable"><span>*</span> 中考总分</span>
<input type="number" id="MidTermExam" name="MidTermExam" lay-verify="required" placeholder="请输入中考总分" class="layui-input">
</div>
<div class="chickInput">
<span class="chickInputLable"> 特长</span>
<input type="text" id="Specialty" name="Specialty" placeholder="请输入特长" class="layui-input">
</div>
<div class="chickInput">
<span class="chickInputLable"><span>*</span> 地市</span>
<div class="chickInputBox chickInputBoxs">
<select id="City" name="City" lay-verify="" lay-filter="City">
<option value="">请选择</option>
</select>
</div>
@*<input type="text" id="City" name="City" lay-verify="required" placeholder="请输入地市" class="layui-input">*@
</div>
<div class="chickInput">
<span class="chickInputLable"><span>*</span> 县区</span>
<div class="chickInputBox chickInputBoxs">
<select id="County" name="County" lay-verify="" lay-filter="County">
<option value="">请选择</option>
</select>
</div>
@*<input type="text" id="County" name="County" lay-verify="required" placeholder="请输入县区" class="layui-input">*@
</div>
<div class="chickInput">
<span class="chickInputLable"><span>*</span> 专业</span>
<div class="chickInputBox chickInputBoxs">
<select id="MajorNo" name="MajorNo" lay-verify="">
<option value="">请选择</option>
</select>
</div>
</div>
<div class="chickInput">
<span class="chickInputLable">身份证正面照片</span>
<div class="chickInputBox">
<div class="layui-upload-list UploadFile" id="IdCardPtoUpload1">
<img src="~/Content/images/chick1.png" class="layui-upload-img" />
<div>选择</div>
</div>
</div>
</div>
<div class="chickInput" hidden>
<span class="chickInputLable" hidden><span>*</span> 身份证正面照片</span>
<input type="text" id="IdCardPto1" name="IdCardPto1" class="layui-input">
</div>

<div class="chickInput">
<span class="chickInputLable">身份证反面照片</span>
<div class="chickInputBox">
<div class="layui-upload-list UploadFile" id="IdCardPtoUpload2">
<img src="~/Content/images/chick1.png" class="layui-upload-img" />
<div>选择</div>
</div>
</div>
</div>
<div class="chickInput" hidden>
<span class="chickInputLable" hidden><span>*</span> 身份证反面照片</span>
<input type="text" id="IdCardPto2" name="IdCardPto2" class="layui-input">
</div>
<div class="chickInput">
<span class="chickInputLable">初中毕业证</span>
<div class="chickInputBox">
<div class="layui-upload-list" id="chickUpload">
<img src="~/Content/images/chick1.png" class="layui-upload-img" />
<div>选择</div>
</div>
</div>
</div>
<div class="chickInput" hidden>
<span class="chickInputLable" hidden><span>*</span> 初中毕业证照片</span>
<input type="text" id="MidDiplomaPto" name="MidDiplomaPto" class="layui-input">
</div>

<div class="chickInput">
<span class="chickInputLable">中考成绩截图</span>
<div class="chickInputBox">
<div class="layui-upload-list UploadFile" id="MidAchievementUpload">
<img src="~/Content/images/chick1.png" class="layui-upload-img" />
<div>选择</div>
</div>
</div>
</div>
<div class="chickInput" hidden>
<span class="chickInputLable" hidden><span>*</span> 中考成绩照片</span>
<input type="text" id="MidAchievementPto" name="MidAchievementPto" class="layui-input">
</div>

<div class="chickInput">
<span class="chickInputLable"> 备注</span>
<input type="text" id="Remark" name="Remark" class="layui-input">
</div>
</div>
<!-- / chickForm_sec1 -->
<div class="chickBtn" lay-submit lay-filter="*">提交</div>
</form>
</div>
</div>
</div>
<img id="fromBg" src="~/Content/images/from1.png" />
<div class="footer"> Copyright © 2019 数字化智慧校园 版权所有</div>
<script src="~/Content/js/jquery.min.js"></script>
<script src="~/Content/layui/layui.all.js"></script>
<script src="~/Content/vue/vue.js"></script>
<script src="~/PhonePage/server.js"></script>
<script>
var today = formatDateTimesM();
var EmpNo = request('EmpNo'); //'XCMY1002';
layui.use(['form', 'laydate', 'upload'], function () {
var form = layui.form;
//登录按钮点击
form.on('submit(*)', function (data) {
if (!$('#IdCardPto1').val() || !$('#IdCardPto2').val()) {
alert('请上传身份证照片!');
return;
}
if (!$('#MidDiplomaPto').val()) {
alert('请上传初中毕业证照片!');
return;
}
if (!$('#MidAchievementPto').val()) {
alert('请上传中考成绩截图!');
return;
}
var strEntity = JSON.stringify(data.field);
//strEntity.EmpNo = EmpNo;
$.ajax({
url: '/EducationalAdministration/StuEnrollPhone/SaveForm?keyValue=&EmpNo=' + EmpNo,
data: { strEntity: strEntity },
type: "POST",
dataType: "json",
async: true,
cache: false,
success: function (data) {
if (data.code == 200) {
alert('报名成功,请等待考试通知');
location.href = '/EducationalAdministration/StuEnrollPhone/Link?EmpNo=' + EmpNo;
} else {
return alert(data.data);
}
},
error: function (XMLHttpRequest, textStatus, errorThrown) {
},
beforeSend: function () {
},
complete: function () {
}
});
return false; //阻止表单跳转。如果需要表单跳转,去掉这段即可。

});

var laydate = layui.laydate;

//时间选择
laydate.render({
elem: '#Birthday',
min: today.y + '-' + today.m + '-' + today.d
});

var upload = layui.upload;

//初中毕业证
var uploadInst = upload.render({
elem: '#chickUpload',
url: '/EducationalAdministration/EmpInfoEnternal/UploadImg',
exts: 'jpg|png|gif|',
multiple: false,
before: function (obj) {
//预读本地文件示例,不支持ie8
obj.preview(function (index, file, result) {
$('#chickUpload').html('<img src="' + result + '" alt="">') //图片链接(base64)
});
},
done: function (res) {
//如果上传失败
if (res.code != 200) {
return layer.msg('上传失败');
} else {
$("#MidDiplomaPto").val(res.data.folderId)
}
//上传成功
},
error: function () {
//演示失败状态,并实现重传
var demoText = $('#demoText');
demoText.html('<span style="color: #FF5722;">上传失败</span> <a class="layui-btn layui-btn-xs demo-reload">重试</a>');
demoText.find('.demo-reload').on('click', function () {
uploadInst.upload();
});
}
});

//身份证正面照片
var uploadIdCard = upload.render({
elem: '#IdCardPtoUpload1',
url: '/EducationalAdministration/EmpInfoEnternal/UploadImg',
exts: 'jpg|png|gif|',
multiple: true,
before: function (obj) {
//预读本地文件示例,不支持ie8
obj.preview(function (index, file, result) {
$('#IdCardPtoUpload1').html('<img src="' + result + '" alt="">') //图片链接(base64)
});
},
done: function (res) {
//如果上传失败
if (res.code != 200) {
return layer.msg('上传失败');
} else {
$("#IdCardPto1").val(res.data.folderId)
}
//上传成功
},
error: function () {
//演示失败状态,并实现重传
var demoText = $('#demoText');
demoText.html('<span style="color: #FF5722;">上传失败</span> <a class="layui-btn layui-btn-xs demo-reload">重试</a>');
demoText.find('.demo-reload').on('click', function () {
uploadIdCard.upload();
});
}
});

//身份证反面照片
var uploadIdCard = upload.render({
elem: '#IdCardPtoUpload2',
url: '/EducationalAdministration/EmpInfoEnternal/UploadImg',
exts: 'jpg|png|gif|',
multiple: true,
before: function (obj) {
//预读本地文件示例,不支持ie8
obj.preview(function (index, file, result) {
$('#IdCardPtoUpload2').html('<img src="' + result + '" alt="">') //图片链接(base64)
});
},
done: function (res) {
//如果上传失败
if (res.code != 200) {
return layer.msg('上传失败');
} else {
$("#IdCardPto2").val(res.data.folderId)
}
//上传成功
},
error: function () {
//演示失败状态,并实现重传
var demoText = $('#demoText');
demoText.html('<span style="color: #FF5722;">上传失败</span> <a class="layui-btn layui-btn-xs demo-reload">重试</a>');
demoText.find('.demo-reload').on('click', function () {
uploadIdCard.upload();
});
}
});
//中考成绩截图
var uploadMidAchieve = upload.render({
elem: '#MidAchievementUpload',
url: '/EducationalAdministration/EmpInfoEnternal/UploadImg',
before: function (obj) {
//预读本地文件示例,不支持ie8
obj.preview(function (index, file, result) {
$('#MidAchievementUpload').html('<img src="' + result + '" alt="">') //图片链接(base64)
});
},
done: function (res) {
//如果上传失败
if (res.code != 200) {
return layer.msg('上传失败');
} else {
$("#MidAchievementPto").val(res.data.folderId);
}
//上传成功
},
error: function () {
//演示失败状态,并实现重传
var demoText = $('#demoText');
demoText.html('<span style="color: #FF5722;">上传失败</span> <a class="layui-btn layui-btn-xs demo-reload">重试</a>');
demoText.find('.demo-reload').on('click', function () {
uploadMidAchieve.upload();
});
}
});

//监听地市
form.on('select(City)', function (data) {
//绑定县区
$.ajax({
url: "/EducationalAdministration/EmpInfoEnternal/GetMap?code=" + "DIC_AREA" + "&where=" + "aparent='" + data.value + "'",
async: false,
success: function (msg) {
var companys = $.parseJSON(msg).data.data;
var str = '<option value="">请选择</option>';
$.each(companys,
function (i, item) {
str += '<option value="' + item.acode + '">' + item.aname + '</option>';
});
$("#County").html(str);
},
});
//绑定专业


form.render();
});
//监听县区
form.on('select(County)', function (data) {
//绑定专业
$.ajax({
url: "/EducationalAdministration/EmpInfoEnternal/GetMap?code=" + "CdMajorInfo" + "&where=" + "Area='" + data.value + "'",
async: false,
success: function (msg) {
var companys = $.parseJSON(msg).data.data;
var str = '<option value="">请选择</option>';
$.each(companys,
function (i, item) {
str += '<option value="' + item.id + '">' + item.majorname + '</option>'
})
$("#MajorNo").html(str);
},
});


form.render();
});
});
$(window).load(function () {
//$('.chickInputBoxs input').attr('lay-verify', 'required');
//专业
$.ajax({
url: "/EducationalAdministration/EmpInfoEnternal/GetMap?code=" + "CdMajorInfo",
async: false,
success: function (msg) {
var companys = $.parseJSON(msg).data.data;
var str = '<option value="">请选择</option>';
$.each(companys,
function (i, item) {
str += '<option value="' + item.id + '">' + item.majorname + '</option>'
})
$("#MajorNo").html(str);
},
});

//民族
$.ajax({
url: "/EducationalAdministration/EmpInfoEnternal/GetMap?code=" + "BCdNationality",
async: false,
success: function (msg) {
var companys = $.parseJSON(msg).data.data;
var str = '<option value="">请选择</option>';
$.each(companys,
function (i, item) {
str += '<option value="' + item.nationalityno + '">' + item.nationality + '</option>'
})
$("#Nationals").html(str);
},
});
//地市
$.ajax({
url: "/EducationalAdministration/EmpInfoEnternal/GetMap?code=" + "DIC_CITY" + "&where=" + "cparent='650000'",
async: false,
success: function (msg) {
var companys = $.parseJSON(msg).data.data;
var str = '<option value="">请选择</option>';
$.each(companys,
function (i, item) {
str += '<option value="' + item.ccode + '">' + item.cname + '</option>'
})
$("#City").html(str);
},
});
//县区
$.ajax({
url: "/EducationalAdministration/EmpInfoEnternal/GetMap?code=" + "DIC_AREA",
async: false,
success: function (msg) {
var companys = $.parseJSON(msg).data.data;
var str = '<option value="">请选择</option>';
$.each(companys,
function (i, item) {
str += '<option value="' + item.acode + '">' + item.aname + '</option>';
});
$("#County").html(str);
},
});
renderForm();

});


//重新渲染表单
function renderForm() {
layui.use('form', function () {
var form = layui.form//高版本建议把括号去掉,有的低版本,需要加()
form.render();
});
}
function formatDateTimesM() {
var date = new Date(1960, 0, 0);
var y = date.getFullYear();
var m = date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1;
var d = date.getDate() < 10 ? '0' + date.getDate() : date.getDate();
var h = date.getHours() < 10 ? '0' + date.getHours() : date.getHours();
var min = date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes();

return {
y: y,
m: m,
d: d,
h: h,
min: min
}
};
</script>
</body>
</html>

+ 47
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuVolunteer/FormSchool.cshtml Переглянути файл

@@ -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" data-table="StuVolunteer">
<div class="lr-form-item-title">第一志愿</div>
<input id="FirstVolunteer" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item" data-table="StuVolunteer">
<div class="lr-form-item-title">第二志愿</div>
<input id="SecondVolunteer" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item" data-table="StuVolunteer">
<div class="lr-form-item-title">第三志愿</div>
<input id="ThirdVolunteer" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item" data-table="StuVolunteer">
<div class="lr-form-item-title">第四志愿</div>
<input id="FouthVolunteer" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item" data-table="StuVolunteer">
<div class="lr-form-item-title">第五志愿</div>
<input id="FifthVolunteer" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item" data-table="StuVolunteer">
<div class="lr-form-item-title">第六志愿</div>
<input id="SixthVolunteer" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item" data-table="StuVolunteer">
<div class="lr-form-item-title">第七志愿</div>
<input id="SeventhVolunteer" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item" data-table="StuVolunteer">
<div class="lr-form-item-title">第八志愿</div>
<input id="EighthVolunteer" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item" data-table="StuVolunteer">
<div class="lr-form-item-title">第九志愿</div>
<input id="NinthVolunteer" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item" data-table="StuVolunteer">
<div class="lr-form-item-title">备注</div>
<textarea id="Demo" class="form-control" style="height:100px;"></textarea>
</div>
</div>
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/StuVolunteer/FormSchool.js")

+ 52
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuVolunteer/FormSchool.js Переглянути файл

@@ -0,0 +1,52 @@
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
* 创建人:超级管理员
* 日 期:2021-12-16 10:14
* 描 述:长阳迎新
*/
var acceptClick;
var keyValue = request('keyValue');
var bootstrap = function ($, learun) {
"use strict";
var page = {
init: function () {
$('.lr-form-wrap').lrscroll();
page.bind();
page.initData();
},
bind: function () {
$('#IsCYSchool').lrDataItemSelect({ code: 'YesOrNoBit' });
$('#Sex').lrDataItemSelect({ code: 'usersex' });
},
initData: function () {
if (!!keyValue) {
$.lrSetForm(top.$.rootUrl + '/EducationalAdministration/StuVolunteer/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 postData = {
strEntity: JSON.stringify($('body').lrGetFormData())
};
$.lrSaveForm(top.$.rootUrl + '/EducationalAdministration/StuVolunteer/SaveForm?keyValue=' + keyValue, postData, function (res) {
// 保存成功后才回调
if (!!callBack) {
callBack();
}
});
};
page.init();
}

+ 48
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuVolunteer/Index.cshtml Переглянути файл

@@ -0,0 +1,48 @@
@{
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="Address" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">毕业学校</div>
<input id="BySchool" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">学生姓名</div>
<input id="StuName" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">性别</div>
<div id="Sex"></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>
</div>
</div>
</div>
<div class="lr-layout-body" id="gridtable"></div>
</div>
</div>
</div>
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/StuVolunteer/Index.js")

+ 133
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuVolunteer/Index.js Переглянути файл

@@ -0,0 +1,133 @@
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
* 创建人:超级管理员
* 日 期:2021-12-16 10:14
* 描 述:长阳迎新
*/
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);
}, 220, 400);
$('#Sex').lrDataItemSelect({ code: 'usersex' });
// 刷新
$('#lr_refresh').on('click', function () {
location.reload();
});
// 新增
$('#lr_add').on('click', function () {
learun.layerForm({
id: 'form',
title: '新增',
url: top.$.rootUrl + '/EducationalAdministration/StuVolunteer/Form',
width: 600,
height: 400,
callBack: function (id) {
return top[id].acceptClick(refreshGirdData);
}
});
});
// 编辑
$('#lr_edit').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('ID');
if (learun.checkrow(keyValue)) {
if (keyValue.indexOf(',') != -1) {
learun.alert.warning("只能选择一条记录进行编辑!");
return;
}
learun.layerForm({
id: 'form',
title: '编辑',
url: top.$.rootUrl + '/EducationalAdministration/StuVolunteer/Form?keyValue=' + keyValue,
width: 600,
height: 400,
callBack: function (id) {
return top[id].acceptClick(refreshGirdData);
}
});
}
});
// 删除
$('#lr_delete').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('ID');
if (learun.checkrow(keyValue)) {
learun.layerConfirm('是否确认删除该项!', function (res) {
if (res) {
learun.deleteForm(top.$.rootUrl + '/EducationalAdministration/StuVolunteer/DeleteForm', { keyValue: keyValue }, function () {
refreshGirdData();
});
}
});
}
});
// 打印
$('#lr_print').on('click', function () {
$('#gridtable').jqprintTable();
});
},
// 初始化列表
initGird: function () {
$('#gridtable').lrAuthorizeJfGrid({
url: top.$.rootUrl + '/EducationalAdministration/StuVolunteer/GetPageList',
headData: [
{ label: "县区名称", name: "Address", width: 150, align: "left" },
{ label: "毕业学校", name: "BySchool", width: 150, align: "left" },
{ label: "初中学号", name: "H_SchoolNo", width: 150, align: "left" },
{ label: "报名号", name: "ApplyNo", width: 150, align: "left" },
{ label: "学生姓名", name: "StuName", width: 100, align: "left" },
{
label: "性别", name: "Sex", width: 100, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('dataItem', {
key: value,
code: 'usersex',
callback: function (_data) {
callback(_data.text);
}
});
}
},
{
label: "录取意向(本校)", name: "IsCYSchool", width: 100, align: "left",
formatter: function (cellvalue) {
return cellvalue == true ? "<span class=\"label label-success\">是</span>" :
"<span class=\"label label-danger\">否</span>";
}
},
{ label: "身份证号", name: "CardNo", width: 150, align: "left" },
{ label: "中考总分", name: "StuScore", width: 100, align: "left" },
{ label: "第一志愿", name: "FirstVolunteer", width: 120, align: "left" },
{ label: "第二志愿", name: "SecondVolunteer", width: 120, align: "left" },
{ label: "第三志愿", name: "ThirdVolunteer", width: 120, align: "left" },
{ label: "第四志愿", name: "FouthVolunteer", width: 120, align: "left" },
{ label: "第五志愿", name: "FifthVolunteer", width: 120, align: "left" },
{ label: "第六志愿", name: "SixthVolunteer", width: 120, align: "left" },
{ label: "第七志愿", name: "SeventhVolunteer", width: 120, align: "left" },
{ label: "第八志愿", name: "EighthVolunteer", width: 120, align: "left" },
{ label: "第九志愿", name: "NinthVolunteer", width: 120, align: "left" },
{ label: "备注", name: "Demo", width: 100, align: "left" },
],
mainId: 'ID',
isPage: true,
isMultiselect: true

});
page.search();
},
search: function (param) {
param = param || {};
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
}
};
refreshGirdData = function () {
$('#gridtable').jfGridSet('reload');
};
page.init();
}

+ 47
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuVolunteer/IndexAccount.cshtml Переглянути файл

@@ -0,0 +1,47 @@
@{
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="Address" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">毕业学校</div>
<input id="BySchool" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">学生姓名</div>
<input id="StuName" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">性别</div>
<div id="Sex"></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_qrcode" class="btn btn-default"><i class="fa fa-linode"></i>&nbsp;生成二维码</a>
@*<a id="lr_cancel" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;生成学籍</a>*@
</div>
</div>
</div>
<div class="lr-layout-body" id="gridtable"></div>
</div>
</div>
</div>
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/StuVolunteer/IndexAccount.js")

+ 128
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuVolunteer/IndexAccount.js Переглянути файл

@@ -0,0 +1,128 @@
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
* 创建人:超级管理员
* 日 期:2021-12-16 10:14
* 描 述:长阳迎新
*/
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);
}, 220, 400);
$('#Sex').lrDataItemSelect({ code: 'usersex' });
// 刷新
$('#lr_refresh').on('click', function () {
location.reload();
});

//生成二维码
$("#lr_qrcode").on('click', function () {
var keyValue = $('#gridtable').jfGridValue('ID');
if (learun.checkrow(keyValue)) {
learun.layerForm({
id: 'formcard',
title: '生成二维码',
url: top.$.rootUrl + '/EducationalAdministration/StuVolunteer/QRCode?keyValue=' + keyValue,//+ '&EmpName=' + escape(EmpName),
width: 700,
height: 300,
btn: null,
end: function () { refreshGirdData(); }
});
}

})
//// 录取
//$('#lr_enroll').on('click', function () {
// var keyValue = $('#gridtable').jfGridValue('ID');
// if (learun.checkrow(keyValue)) {
// learun.layerConfirm('是否确认录取选中项!', function (res) {
// if (res) {
// learun.postForm(top.$.rootUrl + '/EducationalAdministration/StuVolunteer/EnrollForm', { keyValue: keyValue }, function () {
// refreshGirdData();
// });
// }
// });
// }
//});
//// 取消录取
//$('#lr_cancel').on('click', function () {
// var keyValue = $('#gridtable').jfGridValue('ID');
// if (learun.checkrow(keyValue)) {
// learun.layerConfirm('是否确认取消录取选中项!', function (res) {
// if (res) {
// learun.postForm(top.$.rootUrl + '/EducationalAdministration/StuVolunteer/CancelForm', { keyValue: keyValue }, function () {
// refreshGirdData();
// });
// }
// });
// }
//});
},


// 初始化列表
initGird: function () {
$('#gridtable').lrAuthorizeJfGrid({
url: top.$.rootUrl + '/EducationalAdministration/StuVolunteer/GetPageList',
headData: [
{
label: "录取意向(本校)", name: "IsCYSchool", width: 100, align: "left",
formatter: function (cellvalue) {
return cellvalue == true ? "<span class=\"label label-success\">是</span>" :
"<span class=\"label label-danger\">否</span>";
}
},
{ label: "中考总分", name: "StuScore", width: 100, align: "left" },
{ label: "学生姓名", name: "StuName", width: 100, align: "left" },
{
label: "性别", name: "Sex", width: 80, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('dataItem', {
key: value,
code: 'usersex',
callback: function (_data) {
callback(_data.text);
}
});
}
},
{ label: "身份证号", name: "CardNo", width: 150, align: "left" },
{ label: "县区名称", name: "Address", width: 150, align: "left" },
{ label: "毕业学校", name: "BySchool", width: 150, align: "left" },
{ label: "初中学号", name: "H_SchoolNo", width: 150, align: "left" },
{ label: "报名号", name: "ApplyNo", width: 150, align: "left" },
{ label: "第一志愿", name: "FirstVolunteer", width: 120, align: "left" },
{ label: "第二志愿", name: "SecondVolunteer", width: 120, align: "left" },
{ label: "第三志愿", name: "ThirdVolunteer", width: 120, align: "left" },
{ label: "第四志愿", name: "FouthVolunteer", width: 120, align: "left" },
{ label: "第五志愿", name: "FifthVolunteer", width: 120, align: "left" },
{ label: "第六志愿", name: "SixthVolunteer", width: 120, align: "left" },
{ label: "第七志愿", name: "SeventhVolunteer", width: 120, align: "left" },
{ label: "第八志愿", name: "EighthVolunteer", width: 120, align: "left" },
{ label: "第九志愿", name: "NinthVolunteer", width: 120, align: "left" },
{ label: "备注", name: "Demo", width: 100, align: "left" },
],
mainId: 'ID',
isPage: true,
isMultiselect: true

});
page.search();
},
search: function (param) {
param = param || {};
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
}
};
refreshGirdData = function () {
$('#gridtable').jfGridSet('reload');
};
page.init();
}

+ 48
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuVolunteer/IndexDivide.cshtml Переглянути файл

@@ -0,0 +1,48 @@
@{
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="Address" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">毕业学校</div>
<input id="BySchool" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">学生姓名</div>
<input id="StuName" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">性别</div>
<div id="Sex"></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_enroll" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;录取</a>
<a id="lr_cancel" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;取消录取</a>
@*<a id="lr_cancel" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;生成学籍</a>*@
</div>
</div>
</div>
<div class="lr-layout-body" id="gridtable"></div>
</div>
</div>
</div>
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/StuVolunteer/IndexDivide.js")

+ 116
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuVolunteer/IndexDivide.js Переглянути файл

@@ -0,0 +1,116 @@
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
* 创建人:超级管理员
* 日 期:2021-12-16 10:14
* 描 述:长阳迎新
*/
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);
}, 220, 400);
$('#Sex').lrDataItemSelect({ code: 'usersex' });
// 刷新
$('#lr_refresh').on('click', function () {
location.reload();
});
// 录取
$('#lr_enroll').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('ID');
if (learun.checkrow(keyValue)) {
learun.layerConfirm('是否确认录取选中项!', function (res) {
if (res) {
learun.postForm(top.$.rootUrl + '/EducationalAdministration/StuVolunteer/EnrollForm', { keyValue: keyValue }, function () {
refreshGirdData();
});
}
});
}
});
// 取消录取
$('#lr_cancel').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('ID');
if (learun.checkrow(keyValue)) {
learun.layerConfirm('是否确认取消录取选中项!', function (res) {
if (res) {
learun.postForm(top.$.rootUrl + '/EducationalAdministration/StuVolunteer/CancelForm', { keyValue: keyValue }, function () {
refreshGirdData();
});
}
});
}
});
},
// 初始化列表
initGird: function () {
$('#gridtable').lrAuthorizeJfGrid({
url: top.$.rootUrl + '/EducationalAdministration/StuVolunteer/GetPageList',
headData: [
//{
// label: "是否录取", name: "IsEnroll", width: 80, align: "left",
// formatter: function (cellvalue) {
// return cellvalue == true ? "<span class=\"label label-success\">是</span>" :
// "<span class=\"label label-danger\">否</span>";
// }
//},
{
label: "录取意向(本校)", name: "IsCYSchool", width: 100, align: "left",
formatter: function (cellvalue) {
return cellvalue == true ? "<span class=\"label label-success\">是</span>" :
"<span class=\"label label-danger\">否</span>";
}
},
{ label: "中考总分", name: "StuScore", width: 100, align: "left" },
{ label: "学生姓名", name: "StuName", width: 100, align: "left" },
{
label: "性别", name: "Sex", width: 80, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('dataItem', {
key: value,
code: 'usersex',
callback: function (_data) {
callback(_data.text);
}
});
}
},
{ label: "身份证号", name: "CardNo", width: 150, align: "left" },
{ label: "县区名称", name: "Address", width: 150, align: "left" },
{ label: "毕业学校", name: "BySchool", width: 150, align: "left" },
{ label: "初中学号", name: "H_SchoolNo", width: 150, align: "left" },
{ label: "报名号", name: "ApplyNo", width: 150, align: "left" },
{ label: "第一志愿", name: "FirstVolunteer", width: 120, align: "left" },
{ label: "第二志愿", name: "SecondVolunteer", width: 120, align: "left" },
{ label: "第三志愿", name: "ThirdVolunteer", width: 120, align: "left" },
{ label: "第四志愿", name: "FouthVolunteer", width: 120, align: "left" },
{ label: "第五志愿", name: "FifthVolunteer", width: 120, align: "left" },
{ label: "第六志愿", name: "SixthVolunteer", width: 120, align: "left" },
{ label: "第七志愿", name: "SeventhVolunteer", width: 120, align: "left" },
{ label: "第八志愿", name: "EighthVolunteer", width: 120, align: "left" },
{ label: "第九志愿", name: "NinthVolunteer", width: 120, align: "left" },
{ label: "备注", name: "Demo", width: 100, align: "left" },
],
mainId: 'ID',
isPage: true,
isMultiselect: true

});
page.search();
},
search: function (param) {
param = param || {};
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
}
};
refreshGirdData = function () {
$('#gridtable').jfGridSet('reload');
};
page.init();
}

+ 47
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuVolunteer/IndexEnroll.cshtml Переглянути файл

@@ -0,0 +1,47 @@
@{
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="Address" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">毕业学校</div>
<input id="BySchool" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">学生姓名</div>
<input id="StuName" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">性别</div>
<div id="Sex"></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_enroll" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;录取学生</a>
<a id="lr_cancel" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;取消录取</a>
</div>
</div>
</div>
<div class="lr-layout-body" id="gridtable"></div>
</div>
</div>
</div>
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/StuVolunteer/IndexEnroll.js")

+ 116
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuVolunteer/IndexEnroll.js Переглянути файл

@@ -0,0 +1,116 @@
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
* 创建人:超级管理员
* 日 期:2021-12-16 10:14
* 描 述:长阳迎新
*/
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);
}, 220, 400);
$('#Sex').lrDataItemSelect({ code: 'usersex' });
// 刷新
$('#lr_refresh').on('click', function () {
location.reload();
});
//// 录取
$('#lr_enroll').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('ID');
if (learun.checkrow(keyValue)) {
learun.layerConfirm('是否确认录取选中项!', function (res) {
if (res) {
learun.postForm(top.$.rootUrl + '/EducationalAdministration/StuVolunteer/EnrollForm', { keyValue: keyValue }, function () {
refreshGirdData();
});
}
});
}
});
// 取消录取
$('#lr_cancel').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('ID');
if (learun.checkrow(keyValue)) {
learun.layerConfirm('是否确认取消录取选中项!', function (res) {
if (res) {
learun.postForm(top.$.rootUrl + '/EducationalAdministration/StuVolunteer/CancelForm', { keyValue: keyValue }, function () {
refreshGirdData();
});
}
});
}
});
},
// 初始化列表
initGird: function () {
$('#gridtable').lrAuthorizeJfGrid({
url: top.$.rootUrl + '/EducationalAdministration/StuVolunteer/GetPageList',
headData: [
{
label: "是否录取", name: "IsEnroll", width: 80, align: "left",
formatter: function (cellvalue) {
return cellvalue == true ? "<span class=\"label label-success\">是</span>" :
"<span class=\"label label-danger\">否</span>";
}
},
{
label: "录取意向(本校)", name: "IsCYSchool", width: 100, align: "left",
formatter: function (cellvalue) {
return cellvalue == true ? "<span class=\"label label-success\">是</span>" :
"<span class=\"label label-danger\">否</span>";
}
},
{ label: "中考总分", name: "StuScore", width: 100, align: "left" },
{ label: "学生姓名", name: "StuName", width: 100, align: "left" },
{
label: "性别", name: "Sex", width: 80, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('dataItem', {
key: value,
code: 'usersex',
callback: function (_data) {
callback(_data.text);
}
});
}
},
{ label: "身份证号", name: "CardNo", width: 150, align: "left" },
{ label: "县区名称", name: "Address", width: 150, align: "left" },
{ label: "毕业学校", name: "BySchool", width: 150, align: "left" },
{ label: "初中学号", name: "H_SchoolNo", width: 150, align: "left" },
{ label: "报名号", name: "ApplyNo", width: 150, align: "left" },
{ label: "第一志愿", name: "FirstVolunteer", width: 120, align: "left" },
{ label: "第二志愿", name: "SecondVolunteer", width: 120, align: "left" },
{ label: "第三志愿", name: "ThirdVolunteer", width: 120, align: "left" },
{ label: "第四志愿", name: "FouthVolunteer", width: 120, align: "left" },
{ label: "第五志愿", name: "FifthVolunteer", width: 120, align: "left" },
{ label: "第六志愿", name: "SixthVolunteer", width: 120, align: "left" },
{ label: "第七志愿", name: "SeventhVolunteer", width: 120, align: "left" },
{ label: "第八志愿", name: "EighthVolunteer", width: 120, align: "left" },
{ label: "第九志愿", name: "NinthVolunteer", width: 120, align: "left" },
{ label: "备注", name: "Demo", width: 100, align: "left" },
],
mainId: 'ID',
isPage: true,
isMultiselect: true

});
page.search();
},
search: function (param) {
param = param || {};
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
}
};
refreshGirdData = function () {
$('#gridtable').jfGridSet('reload');
};
page.init();
}

+ 48
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuVolunteer/IndexLabel.cshtml Переглянути файл

@@ -0,0 +1,48 @@
@{
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="Address" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">毕业学校</div>
<input id="BySchool" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">学生姓名</div>
<input id="StuName" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">性别</div>
<div id="Sex"></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_label" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;标注</a>
<a id="lr_cancel" class="btn btn-default"><i class="fa fa-square-o"></i>&nbsp;取消标注</a>
<a id="lr_school" class="btn btn-default"><i class="fa fa-square-o"></i>&nbsp;填报志愿</a>
</div>
</div>
</div>
<div class="lr-layout-body" id="gridtable"></div>
</div>
</div>
</div>
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/StuVolunteer/Indexlabel.js")

+ 149
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuVolunteer/IndexLabel.js Переглянути файл

@@ -0,0 +1,149 @@
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
* 创建人:超级管理员
* 日 期:2021-12-16 10:14
* 描 述:长阳迎新
*/
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);
}, 220, 400);
$('#Sex').lrDataItemSelect({ code: 'usersex' });
// 刷新
$('#lr_refresh').on('click', function () {
location.reload();
});
// 标注
$('#lr_label').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('ID');
if (learun.checkrow(keyValue)) {
learun.layerConfirm('是否确认标注选中该项!', function (res) {
if (res) {
learun.postForm(top.$.rootUrl + '/EducationalAdministration/StuVolunteer/LabelForm', { keyValue: keyValue }, function () {
refreshGirdData();
});
}
});
}
});
// 取消标注
$('#lr_cancel').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('ID');
if (learun.checkrow(keyValue)) {
learun.layerConfirm('是否取消标注选中该项!', function (res) {
if (res) {
learun.postForm(top.$.rootUrl + '/EducationalAdministration/StuVolunteer/CancelLabel', { keyValue: keyValue }, function () {
refreshGirdData();
});
}
});
}
});
// 填报志愿
$('#lr_school').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('ID');
if (learun.checkrow(keyValue)) {
if (keyValue.indexOf(',') != -1) {
learun.alert.warning("只能选择一条记录进行编辑!");
return;
}
var IsOurSchool = $('#gridtable').jfGridValue('IsOurSchool');
if (IsOurSchool == false) {
learun.layerForm({
id: 'form',
title: '填报学校',
url: top.$.rootUrl + '/EducationalAdministration/StuVolunteer/Formschool?keyValue=' + keyValue,
width: 600,
height: 400,
callBack: function (id) {
return top[id].acceptClick(refreshGirdData);
}
});
} else {
learun.alert.warning("当前项无需填报!");
return;
}
}
});
},
// 初始化列表
initGird: function () {
$('#gridtable').lrAuthorizeJfGrid({
url: top.$.rootUrl + '/EducationalAdministration/StuVolunteer/GetPageList',
headData: [
{
label: "是否有意(本校)", name: "IsIntention", width: 100, align: "IsIntention",
formatter: function (cellvalue) {
return cellvalue == true ? "<span class=\"label label-success\">是</span>" :
"<span class=\"label label-danger\">否</span>";
}
},
{
label: "填报志愿(本校)", name: "IsOurSchool", width: 100, align: "IsIntention",
formatter: function (cellvalue) {
return cellvalue == true ? "<span class=\"label label-success\">是</span>" :
"<span class=\"label label-danger\">否</span>";
}
},
{ label: "县区名称", name: "Address", width: 200, align: "left" },
{ label: "毕业学校", name: "BySchool", width: 200, align: "left" },
{ label: "初中学号", name: "H_SchoolNo", width: 200, align: "left" },
{ label: "报名号", name: "ApplyNo", width: 200, align: "left" },
{ label: "学生姓名", name: "StuName", width: 100, align: "left" },
{
label: "性别", name: "Sex", width: 100, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('dataItem', {
key: value,
code: 'usersex',
callback: function (_data) {
callback(_data.text);
}
});
}
},
{
label: "录取意向", name: "IsCYSchool", width: 200, align: "left",
formatter: function (cellvalue) {
return cellvalue == true ? "<span class=\"label label-success\">是</span>" :
"<span class=\"label label-danger\">否</span>";
}
},
{ label: "身份证号", name: "CardNo", width: 150, align: "left" },
{ label: "中考总分", name: "StuScore", width: 100, align: "left" },
{ label: "第一志愿", name: "FirstVolunteer", width: 120, align: "left" },
{ label: "第二志愿", name: "SecondVolunteer", width: 120, align: "left" },
{ label: "第三志愿", name: "ThirdVolunteer", width: 120, align: "left" },
{ label: "第四志愿", name: "FouthVolunteer", width: 120, align: "left" },
{ label: "第五志愿", name: "FifthVolunteer", width: 120, align: "left" },
{ label: "第六志愿", name: "SixthVolunteer", width: 120, align: "left" },
{ label: "第七志愿", name: "SeventhVolunteer", width: 120, align: "left" },
{ label: "第八志愿", name: "EighthVolunteer", width: 120, align: "left" },
{ label: "第九志愿", name: "NinthVolunteer", width: 120, align: "left" },
{ label: "备注", name: "Demo", width: 100, align: "left" },
],
mainId: 'ID',
isPage: true,
isMultiselect: true

});
page.search();
},
search: function (param) {
param = param || {};
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
}
};
refreshGirdData = function () {
$('#gridtable').jfGridSet('reload');
};
page.init();
}

+ 48
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuVolunteer/IndexStatus.cshtml Переглянути файл

@@ -0,0 +1,48 @@
@{
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="Address" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">毕业学校</div>
<input id="BySchool" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">学生姓名</div>
<input id="StuName" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">性别</div>
<div id="Sex"></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_enroll" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;录取学生</a>
<a id="lr_cancel" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;取消录取</a>
@*<a id="lr_cancel" class="btn btn-default"><i clakcsss="fa fa-plus"></i>&nbsp;生成学籍</a>*@
</div>
</div>
</div>
<div class="lr-layout-body" id="gridtable"></div>
</div>
</div>
</div>
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/StuVolunteer/IndexStatus.js")

+ 116
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuVolunteer/IndexStatus.js Переглянути файл

@@ -0,0 +1,116 @@
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
* 创建人:超级管理员
* 日 期:2021-12-16 10:14
* 描 述:长阳迎新
*/
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);
}, 220, 400);
$('#Sex').lrDataItemSelect({ code: 'usersex' });
// 刷新
$('#lr_refresh').on('click', function () {
location.reload();
});
// 录取
$('#lr_enroll').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('ID');
if (learun.checkrow(keyValue)) {
learun.layerConfirm('是否确认录取选中项!', function (res) {
if (res) {
learun.postForm(top.$.rootUrl + '/EducationalAdministration/StuVolunteer/EnrollForm', { keyValue: keyValue }, function () {
refreshGirdData();
});
}
});
}
});
// 取消录取
$('#lr_cancel').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('ID');
if (learun.checkrow(keyValue)) {
learun.layerConfirm('是否确认取消录取选中项!', function (res) {
if (res) {
learun.postForm(top.$.rootUrl + '/EducationalAdministration/StuVolunteer/CancelForm', { keyValue: keyValue }, function () {
refreshGirdData();
});
}
});
}
});
},
// 初始化列表
initGird: function () {
$('#gridtable').lrAuthorizeJfGrid({
url: top.$.rootUrl + '/EducationalAdministration/StuVolunteer/GetPageList',
headData: [
//{
// label: "是否录取", name: "IsEnroll", width: 80, align: "left",
// formatter: function (cellvalue) {
// return cellvalue == true ? "<span class=\"label label-success\">是</span>" :
// "<span class=\"label label-danger\">否</span>";
// }
//},
{
label: "录取意向(本校)", name: "IsCYSchool", width: 100, align: "left",
formatter: function (cellvalue) {
return cellvalue == true ? "<span class=\"label label-success\">是</span>" :
"<span class=\"label label-danger\">否</span>";
}
},
{ label: "中考总分", name: "StuScore", width: 100, align: "left" },
{ label: "学生姓名", name: "StuName", width: 100, align: "left" },
{
label: "性别", name: "Sex", width: 80, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('dataItem', {
key: value,
code: 'usersex',
callback: function (_data) {
callback(_data.text);
}
});
}
},
{ label: "身份证号", name: "CardNo", width: 150, align: "left" },
{ label: "县区名称", name: "Address", width: 150, align: "left" },
{ label: "毕业学校", name: "BySchool", width: 150, align: "left" },
{ label: "初中学号", name: "H_SchoolNo", width: 150, align: "left" },
{ label: "报名号", name: "ApplyNo", width: 150, align: "left" },
{ label: "第一志愿", name: "FirstVolunteer", width: 120, align: "left" },
{ label: "第二志愿", name: "SecondVolunteer", width: 120, align: "left" },
{ label: "第三志愿", name: "ThirdVolunteer", width: 120, align: "left" },
{ label: "第四志愿", name: "FouthVolunteer", width: 120, align: "left" },
{ label: "第五志愿", name: "FifthVolunteer", width: 120, align: "left" },
{ label: "第六志愿", name: "SixthVolunteer", width: 120, align: "left" },
{ label: "第七志愿", name: "SeventhVolunteer", width: 120, align: "left" },
{ label: "第八志愿", name: "EighthVolunteer", width: 120, align: "left" },
{ label: "第九志愿", name: "NinthVolunteer", width: 120, align: "left" },
{ label: "备注", name: "Demo", width: 100, align: "left" },
],
mainId: 'ID',
isPage: true,
isMultiselect: true

});
page.search();
},
search: function (param) {
param = param || {};
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
}
};
refreshGirdData = function () {
$('#gridtable').jfGridSet('reload');
};
page.init();
}

+ 36
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuVolunteer/Link.cshtml Переглянути файл

@@ -0,0 +1,36 @@

@{
Layout = null;
}

<!DOCTYPE html>

<html>
<head>
<meta name="viewport" content="width=device-width" />
<title>Link</title>
</head>
<body>
<div>
<a href="" id="stuenroll">报名</a>
<br /><br />
<a href="" id="loc">查询考试地点及时间</a><br /><br />
<a href="" id="res">查询录取结果</a>
</div>
<script src="/Content/jquery/jquery-1.10.2.min.js"></script>
<script src="~/PhonePage/server.js"></script>

<script>
$(function() {
var EmpNo = request('EmpNo');
//报名
$('#stuenroll').attr('href', '/EducationalAdministration/StuEnrollPhone/Form?EmpNo=' + EmpNo);
//查询考试地点及时间
$('#loc').attr('href', '/EducationalAdministration/StuEnrollPhone/Search?type=1');
//查询录取结果
$('#res').attr('href', '/EducationalAdministration/StuEnrollPhone/Search?type=2');
})

</script>
</body>
</html>

+ 46
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuVolunteer/QRCode.cshtml Переглянути файл

@@ -0,0 +1,46 @@
@{
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="Address" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">毕业学校</div>
<input id="BySchool" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">学生姓名</div>
<input id="StuName" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">性别</div>
<div id="Sex"></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">
</div>
</div>
</div>
<div class="lr-layout-body" id="gridtable"></div>
</div>
</div>
</div>
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/StuVolunteer/QRCode.js")

+ 149
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuVolunteer/QRCode.js Переглянути файл

@@ -0,0 +1,149 @@
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
* 创建人:超级管理员
* 日 期:2021-12-16 10:14
* 描 述:长阳迎新
*/
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);
}, 220, 400);
$('#Sex').lrDataItemSelect({ code: 'usersex' });
// 刷新
$('#lr_refresh').on('click', function () {
location.reload();
});
// 标注
$('#lr_label').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('ID');
if (learun.checkrow(keyValue)) {
learun.layerConfirm('是否确认标注选中该项!', function (res) {
if (res) {
learun.postForm(top.$.rootUrl + '/EducationalAdministration/StuVolunteer/LabelForm', { keyValue: keyValue }, function () {
refreshGirdData();
});
}
});
}
});
// 取消标注
$('#lr_cancel').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('ID');
if (learun.checkrow(keyValue)) {
learun.layerConfirm('是否取消标注选中该项!', function (res) {
if (res) {
learun.postForm(top.$.rootUrl + '/EducationalAdministration/StuVolunteer/CancelLabel', { keyValue: keyValue }, function () {
refreshGirdData();
});
}
});
}
});
// 填报志愿
$('#lr_school').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('ID');
if (learun.checkrow(keyValue)) {
if (keyValue.indexOf(',') != -1) {
learun.alert.warning("只能选择一条记录进行编辑!");
return;
}
var IsOurSchool = $('#gridtable').jfGridValue('IsOurSchool');
if (IsOurSchool == false) {
learun.layerForm({
id: 'form',
title: '填报学校',
url: top.$.rootUrl + '/EducationalAdministration/StuVolunteer/Formschool?keyValue=' + keyValue,
width: 600,
height: 400,
callBack: function (id) {
return top[id].acceptClick(refreshGirdData);
}
});
} else {
learun.alert.warning("当前项无需填报!");
return;
}
}
});
},
// 初始化列表
initGird: function () {
$('#gridtable').lrAuthorizeJfGrid({
url: top.$.rootUrl + '/EducationalAdministration/StuVolunteer/GetPageList',
headData: [
{
label: "是否有意(本校)", name: "IsIntention", width: 100, align: "IsIntention",
formatter: function (cellvalue) {
return cellvalue == true ? "<span class=\"label label-success\">是</span>" :
"<span class=\"label label-danger\">否</span>";
}
},
{
label: "填报志愿(本校)", name: "IsOurSchool", width: 100, align: "IsIntention",
formatter: function (cellvalue) {
return cellvalue == true ? "<span class=\"label label-success\">是</span>" :
"<span class=\"label label-danger\">否</span>";
}
},
{ label: "县区名称", name: "Address", width: 200, align: "left" },
{ label: "毕业学校", name: "BySchool", width: 200, align: "left" },
{ label: "初中学号", name: "H_SchoolNo", width: 200, align: "left" },
{ label: "报名号", name: "ApplyNo", width: 200, align: "left" },
{ label: "学生姓名", name: "StuName", width: 100, align: "left" },
{
label: "性别", name: "Sex", width: 100, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('dataItem', {
key: value,
code: 'usersex',
callback: function (_data) {
callback(_data.text);
}
});
}
},
{
label: "录取意向", name: "IsCYSchool", width: 200, align: "left",
formatter: function (cellvalue) {
return cellvalue == true ? "<span class=\"label label-success\">是</span>" :
"<span class=\"label label-danger\">否</span>";
}
},
{ label: "身份证号", name: "CardNo", width: 150, align: "left" },
{ label: "中考总分", name: "StuScore", width: 100, align: "left" },
{ label: "第一志愿", name: "FirstVolunteer", width: 120, align: "left" },
{ label: "第二志愿", name: "SecondVolunteer", width: 120, align: "left" },
{ label: "第三志愿", name: "ThirdVolunteer", width: 120, align: "left" },
{ label: "第四志愿", name: "FouthVolunteer", width: 120, align: "left" },
{ label: "第五志愿", name: "FifthVolunteer", width: 120, align: "left" },
{ label: "第六志愿", name: "SixthVolunteer", width: 120, align: "left" },
{ label: "第七志愿", name: "SeventhVolunteer", width: 120, align: "left" },
{ label: "第八志愿", name: "EighthVolunteer", width: 120, align: "left" },
{ label: "第九志愿", name: "NinthVolunteer", width: 120, align: "left" },
{ label: "备注", name: "Demo", width: 100, align: "left" },
],
mainId: 'ID',
isPage: true,
isMultiselect: true

});
page.search();
},
search: function (param) {
param = param || {};
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
}
};
refreshGirdData = function () {
$('#gridtable').jfGridSet('reload');
};
page.init();
}

+ 133
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuVolunteer/Search.cshtml Переглянути файл

@@ -0,0 +1,133 @@
@{
ViewBag.Title = "Form";
Layout = null;
}

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="renderer" content="webkit">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<meta name="format-detection" content="telephone=no" />
<link rel="shortcut icon" href="" />
<title></title>
<meta name="keywords" content="" />
<meta name="description" content="数字化校园-新生报名" />
<link href="~/Content/css/font-awesome.css" rel="stylesheet" />
<link href="~/Content/css/common.css" rel="stylesheet" />
<link href="~/Content/layui/css/layui.css" rel="stylesheet" media="all" />
<link href="~/Content/css/fromAdd.css" rel="stylesheet" />

</head>
<body>
<div class="warpper" id="app">
<!-- / index_sec5 -->
<div class="chickForm_sec">
<div class="fromSec">
<div class="chickT">查询</div>
<form class="layui-form" action="">
<!-- / chickForm_sec1 -->
<div class="chickForm_sec1">
<div class="chickInput">
<span class="chickInputLable"><span>*</span> 姓名</span>
<input type="text" id="StuName" name="StuName" lay-verify="required" placeholder="请输入姓名" class="layui-input">
</div>
<div class="chickInput">
<span class="chickInputLable"><span>*</span> 身份证号</span>
<input type="text" id="IDCard" name="IDCard" lay-verify="required" placeholder="请输入身份证号" class="layui-input">
</div>
<div class="chickInput">
<span class="chickInputLable"><span>*</span> 手机号</span>
<input type="text" id="StuMobile" name="StuMobile" lay-verify="required" placeholder="请输入手机号" class="layui-input">
</div>
</div>
<!-- / chickForm_sec1 -->
<div class="chickBtn" lay-submit lay-filter="*">提交</div>
</form>
</div>
</div>
</div>
<img id="fromBg" src="~/Content/images/from1.png" />
<div class="footer"> Copyright © 2019 数字化智慧校园 版权所有</div>
<script src="~/Content/js/jquery.min.js"></script>
<script src="~/Content/layui/layui.all.js"></script>
<script src="~/Content/vue/vue.js"></script>
<script src="~/PhonePage/server.js"></script>
<script>
//var today = formatDateTimesM();
var type = request('type'); //'XCMY1002';
layui.use(['form', 'laydate', 'upload'], function () {
var form = layui.form;
//按钮点击
form.on('submit(*)', function (data) {
//var strEntity = JSON.stringify(data.field);
location.href = '/EducationalAdministration/StuEnrollPhone/SearchResult?type=' + type + '&StuName=' + encodeURI(encodeURI($('#StuName').val())) + '&IDCard=' + $('#IDCard').val() + '&StuMobile=' + $('#StuMobile').val();
//$.ajax({
// url: '/EducationalAdministration/StuEnrollPhone/SearchForm?type=' + type,
// data: { strEntity: strEntity },
// type: "GET",
// dataType: "json",
// async: true,
// cache: false,
// success: function (data) {
// if (data.code == 200) {
// alert("报名成功,请等待考试通知!");
// } else {
// alert(data.info);
// }
// },
// error: function (XMLHttpRequest, textStatus, errorThrown) {
// },
// beforeSend: function () {
// },
// complete: function () {
// }
//});
//return false; //阻止表单跳转。如果需要表单跳转,去掉这段即可。

});

//var laydate = layui.laydate;

//时间选择
//laydate.render({
// elem: '#Birthday',
// min: today.y + '-' + today.m + '-' + today.d
//});

});
$(window).load(function () {

renderForm()

})


//重新渲染表单
function renderForm() {
layui.use('form', function () {
var form = layui.form//高版本建议把括号去掉,有的低版本,需要加()
form.render();
});
}
function formatDateTimesM() {
var date = new Date(1960, 0, 0);
var y = date.getFullYear();
var m = date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1;
var d = date.getDate() < 10 ? '0' + date.getDate() : date.getDate();
var h = date.getHours() < 10 ? '0' + date.getHours() : date.getHours();
var min = date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes();

return {
y: y,
m: m,
d: d,
h: h,
min: min
}
};
</script>
</body>
</html>

+ 224
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuVolunteer/SearchResult.cshtml Переглянути файл

@@ -0,0 +1,224 @@
@{
ViewBag.Title = "Form";
Layout = null;
}

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="renderer" content="webkit">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<meta name="format-detection" content="telephone=no" />
<link rel="shortcut icon" href="" />
<title></title>
<meta name="keywords" content="" />
<meta name="description" content="数字化校园-新生报名" />
<link href="~/Content/css/font-awesome.css" rel="stylesheet" />
<link href="~/Content/css/common.css" rel="stylesheet" />
<link href="~/Content/layui/css/layui.css" rel="stylesheet" media="all" />
<link href="~/Content/css/fromAdd.css" rel="stylesheet" />
</head>
<body>
<div class="warpper" id="app">
<!-- / index_sec5 -->
<div class="chickForm_sec">
<div class="fromSec">
<div class="chickT">查询</div>
<form class="layui-form" action="">
<!-- / chickForm_sec1 -->
<div class="chickForm_sec1">
<div class="chickInput">
<span class="chickInputLable"><span>*</span> 姓名</span>
<input type="text" id="StuName" name="StuName" class="layui-input" readonly="readonly">
</div>
<div class="chickInput">
<span class="chickInputLable"><span>*</span> 身份证号</span>
<input type="text" id="IDCard" name="IDCard" class="layui-input" readonly="readonly">
</div>
<div class="chickInput">
<span class="chickInputLable"><span>*</span> 手机号</span>
<input type="text" id="StuMobile" name="StuMobile" class="layui-input" readonly="readonly">
</div>
<div class="chickInput" id="locdiv">
<span class="chickInputLable"><span>*</span> 考试信息</span>
<div id="examDiv" readonly="readonly" style="font-size: 12px;">
</div>
</div>
<div class="chickInput" id="admdiv">
<span class="chickInputLable"><span>*</span> 是否录取</span>
<input type="text" id="IsAdmission" name="IsAdmission" readonly="readonly">
</div>
</div>
<!-- / chickForm_sec1 -->
@*<div class="chickBtn" lay-submit lay-filter="*">提交</div>*@
</form>
</div>
</div>
</div>

<div id="contentdiv">
<img id="fromBg" src="~/Content/images/from1.png" />
<div class="footer"> Copyright © 2019 数字化智慧校园 版权所有</div>
</div>
<script src="~/Content/js/jquery.min.js"></script>
<script src="~/Content/layui/layui.all.js"></script>
<script src="~/Content/vue/vue.js"></script>
<script src="~/PhonePage/server.js"></script>
<script>
var type = request('type');
var StuName = request('StuName');
var IDCard = request('IDCard');
var StuMobile = request('StuMobile');
layui.use(['form', 'laydate', 'upload'], function () {
var form = layui.form;
//按钮点击
//form.on('submit(*)', function (data) {
// var strEntity = JSON.stringify(data.field);

// $.ajax({
// url: '/EducationalAdministration/StuEnrollPhone/SearchForm?type=' + type,
// data: { strEntity: strEntity },
// type: "GET",
// dataType: "json",
// async: true,
// cache: false,
// success: function (data) {
// if (data.code == 200) {
// alert("报名成功,请等待考试通知!");
// } else {
// alert(data.info);
// }
// },
// error: function (XMLHttpRequest, textStatus, errorThrown) {
// },
// beforeSend: function () {
// },
// complete: function () {
// }
// });
// return false; //阻止表单跳转。如果需要表单跳转,去掉这段即可。

//});

//var laydate = layui.laydate;

//时间选择
//laydate.render({
// elem: '#Birthday',
// min: today.y + '-' + today.m + '-' + today.d
//});

});
$(window).load(function () {
if (type == '1') {
//查询考试地点及时间
$('#locdiv').show();
//$('#timediv').show();
$('#admdiv').hide();;
} else {
$('#admdiv').show();
$('#locdiv').hide();
//$('#timediv').hide();
}
//查询
$.ajax({
url: '/EducationalAdministration/StuEnrollPhone/SearchForm?type=' + type,
data: { StuName: decodeURI(StuName), IDCard: IDCard, StuMobile: StuMobile },
type: "GET",
dataType: "json",
async: true,
cache: false,
success: function (data) {
if (data.code == 200) {
var data = data.data;
if (data.StuEnroll) {
$('#StuName').val(decodeURI(StuName));
$('#IDCard').val(IDCard);
$('#StuMobile').val(StuMobile);
//$('#ExamLocation').val(data.StuEnroll.ExamLocation);
//if (data.StuEnroll.ExamStartTime) {
// $('#ExamStartTime').val(data.StuEnroll.ExamStartTime + '~' + data.StuEnroll.ExamEndTime);
//}
if (data.StuEnroll.IsAdmission && data.StuEnroll.IsAdmission == 1) {
$('#IsAdmission').val('是');
} else {
$('#IsAdmission').val('否');
}

} else {
$('#app').html('<img src="/Content/images/jfgrid/nodata.jpg" style="width: 100%;height: 40%;" />');
}
if (data.examData) {
var examData = data.examData;
var html = '';
if (data) {
for (var i = 0; i < examData.length; i++) {
var etime = examData[i].BeginTime + '~' + examData[i].EndTime;
html += '<div class="chickInput">';
html += '<span class="chickInputLable" style="font-size: 12px;"> 科目</span>';
html += '<input type="text" class="layui-input" readonly="readonly" value="' + examData[i].SubjectName + '" style="margin: -39px 0 0 40px; width: 85%;font-size: 12px;">';
html += '</div>';
html += '<div class="chickInput">';
html += '<span class="chickInputLable" style="font-size: 12px;"> 时间</span>';
html += '<input type="text" class="layui-input" readonly="readonly" value="' + etime + '" style="margin: -39px 0 0 40px; width: 85%;font-size: 12px;">';
html += '</div>';
html += '<br/>';
}
}
$('#examDiv').html(html);
}
} else {
alert(data.info);
}
},
error: function (XMLHttpRequest, textStatus, errorThrown) {
},
beforeSend: function () {
},
complete: function () {
}
});
renderForm()

})


//重新渲染表单
function renderForm() {
layui.use('form', function () {
var form = layui.form//高版本建议把括号去掉,有的低版本,需要加()
form.render();
});
}
function formatDateTimesM() {
var date = new Date(1960, 0, 0);
var y = date.getFullYear();
var m = date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1;
var d = date.getDate() < 10 ? '0' + date.getDate() : date.getDate();
var h = date.getHours() < 10 ? '0' + date.getHours() : date.getHours();
var min = date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes();

return {
y: y,
m: m,
d: d,
h: h,
min: min
}
};
</script>
</body>
</html>

+ 24
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj Переглянути файл

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
@@ -340,6 +340,7 @@
<Compile Include="Areas\EducationalAdministration\Controllers\StuInfoBasicChangeController.cs" />
<Compile Include="Areas\EducationalAdministration\Controllers\StuInfoSemsterController.cs" />
<Compile Include="Areas\EducationalAdministration\Controllers\StuScoreNotPassController.cs" />
<Compile Include="Areas\EducationalAdministration\Controllers\StuVolunteerController.cs" />
<Compile Include="Areas\EducationalAdministration\Controllers\Sys_ReceiveDocumentController.cs" />
<Compile Include="Areas\EducationalAdministration\Controllers\TeachingPlanController.cs" />
<Compile Include="Areas\EducationalAdministration\Controllers\TeachingPlanItemController.cs" />
@@ -1088,6 +1089,15 @@
<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\StuVolunteer\Form.js" />
<Content Include="Areas\EducationalAdministration\Views\StuVolunteer\FormSchool.js" />
<Content Include="Areas\EducationalAdministration\Views\StuVolunteer\Index.js" />
<Content Include="Areas\EducationalAdministration\Views\StuVolunteer\IndexAccount.js" />
<Content Include="Areas\EducationalAdministration\Views\StuVolunteer\IndexDivide.js" />
<Content Include="Areas\EducationalAdministration\Views\StuVolunteer\IndexEnroll.js" />
<Content Include="Areas\EducationalAdministration\Views\StuVolunteer\IndexLabel.js" />
<Content Include="Areas\EducationalAdministration\Views\StuVolunteer\IndexStatus.js" />
<Content Include="Areas\EducationalAdministration\Views\StuVolunteer\QRCode.js" />
<Content Include="Areas\EducationalAdministration\Views\Sys_ReceiveDocument\FormView.js" />
<Content Include="Areas\EducationalAdministration\Views\Sys_ReceiveDocument\Form.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\Sys_ReceiveDocument\Form.js" />
@@ -7479,6 +7489,19 @@
<Content Include="Areas\EducationalAdministration\Views\StuCancelLeaveManagement\CheckIndex.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\StuCancelLeaveManagement\Form.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\StuCancelLeaveManagement\Index.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\StuVolunteer\Search.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\StuVolunteer\SearchResult.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\StuVolunteer\Form.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\StuVolunteer\FormSchool.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\StuVolunteer\Index.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\StuVolunteer\IndexAccount.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\StuVolunteer\IndexDivide.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\StuVolunteer\IndexEnroll.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\StuVolunteer\IndexLabel.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\StuVolunteer\IndexStatus.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\StuVolunteer\Link.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\StuVolunteer\QRCode.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\StuVolunteer\FormApply.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/StuVolunteerMap.cs Переглянути файл

@@ -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 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2021-12-16 10:14
/// 描 述:长阳迎新
/// </summary>
public class StuVolunteerMap : EntityTypeConfiguration<StuVolunteerEntity>
{
public StuVolunteerMap()
{
#region 表、主键
//表
this.ToTable("STUVOLUNTEER");
//主键
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 Переглянути файл

@@ -96,6 +96,7 @@
<Compile Include="EducationalAdministration\StuInfoSemsterMap.cs" />
<Compile Include="EducationalAdministration\StuScoreNotPassMap.cs" />
<Compile Include="EducationalAdministration\StuSelectLessonListOfElectivePreMap.cs" />
<Compile Include="EducationalAdministration\StuVolunteerMap.cs" />
<Compile Include="EducationalAdministration\Sys_ReceiveFileMap.cs" />
<Compile Include="EducationalAdministration\TeachingPlanItemMap.cs" />
<Compile Include="EducationalAdministration\TeachingPlanMap.cs" />


+ 318
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuVolunteer/StuVolunteerBLL.cs Переглянути файл

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

namespace Learun.Application.TwoDevelopment.EducationalAdministration
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2021-12-16 10:14
/// 描 述:长阳迎新
/// </summary>
public class StuVolunteerBLL : StuVolunteerIBLL
{
private StuVolunteerService stuVolunteerService = new StuVolunteerService();

#region 获取数据

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

/// <summary>
/// 获取StuVolunteer表实体数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
public StuVolunteerEntity GetStuVolunteerEntity(string keyValue)
{
try
{
return stuVolunteerService.GetStuVolunteerEntity(keyValue);
}
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
{
stuVolunteerService.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>
/// <returns></returns>
public void SaveEntity(string keyValue, StuVolunteerEntity entity)
{
try
{
stuVolunteerService.SaveEntity(keyValue, entity);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}

#endregion

#region 扩展数据

/// <summary>
/// 去重
/// </summary>
/// <param name="H_SchoolNo">学号</param>
/// <param name="ApplyNo">报名号</param>
/// <param name="CardNo">身份证</param>
/// <returns></returns>
public List<StuVolunteerEntity> GetRepetitions(string H_SchoolNo, string ApplyNo, string CardNo)
{
try
{
return stuVolunteerService.GetRepetitions(H_SchoolNo, ApplyNo, CardNo);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}
/// <summary>
/// 标注数据
/// </summary>
/// <param name="keyValue">主键</param>
public void LabelEntity(string keyValue)
{
try
{
stuVolunteerService.LabelEntity(keyValue);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}

/// <summary>
/// 取消标注数据
/// </summary>
/// <param name="keyValue">主键</param>
public void CancelLabel(string keyValue)
{
try
{
stuVolunteerService.CancelLabel(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 IsOurSchool(string keyValue, StuVolunteerEntity entity)
{
try
{
stuVolunteerService.IsOurSchool(keyValue, entity);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}

/// <summary>
/// 录取学生
/// </summary>
/// <param name="keyValue">主键</param>
public void EnrollEntity(string keyValue)
{
try
{
stuVolunteerService.EnrollEntity(keyValue);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}

/// <summary>
/// 取消录取学生
/// </summary>
/// <param name="keyValue">主键</param>
public void CancelEntity(string keyValue)
{
try
{
stuVolunteerService.CancelEntity(keyValue);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}

/// <summary>
/// 保存实体数据(新增、修改)
/// </summary>
/// <param name="keyValue">主键</param>
/// <param name="entity">实体</param>
/// <returns></returns>
public void DraftForm(string keyValue, StuVolunteerEntity entity)
{
try
{
stuVolunteerService.DraftForm(keyValue, entity);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}

/// <summary>
/// 保存实体数据(新增、修改)
/// </summary>
/// <param name="keyValue">主键</param>
/// <param name="entity">实体</param>
/// <returns></returns>
public void SubmitForm(string keyValue, StuVolunteerEntity entity)
{
try
{
stuVolunteerService.SubmitForm(keyValue, entity);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}
#endregion
}
}

+ 240
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuVolunteer/StuVolunteerEntity.cs Переглянути файл

@@ -0,0 +1,240 @@
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 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2021-12-16 10:14
/// 描 述:长阳迎新
/// </summary>
public class StuVolunteerEntity
{
#region 实体成员
/// <summary>
/// ID
/// </summary>
[Column("ID")]
public string ID { get; set; }
/// <summary>
/// 区县
/// </summary>
[Column("ADDRESS")]
public string Address { get; set; }
/// <summary>
/// 学籍号
/// </summary>
[Column("STUCODE")]
public string StuCode { get; set; }
/// <summary>
/// 毕业学校
/// </summary>
[Column("BYSCHOOL")]
public string BySchool { get; set; }
/// <summary>
/// 学生编码(初中学号)
/// </summary>
[Column("H_SCHOOLNO")]
public string H_SchoolNo { get; set; }
/// <summary>
/// 中考时报名号
/// </summary>
[Column("APPLYNO")]
public string ApplyNo { get; set; }
/// <summary>
/// 学生姓名
/// </summary>
[Column("STUNAME")]
public string StuName { get; set; }
/// <summary>
/// 性别
/// </summary>
[Column("SEX")]
public string Sex { get; set; }
/// <summary>
/// 身份号
/// </summary>
[Column("CARDNO")]
public string CardNo { get; set; }
/// <summary>
/// 系所号
/// </summary>
[Column("DEPTNO")]
public string DeptNo { get; set; }
/// <summary>
/// 专业
/// </summary>
[Column("MAJORNO")]
public string MajorNo { get; set; }
/// <summary>
/// 中考总分
/// </summary>
[Column("STUSCORE")]
public decimal? StuScore { get; set; }
/// <summary>
/// IsCYSchool
/// </summary>
[Column("ISCYSCHOOL")]
public bool? IsCYSchool { get; set; }
/// <summary>
/// 根据平时成绩 标注是否有意向报名本校
/// </summary>
[Column("ISINTENTION")]
public bool? IsIntention { get; set; }
/// <summary>
/// 一志愿
/// </summary>
[Column("FIRSTVOLUNTEER")]
public string FirstVolunteer { get; set; }
/// <summary>
/// 二志愿
/// </summary>
[Column("SECONDVOLUNTEER")]
public string SecondVolunteer { get; set; }
/// <summary>
/// 三志愿
/// </summary>
[Column("THIRDVOLUNTEER")]
public string ThirdVolunteer { get; set; }
/// <summary>
/// 四志愿
/// </summary>
[Column("FOUTHVOLUNTEER")]
public string FouthVolunteer { get; set; }
/// <summary>
/// 五
/// </summary>
[Column("FIFTHVOLUNTEER")]
public string FifthVolunteer { get; set; }
/// <summary>
/// 六
/// </summary>
[Column("SIXTHVOLUNTEER")]
public string SixthVolunteer { get; set; }
/// <summary>
/// 七
/// </summary>
[Column("SEVENTHVOLUNTEER")]
public string SeventhVolunteer { get; set; }
/// <summary>
/// 八
/// </summary>
[Column("EIGHTHVOLUNTEER")]
public string EighthVolunteer { get; set; }
/// <summary>
/// 九
/// </summary>
[Column("NINTHVOLUNTEER")]
public string NinthVolunteer { get; set; }
/// <summary>
/// 备注
/// </summary>
[Column("DEMO")]
public string Demo { get; set; }
/// <summary>
/// CreateTime
/// </summary>
[Column("CREATETIME")]
public DateTime? CreateTime { get; set; }
/// <summary>
/// CreateUser
/// </summary>
[Column("CREATEUSER")]
public string CreateUser { get; set; }
/// <summary>
/// UpdateTime
/// </summary>
[Column("UPDATETIME")]
public DateTime? UpdateTime { get; set; }
/// <summary>
/// UpdateUser
/// </summary>
[Column("UPDATEUSER")]
public string UpdateUser { get; set; }
/// <summary>
/// 是否是本校
/// </summary>
[Column("ISOURSCHOOL")]
public bool? IsOurSchool { get; set; }
/// <summary>
/// 其他学校名称
/// </summary>
[Column("OTHERSCHOOL")]
public string OtherSchool { get; set; }
/// <summary>
/// 是否录取
/// </summary>
[Column("ISENROLL")]
public bool? IsEnroll { get; set; }
/// <summary>
/// 是否生成账号
/// </summary>
[Column("ISACCOUNT")]
public bool? IsAccount { get; set; }
/// <summary>
/// 所属学校
/// </summary>
[Column("F_SCHOOLID")]
public string F_SchoolId { get; set; }
/// <summary>
/// 学号
/// </summary>
[Column("STUNO")]
public string StuNo { get; set; }
/// <summary>
/// 专业一
/// </summary>
[Column("MAJORONE")]
public string MajorOne { get; set; }
/// <summary>
/// 专业二
/// </summary>
[Column("MAJORTWO")]
public string MajorTwo { get; set; }
/// <summary>
/// 专业三
/// </summary>
[Column("MAJORTHREE")]
public string MajorThree { get; set; }
/// <summary>
/// 班级
/// </summary>
[Column("CLASSNO")]
public string ClassNo { get; set; }
/// <summary>
/// 是否提交专业
/// </summary>
[Column("ISSUBMIT")]
public bool? IsSubmit { get; set; }
/// <summary>
/// 是否服从安排
/// </summary>
public bool? IsPlan { get; set; }

#endregion

#region 扩展操作
/// <summary>
/// 新增调用
/// </summary>
public void Create()
{
this.ID = Guid.NewGuid().ToString();
}
/// <summary>
/// 编辑调用
/// </summary>
/// <param name="keyValue"></param>
public void Modify(string keyValue)
{
this.ID = keyValue;
}
#endregion
#region 扩展字段
#endregion
}
}


+ 104
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuVolunteer/StuVolunteerIBLL.cs Переглянути файл

@@ -0,0 +1,104 @@
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 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2021-12-16 10:14
/// 描 述:长阳迎新
/// </summary>
public interface StuVolunteerIBLL
{
#region 获取数据

/// <summary>
/// 获取页面显示列表数据
/// </summary>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
IEnumerable<StuVolunteerEntity> GetPageList(Pagination pagination, string queryJson);
/// <summary>
/// 获取StuVolunteer表实体数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
StuVolunteerEntity GetStuVolunteerEntity(string keyValue);
#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, StuVolunteerEntity entity);
#endregion

#region 扩展数据

/// <summary>
/// 去重
/// </summary>
/// <param name="H_SchoolNo">学号</param>
/// <param name="ApplyNo">报名号</param>
/// <param name="CardNo">身份证</param>
/// <returns></returns>
List<StuVolunteerEntity> GetRepetitions(string H_SchoolNo, string ApplyNo, string CardNo);

/// <summary>
/// 标注数据
/// </summary>
/// <param name="keyValue">主键</param>
void LabelEntity(string keyValue);

/// <summary>
/// 取消标注数据
/// </summary>
/// <param name="keyValue">主键</param>
void CancelLabel(string keyValue);

/// <summary>
/// 志愿填报
/// </summary>
/// <param name="keyValue"></param>
/// <param name="entity"></param>
void IsOurSchool(string keyValue, StuVolunteerEntity entity);

/// <summary>
/// 录取学生
/// </summary>
/// <param name="keyValue">主键</param>
void EnrollEntity(string keyValue);

/// <summary>
/// 取消录入学生
/// </summary>
/// <param name="keyValue">主键</param>
void CancelEntity(string keyValue);

/// <summary>
/// 保存专业(草稿)
/// </summary>
/// <param name="keyValue"></param>
/// <param name="entity"></param>
void DraftForm(string keyValue, StuVolunteerEntity entity);

/// <summary>
/// 保存并提交专业
/// </summary>
/// <param name="keyValue"></param>
/// <param name="entity"></param>
void SubmitForm(string keyValue, StuVolunteerEntity entity);
#endregion
}
}

+ 421
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuVolunteer/StuVolunteerService.cs Переглянути файл

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

namespace Learun.Application.TwoDevelopment.EducationalAdministration
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2021-12-16 10:14
/// 描 述:长阳迎新
/// </summary>
public class StuVolunteerService : RepositoryFactory
{
#region 获取数据

/// <summary>
/// 获取页面显示列表数据
/// </summary>
/// <param name="pagination">查询参数</param>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
public IEnumerable<StuVolunteerEntity> GetPageList(Pagination pagination, string queryJson)
{
try
{
var strSql = new StringBuilder();
strSql.Append("SELECT ");
strSql.Append(@" * ");
strSql.Append(" FROM StuVolunteer t ");
strSql.Append(" WHERE 1=1 ");
var queryParam = queryJson.ToJObject();
// 虚拟参数
var dp = new DynamicParameters(new { });
if (!queryParam["Address"].IsEmpty())
{
dp.Add("Address", "%" + queryParam["Address"].ToString() + "%", DbType.String);
strSql.Append(" AND t.Address Like @Address ");
}
if (!queryParam["BySchool"].IsEmpty())
{
dp.Add("BySchool", "%" + queryParam["BySchool"].ToString() + "%", DbType.String);
strSql.Append(" AND t.BySchool Like @BySchool ");
}
if (!queryParam["StuName"].IsEmpty())
{
dp.Add("StuName", "%" + queryParam["StuName"].ToString() + "%", DbType.String);
strSql.Append(" AND t.StuName Like @StuName ");
}
if (!queryParam["Sex"].IsEmpty())
{
dp.Add("Sex", queryParam["Sex"].ToString(), DbType.String);
strSql.Append(" AND t.Sex = @Sex ");
}
if (!queryParam["CardNo"].IsEmpty())
{
dp.Add("CardNo", queryParam["CardNo"].ToString(), DbType.String);
strSql.Append(" AND t.CardNo = @CardNo ");
}
return this.BaseRepository("CollegeMIS").FindList<StuVolunteerEntity>(strSql.ToString(), dp, pagination);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

/// <summary>
/// 获取StuVolunteer表实体数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
public StuVolunteerEntity GetStuVolunteerEntity(string keyValue)
{
try
{
return this.BaseRepository("CollegeMIS").FindEntity<StuVolunteerEntity>(keyValue);
}
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)
{
var db = this.BaseRepository("CollegeMIS").BeginTrans();
try
{
//单个删除
//this.BaseRepository("CollegeMIS").Delete<CdMajorEntity>(t => t.ID == keyValue);
//多个删除
var keyValueArr = keyValue.Split(',');
foreach (var item in keyValueArr)
{
db.Delete<StuVolunteerEntity>(t => t.ID == item);
}
db.Commit();
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

/// <summary>
/// 保存实体数据(新增、修改)
/// </summary>
/// <param name="keyValue">主键</param>
/// <param name="entity">实体</param>
public void SaveEntity(string keyValue, StuVolunteerEntity 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);
}
}
}

#endregion


#region

/// <summary>
/// 去重
/// </summary>
/// <param name="H_SchoolNo">初中学号</param>
/// <param name="ApplyNo">报名号</param>
/// <param name="CardNo">身份证号</param>
/// <returns></returns>
public List<StuVolunteerEntity> GetRepetitions(string H_SchoolNo, string ApplyNo, string CardNo)
{
try
{
return this.BaseRepository("CollegeMIS").FindList<StuVolunteerEntity>(x =>
x.H_SchoolNo == H_SchoolNo || x.ApplyNo == ApplyNo || x.CardNo == CardNo).ToList();
}
catch (Exception e)
{
Console.WriteLine(e);
throw;
}
}

/// <summary>
/// 标注数据
/// </summary>
/// <param name="keyValue">主键</param>
public void LabelEntity(string keyValue)
{
var db = this.BaseRepository("CollegeMIS").BeginTrans();
try
{
var keyValueArr = keyValue.Split(',');
foreach (var item in keyValueArr)
{
var entity = db.FindEntity<StuVolunteerEntity>(x => x.ID == item);
entity.IsIntention = true;
db.Update(entity);
}

db.Commit();
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

/// <summary>
/// 取消标注数据
/// </summary>
/// <param name="keyValue">主键</param>
public void CancelLabel(string keyValue)
{
var db = this.BaseRepository("CollegeMIS").BeginTrans();
try
{
var keyValueArr = keyValue.Split(',');
foreach (var item in keyValueArr)
{
var entity = db.FindEntity<StuVolunteerEntity>(x => x.ID == item);
entity.IsIntention = false;
db.Update(entity);
}

db.Commit();
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

/// <summary>
/// 志愿填报
/// </summary>
/// <param name="keyValue"></param>
/// <param name="entity"></param>
public void IsOurSchool(string keyValue, StuVolunteerEntity 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>
/// 录取学生
/// </summary>
/// <param name="keyValue">主键</param>
public void EnrollEntity(string keyValue)
{
var db = this.BaseRepository("CollegeMIS").BeginTrans();
try
{
var keyValueArr = keyValue.Split(',');
foreach (var item in keyValueArr)
{
var entity = db.FindEntity<StuVolunteerEntity>(x => x.ID == item);
entity.IsEnroll = true;
db.Update(entity);
}

db.Commit();
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

/// <summary>
/// 取消录取学生
/// </summary>
/// <param name="keyValue">主键</param>
public void CancelEntity(string keyValue)
{
var db = this.BaseRepository("CollegeMIS").BeginTrans();
try
{
var keyValueArr = keyValue.Split(',');
foreach (var item in keyValueArr)
{
var entity = db.FindEntity<StuVolunteerEntity>(x => x.ID == item);
entity.IsEnroll = false;
db.Update(entity);
}

db.Commit();
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

/// <summary>
/// 保存实体数据(新增、修改)
/// </summary>
/// <param name="keyValue">主键</param>
/// <param name="entity">实体</param>
public void DraftForm(string keyValue, StuVolunteerEntity 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>
/// 保存实体数据(新增、修改)
/// </summary>
/// <param name="keyValue">主键</param>
/// <param name="entity">实体</param>
public void SubmitForm(string keyValue, StuVolunteerEntity entity)
{
try
{
entity.Modify(keyValue);
this.BaseRepository("CollegeMIS").Update(entity);
}
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 Переглянути файл

@@ -228,6 +228,10 @@
<Compile Include="EducationalAdministration\StuSelectLessonListOfElectivePre\StuSelectLessonListOfElectivePreEntity.cs" />
<Compile Include="EducationalAdministration\StuSelectLessonListOfElectivePre\StuSelectLessonListOfElectivePreIBLL.cs" />
<Compile Include="EducationalAdministration\StuSelectLessonListOfElectivePre\StuSelectLessonListOfElectivePreService.cs" />
<Compile Include="EducationalAdministration\StuVolunteer\StuVolunteerBLL.cs" />
<Compile Include="EducationalAdministration\StuVolunteer\StuVolunteerEntity.cs" />
<Compile Include="EducationalAdministration\StuVolunteer\StuVolunteerIBLL.cs" />
<Compile Include="EducationalAdministration\StuVolunteer\StuVolunteerService.cs" />
<Compile Include="EducationalAdministration\Sys_ReceiveDocument\Sys_ReceiveDocumentBLL.cs" />
<Compile Include="EducationalAdministration\Sys_ReceiveDocument\Sys_ReceiveDocumentEntity.cs" />
<Compile Include="EducationalAdministration\Sys_ReceiveDocument\Sys_ReceiveDocumentIBLL.cs" />


BIN
Learun.Framework.Ultimate V7/UpgradeLog.htm Переглянути файл


Завантаження…
Відмінити
Зберегти