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

外包代码合并

北屯中职分支
liangkun 1 рік тому
джерело
коміт
d694b8913d
100 змінених файлів з 2880 додано та 207 видалено
  1. +3
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/LowDurableGoods/Form.cshtml
  2. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/LowDurableGoods/Form.js
  3. +2
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/LowDurableGoods/Index.cshtml
  4. +14
    -12
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/LowDurableGoods/Index.js
  5. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/LowDurableGoodsBaseInfo/Form.js
  6. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/LowDurableGoodsShareData/Form.js
  7. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/LowDurableGoodsSysManage/Form.js
  8. +117
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/GraduateConditionController.cs
  9. +47
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/InternShipLogController.cs
  10. +47
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/InternShipSummaryController.cs
  11. +50
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/InternshipPlanPostController.cs
  12. +47
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/PracticeAppraisalController.cs
  13. +47
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/PracticeAssessController.cs
  14. +48
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/PracticeMaterialController.cs
  15. +48
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/PracticeUnitVisitController.cs
  16. +15
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/GraduateCondition/Form.cshtml
  17. +52
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/GraduateCondition/Form.js
  18. +41
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/GraduateCondition/Index.cshtml
  19. +102
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/GraduateCondition/Index.js
  20. +1
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/InternShipLog/Index.cshtml
  21. +17
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/InternShipLog/Index.js
  22. +20
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/InternShipLog/UploadForm.cshtml
  23. +57
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/InternShipLog/UploadForm.js
  24. +1
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/InternShipSummary/Index.cshtml
  25. +16
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/InternShipSummary/Index.js
  26. +20
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/InternShipSummary/UploadForm.cshtml
  27. +57
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/InternShipSummary/UploadForm.js
  28. +2
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/InternshipPlanPost/Index.cshtml
  29. +27
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/InternshipPlanPost/Index.js
  30. +20
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/InternshipPlanPost/UploadForm.cshtml
  31. +57
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/InternshipPlanPost/UploadForm.js
  32. +3
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeAppraisal/Index.cshtml
  33. +17
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeAppraisal/Index.js
  34. +20
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeAppraisal/UploadForm.cshtml
  35. +57
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeAppraisal/UploadForm.js
  36. +3
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeAssess/Form.cshtml
  37. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeAssess/Form.js
  38. +3
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeAssess/Index.cshtml
  39. +30
    -11
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeAssess/Index.js
  40. +20
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeAssess/UploadForm.cshtml
  41. +57
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeAssess/UploadForm.js
  42. +3
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeMaterial/Index.cshtml
  43. +17
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeMaterial/Index.js
  44. +20
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeMaterial/UploadForm.cshtml
  45. +57
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeMaterial/UploadForm.js
  46. +3
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeUnitVisit/Index.cshtml
  47. +17
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeUnitVisit/Index.js
  48. +20
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeUnitVisit/UploadForm.cshtml
  49. +57
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeUnitVisit/UploadForm.js
  50. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/RecruitInfo/Form.cshtml
  51. +2
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoGraduate/CertificateGrant.cshtml
  52. +21
    -21
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoGraduate/CertificateGrant.js
  53. +2
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoGraduate/CheckIndex.cshtml
  54. +21
    -21
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoGraduate/CheckIndex.js
  55. +2
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScore/ScoreQueryAllIndex.cshtml
  56. +14
    -14
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScore/ScoreQueryAllIndex.js
  57. +2
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScore/ScoreQueryAllIndexTeacher.cshtml
  58. +5
    -5
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScore/ScoreQueryAllIndexTeacher.js
  59. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Views/Department/Form.cshtml
  60. +7
    -6
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Controllers/LogisticsLaultRepairController.cs
  61. +117
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Controllers/Logistics_Lault_Repair_StatisticsController.cs
  62. +9
    -8
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Controllers/NetworkPracticalRepairController.cs
  63. +9
    -8
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Controllers/NetworkRepairController.cs
  64. +117
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Controllers/Network_Practical_Repair_StatisticsController.cs
  65. +117
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Controllers/Network_Repair_StatisticsController.cs
  66. +117
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Controllers/Repair_Purchase_App_StatisticsController.cs
  67. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/LogisticsLaultRepair/Statistics.js
  68. +23
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Logistics_Lault_Repair_Statistics/Form.cshtml
  69. +50
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Logistics_Lault_Repair_Statistics/Form.js
  70. +47
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Logistics_Lault_Repair_Statistics/Index.cshtml
  71. +95
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Logistics_Lault_Repair_Statistics/Index.js
  72. +23
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Network_Practical_Repair_Statistics/Form.cshtml
  73. +51
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Network_Practical_Repair_Statistics/Form.js
  74. +47
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Network_Practical_Repair_Statistics/Index.cshtml
  75. +95
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Network_Practical_Repair_Statistics/Index.js
  76. +23
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Network_Repair_Statistics/Form.cshtml
  77. +51
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Network_Repair_Statistics/Form.js
  78. +47
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Network_Repair_Statistics/Index.cshtml
  79. +95
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Network_Repair_Statistics/Index.js
  80. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/QuickRepairStatistics/Form.cshtml
  81. +23
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Repair_Purchase_App_Statistics/Form.cshtml
  82. +51
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Repair_Purchase_App_Statistics/Form.js
  83. +47
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Repair_Purchase_App_Statistics/Index.cshtml
  84. +95
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Repair_Purchase_App_Statistics/Index.js
  85. +3
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ExcellentPartyMember/Form.cshtml
  86. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ExcellentPartyMember/Form.js
  87. +13
    -11
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ExcellentPartyMember/Index.js
  88. +3
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/PartyMember_Birthday_Reminder/Form.cshtml
  89. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/PartyMember_Birthday_Reminder/Form.js
  90. +20
    -18
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/PartyMember_Birthday_Reminder/Index.js
  91. +2
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/StudentWork/Views/EmploymentInfo/Form.cshtml
  92. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/StudentWork/Views/EmploymentInfo/Form.js
  93. +2
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/StudentWork/Views/EmploymentInfo/Index.cshtml
  94. +12
    -12
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/StudentWork/Views/EmploymentInfo/Index.js
  95. +3
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/StudentWork/Views/EnvironmentFactor/Form.cshtml
  96. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/StudentWork/Views/EnvironmentFactor/Form.js
  97. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/StudentWork/Views/EnvironmentFactor/Index.cshtml
  98. +2
    -11
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/StudentWork/Views/EnvironmentFactor/Index.js
  99. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/StudentWork/Views/ExemptionApplication/Form.js
  100. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/StudentWork/Views/ExemptionApplication/Index.js

+ 3
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/LowDurableGoods/Form.cshtml Переглянути файл

@@ -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>


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/LowDurableGoods/Form.js Переглянути файл

@@ -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) {


+ 2
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/LowDurableGoods/Index.cshtml Переглянути файл

@@ -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>


+ 14
- 12
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/LowDurableGoods/Index.js Переглянути файл

@@ -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"},


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/LowDurableGoodsBaseInfo/Form.js Переглянути файл

@@ -17,7 +17,7 @@ var bootstrap = function ($, learun) {
bind: function () {
$('#base_isuse').lrRadioCheckbox({
type: 'radio',
code: 'YesOrNoInt',
code: 'YesOrNoBit',
});
},
initData: function () {


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/LowDurableGoodsShareData/Form.js Переглянути файл

@@ -17,7 +17,7 @@ var bootstrap = function ($, learun) {
bind: function () {
$('#share_isuse').lrRadioCheckbox({
type: 'radio',
code: 'YesOrNoInt',
code: 'YesOrNoBit',
});
},
initData: function () {


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/LowDurableGoodsSysManage/Form.js Переглянути файл

@@ -17,7 +17,7 @@ var bootstrap = function ($, learun) {
bind: function () {
$('#sys_isuse').lrRadioCheckbox({
type: 'radio',
code: 'YesOrNoInt',
code: 'YesOrNoBit',
});
},
initData: function () {


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

@@ -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

}
}

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

@@ -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

}


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

@@ -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

}


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

@@ -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

}


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

@@ -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

}


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

@@ -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

}


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

@@ -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

}


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

@@ -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

}


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

@@ -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")

+ 52
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/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();
}

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

@@ -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>&nbsp;新增</a>
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;编辑</a>
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
<a id="lr_print" class="btn btn-default"><i class="fa fa-print"></i>&nbsp;打印</a>
</div>
</div>
</div>
<div class="lr-layout-body" id="gridtable"></div>
</div>
</div>
</div>
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/GraduateCondition/Index.js")

+ 102
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/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();
}

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

@@ -31,6 +31,7 @@
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
</div>
<a id="lr_upload" class="btn btn-default"><i class="fa fa-archive-o"></i>&nbsp;上传文件</a>
</div>
</div>
<div class="lr-layout-body" id="gridtable"></div>


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

@@ -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 () {


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

@@ -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")

+ 57
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/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();
}

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

@@ -31,6 +31,7 @@
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
</div>
<a id="lr_upload" class="btn btn-default"><i class="fa fa-archive-o"></i>&nbsp;上传文件</a>
</div>
</div>
<div class="lr-layout-body" id="gridtable"></div>


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

@@ -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 () {


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

@@ -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")

+ 57
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/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();
}

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

@@ -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>&nbsp;录入</a>
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
</div>
<a id="lr_upload" class="btn btn-default"><i class="fa fa-archive-o"></i>&nbsp;上传文件</a>
</div>
</div>
<div class="lr-layout-body" id="gridtable"></div>


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

@@ -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


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

@@ -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")

+ 57
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/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();
}

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

@@ -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>&nbsp;新增</a>
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;编辑</a>
<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;新增</a>
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;编辑</a>
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
</div>
<a id="lr_upload" class="btn btn-default"><i class="fa fa-archive-o"></i>&nbsp;上传文件</a>
</div>
</div>
<div class="lr-layout-body" id="gridtable"></div>


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

@@ -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 () {


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

@@ -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")

+ 57
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/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
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeAssess/Form.cshtml Переглянути файл

@@ -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>


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

@@ -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 () {


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

@@ -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>&nbsp;新增</a>
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;编辑</a>
<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;新增</a>
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;编辑</a>
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
</div>
<a id="lr_upload" class="btn btn-default"><i class="fa fa-archive-o"></i>&nbsp;上传文件</a>
</div>
</div>
<div class="lr-layout-body" id="gridtable"></div>


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

@@ -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', {


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

@@ -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")

+ 57
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/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();
}

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

@@ -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>&nbsp;新增</a>
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;编辑</a>
<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;新增</a>
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;编辑</a>
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
</div>
<a id="lr_upload" class="btn btn-default"><i class="fa fa-archive-o"></i>&nbsp;上传文件</a>
</div>
</div>
<div class="lr-layout-body" id="gridtable"></div>


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

@@ -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 () {


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

@@ -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")

+ 57
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/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();
}

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

@@ -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>&nbsp;新增</a>
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;编辑</a>
<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;新增</a>
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;编辑</a>
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
</div>
<a id="lr_upload" class="btn btn-default"><i class="fa fa-archive-o"></i>&nbsp;上传文件</a>
</div>
</div>
<div class="lr-layout-body" id="gridtable"></div>


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

@@ -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 () {


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

@@ -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")

+ 57
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/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();
}

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

@@ -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" >


+ 2
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoGraduate/CertificateGrant.cshtml Переглянути файл

@@ -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>


+ 21
- 21
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoGraduate/CertificateGrant.js Переглянути файл

@@ -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',


+ 2
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoGraduate/CheckIndex.cshtml Переглянути файл

@@ -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>


+ 21
- 21
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoGraduate/CheckIndex.js Переглянути файл

@@ -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',


+ 2
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScore/ScoreQueryAllIndex.cshtml Переглянути файл

@@ -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>


+ 14
- 14
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScore/ScoreQueryAllIndex.js Переглянути файл

@@ -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) {


+ 2
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScore/ScoreQueryAllIndexTeacher.cshtml Переглянути файл

@@ -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>


+ 5
- 5
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScore/ScoreQueryAllIndexTeacher.js Переглянути файл

@@ -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 = [];


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Views/Department/Form.cshtml Переглянути файл

@@ -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>


+ 7
- 6
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Controllers/LogisticsLaultRepairController.cs Переглянути файл

@@ -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))
{
}


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

@@ -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

}
}

+ 9
- 8
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Controllers/NetworkPracticalRepairController.cs Переглянути файл

@@ -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))
{
}


+ 9
- 8
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Controllers/NetworkRepairController.cs Переглянути файл

@@ -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))
{
}


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

@@ -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

}
}

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

@@ -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

}
}

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

@@ -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

}
}

+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/LogisticsLaultRepair/Statistics.js Переглянути файл

@@ -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();


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

@@ -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")

+ 50
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/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();
}

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

@@ -0,0 +1,47 @@
@{
ViewBag.Title = "后勤维修统计";
Layout = "~/Views/Shared/_Index.cshtml";
}
<div class="lr-layout " >
<div class="lr-layout-center">
<div class="lr-layout-wrap lr-layout-wrap-notitle ">
<div class="lr-layout-tool">
<div class="lr-layout-tool-left">
<div class="lr-layout-tool-item">
<div id="multiple_condition_query">
<div class="lr-query-formcontent">
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">统计类型名称</div>
<input id="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>&nbsp;新增</a>
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;编辑</a>
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
<a id="lr_print" class="btn btn-default"><i class="fa fa-print"></i>&nbsp;打印</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")

+ 95
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/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();
}

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

@@ -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")

+ 51
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/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();
}

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

@@ -0,0 +1,47 @@
@{
ViewBag.Title = "网络实训统计";
Layout = "~/Views/Shared/_Index.cshtml";
}
<div class="lr-layout " >
<div class="lr-layout-center">
<div class="lr-layout-wrap lr-layout-wrap-notitle ">
<div class="lr-layout-tool">
<div class="lr-layout-tool-left">
<div class="lr-layout-tool-item">
<div id="multiple_condition_query">
<div class="lr-query-formcontent">
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">统计类型名称</div>
<input id="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>&nbsp;新增</a>
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;编辑</a>
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
<a id="lr_print" class="btn btn-default"><i class="fa fa-print"></i>&nbsp;打印</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")

+ 95
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/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();
}

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

@@ -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")

+ 51
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/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();
}

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

@@ -0,0 +1,47 @@
@{
ViewBag.Title = "网络维修统计";
Layout = "~/Views/Shared/_Index.cshtml";
}
<div class="lr-layout " >
<div class="lr-layout-center">
<div class="lr-layout-wrap lr-layout-wrap-notitle ">
<div class="lr-layout-tool">
<div class="lr-layout-tool-left">
<div class="lr-layout-tool-item">
<div id="multiple_condition_query">
<div class="lr-query-formcontent">
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">统计类型名称</div>
<input id="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>&nbsp;新增</a>
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;编辑</a>
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
<a id="lr_print" class="btn btn-default"><i class="fa fa-print"></i>&nbsp;打印</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")

+ 95
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/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();
}

+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/QuickRepairStatistics/Form.cshtml Переглянути файл

@@ -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>


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

@@ -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")

+ 51
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/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();
}

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

@@ -0,0 +1,47 @@
@{
ViewBag.Title = "维护采购申请统计";
Layout = "~/Views/Shared/_Index.cshtml";
}
<div class="lr-layout " >
<div class="lr-layout-center">
<div class="lr-layout-wrap lr-layout-wrap-notitle ">
<div class="lr-layout-tool">
<div class="lr-layout-tool-left">
<div class="lr-layout-tool-item">
<div id="multiple_condition_query">
<div class="lr-query-formcontent">
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">统计类型名称</div>
<input id="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>&nbsp;新增</a>
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;编辑</a>
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
<a id="lr_print" class="btn btn-default"><i class="fa fa-print"></i>&nbsp;打印</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")

+ 95
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/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
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ExcellentPartyMember/Form.cshtml Переглянути файл

@@ -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>


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ExcellentPartyMember/Form.js Переглянути файл

@@ -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) {


+ 13
- 11
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ExcellentPartyMember/Index.js Переглянути файл

@@ -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
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/PartyMember_Birthday_Reminder/Form.cshtml Переглянути файл

@@ -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>


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/PartyMember_Birthday_Reminder/Form.js Переглянути файл

@@ -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) {


+ 20
- 18
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/PartyMember_Birthday_Reminder/Index.js Переглянути файл

@@ -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 () {


+ 2
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/StudentWork/Views/EmploymentInfo/Form.cshtml Переглянути файл

@@ -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>


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/StudentWork/Views/EmploymentInfo/Form.js Переглянути файл

@@ -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' });


+ 2
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/StudentWork/Views/EmploymentInfo/Index.cshtml Переглянути файл

@@ -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>


+ 12
- 12
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/StudentWork/Views/EmploymentInfo/Index.js Переглянути файл

@@ -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', {


+ 3
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/StudentWork/Views/EnvironmentFactor/Form.cshtml Переглянути файл

@@ -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>


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/StudentWork/Views/EnvironmentFactor/Form.js Переглянути файл

@@ -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',


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/StudentWork/Views/EnvironmentFactor/Index.cshtml Переглянути файл

@@ -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>


+ 2
- 11
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/StudentWork/Views/EnvironmentFactor/Index.js Переглянути файл

@@ -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', {


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/StudentWork/Views/ExemptionApplication/Form.js Переглянути файл

@@ -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");
},


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/StudentWork/Views/ExemptionApplication/Index.js Переглянути файл

@@ -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);
}


Деякі файли не було показано, через те що забагато файлів було змінено

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