-
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Ask/Views/Notice_Train_Teams/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Ask/Views/Notice_Train_Teams/Index.js
index 2412d8819..b893826ad 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Ask/Views/Notice_Train_Teams/Index.js
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Ask/Views/Notice_Train_Teams/Index.js
@@ -1,8 +1,8 @@
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
* 创建人:超级管理员
- * 日 期:2023-09-28 14:30
- * 描 述:运动对集训安排
+ * 日 期:2023-10-18 00:50
+ * 描 述:队伍管理
*/
var refreshGirdData;
var bootstrap = function ($, learun) {
@@ -13,11 +13,6 @@ var bootstrap = function ($, learun) {
page.bind();
},
bind: function () {
- // 查询
- $('#btn_Search').on('click', function () {
- var keyword = $('#txt_Keyword').val();
- page.search({ keyword: keyword });
- });
// 刷新
$('#lr_refresh').on('click', function () {
location.reload();
@@ -28,8 +23,8 @@ var bootstrap = function ($, learun) {
id: 'form',
title: '新增',
url: top.$.rootUrl + '/Ask/Notice_Train_Teams/Form',
- width: 1000,
- height: 650,
+ width: 600,
+ height: 400,
callBack: function (id) {
return top[id].acceptClick(refreshGirdData);
}
@@ -37,14 +32,14 @@ var bootstrap = function ($, learun) {
});
// 编辑
$('#lr_edit').on('click', function () {
- var keyValue = $('#gridtable').jfGridValue('T_id');
+ var keyValue = $('#gridtable').jfGridValue('BelongId');
if (learun.checkrow(keyValue)) {
learun.layerForm({
id: 'form',
title: '编辑',
url: top.$.rootUrl + '/Ask/Notice_Train_Teams/Form?keyValue=' + keyValue,
- width: 1000,
- height: 650,
+ width: 600,
+ height: 400,
callBack: function (id) {
return top[id].acceptClick(refreshGirdData);
}
@@ -53,7 +48,7 @@ var bootstrap = function ($, learun) {
});
// 删除
$('#lr_delete').on('click', function () {
- var keyValue = $('#gridtable').jfGridValue('T_id');
+ var keyValue = $('#gridtable').jfGridValue('BelongId');
if (learun.checkrow(keyValue)) {
learun.layerConfirm('是否确认删除该项!', function (res) {
if (res) {
@@ -70,40 +65,26 @@ var bootstrap = function ($, learun) {
$('#gridtable').jfGrid({
url: top.$.rootUrl + '/Ask/Notice_Train_Teams/GetPageList',
headData: [
- { label: "标题", name: "T_title", width: 100, align: "left"},
- { label: "类别", name: "T_type", width: 100, align: "left"},
- { label: "发布时间", name: "Createtime", width: 100, align: "left"},
- { label: "信息来源", name: "Source", width: 100, align: "left"},
- { label: "来源地址", name: "SourceUrl", width: 100, align: "left"},
- { label: "下发部门", name: "Noticedept", width: 100, align: "left",
- formatterAsync: function (callback, value, row, op, $cell) {
- if (value) {
- learun.clientdata.getsAsync('custmerData', {
- url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'classdata',
- key: value,
- keyId: 'id',
- textId: 'name',
- callback: function (text) {
- callback(text);
- }
- });
- }
+ { label: "队伍名称", name: "Name", width: 100, align: "left"},
+ { label: "下拉框", name: "Teamusers", width: 100, align: "left",
+ formatterAsync: function (callback, value, row, op,$cell) {
+ learun.clientdata.getAsync('custmerData', {
+ url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'teacheruserdata',
+ key: value,
+ keyId: 'f_userid',
+ callback: function (_data) {
+ callback(_data['f_userid']);
+ }
+ });
}},
- //{ label: "附件上传", name: "Files", width: 100, align: "left"},
- //{ label: "内容", name: "T_Content", width: 100, align: "left"},
],
- mainId: 'T_id',
- reloadSelected: true,
- isMultiselect: true,
- isPage: true,
- sidx: 'Createtime',
- sord: 'desc'
+ mainId:'BelongId',
+ isPage: true
});
page.search();
},
search: function (param) {
param = param || {};
- param.Type = "4";
$('#gridtable').jfGridSet('reload',{ queryJson: JSON.stringify(param) });
}
};
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj b/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj
index 98ad6cc48..acde77549 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj
@@ -309,6 +309,7 @@
+
@@ -930,6 +931,8 @@
+
+
@@ -8353,6 +8356,8 @@
+
+
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Ask/Notice_Train_TeamsMap.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Ask/Notice_Train_TeamsMap.cs
index 9263f525d..e4a2ad694 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Ask/Notice_Train_TeamsMap.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Ask/Notice_Train_TeamsMap.cs
@@ -7,8 +7,8 @@ namespace Learun.Application.Mapping
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
- /// 日 期:2023-09-28 14:30
- /// 描 述:运动对集训安排
+ /// 日 期:2023-10-18 00:50
+ /// 描 述:队伍管理
///
public class Notice_Train_TeamsMap : EntityTypeConfiguration
{
@@ -18,7 +18,7 @@ namespace Learun.Application.Mapping
//表
this.ToTable("NOTICE_TRAIN_TEAMS");
//主键
- this.HasKey(t => t.T_id);
+ this.HasKey(t => t.Id);
#endregion
#region 配置关系
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Ask/Notice_Train_Sports/Notice_Train_SportsService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Ask/Notice_Train_Sports/Notice_Train_SportsService.cs
index 01ae52dd8..bef570336 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Ask/Notice_Train_Sports/Notice_Train_SportsService.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Ask/Notice_Train_Sports/Notice_Train_SportsService.cs
@@ -250,7 +250,7 @@ namespace Learun.Application.TwoDevelopment.Ask
strSql.Append(" left join NoticeLog_Train_Sports r on t.T_id = r.NewsId and r.RUserId =@userId ");
strSql.Append(" left join adms7ultimate2_新疆体育.dbo.lr_base_user u on u.F_UserId =@userId ");
strSql.Append(" left join adms7ultimate2_新疆体育.dbo.LR_BASE_DEPARTMENT d on d.F_DepartmentId = t.Noticedept ");
- strSql.Append(" WHERE ");
+ strSql.Append(" WHERE 1=1 ");
//去掉用户入职时间条件
//if (userinfo.account.Contains("20"))
//{
@@ -260,8 +260,9 @@ namespace Learun.Application.TwoDevelopment.Ask
//strSql.Append($@" and (((t.F_SendDeptId is null or len(t.F_SendDeptId)=0) and (t.F_SendPostId is null or len(t.F_SendPostId)=0))");
if (!string.IsNullOrEmpty(deptId))
{
- strSql.Append($" t.Noticedept like '%{deptId}%'");
+ strSql.Append($" and (t.Noticedept like '%{deptId}%' or t.Noticepeople like '%{userId}%')");
}
+ //strSql.Append($" ");
//if (!string.IsNullOrEmpty(postIds))
//{
// strSql.Append(" or (t.F_SendPostId is not null and ");
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Ask/Notice_Train_Sum/Notice_Train_SumEntity.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Ask/Notice_Train_Sum/Notice_Train_SumEntity.cs
index 90d8fe73d..a99b9576b 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Ask/Notice_Train_Sum/Notice_Train_SumEntity.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Ask/Notice_Train_Sum/Notice_Train_SumEntity.cs
@@ -59,6 +59,11 @@ namespace Learun.Application.TwoDevelopment.Ask
///
[Column("TYPENAME")]
public string Typename { get; set; }
+ ///
+ /// Typename
+ ///
+ [Column("TEAMID")]
+ public string Teamid { get; set; }
#endregion
#region 扩展操作
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Ask/Notice_Train_Teams/Notice_Train_TeamsBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Ask/Notice_Train_Teams/Notice_Train_TeamsBLL.cs
index ca256dd09..b4c48603a 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Ask/Notice_Train_Teams/Notice_Train_TeamsBLL.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Ask/Notice_Train_Teams/Notice_Train_TeamsBLL.cs
@@ -9,8 +9,8 @@ namespace Learun.Application.TwoDevelopment.Ask
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
- /// 日 期:2023-09-28 14:30
- /// 描 述:运动对集训安排
+ /// 日 期:2023-10-18 00:50
+ /// 描 述:队伍管理
///
public class Notice_Train_TeamsBLL : Notice_Train_TeamsIBLL
{
@@ -67,30 +67,6 @@ namespace Learun.Application.TwoDevelopment.Ask
}
}
- ///
- /// 获取NoticeLog_Train_Teams表实体数据
- ///
- /// 主键
- ///
- public NoticeLog_Train_TeamsEntity GetNoticeLog_Train_TeamsEntity(string keyValue)
- {
- try
- {
- return notice_Train_TeamsService.GetNoticeLog_Train_TeamsEntity(keyValue);
- }
- catch (Exception ex)
- {
- if (ex is ExceptionEx)
- {
- throw;
- }
- else
- {
- throw ExceptionEx.ThrowBusinessException(ex);
- }
- }
- }
-
#endregion
#region 提交数据
@@ -124,11 +100,11 @@ namespace Learun.Application.TwoDevelopment.Ask
/// 主键
/// 实体
///
- public void SaveEntity(string keyValue, Notice_Train_TeamsEntity entity,NoticeLog_Train_TeamsEntity noticeLog_Train_TeamsEntity)
+ public void SaveEntity(string keyValue, Notice_Train_TeamsEntity entity)
{
try
{
- notice_Train_TeamsService.SaveEntity(keyValue, entity,noticeLog_Train_TeamsEntity);
+ notice_Train_TeamsService.SaveEntity(keyValue, entity);
}
catch (Exception ex)
{
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Ask/Notice_Train_Teams/Notice_Train_TeamsEntity.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Ask/Notice_Train_Teams/Notice_Train_TeamsEntity.cs
index 1bc292860..28a9e657a 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Ask/Notice_Train_Teams/Notice_Train_TeamsEntity.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Ask/Notice_Train_Teams/Notice_Train_TeamsEntity.cs
@@ -8,82 +8,37 @@ namespace Learun.Application.TwoDevelopment.Ask
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
- /// 日 期:2023-09-28 14:30
- /// 描 述:运动对集训安排
+ /// 日 期:2023-10-18 00:50
+ /// 描 述:队伍管理
///
public class Notice_Train_TeamsEntity
{
#region 实体成员
///
- /// T_id
+ /// Id
///
- [Column("T_ID")]
- public string T_id { get; set; }
+ [Column("ID")]
+ public string Id { get; set; }
///
- /// T_type
+ /// Name
///
- [Column("T_TYPE")]
- public string T_type { get; set; }
+ [Column("NAME")]
+ public string Name { get; set; }
///
- /// T_type
+ /// Teamusers
///
- [Column("T_TYPENAME")]
- public string T_typename { get; set; }
- ///
- /// T_title
- ///
- [Column("T_TITLE")]
- public string T_title { get; set; }
- ///
- /// Source
- ///
- [Column("SOURCE")]
- public string Source { get; set; }
- ///
- /// SourceUrl
- ///
- [Column("SOURCEURL")]
- public string SourceUrl { get; set; }
- ///
- /// Files
- ///
- [Column("FILES")]
- public string Files { get; set; }
- ///
- /// T_Content
- ///
- [Column("T_CONTENT")]
- public string T_Content { get; set; }
- ///
- /// Noticedept
- ///
- [Column("NOTICEDEPT")]
- public string Noticedept { get; set; }
- ///
- /// Noticepeople
- ///
- [Column("NOTICEPEOPLE")]
- public string Noticepeople { get; set; }
+ [Column("TEAMUSERS")]
+ public string Teamusers { get; set; }
///
/// Createtime
///
[Column("CREATETIME")]
public DateTime? Createtime { get; set; }
///
- /// Updatetime
- ///
- [Column("UPDATETIME")]
- public DateTime? Updatetime { get; set; }
- ///
/// Creator
///
[Column("CREATOR")]
public string Creator { get; set; }
- ///
- /// Status
- ///
- [Column("STATUS")]
- public int? Status { get; set; }
#endregion
#region 扩展操作
@@ -92,16 +47,10 @@ namespace Learun.Application.TwoDevelopment.Ask
///
public void Create()
{
- this.T_id = Guid.NewGuid().ToString();
- //this.F_CreateDate = DateTime.Now;
- //this.F_ReleaseTime = DateTime.Now;
- //this.F_DeleteMark = 0;
- //this.F_EnabledMark = 0;
- //this.F_PV = 0;
-
+ this.Id = Guid.NewGuid().ToString();
UserInfo userInfo = LoginUserInfo.Get();
this.Creator = userInfo.userId;
- //this.F_CreateUserName = userInfo.realName;
+ this.Createtime = DateTime.Now;
}
///
/// 编辑调用
@@ -109,7 +58,10 @@ namespace Learun.Application.TwoDevelopment.Ask
///
public void Modify(string keyValue)
{
- this.T_id = keyValue;
+ this.Id = keyValue;
+ this.Createtime = DateTime.Now;
+ UserInfo userInfo = LoginUserInfo.Get();
+ this.Creator = userInfo.userId;
}
#endregion
#region 扩展字段
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Ask/Notice_Train_Teams/Notice_Train_TeamsIBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Ask/Notice_Train_Teams/Notice_Train_TeamsIBLL.cs
index 01b4b37da..95344b0b6 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Ask/Notice_Train_Teams/Notice_Train_TeamsIBLL.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Ask/Notice_Train_Teams/Notice_Train_TeamsIBLL.cs
@@ -8,8 +8,8 @@ namespace Learun.Application.TwoDevelopment.Ask
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
- /// 日 期:2023-09-28 14:30
- /// 描 述:运动对集训安排
+ /// 日 期:2023-10-18 00:50
+ /// 描 述:队伍管理
///
public interface Notice_Train_TeamsIBLL
{
@@ -27,12 +27,6 @@ namespace Learun.Application.TwoDevelopment.Ask
/// 主键
///
Notice_Train_TeamsEntity GetNotice_Train_TeamsEntity(string keyValue);
- ///
- /// 获取NoticeLog_Train_Teams表实体数据
- ///
- /// 主键
- ///
- NoticeLog_Train_TeamsEntity GetNoticeLog_Train_TeamsEntity(string keyValue);
#endregion
#region 提交数据
@@ -47,7 +41,7 @@ namespace Learun.Application.TwoDevelopment.Ask
///
/// 主键
/// 实体
- void SaveEntity(string keyValue, Notice_Train_TeamsEntity entity,NoticeLog_Train_TeamsEntity noticeLog_Train_TeamsEntity);
+ void SaveEntity(string keyValue, Notice_Train_TeamsEntity entity);
#endregion
}
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Ask/Notice_Train_Teams/Notice_Train_TeamsService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Ask/Notice_Train_Teams/Notice_Train_TeamsService.cs
index 680f4073a..4417d11ac 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Ask/Notice_Train_Teams/Notice_Train_TeamsService.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Ask/Notice_Train_Teams/Notice_Train_TeamsService.cs
@@ -12,8 +12,8 @@ namespace Learun.Application.TwoDevelopment.Ask
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
- /// 日 期:2023-09-28 14:30
- /// 描 述:运动对集训安排
+ /// 日 期:2023-10-18 00:50
+ /// 描 述:队伍管理
///
public class Notice_Train_TeamsService : RepositoryFactory
{
@@ -31,8 +31,7 @@ namespace Learun.Application.TwoDevelopment.Ask
{
var strSql = new StringBuilder();
strSql.Append("SELECT ");
- strSql.Append(@"
- t.*
+ strSql.Append(@" *
");
strSql.Append(" FROM Notice_Train_Teams t ");
strSql.Append(" WHERE 1=1 ");
@@ -63,31 +62,7 @@ namespace Learun.Application.TwoDevelopment.Ask
{
try
{
- return this.BaseRepository("CollegeMIS").FindEntity(keyValue);
- }
- catch (Exception ex)
- {
- if (ex is ExceptionEx)
- {
- throw;
- }
- else
- {
- throw ExceptionEx.ThrowServiceException(ex);
- }
- }
- }
-
- ///
- /// 获取NoticeLog_Train_Teams表实体数据
- ///
- /// 主键
- ///
- public NoticeLog_Train_TeamsEntity GetNoticeLog_Train_TeamsEntity(string keyValue)
- {
- try
- {
- return this.BaseRepository("CollegeMIS").FindEntity(t=>t.N_id == keyValue);
+ return this.BaseRepository("CollegeMIS").FindEntity(keyValue.ToInt());
}
catch (Exception ex)
{
@@ -112,17 +87,12 @@ namespace Learun.Application.TwoDevelopment.Ask
/// 主键
public void DeleteEntity(string keyValue)
{
- var db = this.BaseRepository("CollegeMIS").BeginTrans();
try
{
- var notice_Train_TeamsEntity = GetNotice_Train_TeamsEntity(keyValue);
- db.Delete(t=>t.T_id == keyValue);
- //db.Delete(t=>t.N_id == notice_Train_TeamsEntity.T_id);
- db.Commit();
+ this.BaseRepository("CollegeMIS").Delete(t=>t.Id == keyValue);
}
catch (Exception ex)
{
- db.Rollback();
if (ex is ExceptionEx)
{
throw;
@@ -139,34 +109,23 @@ namespace Learun.Application.TwoDevelopment.Ask
///
/// 主键
/// 实体
- public void SaveEntity(string keyValue, Notice_Train_TeamsEntity entity,NoticeLog_Train_TeamsEntity noticeLog_Train_TeamsEntity)
+ public void SaveEntity(string keyValue, Notice_Train_TeamsEntity entity)
{
- var db = this.BaseRepository("CollegeMIS").BeginTrans();
try
{
if (!string.IsNullOrEmpty(keyValue))
{
- var notice_Train_TeamsEntityTmp = GetNotice_Train_TeamsEntity(keyValue);
entity.Modify(keyValue);
- db.Update(entity);
- //db.Delete(t=>t.N_id == notice_Train_TeamsEntityTmp.T_id);
- //noticeLog_Train_TeamsEntity.Create();
- //noticeLog_Train_TeamsEntity.N_id = notice_Train_TeamsEntityTmp.T_id;
- //db.Insert(noticeLog_Train_TeamsEntity);
+ this.BaseRepository("CollegeMIS").Update(entity);
}
else
{
entity.Create();
- db.Insert(entity);
- //noticeLog_Train_TeamsEntity.Create();
- //noticeLog_Train_TeamsEntity.N_id = entity.T_id;
- //db.Insert(noticeLog_Train_TeamsEntity);
+ this.BaseRepository("CollegeMIS").Insert(entity);
}
- db.Commit();
}
catch (Exception ex)
{
- db.Rollback();
if (ex is ExceptionEx)
{
throw;