diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TrainEquipmentManage/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TrainEquipmentManage/Index.js
index 5d4c0d41a..b333e584f 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TrainEquipmentManage/Index.js
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TrainEquipmentManage/Index.js
@@ -16,7 +16,9 @@ var bootstrap = function ($, learun) {
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) {
page.search(queryJson);
}, 220, 400);
- $('#DeptNo').lrDataSourceSelect({ code: 'CdDeptInfo', value: 'deptno', text: 'deptname' });
+ $('#DeptNo').lrDataSourceSelect({ code: 'classdata', value: 'id', text: 'name' });
+ $('#EquipmentType').lrDataItemSelect({ code: 'AssType' });
+ $('#UserId').lrDataSourceSelect({ code: 'TeacherInfo', value: 'f_userid', text: 'f_realname' });
// 刷新
$('#lr_refresh').on('click', function () {
location.reload();
@@ -28,7 +30,7 @@ var bootstrap = function ($, learun) {
title: '新增',
url: top.$.rootUrl + '/EducationalAdministration/TrainEquipmentManage/Form',
width: 600,
- height: 400,
+ height: 420,
callBack: function (id) {
return top[id].acceptClick(refreshGirdData);
}
@@ -43,7 +45,7 @@ var bootstrap = function ($, learun) {
title: '编辑',
url: top.$.rootUrl + '/EducationalAdministration/TrainEquipmentManage/Form?keyValue=' + keyValue,
width: 600,
- height: 400,
+ height: 420,
callBack: function (id) {
return top[id].acceptClick(refreshGirdData);
}
@@ -56,47 +58,95 @@ var bootstrap = function ($, learun) {
if (learun.checkrow(keyValue)) {
learun.layerConfirm('是否确认删除该项!', function (res) {
if (res) {
- learun.deleteForm(top.$.rootUrl + '/EducationalAdministration/TrainEquipmentManage/DeleteForm', { keyValue: keyValue}, function () {
+ learun.deleteForm(top.$.rootUrl + '/EducationalAdministration/TrainEquipmentManage/DeleteForm', { keyValue: keyValue }, function () {
refreshGirdData();
});
}
});
}
});
+ // 打印
+ $('#lr_print').on('click', function () {
+ $('#gridtable').jqprintTable();
+ });
},
// 初始化列表
initGird: function () {
- $('#gridtable').lrAuthorizeJfGrid({
+ $('#gridtable').lrAuthorizeJfGridLei({
url: top.$.rootUrl + '/EducationalAdministration/TrainEquipmentManage/GetPageList',
headData: [
- { label: "专业部", name: "DeptNo", 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: 'deptno',
- callback: function (_data) {
- callback(_data['deptname']);
- }
- });
- }},
- { label: "实训室名称", name: "TrainName", width: 100, align: "left"},
- { label: "设备名称", name: "EquipmentName", width: 100, align: "left"},
- { label: "设备型号", name: "EquipmentModel", width: 100, align: "left"},
- { label: "新增", name: "AddNum", width: 100, align: "left"},
- { label: "损耗", name: "LossNum", width: 100, align: "left"},
- { label: "现存", name: "ExistNum", width: 100, align: "left"},
- { label: "设备金额", name: "EquipmentMoney", width: 100, align: "left" },
- { label: "库存", name: "Inventory", width: 100, align: "left" },
+ {
+ label: "部门", name: "DeptNo", width: 100, align: "left",
+ formatterAsync: function (callback, value, row, op, $cell) {
+ learun.clientdata.getAsync('custmerData', {
+ url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'classdata',
+ key: value,
+ keyId: 'id',
+ callback: function (_data) {
+ callback(_data['name']);
+ }
+ });
+ }
+ },
+ { label: "实训室名称", name: "TrainName", width: 100, align: "left" },
+ { label: "设备名称", name: "EquipmentName", width: 100, align: "left" },
+ {
+ label: "类别", name: "EquipmentType", width: 100, align: "left",
+ formatterAsync: function (callback, value, row, op, $cell) {
+ learun.clientdata.getAsync('dataItem', {
+ key: value,
+ code: 'AssType',
+ callback: function (_data) {
+ callback(_data.text);
+ }
+ });
+ }
+ },
+ { label: "品牌", name: "Brand", width: 120, align: "left" },
+ { label: "型号", name: "EquipmentModel", width: 100, align: "left" },
+ { label: "参数", name: "Argument", width: 120, align: "left" },
+ {
+ label: "单位", name: "Unit", width: 100, align: "left",
+ formatterAsync: function (callback, value, row, op, $cell) {
+ learun.clientdata.getAsync('dataItem', {
+ key: value,
+ code: 'sldw',
+ callback: function (_data) {
+ callback(_data.text);
+ }
+ });
+ }
+ },
+ //{ label: "新增", name: "AddNum", width: 100, align: "left"},
+ //{ label: "损耗", name: "LossNum", width: 100, align: "left"},
+ //{ label: "现存", name: "ExistNum", width: 100, align: "left"},
+ { label: "数量", name: "Nuantity", width: 100, align: "left", statistics: true },
+ { label: "单价(元)", name: "Price", width: 100, align: "left"},
+ { label: "设备金额(元)", name: "EquipmentMoney", width: 100, align: "left", statistics: true },
+ {
+ label: "管理员", name: "UserId", width: 100, align: "left",
+ formatterAsync: function (callback, value, row, op, $cell) {
+ learun.clientdata.getAsync('custmerData', {
+ url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'TeacherInfo',
+ key: value,
+ keyId: 'f_userid',
+ callback: function (_data) {
+ callback(_data['f_realname']);
+ }
+ });
+ }
+ },
+ { label: "备注", name: "Remark", width: 100, align: "left" },
],
- mainId:'Id',
- isPage: true
+ mainId: 'Id',
+ isPage: true,
+ sidx: "CreateTime desc"
});
page.search();
},
search: function (param) {
param = param || {};
- $('#gridtable').jfGridSet('reload',{ queryJson: JSON.stringify(param) });
+ $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
}
};
refreshGirdData = function () {
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StudentCompetition/StudentCompetitionEntity.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StudentCompetition/StudentCompetitionEntity.cs
index 69555c96b..5323e5c9f 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StudentCompetition/StudentCompetitionEntity.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StudentCompetition/StudentCompetitionEntity.cs
@@ -109,6 +109,12 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
///
[Column("SEMESTER")]
public string Semester { get; set; }
+ ///
+ /// 学期
+ ///
+ [Column("ENCOURAGEMENTDEGREE")]
+ public string EncouragementDegree { get; set; }
+
#endregion
#region 扩展操作
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/TrainEquipmentManage/TrainEquipmentManageEntity.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/TrainEquipmentManage/TrainEquipmentManageEntity.cs
index 15e3f718f..ecf8ebf0f 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/TrainEquipmentManage/TrainEquipmentManageEntity.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/TrainEquipmentManage/TrainEquipmentManageEntity.cs
@@ -11,7 +11,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
/// 日 期:2022-08-30 10:49
/// 描 述:实训设备管理
///
- public class TrainEquipmentManageEntity
+ public class TrainEquipmentManageEntity
{
#region 实体成员
///
@@ -64,6 +64,30 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
///
[Column("INVENTORY")]
public decimal? Inventory { get; set; }
+ [Column("EQUIPMENTTYPE")]
+ public string EquipmentType { get; set; }
+ [Column("BRAND")]
+ public string Brand { get; set; }
+ [Column("ARGUMENT")]
+ public string Argument { get; set; }
+ [Column("UNIT")]
+ public string Unit { get; set; }
+ [Column("NUANTITY")]
+ public decimal? Nuantity { get; set; }
+ [Column("PRICE")]
+ public decimal? Price { get; set; }
+ [Column("USERID")]
+ public string UserId { get; set; }
+ [Column("CREATETIME")]
+ public DateTime? CreateTime { get; set; }
+ [Column("CREATEUSER")]
+ public string CreateUser { get; set; }
+ [Column("UPDATETIME")]
+ public DateTime? UpdateTime { get; set; }
+ [Column("UPDATEUSER")]
+ public string UpdateUser { get; set; }
+ [Column("REMARK")]
+ public string Remark { get; set; }
#endregion
@@ -74,6 +98,8 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
public void Create()
{
this.Id = Guid.NewGuid().ToString();
+ this.CreateTime = DateTime.Now;
+ this.CreateUser = LoginUserInfo.Get().userId;
}
///
/// 编辑调用
@@ -82,6 +108,8 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
public void Modify(string keyValue)
{
this.Id = keyValue;
+ this.UpdateTime = DateTime.Now;
+ this.UpdateUser = LoginUserInfo.Get().userId;
}
#endregion
#region 扩展字段
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/TrainEquipmentManage/TrainEquipmentManageService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/TrainEquipmentManage/TrainEquipmentManageService.cs
index 8d050b764..5c157bc4c 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/TrainEquipmentManage/TrainEquipmentManageService.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/TrainEquipmentManage/TrainEquipmentManageService.cs
@@ -51,6 +51,16 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
dp.Add("EquipmentName", "%" + queryParam["EquipmentName"].ToString() + "%", DbType.String);
strSql.Append(" AND t.EquipmentName Like @EquipmentName ");
}
+ if (!queryParam["EquipmentType"].IsEmpty())
+ {
+ dp.Add("EquipmentType", queryParam["EquipmentType"].ToString(), DbType.String);
+ strSql.Append(" AND t.EquipmentType = @EquipmentType ");
+ }
+ if (!queryParam["UserId"].IsEmpty())
+ {
+ dp.Add("UserId", queryParam["UserId"].ToString(), DbType.String);
+ strSql.Append(" AND t.UserId = @UserId ");
+ }
return this.BaseRepository("CollegeMIS").FindList(strSql.ToString(),dp, pagination);
}
catch (Exception ex)