@@ -3,9 +3,10 @@ | |||
Layout = "~/Views/Shared/_Form.cshtml"; | |||
} | |||
<div class="lr-form-wrap" id="form"> | |||
<div class="col-xs-6 lr-form-item" data-table="Low_Durable_Goods" > | |||
<div class="col-xs-6 lr-form-item" data-table="Low_Durable_Goods"> | |||
<div class="lr-form-item-title">类型<font face="宋体">*</font></div> | |||
<div id="typeId" isvalid="yes" checkexpession="NotNull" ></div> | |||
@*<div id="typeId" isvalid="yes" checkexpession="NotNull"></div>*@ | |||
<input id="typeId" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="Low_Durable_Goods" > | |||
<div class="lr-form-item-title">物品编号<font face="宋体">*</font></div> | |||
@@ -15,7 +15,7 @@ var bootstrap = function ($, learun) { | |||
page.initData(); | |||
}, | |||
bind: function () { | |||
$('#typeId').lrDataSourceSelect({ code: 'Ass_AssetsType',value: 'atid',text: 'aname' }); | |||
//$('#typeId').lrDataSourceSelect({ code: 'Ass_AssetsType',value: 'atid',text: 'aname' }); | |||
}, | |||
initData: function () { | |||
if (!!keyValue) { | |||
@@ -12,7 +12,8 @@ | |||
<div class="lr-query-formcontent"> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">类型</div> | |||
<div id="typeId"></div> | |||
<!--<div id="typeId"></div>--> | |||
<input id="typeId" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">物品编号</div> | |||
@@ -16,7 +16,7 @@ var bootstrap = function ($, learun) { | |||
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) { | |||
page.search(queryJson); | |||
}, 220, 400); | |||
$('#typeId').lrDataSourceSelect({ code: 'Ass_AssetsType',value: 'atid',text: 'aname' }); | |||
//$('#typeId').lrDataSourceSelect({ code: 'Ass_AssetsType',value: 'atid',text: 'aname' }); | |||
// 刷新 | |||
$('#lr_refresh').on('click', function () { | |||
location.reload(); | |||
@@ -73,17 +73,19 @@ var bootstrap = function ($, learun) { | |||
$('#gridtable').lrAuthorizeJfGrid({ | |||
url: top.$.rootUrl + '/AssetManagementSystem/LowDurableGoods/GetPageList', | |||
headData: [ | |||
{ label: "类型", name: "typeId", width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op,$cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'Ass_AssetsType', | |||
key: value, | |||
keyId: 'atid', | |||
callback: function (_data) { | |||
callback(_data['aname']); | |||
} | |||
}); | |||
}}, | |||
{ | |||
label: "类型", name: "typeId", width: 100, align: "left" | |||
//,formatterAsync: function (callback, value, row, op,$cell) { | |||
// learun.clientdata.getAsync('custmerData', { | |||
// url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'Ass_AssetsType', | |||
// key: value, | |||
// keyId: 'atid', | |||
// callback: function (_data) { | |||
// callback(_data['aname']); | |||
// } | |||
// }); | |||
//} | |||
}, | |||
{ label: "物品编号", name: "goods_code", width: 100, align: "left"}, | |||
{ label: "物品名称", name: "goods_name", width: 100, align: "left"}, | |||
{ label: "物品型号", name: "goods_model", width: 100, align: "left"}, | |||
@@ -17,7 +17,7 @@ var bootstrap = function ($, learun) { | |||
bind: function () { | |||
$('#base_isuse').lrRadioCheckbox({ | |||
type: 'radio', | |||
code: 'YesOrNoInt', | |||
code: 'YesOrNoBit', | |||
}); | |||
}, | |||
initData: function () { | |||
@@ -17,7 +17,7 @@ var bootstrap = function ($, learun) { | |||
bind: function () { | |||
$('#share_isuse').lrRadioCheckbox({ | |||
type: 'radio', | |||
code: 'YesOrNoInt', | |||
code: 'YesOrNoBit', | |||
}); | |||
}, | |||
initData: function () { | |||
@@ -17,7 +17,7 @@ var bootstrap = function ($, learun) { | |||
bind: function () { | |||
$('#sys_isuse').lrRadioCheckbox({ | |||
type: 'radio', | |||
code: 'YesOrNoInt', | |||
code: 'YesOrNoBit', | |||
}); | |||
}, | |||
initData: function () { | |||
@@ -0,0 +1,117 @@ | |||
using Learun.Util; | |||
using System.Data; | |||
using Learun.Application.TwoDevelopment.EducationalAdministration; | |||
using System.Web.Mvc; | |||
using System.Collections.Generic; | |||
namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||
{ | |||
/// <summary> | |||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
/// 创 建:超级管理员 | |||
/// 日 期:2023-02-04 15:41 | |||
/// 描 述:毕业条件管理 | |||
/// </summary> | |||
public class GraduateConditionController : MvcControllerBase | |||
{ | |||
private StuGraduateConditionIBLL graduateConditionIBLL = new StuGraduateConditionBLL(); | |||
#region 视图功能 | |||
/// <summary> | |||
/// 主页面 | |||
/// <summary> | |||
/// <returns></returns> | |||
[HttpGet] | |||
public ActionResult Index() | |||
{ | |||
return View(); | |||
} | |||
/// <summary> | |||
/// 表单页 | |||
/// <summary> | |||
/// <returns></returns> | |||
[HttpGet] | |||
public ActionResult Form() | |||
{ | |||
return View(); | |||
} | |||
#endregion | |||
#region 获取数据 | |||
/// <summary> | |||
/// 获取页面显示列表数据 | |||
/// </summary> | |||
/// <param name="pagination">分页参数</param> | |||
/// <param name="queryJson">查询参数</param> | |||
/// <returns></returns> | |||
[HttpGet] | |||
[AjaxOnly] | |||
public ActionResult GetPageList(string pagination, string queryJson) | |||
{ | |||
Pagination paginationobj = pagination.ToObject<Pagination>(); | |||
var data = graduateConditionIBLL.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 StuGraduateConditionData = graduateConditionIBLL.GetStuGraduateConditionEntity( keyValue ); | |||
var jsonData = new { | |||
StuGraduateCondition = StuGraduateConditionData, | |||
}; | |||
return Success(jsonData); | |||
} | |||
#endregion | |||
#region 提交数据 | |||
/// <summary> | |||
/// 删除实体数据 | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
/// <returns></returns> | |||
[HttpPost] | |||
[AjaxOnly] | |||
public ActionResult DeleteForm(string keyValue) | |||
{ | |||
graduateConditionIBLL.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) | |||
{ | |||
StuGraduateConditionEntity entity = strEntity.ToObject<StuGraduateConditionEntity>(); | |||
graduateConditionIBLL.SaveEntity(keyValue,entity); | |||
if (string.IsNullOrEmpty(keyValue)) | |||
{ | |||
} | |||
return Success("保存成功!"); | |||
} | |||
#endregion | |||
} | |||
} |
@@ -3,6 +3,7 @@ using System.Data; | |||
using Learun.Application.TwoDevelopment.EducationalAdministration; | |||
using System.Web.Mvc; | |||
using System.Collections.Generic; | |||
using System; | |||
namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||
{ | |||
@@ -37,6 +38,17 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||
{ | |||
return View(); | |||
} | |||
/// <summary> | |||
/// 上传页面 | |||
/// <summary> | |||
/// <returns></returns> | |||
[HttpGet] | |||
public ActionResult UploadForm() | |||
{ | |||
return View(); | |||
} | |||
#endregion | |||
#region 获取数据 | |||
@@ -105,6 +117,41 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||
internShipLogIBLL.SaveEntity(keyValue,entity); | |||
return Success("保存成功!"); | |||
} | |||
/// <summary> | |||
/// 保存实体数据(新增、修改) | |||
/// <param name="keyValue">主键</param> | |||
/// <summary> | |||
/// <returns></returns> | |||
[HttpPost] | |||
[ValidateAntiForgeryToken] | |||
[AjaxOnly] | |||
public ActionResult UploadForm(string keyValue, string strEntity) | |||
{ | |||
InternShipLogEntity entity = strEntity.ToObject<InternShipLogEntity>(); | |||
if (!string.IsNullOrEmpty(keyValue)) | |||
{ | |||
var entity2 = internShipLogIBLL.GetInternShipLogEntity(keyValue); | |||
if (!string.IsNullOrEmpty(entity.attach_file)) | |||
{ | |||
entity.updatetime = entity2.updatetime + 1;//已提交 | |||
entity.upfileDate = DateTime.Now; | |||
} | |||
} | |||
else | |||
{ | |||
entity.Create(); | |||
if (!string.IsNullOrEmpty(entity.attach_file)) | |||
{ | |||
entity.updatetime = 1;//已提交 | |||
entity.upfileDate = DateTime.Now; | |||
} | |||
} | |||
internShipLogIBLL.SaveEntity(keyValue, entity); | |||
return Success("提交成功!"); | |||
} | |||
#endregion | |||
} | |||
@@ -3,6 +3,7 @@ using System.Data; | |||
using Learun.Application.TwoDevelopment.EducationalAdministration; | |||
using System.Web.Mvc; | |||
using System.Collections.Generic; | |||
using System; | |||
namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||
{ | |||
@@ -37,6 +38,17 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||
{ | |||
return View(); | |||
} | |||
/// <summary> | |||
/// 上传页面 | |||
/// <summary> | |||
/// <returns></returns> | |||
[HttpGet] | |||
public ActionResult UploadForm() | |||
{ | |||
return View(); | |||
} | |||
#endregion | |||
#region 获取数据 | |||
@@ -105,6 +117,41 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||
internShipSummaryIBLL.SaveEntity(keyValue,entity); | |||
return Success("保存成功!"); | |||
} | |||
/// <summary> | |||
/// 保存实体数据(新增、修改) | |||
/// <param name="keyValue">主键</param> | |||
/// <summary> | |||
/// <returns></returns> | |||
[HttpPost] | |||
[ValidateAntiForgeryToken] | |||
[AjaxOnly] | |||
public ActionResult UploadForm(string keyValue, string strEntity) | |||
{ | |||
InternShipSummaryEntity entity = strEntity.ToObject<InternShipSummaryEntity>(); | |||
if (!string.IsNullOrEmpty(keyValue)) | |||
{ | |||
var entity2 = internShipSummaryIBLL.GetInternShipSummaryEntity(keyValue); | |||
if (!string.IsNullOrEmpty(entity.attach_file)) | |||
{ | |||
entity.updatetime = entity2.updatetime + 1;//已提交 | |||
entity.upfileDate = DateTime.Now; | |||
} | |||
} | |||
else | |||
{ | |||
entity.Create(); | |||
if (!string.IsNullOrEmpty(entity.attach_file)) | |||
{ | |||
entity.updatetime = 1;//已提交 | |||
entity.upfileDate = DateTime.Now; | |||
} | |||
} | |||
internShipSummaryIBLL.SaveEntity(keyValue, entity); | |||
return Success("提交成功!"); | |||
} | |||
#endregion | |||
} | |||
@@ -3,6 +3,7 @@ using System.Data; | |||
using Learun.Application.TwoDevelopment.EducationalAdministration; | |||
using System.Web.Mvc; | |||
using System.Collections.Generic; | |||
using System; | |||
namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||
{ | |||
@@ -37,6 +38,18 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||
{ | |||
return View(); | |||
} | |||
/// <summary> | |||
/// 上传页面 | |||
/// <summary> | |||
/// <returns></returns> | |||
[HttpGet] | |||
public ActionResult UploadForm() | |||
{ | |||
return View(); | |||
} | |||
#endregion | |||
#region 获取数据 | |||
@@ -105,6 +118,43 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||
internshipPlanPostIBLL.SaveEntity(keyValue,entity); | |||
return Success("保存成功!"); | |||
} | |||
/// <summary> | |||
/// 保存实体数据(新增、修改) | |||
/// <param name="keyValue">主键</param> | |||
/// <summary> | |||
/// <returns></returns> | |||
[HttpPost] | |||
[ValidateAntiForgeryToken] | |||
[AjaxOnly] | |||
public ActionResult UploadForm(string keyValue, string strEntity) | |||
{ | |||
InternshipPlanPostEntity entity = strEntity.ToObject<InternshipPlanPostEntity>(); | |||
if (!string.IsNullOrEmpty(keyValue)) | |||
{ | |||
var entity2 = internshipPlanPostIBLL.GetInternshipPlanPostEntity(keyValue); | |||
if (!string.IsNullOrEmpty(entity.attach_file)) | |||
{ | |||
entity.updatetime = entity2.updatetime+1;//已提交 | |||
entity.upfileDate = DateTime.Now; | |||
} | |||
} | |||
else | |||
{ | |||
entity.Create(); | |||
if (!string.IsNullOrEmpty(entity.attach_file)) | |||
{ | |||
entity.updatetime = 1;//已提交 | |||
entity.upfileDate = DateTime.Now; | |||
} | |||
} | |||
internshipPlanPostIBLL.SaveEntity(keyValue, entity); | |||
return Success("提交成功!"); | |||
} | |||
#endregion | |||
} | |||
@@ -3,6 +3,7 @@ using System.Data; | |||
using Learun.Application.TwoDevelopment.EducationalAdministration; | |||
using System.Web.Mvc; | |||
using System.Collections.Generic; | |||
using System; | |||
namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||
{ | |||
@@ -37,6 +38,17 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||
{ | |||
return View(); | |||
} | |||
/// <summary> | |||
/// 上传页面 | |||
/// <summary> | |||
/// <returns></returns> | |||
[HttpGet] | |||
public ActionResult UploadForm() | |||
{ | |||
return View(); | |||
} | |||
#endregion | |||
#region 获取数据 | |||
@@ -111,6 +123,41 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||
} | |||
return Success("保存成功!"); | |||
} | |||
/// <summary> | |||
/// 保存实体数据(新增、修改) | |||
/// <param name="keyValue">主键</param> | |||
/// <summary> | |||
/// <returns></returns> | |||
[HttpPost] | |||
[ValidateAntiForgeryToken] | |||
[AjaxOnly] | |||
public ActionResult UploadForm(string keyValue, string strEntity) | |||
{ | |||
Practice_AppraisalEntity entity = strEntity.ToObject<Practice_AppraisalEntity>(); | |||
if (!string.IsNullOrEmpty(keyValue)) | |||
{ | |||
var entity2 = practiceAppraisalIBLL.GetPractice_AppraisalEntity(keyValue); | |||
if (!string.IsNullOrEmpty(entity.attach_file)) | |||
{ | |||
entity.updatetime = entity2.updatetime + 1;//已提交 | |||
entity.upfileDate = DateTime.Now; | |||
} | |||
} | |||
else | |||
{ | |||
entity.Create(); | |||
if (!string.IsNullOrEmpty(entity.attach_file)) | |||
{ | |||
entity.updatetime = 1;//已提交 | |||
entity.upfileDate = DateTime.Now; | |||
} | |||
} | |||
practiceAppraisalIBLL.SaveEntity(keyValue, entity); | |||
return Success("提交成功!"); | |||
} | |||
#endregion | |||
} | |||
@@ -3,6 +3,7 @@ using System.Data; | |||
using Learun.Application.TwoDevelopment.EducationalAdministration; | |||
using System.Web.Mvc; | |||
using System.Collections.Generic; | |||
using System; | |||
namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||
{ | |||
@@ -37,6 +38,16 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||
{ | |||
return View(); | |||
} | |||
/// <summary> | |||
/// 上传页面 | |||
/// <summary> | |||
/// <returns></returns> | |||
[HttpGet] | |||
public ActionResult UploadForm() | |||
{ | |||
return View(); | |||
} | |||
#endregion | |||
#region 获取数据 | |||
@@ -111,6 +122,42 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||
} | |||
return Success("保存成功!"); | |||
} | |||
/// <summary> | |||
/// 保存实体数据(新增、修改) | |||
/// <param name="keyValue">主键</param> | |||
/// <summary> | |||
/// <returns></returns> | |||
[HttpPost] | |||
[ValidateAntiForgeryToken] | |||
[AjaxOnly] | |||
public ActionResult UploadForm(string keyValue, string strEntity) | |||
{ | |||
Practice_AssessEntity entity = strEntity.ToObject<Practice_AssessEntity>(); | |||
if (!string.IsNullOrEmpty(keyValue)) | |||
{ | |||
var entity2 = practiceAssessIBLL.GetPractice_AssessEntity(keyValue); | |||
if (!string.IsNullOrEmpty(entity.attach_file)) | |||
{ | |||
entity.updatetime = entity2.updatetime + 1;//已提交 | |||
entity.upfileDate = DateTime.Now; | |||
} | |||
} | |||
else | |||
{ | |||
entity.Create(); | |||
if (!string.IsNullOrEmpty(entity.attach_file)) | |||
{ | |||
entity.updatetime = 1;//已提交 | |||
entity.upfileDate = DateTime.Now; | |||
} | |||
} | |||
practiceAssessIBLL.SaveEntity(keyValue, entity); | |||
return Success("提交成功!"); | |||
} | |||
#endregion | |||
} | |||
@@ -3,6 +3,7 @@ using System.Data; | |||
using Learun.Application.TwoDevelopment.EducationalAdministration; | |||
using System.Web.Mvc; | |||
using System.Collections.Generic; | |||
using System; | |||
namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||
{ | |||
@@ -37,6 +38,17 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||
{ | |||
return View(); | |||
} | |||
/// <summary> | |||
/// 上传页面 | |||
/// <summary> | |||
/// <returns></returns> | |||
[HttpGet] | |||
public ActionResult UploadForm() | |||
{ | |||
return View(); | |||
} | |||
#endregion | |||
#region 获取数据 | |||
@@ -111,6 +123,42 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||
} | |||
return Success("保存成功!"); | |||
} | |||
/// <summary> | |||
/// 保存实体数据(新增、修改) | |||
/// <param name="keyValue">主键</param> | |||
/// <summary> | |||
/// <returns></returns> | |||
[HttpPost] | |||
[ValidateAntiForgeryToken] | |||
[AjaxOnly] | |||
public ActionResult UploadForm(string keyValue, string strEntity) | |||
{ | |||
Practice_MaterialEntity entity = strEntity.ToObject<Practice_MaterialEntity>(); | |||
if (!string.IsNullOrEmpty(keyValue)) | |||
{ | |||
var entity2 = practiceMaterialIBLL.GetPractice_MaterialEntity(keyValue); | |||
if (!string.IsNullOrEmpty(entity.attach_file)) | |||
{ | |||
entity.updatetime = entity2.updatetime + 1;//已提交 | |||
entity.upfileDate = DateTime.Now; | |||
} | |||
} | |||
else | |||
{ | |||
entity.Create(); | |||
if (!string.IsNullOrEmpty(entity.attach_file)) | |||
{ | |||
entity.updatetime = 1;//已提交 | |||
entity.upfileDate = DateTime.Now; | |||
} | |||
} | |||
practiceMaterialIBLL.SaveEntity(keyValue, entity); | |||
return Success("提交成功!"); | |||
} | |||
#endregion | |||
} | |||
@@ -3,6 +3,7 @@ using System.Data; | |||
using Learun.Application.TwoDevelopment.EducationalAdministration; | |||
using System.Web.Mvc; | |||
using System.Collections.Generic; | |||
using System; | |||
namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||
{ | |||
@@ -37,6 +38,17 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||
{ | |||
return View(); | |||
} | |||
/// <summary> | |||
/// 上传页面 | |||
/// <summary> | |||
/// <returns></returns> | |||
[HttpGet] | |||
public ActionResult UploadForm() | |||
{ | |||
return View(); | |||
} | |||
#endregion | |||
#region 获取数据 | |||
@@ -111,6 +123,42 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||
} | |||
return Success("保存成功!"); | |||
} | |||
/// <summary> | |||
/// 保存实体数据(新增、修改) | |||
/// <param name="keyValue">主键</param> | |||
/// <summary> | |||
/// <returns></returns> | |||
[HttpPost] | |||
[ValidateAntiForgeryToken] | |||
[AjaxOnly] | |||
public ActionResult UploadForm(string keyValue, string strEntity) | |||
{ | |||
Practice_Unit_VisitEntity entity = strEntity.ToObject<Practice_Unit_VisitEntity>(); | |||
if (!string.IsNullOrEmpty(keyValue)) | |||
{ | |||
var entity2 = practiceUnitVisitIBLL.GetPractice_Unit_VisitEntity(keyValue); | |||
if (!string.IsNullOrEmpty(entity.attach_file)) | |||
{ | |||
entity.updatetime = entity2.updatetime + 1;//已提交 | |||
entity.upfileDate = DateTime.Now; | |||
} | |||
} | |||
else | |||
{ | |||
entity.Create(); | |||
if (!string.IsNullOrEmpty(entity.attach_file)) | |||
{ | |||
entity.updatetime = 1;//已提交 | |||
entity.upfileDate = DateTime.Now; | |||
} | |||
} | |||
practiceUnitVisitIBLL.SaveEntity(keyValue, entity); | |||
return Success("提交成功!"); | |||
} | |||
#endregion | |||
} | |||
@@ -0,0 +1,15 @@ | |||
@{ | |||
ViewBag.Title = "毕业条件管理"; | |||
Layout = "~/Views/Shared/_Form.cshtml"; | |||
} | |||
<div class="lr-form-wrap" id="form"> | |||
<div class="col-xs-12 lr-form-item" data-table="StuGraduateCondition" > | |||
<div class="lr-form-item-title">条件名称<font face="宋体">*</font></div> | |||
<input id="Name" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="StuGraduateCondition" > | |||
<div class="lr-form-item-title">启用<font face="宋体">*</font></div> | |||
<div id="EnabledMark" isvalid="yes" checkexpession="NotNull" ></div> | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/GraduateCondition/Form.js") |
@@ -0,0 +1,52 @@ | |||
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) | |||
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2023-02-04 15:41 | |||
* 描 述:毕业条件管理 | |||
*/ | |||
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 () { | |||
$('#EnabledMark').lrDataItemSelect({ code: 'EnableStatus' }); | |||
$('#EnabledMark').lrselectSet("1"); | |||
}, | |||
initData: function () { | |||
if (!!keyValue) { | |||
$.lrSetForm(top.$.rootUrl + '/EducationalAdministration/GraduateCondition/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/GraduateCondition/SaveForm?keyValue=' + keyValue, postData, function (res) { | |||
// 保存成功后才回调 | |||
if (!!callBack) { | |||
callBack(); | |||
} | |||
}); | |||
}; | |||
page.init(); | |||
} |
@@ -0,0 +1,41 @@ | |||
@{ | |||
ViewBag.Title = "毕业条件管理"; | |||
Layout = "~/Views/Shared/_Index.cshtml"; | |||
} | |||
<div class="lr-layout " > | |||
<div class="lr-layout-center"> | |||
<div class="lr-layout-wrap lr-layout-wrap-notitle "> | |||
<div class="lr-layout-tool"> | |||
<div class="lr-layout-tool-left"> | |||
<div class="lr-layout-tool-item"> | |||
<div id="multiple_condition_query"> | |||
<div class="lr-query-formcontent"> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">条件名称</div> | |||
<input id="Name" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">启用</div> | |||
<div id="EnabledMark"></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> 新增</a> | |||
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 编辑</a> | |||
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i> 删除</a> | |||
<a id="lr_print" class="btn btn-default"><i class="fa fa-print"></i> 打印</a> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="lr-layout-body" id="gridtable"></div> | |||
</div> | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/GraduateCondition/Index.js") |
@@ -0,0 +1,102 @@ | |||
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) | |||
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2023-02-04 15:41 | |||
* 描 述:毕业条件管理 | |||
*/ | |||
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); | |||
$('#EnabledMark').lrDataItemSelect({ code: 'EnableStatus' }); | |||
// 刷新 | |||
$('#lr_refresh').on('click', function () { | |||
location.reload(); | |||
}); | |||
// 新增 | |||
$('#lr_add').on('click', function () { | |||
learun.layerForm({ | |||
id: 'form', | |||
title: '新增', | |||
url: top.$.rootUrl + '/EducationalAdministration/GraduateCondition/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)) { | |||
learun.layerForm({ | |||
id: 'form', | |||
title: '编辑', | |||
url: top.$.rootUrl + '/EducationalAdministration/GraduateCondition/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/GraduateCondition/DeleteForm', { keyValue: keyValue}, function () { | |||
refreshGirdData(); | |||
}); | |||
} | |||
}); | |||
} | |||
}); | |||
// 打印 | |||
$('#lr_print').on('click', function () { | |||
$('#gridtable').jqprintTable(); | |||
}); | |||
}, | |||
// 初始化列表 | |||
initGird: function () { | |||
$('#gridtable').lrAuthorizeJfGrid({ | |||
url: top.$.rootUrl + '/EducationalAdministration/GraduateCondition/GetPageList', | |||
headData: [ | |||
{ label: "条件名称", name: "Name", width: 100, align: "left"}, | |||
{ label: "启用", name: "EnabledMark", width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op,$cell) { | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
code: 'EnableStatus', | |||
callback: function (_data) { | |||
callback(_data.text); | |||
} | |||
}); | |||
}}, | |||
], | |||
mainId:'Id', | |||
isPage: true | |||
}); | |||
page.search(); | |||
}, | |||
search: function (param) { | |||
param = param || {}; | |||
$('#gridtable').jfGridSet('reload',{ queryJson: JSON.stringify(param) }); | |||
} | |||
}; | |||
refreshGirdData = function () { | |||
$('#gridtable').jfGridSet('reload'); | |||
}; | |||
page.init(); | |||
} |
@@ -31,6 +31,7 @@ | |||
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 修改</a> | |||
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i> 删除</a> | |||
</div> | |||
<a id="lr_upload" class="btn btn-default"><i class="fa fa-archive-o"></i> 上传文件</a> | |||
</div> | |||
</div> | |||
<div class="lr-layout-body" id="gridtable"></div> | |||
@@ -62,6 +62,23 @@ var bootstrap = function ($, learun) { | |||
}); | |||
} | |||
}); | |||
// 上传 | |||
$('#lr_upload').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('ID'); | |||
if (learun.checkrow(keyValue)) { | |||
learun.layerForm({ | |||
id: 'formupload', | |||
title: '上传', | |||
url: top.$.rootUrl + '/EducationalAdministration/InternShipLog/UploadForm?keyValue=' + keyValue, | |||
width: 600, | |||
height: 400, | |||
callBack: function (id) { | |||
return top[id].acceptClick(refreshGirdData); | |||
} | |||
}); | |||
} | |||
}); | |||
}, | |||
// 初始化列表 | |||
initGird: function () { | |||
@@ -0,0 +1,20 @@ | |||
@{ | |||
ViewBag.Title = "文件上传"; | |||
Layout = "~/Views/Shared/_Form.cshtml"; | |||
} | |||
<div class="lr-form-wrap"> | |||
<div class="col-xs-12 lr-form-item" data-table="attach_file"> | |||
<div class="lr-form-item-title">文件上传</div> | |||
<div id="attach_file"></div> | |||
</div> | |||
<div class="col-xs-12 lr-form-item" data-table="fileremark"> | |||
<div class="lr-form-item-title">说明</div> | |||
<textarea id="fileremark" class="form-control" style="height:100px;"></textarea> | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/InternShipLog/UploadForm.js") |
@@ -0,0 +1,57 @@ | |||
/* * 版 本 Learun-ADMS-Ultimate V7.0.0 力软敏捷开发框架(http://www.learun.cn) | |||
* Copyright (c) 2013-2018 上海力软信息技术有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2019-09-24 15:35 | |||
* 描 述:绩效跟踪 | |||
*/ | |||
var acceptClick; | |||
var keyValue = request('keyValue'); | |||
var ParentId = request('ParentId'); | |||
var bootstrap = function ($, learun) { | |||
"use strict"; | |||
var page = { | |||
init: function () { | |||
$('.lr-form-wrap').lrscroll(); | |||
page.bind(); | |||
page.initData(); | |||
}, | |||
bind: function () { | |||
//$('#MPStatus').lrDataItemSelect({ code: 'SubmissionState' }); | |||
$('#attach_file').lrUploader(); | |||
}, | |||
initData: function () { | |||
if (!!keyValue) { | |||
$.lrSetForm(top.$.rootUrl + '/EducationalAdministration/InternShipLog/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 entity = $('body').lrGetFormData(); | |||
if (ParentId) { | |||
entity.ParentId = ParentId; | |||
} | |||
var postData = { | |||
strEntity: JSON.stringify(entity) | |||
}; | |||
$.lrSaveForm(top.$.rootUrl + '/EducationalAdministration/InternShipLog/UploadForm?keyValue=' + keyValue, postData, function (res) { | |||
// 保存成功后才回调 | |||
if (!!callBack) { | |||
callBack(); | |||
} | |||
}); | |||
}; | |||
page.init(); | |||
} |
@@ -31,6 +31,7 @@ | |||
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 修改</a> | |||
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i> 删除</a> | |||
</div> | |||
<a id="lr_upload" class="btn btn-default"><i class="fa fa-archive-o"></i> 上传文件</a> | |||
</div> | |||
</div> | |||
<div class="lr-layout-body" id="gridtable"></div> | |||
@@ -62,6 +62,22 @@ var bootstrap = function ($, learun) { | |||
}); | |||
} | |||
}); | |||
// 上传 | |||
$('#lr_upload').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('ID'); | |||
if (learun.checkrow(keyValue)) { | |||
learun.layerForm({ | |||
id: 'formupload', | |||
title: '上传', | |||
url: top.$.rootUrl + '/EducationalAdministration/InternShipSummary/UploadForm?keyValue=' + keyValue, | |||
width: 600, | |||
height: 400, | |||
callBack: function (id) { | |||
return top[id].acceptClick(refreshGirdData); | |||
} | |||
}); | |||
} | |||
}); | |||
}, | |||
// 初始化列表 | |||
initGird: function () { | |||
@@ -0,0 +1,20 @@ | |||
@{ | |||
ViewBag.Title = "文件上传"; | |||
Layout = "~/Views/Shared/_Form.cshtml"; | |||
} | |||
<div class="lr-form-wrap"> | |||
<div class="col-xs-12 lr-form-item" data-table="attach_file"> | |||
<div class="lr-form-item-title">文件上传</div> | |||
<div id="attach_file"></div> | |||
</div> | |||
<div class="col-xs-12 lr-form-item" data-table="fileremark"> | |||
<div class="lr-form-item-title">说明</div> | |||
<textarea id="fileremark" class="form-control" style="height:100px;"></textarea> | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/InternShipSummary/UploadForm.js") |
@@ -0,0 +1,57 @@ | |||
/* * 版 本 Learun-ADMS-Ultimate V7.0.0 力软敏捷开发框架(http://www.learun.cn) | |||
* Copyright (c) 2013-2018 上海力软信息技术有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2019-09-24 15:35 | |||
* 描 述:绩效跟踪 | |||
*/ | |||
var acceptClick; | |||
var keyValue = request('keyValue'); | |||
var ParentId = request('ParentId'); | |||
var bootstrap = function ($, learun) { | |||
"use strict"; | |||
var page = { | |||
init: function () { | |||
$('.lr-form-wrap').lrscroll(); | |||
page.bind(); | |||
page.initData(); | |||
}, | |||
bind: function () { | |||
//$('#MPStatus').lrDataItemSelect({ code: 'SubmissionState' }); | |||
$('#attach_file').lrUploader(); | |||
}, | |||
initData: function () { | |||
if (!!keyValue) { | |||
$.lrSetForm(top.$.rootUrl + '/EducationalAdministration/InternShipSummary/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 entity = $('body').lrGetFormData(); | |||
if (ParentId) { | |||
entity.ParentId = ParentId; | |||
} | |||
var postData = { | |||
strEntity: JSON.stringify(entity) | |||
}; | |||
$.lrSaveForm(top.$.rootUrl + '/EducationalAdministration/InternShipSummary/UploadForm?keyValue=' + keyValue, postData, function (res) { | |||
// 保存成功后才回调 | |||
if (!!callBack) { | |||
callBack(); | |||
} | |||
}); | |||
}; | |||
page.init(); | |||
} |
@@ -28,13 +28,14 @@ | |||
</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> | |||
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh">刷新</i></a> | |||
</div> | |||
<div class=" btn-group btn-group-sm" learun-authorize="yes"> | |||
<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i> 录入</a> | |||
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 修改</a> | |||
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i> 删除</a> | |||
</div> | |||
<a id="lr_upload" class="btn btn-default"><i class="fa fa-archive-o"></i> 上传文件</a> | |||
</div> | |||
</div> | |||
<div class="lr-layout-body" id="gridtable"></div> | |||
@@ -62,6 +62,24 @@ var bootstrap = function ($, learun) { | |||
}); | |||
} | |||
}); | |||
// 上传 | |||
$('#lr_upload').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('ID'); | |||
if (learun.checkrow(keyValue)) { | |||
learun.layerForm({ | |||
id: 'formupload', | |||
title: '上传', | |||
url: top.$.rootUrl + '/EducationalAdministration/InternshipPlanPost/UploadForm?keyValue=' + keyValue, | |||
width: 600, | |||
height: 400, | |||
callBack: function (id) { | |||
return top[id].acceptClick(refreshGirdData); | |||
} | |||
}); | |||
} | |||
}); | |||
}, | |||
// 初始化列表 | |||
initGird: function () { | |||
@@ -87,7 +105,15 @@ var bootstrap = function ($, learun) { | |||
}}, | |||
{ label: "内容简介", name: "ContentValidate", width: 100, align: "left"}, | |||
{ label: "岗位职责", name: "Responsibilities", width: 100, align: "left"}, | |||
{ label: "备注", name: "Remark", width: 100, align: "left"}, | |||
{ label: "备注", name: "Remark", width: 100, align: "left" }, | |||
{ | |||
label: "附件", name: "Remark", width: 100, align: "left", | |||
formatterAsync: function(callback, value, row, op, $cell) { | |||
if (value != null && value != "") { | |||
return "<a href='" + value + "'>下载</a>" | |||
} | |||
} | |||
}, | |||
], | |||
mainId:'ID', | |||
isPage: true | |||
@@ -0,0 +1,20 @@ | |||
@{ | |||
ViewBag.Title = "文件上传"; | |||
Layout = "~/Views/Shared/_Form.cshtml"; | |||
} | |||
<div class="lr-form-wrap"> | |||
<div class="col-xs-12 lr-form-item" data-table="attach_file"> | |||
<div class="lr-form-item-title">文件上传</div> | |||
<div id="attach_file"></div> | |||
</div> | |||
<div class="col-xs-12 lr-form-item" data-table="fileremark"> | |||
<div class="lr-form-item-title">说明</div> | |||
<textarea id="fileremark" class="form-control" style="height:100px;"></textarea> | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/InternshipPlanPost/UploadForm.js") |
@@ -0,0 +1,57 @@ | |||
/* * 版 本 Learun-ADMS-Ultimate V7.0.0 力软敏捷开发框架(http://www.learun.cn) | |||
* Copyright (c) 2013-2018 上海力软信息技术有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2019-09-24 15:35 | |||
* 描 述:绩效跟踪 | |||
*/ | |||
var acceptClick; | |||
var keyValue = request('keyValue'); | |||
var ParentId = request('ParentId'); | |||
var bootstrap = function ($, learun) { | |||
"use strict"; | |||
var page = { | |||
init: function () { | |||
$('.lr-form-wrap').lrscroll(); | |||
page.bind(); | |||
page.initData(); | |||
}, | |||
bind: function () { | |||
//$('#MPStatus').lrDataItemSelect({ code: 'SubmissionState' }); | |||
$('#attach_file').lrUploader(); | |||
}, | |||
initData: function () { | |||
if (!!keyValue) { | |||
$.lrSetForm(top.$.rootUrl + '/EducationalAdministration/InternshipPlanPost/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 entity = $('body').lrGetFormData(); | |||
if (ParentId) { | |||
entity.ParentId = ParentId; | |||
} | |||
var postData = { | |||
strEntity: JSON.stringify(entity) | |||
}; | |||
$.lrSaveForm(top.$.rootUrl + '/EducationalAdministration/InternshipPlanPost/UploadForm?keyValue=' + keyValue, postData, function (res) { | |||
// 保存成功后才回调 | |||
if (!!callBack) { | |||
callBack(); | |||
} | |||
}); | |||
}; | |||
page.init(); | |||
} |
@@ -27,10 +27,11 @@ | |||
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a> | |||
</div> | |||
<div class=" btn-group btn-group-sm" learun-authorize="yes"> | |||
<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i> 新增</a> | |||
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 编辑</a> | |||
<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i> 新增</a> | |||
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 编辑</a> | |||
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i> 删除</a> | |||
</div> | |||
<a id="lr_upload" class="btn btn-default"><i class="fa fa-archive-o"></i> 上传文件</a> | |||
</div> | |||
</div> | |||
<div class="lr-layout-body" id="gridtable"></div> | |||
@@ -62,6 +62,23 @@ var bootstrap = function ($, learun) { | |||
}); | |||
} | |||
}); | |||
// 上传 | |||
$('#lr_upload').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('ID'); | |||
if (learun.checkrow(keyValue)) { | |||
learun.layerForm({ | |||
id: 'formupload', | |||
title: '上传', | |||
url: top.$.rootUrl + '/EducationalAdministration/PracticeAppraisal/UploadForm?keyValue=' + keyValue, | |||
width: 600, | |||
height: 400, | |||
callBack: function (id) { | |||
return top[id].acceptClick(refreshGirdData); | |||
} | |||
}); | |||
} | |||
}); | |||
}, | |||
// 初始化列表 | |||
initGird: function () { | |||
@@ -0,0 +1,20 @@ | |||
@{ | |||
ViewBag.Title = "文件上传"; | |||
Layout = "~/Views/Shared/_Form.cshtml"; | |||
} | |||
<div class="lr-form-wrap"> | |||
<div class="col-xs-12 lr-form-item" data-table="attach_file"> | |||
<div class="lr-form-item-title">文件上传</div> | |||
<div id="attach_file"></div> | |||
</div> | |||
<div class="col-xs-12 lr-form-item" data-table="fileremark"> | |||
<div class="lr-form-item-title">说明</div> | |||
<textarea id="fileremark" class="form-control" style="height:100px;"></textarea> | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/PracticeAppraisal/UploadForm.js") |
@@ -0,0 +1,57 @@ | |||
/* * 版 本 Learun-ADMS-Ultimate V7.0.0 力软敏捷开发框架(http://www.learun.cn) | |||
* Copyright (c) 2013-2018 上海力软信息技术有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2019-09-24 15:35 | |||
* 描 述:绩效跟踪 | |||
*/ | |||
var acceptClick; | |||
var keyValue = request('keyValue'); | |||
var ParentId = request('ParentId'); | |||
var bootstrap = function ($, learun) { | |||
"use strict"; | |||
var page = { | |||
init: function () { | |||
$('.lr-form-wrap').lrscroll(); | |||
page.bind(); | |||
page.initData(); | |||
}, | |||
bind: function () { | |||
//$('#MPStatus').lrDataItemSelect({ code: 'SubmissionState' }); | |||
$('#attach_file').lrUploader(); | |||
}, | |||
initData: function () { | |||
if (!!keyValue) { | |||
$.lrSetForm(top.$.rootUrl + '/EducationalAdministration/PracticeAppraisal/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 entity = $('body').lrGetFormData(); | |||
if (ParentId) { | |||
entity.ParentId = ParentId; | |||
} | |||
var postData = { | |||
strEntity: JSON.stringify(entity) | |||
}; | |||
$.lrSaveForm(top.$.rootUrl + '/EducationalAdministration/PracticeAppraisal/UploadForm?keyValue=' + keyValue, postData, function (res) { | |||
// 保存成功后才回调 | |||
if (!!callBack) { | |||
callBack(); | |||
} | |||
}); | |||
}; | |||
page.init(); | |||
} |
@@ -3,9 +3,10 @@ | |||
Layout = "~/Views/Shared/_Form.cshtml"; | |||
} | |||
<div class="lr-form-wrap" id="form"> | |||
<div class="col-xs-6 lr-form-item" data-table="Practice_Assess" > | |||
<div class="col-xs-6 lr-form-item" data-table="Practice_Assess"> | |||
<div class="lr-form-item-title">实习学生<font face="宋体">*</font></div> | |||
<div id="StuId" isvalid="yes" checkexpession="NotNull" ></div> | |||
@*<div id="StuId" isvalid="yes" checkexpession="NotNull"></div>*@ | |||
<input id="StuId" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="Practice_Assess" > | |||
<div class="lr-form-item-title">实习注册号</div> | |||
@@ -15,7 +15,7 @@ var bootstrap = function ($, learun) { | |||
page.initData(); | |||
}, | |||
bind: function () { | |||
$('#StuId').lrDataSourceSelect({ code: 'Practice_StuInfo',value: 'stuid',text: 'stuname' }); | |||
//$('#StuId').lrDataSourceSelect({ code: 'Practice_StuInfo',value: 'stuid',text: 'stuname' }); | |||
$('#InternId').lrDataSourceSelect({ code: 'PracticeBase',value: 'id',text: 'name' }); | |||
}, | |||
initData: function () { | |||
@@ -35,10 +35,11 @@ | |||
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a> | |||
</div> | |||
<div class=" btn-group btn-group-sm" learun-authorize="yes"> | |||
<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i> 新增</a> | |||
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 编辑</a> | |||
<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i> 新增</a> | |||
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 编辑</a> | |||
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i> 删除</a> | |||
</div> | |||
<a id="lr_upload" class="btn btn-default"><i class="fa fa-archive-o"></i> 上传文件</a> | |||
</div> | |||
</div> | |||
<div class="lr-layout-body" id="gridtable"></div> | |||
@@ -63,23 +63,42 @@ var bootstrap = function ($, learun) { | |||
}); | |||
} | |||
}); | |||
// 上传 | |||
$('#lr_upload').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('ID'); | |||
if (learun.checkrow(keyValue)) { | |||
learun.layerForm({ | |||
id: 'formupload', | |||
title: '上传', | |||
url: top.$.rootUrl + '/EducationalAdministration/PracticeAssess/UploadForm?keyValue=' + keyValue, | |||
width: 600, | |||
height: 400, | |||
callBack: function (id) { | |||
return top[id].acceptClick(refreshGirdData); | |||
} | |||
}); | |||
} | |||
}); | |||
}, | |||
// 初始化列表 | |||
initGird: function () { | |||
$('#gridtable').lrAuthorizeJfGrid({ | |||
url: top.$.rootUrl + '/EducationalAdministration/PracticeAssess/GetPageList', | |||
headData: [ | |||
{ label: "实习学生", name: "StuId", width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op,$cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'Practice_StuInfo', | |||
key: value, | |||
keyId: 'stuid', | |||
callback: function (_data) { | |||
callback(_data['stuname']); | |||
} | |||
}); | |||
}}, | |||
{ | |||
label: "实习学生", name: "StuId", width: 100, align: "left" | |||
//,formatterAsync: function (callback, value, row, op,$cell) { | |||
// learun.clientdata.getAsync('custmerData', { | |||
// url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'Practice_StuInfo', | |||
// key: value, | |||
// keyId: 'stuid', | |||
// callback: function (_data) { | |||
// callback(_data['stuname']); | |||
// } | |||
// }); | |||
//} | |||
}, | |||
{ label: "实习注册号", name: "InternId", width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op,$cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
@@ -0,0 +1,20 @@ | |||
@{ | |||
ViewBag.Title = "文件上传"; | |||
Layout = "~/Views/Shared/_Form.cshtml"; | |||
} | |||
<div class="lr-form-wrap"> | |||
<div class="col-xs-12 lr-form-item" data-table="attach_file"> | |||
<div class="lr-form-item-title">文件上传</div> | |||
<div id="attach_file"></div> | |||
</div> | |||
<div class="col-xs-12 lr-form-item" data-table="fileremark"> | |||
<div class="lr-form-item-title">说明</div> | |||
<textarea id="fileremark" class="form-control" style="height:100px;"></textarea> | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/PracticeAssess/UploadForm.js") |
@@ -0,0 +1,57 @@ | |||
/* * 版 本 Learun-ADMS-Ultimate V7.0.0 力软敏捷开发框架(http://www.learun.cn) | |||
* Copyright (c) 2013-2018 上海力软信息技术有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2019-09-24 15:35 | |||
* 描 述:绩效跟踪 | |||
*/ | |||
var acceptClick; | |||
var keyValue = request('keyValue'); | |||
var ParentId = request('ParentId'); | |||
var bootstrap = function ($, learun) { | |||
"use strict"; | |||
var page = { | |||
init: function () { | |||
$('.lr-form-wrap').lrscroll(); | |||
page.bind(); | |||
page.initData(); | |||
}, | |||
bind: function () { | |||
//$('#MPStatus').lrDataItemSelect({ code: 'SubmissionState' }); | |||
$('#attach_file').lrUploader(); | |||
}, | |||
initData: function () { | |||
if (!!keyValue) { | |||
$.lrSetForm(top.$.rootUrl + '/EducationalAdministration/PracticeAssess/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 entity = $('body').lrGetFormData(); | |||
if (ParentId) { | |||
entity.ParentId = ParentId; | |||
} | |||
var postData = { | |||
strEntity: JSON.stringify(entity) | |||
}; | |||
$.lrSaveForm(top.$.rootUrl + '/EducationalAdministration/PracticeAssess/UploadForm?keyValue=' + keyValue, postData, function (res) { | |||
// 保存成功后才回调 | |||
if (!!callBack) { | |||
callBack(); | |||
} | |||
}); | |||
}; | |||
page.init(); | |||
} |
@@ -35,10 +35,11 @@ | |||
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a> | |||
</div> | |||
<div class=" btn-group btn-group-sm" learun-authorize="yes"> | |||
<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i> 新增</a> | |||
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 编辑</a> | |||
<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i> 新增</a> | |||
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 编辑</a> | |||
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i> 删除</a> | |||
</div> | |||
<a id="lr_upload" class="btn btn-default"><i class="fa fa-archive-o"></i> 上传文件</a> | |||
</div> | |||
</div> | |||
<div class="lr-layout-body" id="gridtable"></div> | |||
@@ -62,6 +62,23 @@ var bootstrap = function ($, learun) { | |||
}); | |||
} | |||
}); | |||
// 上传 | |||
$('#lr_upload').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('ID'); | |||
if (learun.checkrow(keyValue)) { | |||
learun.layerForm({ | |||
id: 'formupload', | |||
title: '上传', | |||
url: top.$.rootUrl + '/EducationalAdministration/PracticeMaterial/UploadForm?keyValue=' + keyValue, | |||
width: 600, | |||
height: 400, | |||
callBack: function (id) { | |||
return top[id].acceptClick(refreshGirdData); | |||
} | |||
}); | |||
} | |||
}); | |||
}, | |||
// 初始化列表 | |||
initGird: function () { | |||
@@ -0,0 +1,20 @@ | |||
@{ | |||
ViewBag.Title = "文件上传"; | |||
Layout = "~/Views/Shared/_Form.cshtml"; | |||
} | |||
<div class="lr-form-wrap"> | |||
<div class="col-xs-12 lr-form-item" data-table="attach_file"> | |||
<div class="lr-form-item-title">文件上传</div> | |||
<div id="attach_file"></div> | |||
</div> | |||
<div class="col-xs-12 lr-form-item" data-table="fileremark"> | |||
<div class="lr-form-item-title">说明</div> | |||
<textarea id="fileremark" class="form-control" style="height:100px;"></textarea> | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/PracticeMaterial/UploadForm.js") |
@@ -0,0 +1,57 @@ | |||
/* * 版 本 Learun-ADMS-Ultimate V7.0.0 力软敏捷开发框架(http://www.learun.cn) | |||
* Copyright (c) 2013-2018 上海力软信息技术有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2019-09-24 15:35 | |||
* 描 述:绩效跟踪 | |||
*/ | |||
var acceptClick; | |||
var keyValue = request('keyValue'); | |||
var ParentId = request('ParentId'); | |||
var bootstrap = function ($, learun) { | |||
"use strict"; | |||
var page = { | |||
init: function () { | |||
$('.lr-form-wrap').lrscroll(); | |||
page.bind(); | |||
page.initData(); | |||
}, | |||
bind: function () { | |||
//$('#MPStatus').lrDataItemSelect({ code: 'SubmissionState' }); | |||
$('#attach_file').lrUploader(); | |||
}, | |||
initData: function () { | |||
if (!!keyValue) { | |||
$.lrSetForm(top.$.rootUrl + '/EducationalAdministration/PracticeMaterial/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 entity = $('body').lrGetFormData(); | |||
if (ParentId) { | |||
entity.ParentId = ParentId; | |||
} | |||
var postData = { | |||
strEntity: JSON.stringify(entity) | |||
}; | |||
$.lrSaveForm(top.$.rootUrl + '/EducationalAdministration/PracticeMaterial/UploadForm?keyValue=' + keyValue, postData, function (res) { | |||
// 保存成功后才回调 | |||
if (!!callBack) { | |||
callBack(); | |||
} | |||
}); | |||
}; | |||
page.init(); | |||
} |
@@ -34,10 +34,11 @@ | |||
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a> | |||
</div> | |||
<div class=" btn-group btn-group-sm" learun-authorize="yes"> | |||
<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i> 新增</a> | |||
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 编辑</a> | |||
<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i> 新增</a> | |||
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 编辑</a> | |||
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i> 删除</a> | |||
</div> | |||
<a id="lr_upload" class="btn btn-default"><i class="fa fa-archive-o"></i> 上传文件</a> | |||
</div> | |||
</div> | |||
<div class="lr-layout-body" id="gridtable"></div> | |||
@@ -62,6 +62,23 @@ var bootstrap = function ($, learun) { | |||
}); | |||
} | |||
}); | |||
// 上传 | |||
$('#lr_upload').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('ID'); | |||
if (learun.checkrow(keyValue)) { | |||
learun.layerForm({ | |||
id: 'formupload', | |||
title: '上传', | |||
url: top.$.rootUrl + '/EducationalAdministration/PracticeUnitVisit/UploadForm?keyValue=' + keyValue, | |||
width: 600, | |||
height: 400, | |||
callBack: function (id) { | |||
return top[id].acceptClick(refreshGirdData); | |||
} | |||
}); | |||
} | |||
}); | |||
}, | |||
// 初始化列表 | |||
initGird: function () { | |||
@@ -0,0 +1,20 @@ | |||
@{ | |||
ViewBag.Title = "文件上传"; | |||
Layout = "~/Views/Shared/_Form.cshtml"; | |||
} | |||
<div class="lr-form-wrap"> | |||
<div class="col-xs-12 lr-form-item" data-table="attach_file"> | |||
<div class="lr-form-item-title">文件上传</div> | |||
<div id="attach_file"></div> | |||
</div> | |||
<div class="col-xs-12 lr-form-item" data-table="fileremark"> | |||
<div class="lr-form-item-title">说明</div> | |||
<textarea id="fileremark" class="form-control" style="height:100px;"></textarea> | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/PracticeUnitVisit/UploadForm.js") |
@@ -0,0 +1,57 @@ | |||
/* * 版 本 Learun-ADMS-Ultimate V7.0.0 力软敏捷开发框架(http://www.learun.cn) | |||
* Copyright (c) 2013-2018 上海力软信息技术有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2019-09-24 15:35 | |||
* 描 述:绩效跟踪 | |||
*/ | |||
var acceptClick; | |||
var keyValue = request('keyValue'); | |||
var ParentId = request('ParentId'); | |||
var bootstrap = function ($, learun) { | |||
"use strict"; | |||
var page = { | |||
init: function () { | |||
$('.lr-form-wrap').lrscroll(); | |||
page.bind(); | |||
page.initData(); | |||
}, | |||
bind: function () { | |||
//$('#MPStatus').lrDataItemSelect({ code: 'SubmissionState' }); | |||
$('#attach_file').lrUploader(); | |||
}, | |||
initData: function () { | |||
if (!!keyValue) { | |||
$.lrSetForm(top.$.rootUrl + '/EducationalAdministration/PracticeUnitVisit/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 entity = $('body').lrGetFormData(); | |||
if (ParentId) { | |||
entity.ParentId = ParentId; | |||
} | |||
var postData = { | |||
strEntity: JSON.stringify(entity) | |||
}; | |||
$.lrSaveForm(top.$.rootUrl + '/EducationalAdministration/PracticeUnitVisit/UploadForm?keyValue=' + keyValue, postData, function (res) { | |||
// 保存成功后才回调 | |||
if (!!callBack) { | |||
callBack(); | |||
} | |||
}); | |||
}; | |||
page.init(); | |||
} |
@@ -4,7 +4,7 @@ | |||
} | |||
<div class="lr-form-wrap" id="form"> | |||
<div class="col-xs-6 lr-form-item" data-table="Recruit_Info" > | |||
<div class="lr-form-item-title">企业id<font face="宋体">*</font></div> | |||
<div class="lr-form-item-title">企业<font face="宋体">*</font></div> | |||
<div id="EnterpriseId" isvalid="yes" checkexpession="NotNull" ></div> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="Recruit_Info" > | |||
@@ -10,10 +10,10 @@ | |||
<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="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">系部</div> | |||
<div id="DeptNo"></div> | |||
</div> | |||
</div>*@ | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">专业</div> | |||
<div id="MajorNo"></div> | |||
@@ -10,27 +10,27 @@ var bootstrap = function ($, learun) { | |||
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) { | |||
page.search(queryJson); | |||
}, 320, 400); | |||
$('#DeptNo').lrselect({ | |||
allowSearch: true, | |||
value: "deptno", | |||
text: "deptname", | |||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdDeptInfo', | |||
select: function (item) { | |||
if (item) { | |||
$('#MajorNo').lrselectRefresh({ | |||
allowSearch: true, | |||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | |||
param: { strWhere: "DeptNo='" + item.deptno + "' AND CheckMark=1" } | |||
}); | |||
} else { | |||
$('#MajorNo').lrselectRefresh({ | |||
allowSearch: true, | |||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | |||
param: { strWhere: "1=1 AND CheckMark=1" } | |||
}); | |||
} | |||
} | |||
}); | |||
//$('#DeptNo').lrselect({ | |||
// allowSearch: true, | |||
// value: "deptno", | |||
// text: "deptname", | |||
// url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdDeptInfo', | |||
// select: function (item) { | |||
// if (item) { | |||
// $('#MajorNo').lrselectRefresh({ | |||
// allowSearch: true, | |||
// url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | |||
// param: { strWhere: "DeptNo='" + item.deptno + "' AND CheckMark=1" } | |||
// }); | |||
// } else { | |||
// $('#MajorNo').lrselectRefresh({ | |||
// allowSearch: true, | |||
// url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | |||
// param: { strWhere: "1=1 AND CheckMark=1" } | |||
// }); | |||
// } | |||
// } | |||
//}); | |||
$('#MajorNo').lrselect({ | |||
allowSearch: true, | |||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | |||
@@ -10,10 +10,10 @@ | |||
<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="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">系部</div> | |||
<div id="DeptNo"></div> | |||
</div> | |||
</div>*@ | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">专业</div> | |||
<div id="MajorNo"></div> | |||
@@ -10,28 +10,28 @@ var bootstrap = function ($, learun) { | |||
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) { | |||
page.search(queryJson); | |||
}, 320, 400); | |||
$('#DeptNo').lrselect({ | |||
allowSearch: true, | |||
value: "deptno", | |||
text: "deptname", | |||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdDeptInfo', | |||
select: function (item) { | |||
if (item) { | |||
$('#MajorNo').lrselectRefresh({ | |||
allowSearch: true, | |||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | |||
param: { strWhere: "DeptNo='" + item.deptno + "' AND CheckMark=1" } | |||
}); | |||
} else { | |||
$('#MajorNo').lrselectRefresh({ | |||
allowSearch: true, | |||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | |||
param: { strWhere: "1=1 AND CheckMark=1" } | |||
}); | |||
} | |||
//$('#DeptNo').lrselect({ | |||
// allowSearch: true, | |||
// value: "deptno", | |||
// text: "deptname", | |||
// url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdDeptInfo', | |||
// select: function (item) { | |||
// if (item) { | |||
// $('#MajorNo').lrselectRefresh({ | |||
// allowSearch: true, | |||
// url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | |||
// param: { strWhere: "DeptNo='" + item.deptno + "' AND CheckMark=1" } | |||
// }); | |||
// } else { | |||
// $('#MajorNo').lrselectRefresh({ | |||
// allowSearch: true, | |||
// url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | |||
// param: { strWhere: "1=1 AND CheckMark=1" } | |||
// }); | |||
// } | |||
} | |||
}); | |||
// } | |||
//}); | |||
$('#MajorNo').lrselect({ | |||
allowSearch: true, | |||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | |||
@@ -88,9 +88,9 @@ | |||
<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 class="lr-layout-tool-item"> | |||
<div id="DeptNo" type="lrselect" class="lr-select"></div> | |||
</div> | |||
</div>*@ | |||
<div class="lr-layout-tool-item"> | |||
<div id="MajorNo" type="lrselect" class="lr-select"></div> | |||
</div> | |||
@@ -21,7 +21,7 @@ var bootstrap = function ($, learun) { | |||
// 查询 | |||
$('#btn_Search').on('click', function () { | |||
var p = {}; | |||
p.DeptNo = $('#DeptNo').lrselectGet(); | |||
//p.DeptNo = $('#DeptNo').lrselectGet(); | |||
p.MajorNo = $('#MajorNo').lrselectGet(); | |||
p.ClassNo = $('#ClassNo').lrselectGet(); | |||
p.StuNo = $('#StuNo').lrselectGet(); | |||
@@ -70,19 +70,19 @@ var bootstrap = function ($, learun) { | |||
}, | |||
bindSelect: function () { | |||
$('#DeptNo').lrDataSourceSelect({ | |||
placeholder: "请选择系", code: 'CdDeptInfo', value: 'deptno', text: 'deptname', select: function (val) { | |||
var deptno = ""; | |||
if (val) { | |||
deptno = val.deptno; | |||
} | |||
$('#MajorNo').lrselectRefresh({ | |||
url: top.$.rootUrl + '/EducationalAdministration/CdMajor/GetListByDeptNo?DeptNo=' + deptno, | |||
text: "MajorName", | |||
value: "MajorNo" | |||
}) | |||
} | |||
}); | |||
//$('#DeptNo').lrDataSourceSelect({ | |||
// placeholder: "请选择系", code: 'CdDeptInfo', value: 'deptno', text: 'deptname', select: function (val) { | |||
// var deptno = ""; | |||
// if (val) { | |||
// deptno = val.deptno; | |||
// } | |||
// $('#MajorNo').lrselectRefresh({ | |||
// url: top.$.rootUrl + '/EducationalAdministration/CdMajor/GetListByDeptNo?DeptNo=' + deptno, | |||
// text: "MajorName", | |||
// value: "MajorNo" | |||
// }) | |||
// } | |||
//}); | |||
$('#MajorNo').lrDataSourceSelect({ | |||
placeholder: "请选择专业", code: 'CdMajorInfo', value: 'majorno', text: 'majorname', select: | |||
function (val) { | |||
@@ -88,9 +88,9 @@ | |||
<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 class="lr-layout-tool-item"> | |||
<div id="ClassNo" type="lrselect" class="lr-select"></div> | |||
</div> | |||
</div>*@ | |||
<div class="lr-layout-tool-item"> | |||
<div id="StuNo" type="lrselect" class="lr-select"></div> | |||
</div> | |||
@@ -22,7 +22,7 @@ var bootstrap = function ($, learun) { | |||
var p = {}; | |||
p.AcademicYearNo = $('#AcademicYearNo').lrselectGet(); | |||
p.Semester = $('#Semester').lrselectGet(); | |||
p.ClassNo = $('#ClassNo').lrselectGet(); | |||
//p.ClassNo = $('#ClassNo').lrselectGet(); | |||
p.TableName = $('#TableName').lrselectGet(); | |||
p.StuNo = $('#StuNo').lrselectGet(); | |||
if (p.AcademicYearNo == null || p.AcademicYearNo == "") { | |||
@@ -33,10 +33,10 @@ var bootstrap = function ($, learun) { | |||
learun.alert.warning("请选择学期!"); | |||
return; | |||
} | |||
if (p.ClassNo == null || p.ClassNo == "") { | |||
learun.alert.warning("请选择班级!"); | |||
return; | |||
} | |||
//if (p.ClassNo == null || p.ClassNo == "") { | |||
// learun.alert.warning("请选择班级!"); | |||
// return; | |||
//} | |||
$.lrSetFormWithParam(top.$.rootUrl + '/EducationalAdministration/StuScore/GetLessonNoData', p, | |||
function (data) { | |||
var temparr = []; | |||
@@ -9,7 +9,7 @@ | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">部门编号<font face="宋体">*</font></div> | |||
<input id="F_EnCode" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
<input id="F_EnCode" type="text" class="form-control" isvalid="yes" checkexpession="Num" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">部门简称</div> | |||
@@ -27,7 +27,7 @@ namespace Learun.Application.Web.Areas.LogisticsManagement.Controllers | |||
[HttpGet] | |||
public ActionResult Index() | |||
{ | |||
return View(); | |||
return View(); | |||
} | |||
/// <summary> | |||
/// 表单页 | |||
@@ -36,7 +36,7 @@ namespace Learun.Application.Web.Areas.LogisticsManagement.Controllers | |||
[HttpGet] | |||
public ActionResult Form() | |||
{ | |||
return View(); | |||
return View(); | |||
} | |||
/// <summary> | |||
/// 网络故障报修统计 | |||
@@ -82,8 +82,9 @@ namespace Learun.Application.Web.Areas.LogisticsManagement.Controllers | |||
[AjaxOnly] | |||
public ActionResult GetFormData(string keyValue) | |||
{ | |||
var Logistics_Lault_RepairData = logisticsLaultRepairIBLL.GetLogistics_Lault_RepairEntity( keyValue ); | |||
var jsonData = new { | |||
var Logistics_Lault_RepairData = logisticsLaultRepairIBLL.GetLogistics_Lault_RepairEntity(keyValue); | |||
var jsonData = new | |||
{ | |||
Logistics_Lault_Repair = Logistics_Lault_RepairData, | |||
}; | |||
return Success(jsonData); | |||
@@ -101,7 +102,7 @@ namespace Learun.Application.Web.Areas.LogisticsManagement.Controllers | |||
Device = x.FirstOrDefault()?.Device,//设备名称 | |||
Maintainer = x.FirstOrDefault()?.Maintainer, | |||
TotalMoney = x.Sum(s => s.TotalMoney), | |||
RepairCount = x.Count(s => s.Repair_State != null && s.Repair_State > 0) | |||
RepairCount = x.Count(s => !string.IsNullOrEmpty(s.Repair_State)) | |||
}).OrderBy(x => x.Maintainer).ThenBy(x => x.TotalMoney).ThenBy(x => x.RepairCount); | |||
return Success(list); | |||
} | |||
@@ -136,7 +137,7 @@ namespace Learun.Application.Web.Areas.LogisticsManagement.Controllers | |||
public ActionResult SaveForm(string keyValue, string strEntity) | |||
{ | |||
Logistics_Lault_RepairEntity entity = strEntity.ToObject<Logistics_Lault_RepairEntity>(); | |||
logisticsLaultRepairIBLL.SaveEntity(keyValue,entity); | |||
logisticsLaultRepairIBLL.SaveEntity(keyValue, entity); | |||
if (string.IsNullOrEmpty(keyValue)) | |||
{ | |||
} | |||
@@ -0,0 +1,117 @@ | |||
using Learun.Util; | |||
using System.Data; | |||
using Learun.Application.TwoDevelopment.LogisticsManagement; | |||
using System.Web.Mvc; | |||
using System.Collections.Generic; | |||
namespace Learun.Application.Web.Areas.LogisticsManagement.Controllers | |||
{ | |||
/// <summary> | |||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
/// 创 建:超级管理员 | |||
/// 日 期:2023-02-05 22:37 | |||
/// 描 述:后勤维修统计 | |||
/// </summary> | |||
public class Logistics_Lault_Repair_StatisticsController : MvcControllerBase | |||
{ | |||
private Logistics_Lault_Repair_StatisticsIBLL logistics_Lault_Repair_StatisticsIBLL = new Logistics_Lault_Repair_StatisticsBLL(); | |||
#region 视图功能 | |||
/// <summary> | |||
/// 主页面 | |||
/// <summary> | |||
/// <returns></returns> | |||
[HttpGet] | |||
public ActionResult Index() | |||
{ | |||
return View(); | |||
} | |||
/// <summary> | |||
/// 表单页 | |||
/// <summary> | |||
/// <returns></returns> | |||
[HttpGet] | |||
public ActionResult Form() | |||
{ | |||
return View(); | |||
} | |||
#endregion | |||
#region 获取数据 | |||
/// <summary> | |||
/// 获取页面显示列表数据 | |||
/// </summary> | |||
/// <param name="pagination">分页参数</param> | |||
/// <param name="queryJson">查询参数</param> | |||
/// <returns></returns> | |||
[HttpGet] | |||
[AjaxOnly] | |||
public ActionResult GetPageList(string pagination, string queryJson) | |||
{ | |||
Pagination paginationobj = pagination.ToObject<Pagination>(); | |||
var data = logistics_Lault_Repair_StatisticsIBLL.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 Logistics_Lault_Repair_StatisticsData = logistics_Lault_Repair_StatisticsIBLL.GetLogistics_Lault_Repair_StatisticsEntity( keyValue ); | |||
var jsonData = new { | |||
Logistics_Lault_Repair_Statistics = Logistics_Lault_Repair_StatisticsData, | |||
}; | |||
return Success(jsonData); | |||
} | |||
#endregion | |||
#region 提交数据 | |||
/// <summary> | |||
/// 删除实体数据 | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
/// <returns></returns> | |||
[HttpPost] | |||
[AjaxOnly] | |||
public ActionResult DeleteForm(string keyValue) | |||
{ | |||
logistics_Lault_Repair_StatisticsIBLL.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) | |||
{ | |||
Logistics_Lault_Repair_StatisticsEntity entity = strEntity.ToObject<Logistics_Lault_Repair_StatisticsEntity>(); | |||
logistics_Lault_Repair_StatisticsIBLL.SaveEntity(keyValue,entity); | |||
if (string.IsNullOrEmpty(keyValue)) | |||
{ | |||
} | |||
return Success("保存成功!"); | |||
} | |||
#endregion | |||
} | |||
} |
@@ -27,7 +27,7 @@ namespace Learun.Application.Web.Areas.LogisticsManagement.Controllers | |||
[HttpGet] | |||
public ActionResult Index() | |||
{ | |||
return View(); | |||
return View(); | |||
} | |||
/// <summary> | |||
/// 表单页 | |||
@@ -36,7 +36,7 @@ namespace Learun.Application.Web.Areas.LogisticsManagement.Controllers | |||
[HttpGet] | |||
public ActionResult Form() | |||
{ | |||
return View(); | |||
return View(); | |||
} | |||
/// <summary> | |||
@@ -83,8 +83,9 @@ namespace Learun.Application.Web.Areas.LogisticsManagement.Controllers | |||
[AjaxOnly] | |||
public ActionResult GetFormData(string keyValue) | |||
{ | |||
var Network_Practical_RepairData = networkPracticalRepairIBLL.GetNetwork_Practical_RepairEntity( keyValue ); | |||
var jsonData = new { | |||
var Network_Practical_RepairData = networkPracticalRepairIBLL.GetNetwork_Practical_RepairEntity(keyValue); | |||
var jsonData = new | |||
{ | |||
Network_Practical_Repair = Network_Practical_RepairData, | |||
}; | |||
return Success(jsonData); | |||
@@ -98,18 +99,18 @@ namespace Learun.Application.Web.Areas.LogisticsManagement.Controllers | |||
Pagination paginationobj = pagination.ToObject<Pagination>(); | |||
var Data = networkPracticalRepairIBLL.GetStatistics(paginationobj, queryJson); | |||
var list = Data.GroupBy(x =>x.Maintainer).Select(x => new | |||
var list = Data.GroupBy(x => x.Maintainer).Select(x => new | |||
{ | |||
Maintainer = x.FirstOrDefault()?.Maintainer, | |||
TotalMoney = x.Sum(s => s.TotalMoney), | |||
RepairCount = x.Count(s => s.Repair_State != null && s.Repair_State > 0) | |||
RepairCount = x.Count(s => !string.IsNullOrEmpty(s.Repair_State)) | |||
}).OrderBy(x => x.Maintainer).ThenBy(x => x.TotalMoney).ThenBy(x => x.RepairCount); | |||
var list2 = Data.GroupBy(x => x.PracticalName).Select(x => new | |||
{ | |||
PracticalName = x.FirstOrDefault()?.PracticalName, | |||
TotalMoney = x.Sum(s => s.TotalMoney), | |||
RepairCount = x.Count(s => s.Repair_State != null && s.Repair_State > 0) | |||
RepairCount = x.Count(s => !string.IsNullOrEmpty(s.Repair_State)) | |||
}).OrderBy(x => x.PracticalName).ThenBy(x => x.TotalMoney).ThenBy(x => x.RepairCount); | |||
@@ -144,7 +145,7 @@ namespace Learun.Application.Web.Areas.LogisticsManagement.Controllers | |||
public ActionResult SaveForm(string keyValue, string strEntity) | |||
{ | |||
Network_Practical_RepairEntity entity = strEntity.ToObject<Network_Practical_RepairEntity>(); | |||
networkPracticalRepairIBLL.SaveEntity(keyValue,entity); | |||
networkPracticalRepairIBLL.SaveEntity(keyValue, entity); | |||
if (string.IsNullOrEmpty(keyValue)) | |||
{ | |||
} | |||
@@ -27,7 +27,7 @@ namespace Learun.Application.Web.Areas.LogisticsManagement.Controllers | |||
[HttpGet] | |||
public ActionResult Index() | |||
{ | |||
return View(); | |||
return View(); | |||
} | |||
/// <summary> | |||
/// 表单页 | |||
@@ -36,7 +36,7 @@ namespace Learun.Application.Web.Areas.LogisticsManagement.Controllers | |||
[HttpGet] | |||
public ActionResult Form() | |||
{ | |||
return View(); | |||
return View(); | |||
} | |||
/// <summary> | |||
@@ -83,8 +83,9 @@ namespace Learun.Application.Web.Areas.LogisticsManagement.Controllers | |||
[AjaxOnly] | |||
public ActionResult GetFormData(string keyValue) | |||
{ | |||
var Network_RepairData = networkRepairIBLL.GetNetwork_RepairEntity( keyValue ); | |||
var jsonData = new { | |||
var Network_RepairData = networkRepairIBLL.GetNetwork_RepairEntity(keyValue); | |||
var jsonData = new | |||
{ | |||
Network_Repair = Network_RepairData, | |||
}; | |||
return Success(jsonData); | |||
@@ -101,11 +102,11 @@ namespace Learun.Application.Web.Areas.LogisticsManagement.Controllers | |||
{ | |||
Pagination paginationobj = pagination.ToObject<Pagination>(); | |||
var Data = networkRepairIBLL.GetStatistics(paginationobj, queryJson); | |||
var list = Data.GroupBy(x =>x.Maintainer).Select(x => new | |||
var list = Data.GroupBy(x => x.Maintainer).Select(x => new | |||
{ | |||
Maintainer = x.FirstOrDefault()?.Maintainer, | |||
TotalMoney = x.Sum(s=>s.TotalMoney), | |||
RepairCount = x.Count(s=> s.Repair_State != null && s.Repair_State > 0) | |||
TotalMoney = x.Sum(s => s.TotalMoney), | |||
RepairCount = x.Count(s => !string.IsNullOrEmpty(s.Repair_State)) | |||
}).OrderBy(x => x.Maintainer).ThenBy(x => x.TotalMoney).ThenBy(x => x.RepairCount); | |||
return Success(list); | |||
} | |||
@@ -139,7 +140,7 @@ namespace Learun.Application.Web.Areas.LogisticsManagement.Controllers | |||
public ActionResult SaveForm(string keyValue, string strEntity) | |||
{ | |||
Network_RepairEntity entity = strEntity.ToObject<Network_RepairEntity>(); | |||
networkRepairIBLL.SaveEntity(keyValue,entity); | |||
networkRepairIBLL.SaveEntity(keyValue, entity); | |||
if (string.IsNullOrEmpty(keyValue)) | |||
{ | |||
} | |||
@@ -0,0 +1,117 @@ | |||
using Learun.Util; | |||
using System.Data; | |||
using Learun.Application.TwoDevelopment.LogisticsManagement; | |||
using System.Web.Mvc; | |||
using System.Collections.Generic; | |||
namespace Learun.Application.Web.Areas.LogisticsManagement.Controllers | |||
{ | |||
/// <summary> | |||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
/// 创 建:超级管理员 | |||
/// 日 期:2023-02-05 22:31 | |||
/// 描 述:网络实训统计 | |||
/// </summary> | |||
public class Network_Practical_Repair_StatisticsController : MvcControllerBase | |||
{ | |||
private Network_Practical_Repair_StatisticsIBLL network_Practical_Repair_StatisticsIBLL = new Network_Practical_Repair_StatisticsBLL(); | |||
#region 视图功能 | |||
/// <summary> | |||
/// 主页面 | |||
/// <summary> | |||
/// <returns></returns> | |||
[HttpGet] | |||
public ActionResult Index() | |||
{ | |||
return View(); | |||
} | |||
/// <summary> | |||
/// 表单页 | |||
/// <summary> | |||
/// <returns></returns> | |||
[HttpGet] | |||
public ActionResult Form() | |||
{ | |||
return View(); | |||
} | |||
#endregion | |||
#region 获取数据 | |||
/// <summary> | |||
/// 获取页面显示列表数据 | |||
/// </summary> | |||
/// <param name="pagination">分页参数</param> | |||
/// <param name="queryJson">查询参数</param> | |||
/// <returns></returns> | |||
[HttpGet] | |||
[AjaxOnly] | |||
public ActionResult GetPageList(string pagination, string queryJson) | |||
{ | |||
Pagination paginationobj = pagination.ToObject<Pagination>(); | |||
var data = network_Practical_Repair_StatisticsIBLL.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 Network_Practical_Repair_StatisticsData = network_Practical_Repair_StatisticsIBLL.GetNetwork_Practical_Repair_StatisticsEntity( keyValue ); | |||
var jsonData = new { | |||
Network_Practical_Repair_Statistics = Network_Practical_Repair_StatisticsData, | |||
}; | |||
return Success(jsonData); | |||
} | |||
#endregion | |||
#region 提交数据 | |||
/// <summary> | |||
/// 删除实体数据 | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
/// <returns></returns> | |||
[HttpPost] | |||
[AjaxOnly] | |||
public ActionResult DeleteForm(string keyValue) | |||
{ | |||
network_Practical_Repair_StatisticsIBLL.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) | |||
{ | |||
Network_Practical_Repair_StatisticsEntity entity = strEntity.ToObject<Network_Practical_Repair_StatisticsEntity>(); | |||
network_Practical_Repair_StatisticsIBLL.SaveEntity(keyValue,entity); | |||
if (string.IsNullOrEmpty(keyValue)) | |||
{ | |||
} | |||
return Success("保存成功!"); | |||
} | |||
#endregion | |||
} | |||
} |
@@ -0,0 +1,117 @@ | |||
using Learun.Util; | |||
using System.Data; | |||
using Learun.Application.TwoDevelopment.LogisticsManagement; | |||
using System.Web.Mvc; | |||
using System.Collections.Generic; | |||
namespace Learun.Application.Web.Areas.LogisticsManagement.Controllers | |||
{ | |||
/// <summary> | |||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
/// 创 建:超级管理员 | |||
/// 日 期:2023-02-05 22:26 | |||
/// 描 述:网络维修统计 | |||
/// </summary> | |||
public class Network_Repair_StatisticsController : MvcControllerBase | |||
{ | |||
private Network_Repair_StatisticsIBLL network_Repair_StatisticsIBLL = new Network_Repair_StatisticsBLL(); | |||
#region 视图功能 | |||
/// <summary> | |||
/// 主页面 | |||
/// <summary> | |||
/// <returns></returns> | |||
[HttpGet] | |||
public ActionResult Index() | |||
{ | |||
return View(); | |||
} | |||
/// <summary> | |||
/// 表单页 | |||
/// <summary> | |||
/// <returns></returns> | |||
[HttpGet] | |||
public ActionResult Form() | |||
{ | |||
return View(); | |||
} | |||
#endregion | |||
#region 获取数据 | |||
/// <summary> | |||
/// 获取页面显示列表数据 | |||
/// </summary> | |||
/// <param name="pagination">分页参数</param> | |||
/// <param name="queryJson">查询参数</param> | |||
/// <returns></returns> | |||
[HttpGet] | |||
[AjaxOnly] | |||
public ActionResult GetPageList(string pagination, string queryJson) | |||
{ | |||
Pagination paginationobj = pagination.ToObject<Pagination>(); | |||
var data = network_Repair_StatisticsIBLL.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 Network_Repair_StatisticsData = network_Repair_StatisticsIBLL.GetNetwork_Repair_StatisticsEntity( keyValue ); | |||
var jsonData = new { | |||
Network_Repair_Statistics = Network_Repair_StatisticsData, | |||
}; | |||
return Success(jsonData); | |||
} | |||
#endregion | |||
#region 提交数据 | |||
/// <summary> | |||
/// 删除实体数据 | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
/// <returns></returns> | |||
[HttpPost] | |||
[AjaxOnly] | |||
public ActionResult DeleteForm(string keyValue) | |||
{ | |||
network_Repair_StatisticsIBLL.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) | |||
{ | |||
Network_Repair_StatisticsEntity entity = strEntity.ToObject<Network_Repair_StatisticsEntity>(); | |||
network_Repair_StatisticsIBLL.SaveEntity(keyValue,entity); | |||
if (string.IsNullOrEmpty(keyValue)) | |||
{ | |||
} | |||
return Success("保存成功!"); | |||
} | |||
#endregion | |||
} | |||
} |
@@ -0,0 +1,117 @@ | |||
using Learun.Util; | |||
using System.Data; | |||
using Learun.Application.TwoDevelopment.LogisticsManagement; | |||
using System.Web.Mvc; | |||
using System.Collections.Generic; | |||
namespace Learun.Application.Web.Areas.LogisticsManagement.Controllers | |||
{ | |||
/// <summary> | |||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
/// 创 建:超级管理员 | |||
/// 日 期:2023-02-05 22:42 | |||
/// 描 述:维护采购申请统计 | |||
/// </summary> | |||
public class Repair_Purchase_App_StatisticsController : MvcControllerBase | |||
{ | |||
private Repair_Purchase_App_StatisticsIBLL repair_Purchase_App_StatisticsIBLL = new Repair_Purchase_App_StatisticsBLL(); | |||
#region 视图功能 | |||
/// <summary> | |||
/// 主页面 | |||
/// <summary> | |||
/// <returns></returns> | |||
[HttpGet] | |||
public ActionResult Index() | |||
{ | |||
return View(); | |||
} | |||
/// <summary> | |||
/// 表单页 | |||
/// <summary> | |||
/// <returns></returns> | |||
[HttpGet] | |||
public ActionResult Form() | |||
{ | |||
return View(); | |||
} | |||
#endregion | |||
#region 获取数据 | |||
/// <summary> | |||
/// 获取页面显示列表数据 | |||
/// </summary> | |||
/// <param name="pagination">分页参数</param> | |||
/// <param name="queryJson">查询参数</param> | |||
/// <returns></returns> | |||
[HttpGet] | |||
[AjaxOnly] | |||
public ActionResult GetPageList(string pagination, string queryJson) | |||
{ | |||
Pagination paginationobj = pagination.ToObject<Pagination>(); | |||
var data = repair_Purchase_App_StatisticsIBLL.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 Repair_Purchase_App_StatisticsData = repair_Purchase_App_StatisticsIBLL.GetRepair_Purchase_App_StatisticsEntity( keyValue ); | |||
var jsonData = new { | |||
Repair_Purchase_App_Statistics = Repair_Purchase_App_StatisticsData, | |||
}; | |||
return Success(jsonData); | |||
} | |||
#endregion | |||
#region 提交数据 | |||
/// <summary> | |||
/// 删除实体数据 | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
/// <returns></returns> | |||
[HttpPost] | |||
[AjaxOnly] | |||
public ActionResult DeleteForm(string keyValue) | |||
{ | |||
repair_Purchase_App_StatisticsIBLL.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) | |||
{ | |||
Repair_Purchase_App_StatisticsEntity entity = strEntity.ToObject<Repair_Purchase_App_StatisticsEntity>(); | |||
repair_Purchase_App_StatisticsIBLL.SaveEntity(keyValue,entity); | |||
if (string.IsNullOrEmpty(keyValue)) | |||
{ | |||
} | |||
return Success("保存成功!"); | |||
} | |||
#endregion | |||
} | |||
} |
@@ -35,7 +35,7 @@ var bootstrap = function ($, learun) { | |||
{ label: "总金额", name: "TotalMoney", width: 100, align: "left" }, | |||
{ label: "维修次数", name: "RepairCount", width: 100, align: "left" } | |||
], | |||
mainId: 'Maintainer', | |||
mainId: 'Device', | |||
isPage: true | |||
}); | |||
page.search(); | |||
@@ -0,0 +1,23 @@ | |||
@{ | |||
ViewBag.Title = "后勤维修统计"; | |||
Layout = "~/Views/Shared/_Form.cshtml"; | |||
} | |||
<div class="lr-form-wrap" id="form"> | |||
<div class="col-xs-6 lr-form-item" data-table="Logistics_Lault_Repair_Statistics" > | |||
<div class="lr-form-item-title">统计类型名称<font face="宋体">*</font></div> | |||
<input id="Statistics_Name" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="Logistics_Lault_Repair_Statistics" > | |||
<div class="lr-form-item-title">计数<font face="宋体">*</font></div> | |||
<input id="Repair_Sum" type="text" class="form-control" isvalid="yes" checkexpession="Num" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="Logistics_Lault_Repair_Statistics" > | |||
<div class="lr-form-item-title">开始时间<font face="宋体">*</font></div> | |||
<input id="BeginTime" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd',onpicked: function () { $('#BeginTime').trigger('change'); } })" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="Logistics_Lault_Repair_Statistics" > | |||
<div class="lr-form-item-title">结束时间<font face="宋体">*</font></div> | |||
<input id="EndTime" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd',onpicked: function () { $('#EndTime').trigger('change'); } })" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Logistics_Lault_Repair_Statistics/Form.js") |
@@ -0,0 +1,50 @@ | |||
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) | |||
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2023-02-05 22:37 | |||
* 描 述:后勤维修统计 | |||
*/ | |||
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 () { | |||
}, | |||
initData: function () { | |||
if (!!keyValue) { | |||
$.lrSetForm(top.$.rootUrl + '/LogisticsManagement/Logistics_Lault_Repair_Statistics/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 + '/LogisticsManagement/Logistics_Lault_Repair_Statistics/SaveForm?keyValue=' + keyValue, postData, function (res) { | |||
// 保存成功后才回调 | |||
if (!!callBack) { | |||
callBack(); | |||
} | |||
}); | |||
}; | |||
page.init(); | |||
} |
@@ -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="Statistics_Name" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">计数</div> | |||
<input id="Repair_Sum" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">开始时间</div> | |||
</div> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">结束时间</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> 新增</a> | |||
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 编辑</a> | |||
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i> 删除</a> | |||
<a id="lr_print" class="btn btn-default"><i class="fa fa-print"></i> 打印</a> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="lr-layout-body" id="gridtable"></div> | |||
</div> | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Logistics_Lault_Repair_Statistics/Index.js") |
@@ -0,0 +1,95 @@ | |||
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) | |||
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2023-02-05 22:37 | |||
* 描 述:后勤维修统计 | |||
*/ | |||
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); | |||
// 刷新 | |||
$('#lr_refresh').on('click', function () { | |||
location.reload(); | |||
}); | |||
// 新增 | |||
$('#lr_add').on('click', function () { | |||
learun.layerForm({ | |||
id: 'form', | |||
title: '新增', | |||
url: top.$.rootUrl + '/LogisticsManagement/Logistics_Lault_Repair_Statistics/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)) { | |||
learun.layerForm({ | |||
id: 'form', | |||
title: '编辑', | |||
url: top.$.rootUrl + '/LogisticsManagement/Logistics_Lault_Repair_Statistics/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 + '/LogisticsManagement/Logistics_Lault_Repair_Statistics/DeleteForm', { keyValue: keyValue}, function () { | |||
refreshGirdData(); | |||
}); | |||
} | |||
}); | |||
} | |||
}); | |||
// 打印 | |||
$('#lr_print').on('click', function () { | |||
$('#gridtable').jqprintTable(); | |||
}); | |||
}, | |||
// 初始化列表 | |||
initGird: function () { | |||
$('#gridtable').lrAuthorizeJfGrid({ | |||
url: top.$.rootUrl + '/LogisticsManagement/Logistics_Lault_Repair_Statistics/GetPageList', | |||
headData: [ | |||
{ label: "统计类型名称", name: "Statistics_Name", width: 100, align: "left"}, | |||
{ label: "计数", name: "Repair_Sum", width: 100, align: "left"}, | |||
{ label: "开始时间", name: "BeginTime", width: 100, align: "left"}, | |||
{ label: "结束时间", name: "EndTime", width: 100, align: "left" }, | |||
{ label: "统计时间", name: "Createdate", width: 100, align: "left" }, | |||
], | |||
mainId:'Id', | |||
isPage: true | |||
}); | |||
page.search(); | |||
}, | |||
search: function (param) { | |||
param = param || {}; | |||
$('#gridtable').jfGridSet('reload',{ queryJson: JSON.stringify(param) }); | |||
} | |||
}; | |||
refreshGirdData = function () { | |||
$('#gridtable').jfGridSet('reload'); | |||
}; | |||
page.init(); | |||
} |
@@ -0,0 +1,23 @@ | |||
@{ | |||
ViewBag.Title = "网络实训统计"; | |||
Layout = "~/Views/Shared/_Form.cshtml"; | |||
} | |||
<div class="lr-form-wrap" id="form"> | |||
<div class="col-xs-6 lr-form-item" data-table="Network_Practical_Repair_Statistics" > | |||
<div class="lr-form-item-title">统计类型名称<font face="宋体">*</font></div> | |||
<input id="Statistics_Name" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="Network_Practical_Repair_Statistics" > | |||
<div class="lr-form-item-title">计数<font face="宋体">*</font></div> | |||
<input id="Repair_Sum" type="text" class="form-control" isvalid="yes" checkexpession="Num" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="Network_Practical_Repair_Statistics" > | |||
<div class="lr-form-item-title">开始时间<font face="宋体">*</font></div> | |||
<input id="BeginTime" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd',onpicked: function () { $('#BeginTime').trigger('change'); } })" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="Network_Practical_Repair_Statistics" > | |||
<div class="lr-form-item-title">结束时间<font face="宋体">*</font></div> | |||
<input id="EndTime" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd',onpicked: function () { $('#EndTime').trigger('change'); } })" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Network_Practical_Repair_Statistics/Form.js") |
@@ -0,0 +1,51 @@ | |||
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) | |||
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2023-02-05 22:31 | |||
* 描 述:网络实训统计 | |||
*/ | |||
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 () { | |||
}, | |||
initData: function () { | |||
if (!!keyValue) { | |||
$.lrSetForm(top.$.rootUrl + '/LogisticsManagement/Network_Practical_Repair_Statistics/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]); | |||
} | |||
} | |||
}); | |||
} | |||
$('#Repair_Sum').val('0'); | |||
} | |||
}; | |||
// 保存数据 | |||
acceptClick = function (callBack) { | |||
if (!$('body').lrValidform()) { | |||
return false; | |||
} | |||
var postData = { | |||
strEntity: JSON.stringify($('body').lrGetFormData()) | |||
}; | |||
$.lrSaveForm(top.$.rootUrl + '/LogisticsManagement/Network_Practical_Repair_Statistics/SaveForm?keyValue=' + keyValue, postData, function (res) { | |||
// 保存成功后才回调 | |||
if (!!callBack) { | |||
callBack(); | |||
} | |||
}); | |||
}; | |||
page.init(); | |||
} |
@@ -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="Statistics_Name" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">计数</div> | |||
<input id="Repair_Sum" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">开始时间</div> | |||
</div> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">结束时间</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> 新增</a> | |||
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 编辑</a> | |||
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i> 删除</a> | |||
<a id="lr_print" class="btn btn-default"><i class="fa fa-print"></i> 打印</a> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="lr-layout-body" id="gridtable"></div> | |||
</div> | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Network_Practical_Repair_Statistics/Index.js") |
@@ -0,0 +1,95 @@ | |||
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) | |||
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2023-02-05 22:31 | |||
* 描 述:网络实训统计 | |||
*/ | |||
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); | |||
// 刷新 | |||
$('#lr_refresh').on('click', function () { | |||
location.reload(); | |||
}); | |||
// 新增 | |||
$('#lr_add').on('click', function () { | |||
learun.layerForm({ | |||
id: 'form', | |||
title: '新增', | |||
url: top.$.rootUrl + '/LogisticsManagement/Network_Practical_Repair_Statistics/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)) { | |||
learun.layerForm({ | |||
id: 'form', | |||
title: '编辑', | |||
url: top.$.rootUrl + '/LogisticsManagement/Network_Practical_Repair_Statistics/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 + '/LogisticsManagement/Network_Practical_Repair_Statistics/DeleteForm', { keyValue: keyValue}, function () { | |||
refreshGirdData(); | |||
}); | |||
} | |||
}); | |||
} | |||
}); | |||
// 打印 | |||
$('#lr_print').on('click', function () { | |||
$('#gridtable').jqprintTable(); | |||
}); | |||
}, | |||
// 初始化列表 | |||
initGird: function () { | |||
$('#gridtable').lrAuthorizeJfGrid({ | |||
url: top.$.rootUrl + '/LogisticsManagement/Network_Practical_Repair_Statistics/GetPageList', | |||
headData: [ | |||
{ label: "统计类型名称", name: "Statistics_Name", width: 100, align: "left"}, | |||
{ label: "计数", name: "Repair_Sum", width: 100, align: "left"}, | |||
{ label: "开始时间", name: "BeginTime", width: 100, align: "left"}, | |||
{ label: "结束时间", name: "EndTime", width: 100, align: "left" }, | |||
{ label: "统计时间", name: "Createdate", width: 100, align: "left" }, | |||
], | |||
mainId:'Id', | |||
isPage: true | |||
}); | |||
page.search(); | |||
}, | |||
search: function (param) { | |||
param = param || {}; | |||
$('#gridtable').jfGridSet('reload',{ queryJson: JSON.stringify(param) }); | |||
} | |||
}; | |||
refreshGirdData = function () { | |||
$('#gridtable').jfGridSet('reload'); | |||
}; | |||
page.init(); | |||
} |
@@ -0,0 +1,23 @@ | |||
@{ | |||
ViewBag.Title = "网络维修统计"; | |||
Layout = "~/Views/Shared/_Form.cshtml"; | |||
} | |||
<div class="lr-form-wrap" id="form"> | |||
<div class="col-xs-6 lr-form-item" data-table="Network_Repair_Statistics" > | |||
<div class="lr-form-item-title">统计类型名称<font face="宋体">*</font></div> | |||
<input id="Statistics_Name" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="Network_Repair_Statistics" > | |||
<div class="lr-form-item-title">计数<font face="宋体">*</font></div> | |||
<input id="Repair_Sum" type="text" class="form-control" isvalid="yes" checkexpession="Num" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="Network_Repair_Statistics" > | |||
<div class="lr-form-item-title">开始时间<font face="宋体">*</font></div> | |||
<input id="BeginTime" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd',onpicked: function () { $('#BeginTime').trigger('change'); } })" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="Network_Repair_Statistics" > | |||
<div class="lr-form-item-title">结束时间<font face="宋体">*</font></div> | |||
<input id="EndTime" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd',onpicked: function () { $('#EndTime').trigger('change'); } })" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Network_Repair_Statistics/Form.js") |
@@ -0,0 +1,51 @@ | |||
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) | |||
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2023-02-05 22:26 | |||
* 描 述:网络维修统计 | |||
*/ | |||
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 () { | |||
}, | |||
initData: function () { | |||
if (!!keyValue) { | |||
$.lrSetForm(top.$.rootUrl + '/LogisticsManagement/Network_Repair_Statistics/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]); | |||
} | |||
} | |||
}); | |||
} | |||
$('#Repair_Sum').val('0'); | |||
} | |||
}; | |||
// 保存数据 | |||
acceptClick = function (callBack) { | |||
if (!$('body').lrValidform()) { | |||
return false; | |||
} | |||
var postData = { | |||
strEntity: JSON.stringify($('body').lrGetFormData()) | |||
}; | |||
$.lrSaveForm(top.$.rootUrl + '/LogisticsManagement/Network_Repair_Statistics/SaveForm?keyValue=' + keyValue, postData, function (res) { | |||
// 保存成功后才回调 | |||
if (!!callBack) { | |||
callBack(); | |||
} | |||
}); | |||
}; | |||
page.init(); | |||
} |
@@ -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="Statistics_Name" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">计数</div> | |||
<input id="Repair_Sum" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">开始时间</div> | |||
</div> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">结束时间</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> 新增</a> | |||
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 编辑</a> | |||
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i> 删除</a> | |||
<a id="lr_print" class="btn btn-default"><i class="fa fa-print"></i> 打印</a> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="lr-layout-body" id="gridtable"></div> | |||
</div> | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Network_Repair_Statistics/Index.js") |
@@ -0,0 +1,95 @@ | |||
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) | |||
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2023-02-05 22:26 | |||
* 描 述:网络维修统计 | |||
*/ | |||
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); | |||
// 刷新 | |||
$('#lr_refresh').on('click', function () { | |||
location.reload(); | |||
}); | |||
// 新增 | |||
$('#lr_add').on('click', function () { | |||
learun.layerForm({ | |||
id: 'form', | |||
title: '新增', | |||
url: top.$.rootUrl + '/LogisticsManagement/Network_Repair_Statistics/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)) { | |||
learun.layerForm({ | |||
id: 'form', | |||
title: '编辑', | |||
url: top.$.rootUrl + '/LogisticsManagement/Network_Repair_Statistics/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 + '/LogisticsManagement/Network_Repair_Statistics/DeleteForm', { keyValue: keyValue}, function () { | |||
refreshGirdData(); | |||
}); | |||
} | |||
}); | |||
} | |||
}); | |||
// 打印 | |||
$('#lr_print').on('click', function () { | |||
$('#gridtable').jqprintTable(); | |||
}); | |||
}, | |||
// 初始化列表 | |||
initGird: function () { | |||
$('#gridtable').lrAuthorizeJfGrid({ | |||
url: top.$.rootUrl + '/LogisticsManagement/Network_Repair_Statistics/GetPageList', | |||
headData: [ | |||
{ label: "统计类型名称", name: "Statistics_Name", width: 100, align: "left"}, | |||
{ label: "计数", name: "Repair_Sum", width: 100, align: "left"}, | |||
{ label: "开始时间", name: "BeginTime", width: 100, align: "left"}, | |||
{ label: "结束时间", name: "EndTime", width: 100, align: "left" }, | |||
{ label: "统计时间", name: "Createdate", width: 100, align: "left" } | |||
], | |||
mainId:'Id', | |||
isPage: true | |||
}); | |||
page.search(); | |||
}, | |||
search: function (param) { | |||
param = param || {}; | |||
$('#gridtable').jfGridSet('reload',{ queryJson: JSON.stringify(param) }); | |||
} | |||
}; | |||
refreshGirdData = function () { | |||
$('#gridtable').jfGridSet('reload'); | |||
}; | |||
page.init(); | |||
} |
@@ -29,7 +29,7 @@ | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="Quick_Repair_Statistics" > | |||
<div class="lr-form-item-title">费用总金额<font face="宋体">*</font></div> | |||
<input id="TotalMoney" type="text" class="form-control" isvalid="yes" checkexpession="Num" /> | |||
<input id="TotalMoney" type="text" class="form-control" isvalid="yes" checkexpession="PositiveFloatintZero" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="Quick_Repair_Statistics" > | |||
<div class="lr-form-item-title">统计时间<font face="宋体">*</font></div> | |||
@@ -0,0 +1,23 @@ | |||
@{ | |||
ViewBag.Title = "维护采购申请统计"; | |||
Layout = "~/Views/Shared/_Form.cshtml"; | |||
} | |||
<div class="lr-form-wrap" id="form"> | |||
<div class="col-xs-6 lr-form-item" data-table="Repair_Purchase_App_Statistics" > | |||
<div class="lr-form-item-title">统计类型名称<font face="宋体">*</font></div> | |||
<input id="Statistics_Name" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="Repair_Purchase_App_Statistics" > | |||
<div class="lr-form-item-title">计数<font face="宋体">*</font></div> | |||
<input id="Repair_Sum" type="text" class="form-control" isvalid="yes" checkexpession="Num" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="Repair_Purchase_App_Statistics" > | |||
<div class="lr-form-item-title">开始时间<font face="宋体">*</font></div> | |||
<input id="BeginTime" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd',onpicked: function () { $('#BeginTime').trigger('change'); } })" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="Repair_Purchase_App_Statistics" > | |||
<div class="lr-form-item-title">结束时间<font face="宋体">*</font></div> | |||
<input id="EndTime" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd',onpicked: function () { $('#EndTime').trigger('change'); } })" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Repair_Purchase_App_Statistics/Form.js") |
@@ -0,0 +1,51 @@ | |||
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) | |||
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2023-02-05 22:42 | |||
* 描 述:维护采购申请统计 | |||
*/ | |||
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 () { | |||
}, | |||
initData: function () { | |||
if (!!keyValue) { | |||
$.lrSetForm(top.$.rootUrl + '/LogisticsManagement/Repair_Purchase_App_Statistics/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]); | |||
} | |||
} | |||
}); | |||
} | |||
$('#Repair_Sum').val('0'); | |||
} | |||
}; | |||
// 保存数据 | |||
acceptClick = function (callBack) { | |||
if (!$('body').lrValidform()) { | |||
return false; | |||
} | |||
var postData = { | |||
strEntity: JSON.stringify($('body').lrGetFormData()) | |||
}; | |||
$.lrSaveForm(top.$.rootUrl + '/LogisticsManagement/Repair_Purchase_App_Statistics/SaveForm?keyValue=' + keyValue, postData, function (res) { | |||
// 保存成功后才回调 | |||
if (!!callBack) { | |||
callBack(); | |||
} | |||
}); | |||
}; | |||
page.init(); | |||
} |
@@ -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="Statistics_Name" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">计数</div> | |||
<input id="Repair_Sum" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">开始时间</div> | |||
</div> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">结束时间</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> 新增</a> | |||
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 编辑</a> | |||
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i> 删除</a> | |||
<a id="lr_print" class="btn btn-default"><i class="fa fa-print"></i> 打印</a> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="lr-layout-body" id="gridtable"></div> | |||
</div> | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Repair_Purchase_App_Statistics/Index.js") |
@@ -0,0 +1,95 @@ | |||
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) | |||
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2023-02-05 22:42 | |||
* 描 述:维护采购申请统计 | |||
*/ | |||
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); | |||
// 刷新 | |||
$('#lr_refresh').on('click', function () { | |||
location.reload(); | |||
}); | |||
// 新增 | |||
$('#lr_add').on('click', function () { | |||
learun.layerForm({ | |||
id: 'form', | |||
title: '新增', | |||
url: top.$.rootUrl + '/LogisticsManagement/Repair_Purchase_App_Statistics/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)) { | |||
learun.layerForm({ | |||
id: 'form', | |||
title: '编辑', | |||
url: top.$.rootUrl + '/LogisticsManagement/Repair_Purchase_App_Statistics/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 + '/LogisticsManagement/Repair_Purchase_App_Statistics/DeleteForm', { keyValue: keyValue}, function () { | |||
refreshGirdData(); | |||
}); | |||
} | |||
}); | |||
} | |||
}); | |||
// 打印 | |||
$('#lr_print').on('click', function () { | |||
$('#gridtable').jqprintTable(); | |||
}); | |||
}, | |||
// 初始化列表 | |||
initGird: function () { | |||
$('#gridtable').lrAuthorizeJfGrid({ | |||
url: top.$.rootUrl + '/LogisticsManagement/Repair_Purchase_App_Statistics/GetPageList', | |||
headData: [ | |||
{ label: "统计类型名称", name: "Statistics_Name", width: 100, align: "left"}, | |||
{ label: "计数", name: "Repair_Sum", width: 100, align: "left"}, | |||
{ label: "开始时间", name: "BeginTime", width: 100, align: "left"}, | |||
{ label: "结束时间", name: "EndTime", width: 100, align: "left" }, | |||
{ label: "统计时间", name: "Createdate", width: 100, align: "left" }, | |||
], | |||
mainId:'Id', | |||
isPage: true | |||
}); | |||
page.search(); | |||
}, | |||
search: function (param) { | |||
param = param || {}; | |||
$('#gridtable').jfGridSet('reload',{ queryJson: JSON.stringify(param) }); | |||
} | |||
}; | |||
refreshGirdData = function () { | |||
$('#gridtable').jfGridSet('reload'); | |||
}; | |||
page.init(); | |||
} |
@@ -3,9 +3,10 @@ | |||
Layout = "~/Views/Shared/_Form.cshtml"; | |||
} | |||
<div class="lr-form-wrap" id="form"> | |||
<div class="col-xs-6 lr-form-item" data-table="Excellent_PartyMember" > | |||
<div class="col-xs-6 lr-form-item" data-table="Excellent_PartyMember"> | |||
<div class="lr-form-item-title">党员姓名<font face="宋体">*</font></div> | |||
<div id="MemberId" isvalid="yes" checkexpession="NotNull" ></div> | |||
@*<div id="MemberId" isvalid="yes" checkexpession="NotNull"></div>*@ | |||
<input id="MemberId" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="Excellent_PartyMember" > | |||
<div class="lr-form-item-title">当选日期<font face="宋体">*</font></div> | |||
@@ -15,7 +15,7 @@ var bootstrap = function ($, learun) { | |||
page.initData(); | |||
}, | |||
bind: function () { | |||
$('#MemberId').lrDataSourceSelect({ code: 'PartyMemberInfo',value: 'id',text: 'name' }); | |||
// $('#MemberId').lrDataSourceSelect({ code: 'PartyMemberInfo',value: 'id',text: 'name' }); | |||
}, | |||
initData: function () { | |||
if (!!keyValue) { | |||
@@ -69,17 +69,19 @@ var bootstrap = function ($, learun) { | |||
$('#gridtable').lrAuthorizeJfGrid({ | |||
url: top.$.rootUrl + '/PersonnelManagement/ExcellentPartyMember/GetPageList', | |||
headData: [ | |||
{ label: "党员姓名", name: "MemberId", width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op,$cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'PartyMemberInfo', | |||
key: value, | |||
keyId: 'id', | |||
callback: function (_data) { | |||
callback(_data['name']); | |||
} | |||
}); | |||
}}, | |||
{ | |||
label: "党员姓名", name: "MemberId", width: 100, align: "left" | |||
//, formatterAsync: function (callback, value, row, op,$cell) { | |||
// learun.clientdata.getAsync('custmerData', { | |||
// url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'PartyMemberInfo', | |||
// key: value, | |||
// keyId: 'id', | |||
// callback: function (_data) { | |||
// callback(_data['name']); | |||
// } | |||
// }); | |||
//} | |||
}, | |||
{ label: "当选日期", name: "Comment_Date", width: 100, align: "left"}, | |||
{ label: "当选评价", name: "Comment", width: 100, align: "left"}, | |||
], | |||
@@ -3,9 +3,10 @@ | |||
Layout = "~/Views/Shared/_Form.cshtml"; | |||
} | |||
<div class="lr-form-wrap" id="form"> | |||
<div class="col-xs-6 lr-form-item" data-table="PartyMember_Birthday_Reminder" > | |||
<div class="col-xs-6 lr-form-item" data-table="PartyMember_Birthday_Reminder"> | |||
<div class="lr-form-item-title">姓名<font face="宋体">*</font></div> | |||
<div id="MemberId" isvalid="yes" checkexpession="NotNull" ></div> | |||
@*<div id="MemberId" isvalid="yes" checkexpession="NotNull"></div>*@ | |||
<input id="MemberId" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="PartyMember_Birthday_Reminder" > | |||
<div class="lr-form-item-title">生日<font face="宋体">*</font></div> | |||
@@ -15,7 +15,7 @@ var bootstrap = function ($, learun) { | |||
page.initData(); | |||
}, | |||
bind: function () { | |||
$('#MemberId').lrDataSourceSelect({ code: 'PartyMemberInfo',value: 'id',text: 'name' }); | |||
//$('#MemberId').lrDataSourceSelect({ code: 'PartyMemberInfo',value: 'id',text: 'name' }); | |||
}, | |||
initData: function () { | |||
if (!!keyValue) { | |||
@@ -16,7 +16,7 @@ var bootstrap = function ($, learun) { | |||
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) { | |||
page.search(queryJson); | |||
}, 220, 400); | |||
$('#MemberId').lrDataSourceSelect({ code: 'PartyMemberInfo',value: 'id',text: 'name' }); | |||
$('#MemberId').lrDataSourceSelect({ code: 'PartyMemberInfo', value: 'id', text: 'name' }); | |||
// 刷新 | |||
$('#lr_refresh').on('click', function () { | |||
location.reload(); | |||
@@ -56,7 +56,7 @@ var bootstrap = function ($, learun) { | |||
if (learun.checkrow(keyValue)) { | |||
learun.layerConfirm('是否确认删除该项!', function (res) { | |||
if (res) { | |||
learun.deleteForm(top.$.rootUrl + '/PersonnelManagement/PartyMember_Birthday_Reminder/DeleteForm', { keyValue: keyValue}, function () { | |||
learun.deleteForm(top.$.rootUrl + '/PersonnelManagement/PartyMember_Birthday_Reminder/DeleteForm', { keyValue: keyValue }, function () { | |||
refreshGirdData(); | |||
}); | |||
} | |||
@@ -69,29 +69,31 @@ var bootstrap = function ($, learun) { | |||
$('#gridtable').lrAuthorizeJfGrid({ | |||
url: top.$.rootUrl + '/PersonnelManagement/PartyMember_Birthday_Reminder/GetPageList', | |||
headData: [ | |||
{ label: "姓名", name: "MemberId", width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op,$cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'PartyMemberInfo', | |||
key: value, | |||
keyId: 'id', | |||
callback: function (_data) { | |||
callback(_data['name']); | |||
} | |||
}); | |||
}}, | |||
{ label: "生日", name: "Birthday", width: 100, align: "left"}, | |||
{ label: "提醒时间", name: "Reminder_Date", width: 100, align: "left"}, | |||
{ label: "备注", name: "Remark", width: 100, align: "left"}, | |||
{ | |||
label: "姓名", name: "MemberId", width: 100, align: "left" | |||
//, formatterAsync: function (callback, value, row, op, $cell) { | |||
// learun.clientdata.getAsync('custmerData', { | |||
// url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'PartyMemberInfo', | |||
// key: value, | |||
// keyId: 'id', | |||
// callback: function (_data) { | |||
// callback(_data['name']); | |||
// } | |||
// }); | |||
//} | |||
}, | |||
{ label: "生日", name: "Birthday", width: 100, align: "left" }, | |||
{ label: "提醒时间", name: "Reminder_Date", width: 100, align: "left" }, | |||
{ label: "备注", name: "Remark", width: 100, align: "left" }, | |||
], | |||
mainId:'Id', | |||
mainId: 'Id', | |||
isPage: true | |||
}); | |||
page.search(); | |||
}, | |||
search: function (param) { | |||
param = param || {}; | |||
$('#gridtable').jfGridSet('reload',{ queryJson: JSON.stringify(param) }); | |||
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | |||
} | |||
}; | |||
refreshGirdData = function () { | |||
@@ -3,10 +3,10 @@ | |||
Layout = "~/Views/Shared/_Form.cshtml"; | |||
} | |||
<div class="lr-form-wrap" id="form"> | |||
<div class="col-xs-6 lr-form-item" data-table="Employment_Info" > | |||
@*<div class="col-xs-6 lr-form-item" data-table="Employment_Info" > | |||
<div class="lr-form-item-title">系部<font face="宋体">*</font></div> | |||
<div id="DepartId" isvalid="yes" checkexpession="NotNull" ></div> | |||
</div> | |||
</div>*@ | |||
<div class="col-xs-6 lr-form-item" data-table="Employment_Info" > | |||
<div class="lr-form-item-title">专业<font face="宋体">*</font></div> | |||
<div id="MajorId" isvalid="yes" checkexpession="NotNull" ></div> | |||
@@ -15,7 +15,7 @@ var bootstrap = function ($, learun) { | |||
page.initData(); | |||
}, | |||
bind: function () { | |||
$('#DepartId').lrDataSourceSelect({ code: 'CdDeptInfo',value: 'deptid',text: 'deptname' }); | |||
//$('#DepartId').lrDataSourceSelect({ code: 'CdDeptInfo',value: 'deptid',text: 'deptname' }); | |||
$('#MajorId').lrDataSourceSelect({ code: 'CdMajorInfo',value: 'id',text: 'majorname' }); | |||
$('#ClassId').lrDataSourceSelect({ code: 'allbjqj',value: 'classid',text: 'classname' }); | |||
$('#StuId').lrDataSourceSelect({ code: 'StuInfoBasic',value: 'stuid',text: 'stuname' }); | |||
@@ -10,10 +10,10 @@ | |||
<div class="lr-layout-tool-item"> | |||
<div id="multiple_condition_query"> | |||
<div class="lr-query-formcontent"> | |||
<div class="col-xs-6 lr-form-item"> | |||
@*<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">系部</div> | |||
<div id="DepartId"></div> | |||
</div> | |||
</div>*@ | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">专业</div> | |||
<div id="MajorId"></div> | |||
@@ -16,7 +16,7 @@ var bootstrap = function ($, learun) { | |||
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) { | |||
page.search(queryJson); | |||
}, 220, 400); | |||
$('#DepartId').lrDataSourceSelect({ code: 'CdDeptInfo',value: 'deptid',text: 'deptname' }); | |||
//$('#DepartId').lrDataSourceSelect({ code: 'CdDeptInfo',value: 'deptid',text: 'deptname' }); | |||
$('#MajorId').lrDataSourceSelect({ code: 'CdMajorInfo',value: 'id',text: 'majorname' }); | |||
$('#ClassId').lrDataSourceSelect({ code: 'allbjqj',value: 'classid',text: 'classname' }); | |||
$('#StuId').lrDataSourceSelect({ code: 'StuInfoBasic',value: 'stuid',text: 'stuname' }); | |||
@@ -77,17 +77,17 @@ var bootstrap = function ($, learun) { | |||
$('#gridtable').lrAuthorizeJfGrid({ | |||
url: top.$.rootUrl + '/StudentWork/EmploymentInfo/GetPageList', | |||
headData: [ | |||
{ label: "系部", name: "DepartId", width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op,$cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdDeptInfo', | |||
key: value, | |||
keyId: 'deptid', | |||
callback: function (_data) { | |||
callback(_data['deptname']); | |||
} | |||
}); | |||
}}, | |||
//{ label: "系部", name: "DepartId", width: 100, align: "left", | |||
// formatterAsync: function (callback, value, row, op,$cell) { | |||
// learun.clientdata.getAsync('custmerData', { | |||
// url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdDeptInfo', | |||
// key: value, | |||
// keyId: 'deptid', | |||
// callback: function (_data) { | |||
// callback(_data['deptname']); | |||
// } | |||
// }); | |||
// }}, | |||
{ label: "专业", name: "MajorId", width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op,$cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
@@ -7,9 +7,10 @@ | |||
<div class="lr-form-item-title">环境名称<font face="宋体">*</font></div> | |||
<input id="EnvironmentName" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="Environment_Factor" > | |||
<div class="col-xs-6 lr-form-item" data-table="Environment_Factor"> | |||
<div class="lr-form-item-title">责任人<font face="宋体">*</font></div> | |||
<div id="Manager" isvalid="yes" checkexpession="NotNull" ></div> | |||
<input id="Manager" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
@*<div id="" isvalid="yes" checkexpession="NotNull"></div>*@ | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="Environment_Factor" > | |||
<div class="lr-form-item-title">启用<font face="宋体">*</font></div> | |||
@@ -15,7 +15,7 @@ var bootstrap = function ($, learun) { | |||
page.initData(); | |||
}, | |||
bind: function () { | |||
$('#Manager').lrDataItemSelect({ code: 'bxgmzldm' }); | |||
//$('#Manager').lrDataItemSelect({ code: 'bxgmzldm' }); | |||
$('#IsUse').lrRadioCheckbox({ | |||
type: 'radio', | |||
code: 'YesOrNoBit', | |||
@@ -16,7 +16,7 @@ | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">责任人</div> | |||
<div id="Manager"></div> | |||
<input id="Manager" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">启用</div> | |||
@@ -16,7 +16,7 @@ var bootstrap = function ($, learun) { | |||
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) { | |||
page.search(queryJson); | |||
}, 220, 400); | |||
$('#Manager').lrDataItemSelect({ code: 'bxgmzldm' }); | |||
//$('#Manager').lrDataItemSelect({ code: 'bxgmzldm' }); | |||
$('#IsUse').lrRadioCheckbox({ | |||
type: 'radio', | |||
code: 'YesOrNoBit', | |||
@@ -78,16 +78,7 @@ var bootstrap = function ($, learun) { | |||
url: top.$.rootUrl + '/StudentWork/EnvironmentFactor/GetPageList', | |||
headData: [ | |||
{ label: "环境名称", name: "EnvironmentName", width: 100, align: "left"}, | |||
{ label: "责任人", name: "Manager", width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op,$cell) { | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
code: 'bxgmzldm', | |||
callback: function (_data) { | |||
callback(_data.text); | |||
} | |||
}); | |||
}}, | |||
{ label: "责任人", name: "Manager", width: 100, align: "left"}, | |||
{ label: "启用", name: "IsUse", width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op,$cell) { | |||
learun.clientdata.getAsync('dataItem', { | |||
@@ -16,7 +16,7 @@ var bootstrap = function ($, learun) { | |||
}, | |||
bind: function () { | |||
$('#Semester').lrDataItemSelect({ code: 'Semester' }); | |||
$('#Passed').lrDataItemSelect({ code: 'YesOrNoBit' }); | |||
$('#Passed').lrDataItemSelect({ code: 'YesOrNoInt' }); | |||
$('#Provided').lrDataItemSelect({ code: 'YesOrNoInt' }); | |||
$('#Provided').lrselectSet("1"); | |||
}, | |||
@@ -93,7 +93,7 @@ var bootstrap = function ($, learun) { | |||
formatterAsync: function (callback, value, row, op,$cell) { | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
code: 'YesOrNoBit', | |||
code: 'YesOrNoInt', | |||
callback: function (_data) { | |||
callback(_data.text); | |||
} | |||