瀏覽代碼

同步缴费

新疆影视学院高职
edy 3 年之前
父節點
當前提交
d5bc1ccc3b
共有 10 個檔案被更改,包括 112 行新增12 行删除
  1. +5
    -3
      Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuInfoFresh/RegisterQRCode/RegisterQRCode.js
  2. +2
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/notice/notice.html
  3. +2
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/notice/notice.js
  4. +8
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/StuInfoFreshController.cs
  5. +3
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoFresh/PayFeeIndex.cshtml
  6. +14
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoFresh/PayFeeIndex.js
  7. +2
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/XmlConfig/database.config
  8. +25
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoFresh/StuInfoFreshBLL.cs
  9. +7
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoFresh/StuInfoFreshIBLL.cs
  10. +44
    -2
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoFresh/StuInfoFreshService.cs

+ 5
- 3
Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuInfoFresh/RegisterQRCode/RegisterQRCode.js 查看文件

@@ -12,6 +12,10 @@
learun.layer.loading(true, '获取数据中');
learun.httpget(config.webapi + "StuInfoFresh/stuInfoFreshEntity", userinfo.baseinfo.account, (data) => {
if (data) {
//辅导员
$('.sQrText span').eq(2).html(data.StuInfoFreshEntity.ClassDiredctorName != null ? data.StuInfoFreshEntity.ClassDiredctorName.slice(0, 1) + "老师" : "");
$('.sQrText span').eq(3).html(data.StuInfoFreshEntity.ClassDiredctorMobile);
//判断是否显示报到二维码:未确认报到,且已完善信息,且缴费三有一;
var entity = data["StuInfoFreshEntity"];
if (entity.RegisterStatus == "1") {
@@ -50,9 +54,7 @@
//班主任
// $('.sQrText span').eq(0).html(data.StuInfoFreshEntity.ClassDiredctorName != null ? data.StuInfoFreshEntity.ClassDiredctorName.slice(0, 1) + "老师" : "");
// $('.sQrText span').eq(1).html(data.StuInfoFreshEntity.ClassDiredctorMobile);
//辅导员
$('.sQrText span').eq(2).html(data.StuInfoFreshEntity.ClassTutorName != null ? data.StuInfoFreshEntity.ClassTutorName.slice(0, 1) + "老师" : "");
$('.sQrText span').eq(3).html(data.StuInfoFreshEntity.ClassTutorMobile);

//二维码
learun.code.encode({ id: 'lr_mycode_qrcode', text: data.StuInfoFreshEntity.StuNo });



+ 2
- 2
Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/notice/notice.html 查看文件

@@ -21,10 +21,10 @@
<span>班级:</span><span id="ClassNo"></span>
</div>
<div class="noticeTxt">
<span>辅导员:</span><span id="ClassTutorName"></span>
<span>辅导员:</span><span id="ClassDiredctorName"></span>
</div>
<div class="noticeTxt">
<span>电话:</span><span id="ClassTutorMobile"></span>
<span>电话:</span><span id="ClassDiredctorMobile"></span>
</div>
<div class="noticeTxt">
<span>宿舍:</span><span id="Dormitory"></span>


+ 2
- 2
Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/notice/notice.js 查看文件

@@ -16,8 +16,8 @@
$('#DeptNo').html(entity.DeptNo);
$('#MajorNo').html(entity.MajorNo);
$('#ClassNo').html(entity.ClassNo);
$('#ClassTutorName').html(entity.ClassTutorName);
$('#ClassTutorMobile').html(entity.ClassTutorMobile);
$('#ClassDiredctorName').html(entity.ClassDiredctorName);
$('#ClassDiredctorMobile').html(entity.ClassDiredctorMobile);
$('#PayFeeStatus').html(entity.PayFeeStatus == "1" ? "已缴费" : "未缴费");
$('#CollectFileStatus').html(entity.CollectFileStatus == "1" ? "已提交" : "未提交");
$('#GetKeyStatus').html(entity.GetKeyStatus == "1" ? "已领取" : "未领取");


+ 8
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/StuInfoFreshController.cs 查看文件

@@ -55,7 +55,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
{
return View("Index");
}
[HttpGet]
public ActionResult IndexDC()
{
@@ -286,6 +286,13 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers

#region 获取数据

[HttpPost]
[AjaxOnly]
public void SynchronousList()
{
stuInfoFreshIBLL.SynchronousList();
}

/// <summary>
/// 获取列表数据
/// <summary>


+ 3
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoFresh/PayFeeIndex.cshtml 查看文件

@@ -11,6 +11,7 @@
<div class="lr-layout-tool-left">
<div class="lr-layout-tool-item">
<input id="txt_Keyword" type="text" class="form-control" placeholder="考生号/准考证号/姓名/身份证号" />
<input id="Grade" type="text" class="form-control" placeholder="年级" />
</div>
<div class="lr-layout-tool-item">
<a id="btn_Search" class="btn btn-primary btn-sm"><i class="fa fa-search"></i>&nbsp;查询</a>
@@ -21,13 +22,14 @@
<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_synchronous" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;同步</a>
<a id="lr_view" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;查看</a>
@*<a id="lr_payFee" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;缴费</a>*@
<a id="lr_pay" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;线上缴费</a>
<a id="lr_cancelPay" class="btn btn-default"><i class="fa fa-trash-o"></i>&nbsp;取消线上缴费</a>
@*<a id="lr_loan" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;填写贷款回执码</a>*@
@*<a id="lr_checkLoan" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;审核助学贷款</a>
<a id="lr_uncheckLoan" class="btn btn-default"><i class="fa fa-trash-o"></i>&nbsp;去审核助学贷款</a>*@
<a id="lr_uncheckLoan" class="btn btn-default"><i class="fa fa-trash-o"></i>&nbsp;去审核助学贷款</a>*@
<a id="lr_checkLoan" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;已办理贷款</a>
<a id="lr_uncheckLoan" class="btn btn-default"><i class="fa fa-trash-o"></i>&nbsp;正在办理贷款</a>
<a id="lr_onsitePay" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;现场缴费</a>


+ 14
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoFresh/PayFeeIndex.js 查看文件

@@ -17,7 +17,8 @@ var bootstrap = function ($, learun) {
// 查询
$('#btn_Search').on('click', function () {
var keyword = $('#txt_Keyword').val();
page.search({ keyword: keyword });
var Grade = $('#Grade').val();
page.search({ keyword: keyword, Grade: Grade });
});
// 刷新
$('#lr_refresh').on('click', function () {
@@ -200,6 +201,18 @@ var bootstrap = function ($, learun) {
});
}
});
//同步数据
$('#lr_synchronous').on('click',
function () {
learun.layerConfirm('是否要同步缴费数据!',function (res) {
if (res) {
learun.postForm(
top.$.rootUrl + '/EducationalAdministration/StuInfoFresh/SynchronousList', {}, function () {
refreshGirdData();
});
}
});
});
// 取消其他费用缴费
$('#lr_cancelOtherPay').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('ID');


+ 2
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/XmlConfig/database.config 查看文件

@@ -19,6 +19,8 @@
<add name="BaseDb" connectionString="Server=123.57.209.16;Initial Catalog=adms7ultimate2_西昌;User ID=sa;Password=bjqjkj@2014~2015!" providerName="System.Data.SqlClient" />
<add name="CollegeMIS" connectionString="Server=123.57.209.16;Initial Catalog=CollegeMIS_西昌;User ID=sa;Password=bjqjkj@2014~2015!" providerName="System.Data.SqlClient" />
<add name="hangfireString" connectionString="Server=123.57.209.16;Initial Catalog=Hangfire;User ID=sa;Password=bjqjkj@2014~2015!" providerName="System.Data.SqlClient" />
<!--获取网上缴费数据-->
<add name="IsPay" connectionString="Server=192.168.53.19;Initial Catalog=u8gx;User ID=jfcx;Password=xcyz1234567." providerName="System.Data.SqlClient" />

<!--<add name="BaseDb" connectionString="Server=123.57.209.16;Initial Catalog=adms7ultimate2_20200403test;User ID=sa;Password=bjqjkj@2014~2015!" providerName="System.Data.SqlClient" />
<add name="CollegeMIS" connectionString="Server=123.57.209.16;Initial Catalog=CollegeMIS_20200403test;User ID=sa;Password=bjqjkj@2014~2015!" providerName="System.Data.SqlClient" />


+ 25
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoFresh/StuInfoFreshBLL.cs 查看文件

@@ -19,6 +19,31 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration

#region 获取数据

/// <summary>
/// 获取列表数据
/// </summary>
/// <param name="queryJson"></param>
/// <returns></returns>
public void SynchronousList()
{
try
{
stuInfoFreshService.SynchronousList();
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}


/// <summary>
/// 获取列表数据
/// <summary>


+ 7
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoFresh/StuInfoFreshIBLL.cs 查看文件

@@ -16,6 +16,13 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
{
#region 获取数据

/// <summary>
/// 获取数据列表
/// </summary>
/// <param name="StuNo">学号</param>
/// <returns></returns>
void SynchronousList();

/// <summary>
/// 获取列表数据
/// <summary>


+ 44
- 2
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoFresh/StuInfoFreshService.cs 查看文件

@@ -112,6 +112,48 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration

#region 获取数据

/// <summary>
/// 获取列表数据
/// <summary>
/// <returns></returns>
public void SynchronousList()
{
var db = this.BaseRepository("CollegeMIS").BeginTrans();
try
{
List<StuInfoFreshEntity> ListStuInfo = new List<StuInfoFreshEntity>();
List<StuInfoFreshEntity> Model = this.BaseRepository("CollegeMIS").FindList<StuInfoFreshEntity>().ToList();
if (Model != null)
{

for (int i = 0; i < Model.Count(); i++)
{
var IspayList = this.BaseRepository("IsPay").ExecuteBySql($" select * from View_JFdd WHERE XH ='{Model[i].StuNo}' ").ToString().ToList();
if (IspayList.Count > 0)
{
Model[i].PayFeeStatus = "1";
ListStuInfo.Add(Model[i]);
}
}
this.BaseRepository("CollegeMIS").Update(ListStuInfo);
}
db.Commit();
}
catch (Exception ex)
{
db.Rollback();
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}


/// <summary>
/// 获取列表数据
/// <summary>
@@ -160,7 +202,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
}

var data = this.BaseRepository("CollegeMIS").FindList<StuInfoFreshEntity>(strSql.ToString(), dp);
return data;
}
catch (Exception ex)
@@ -861,7 +903,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
entity.Modify(keyValue);
db.Update(entity);
db.Delete<StuInfoFreshEmergePeopleEntity>(t => t.StuInfoFreshId == stuInfoFreshEntityTmp.ID);
if (null != stuInfoFreshEmergePeopleList && null != stuInfoFreshFamilyList)
{
foreach (StuInfoFreshEmergePeopleEntity item in stuInfoFreshEmergePeopleList)


Loading…
取消
儲存