Compare commits
	
		
			No commits in common. "1c9f67e3dd95d70017564687072973e61eeec6f3" and "ce170e30770fedc754655e9c4d202723a422852b" have entirely different histories.
		
	
	
		
			1c9f67e3dd
			...
			ce170e3077
		
	
		
@ -300,10 +300,5 @@
 | 
			
		||||
        /// 首页 BI/BIStatiscialAnalysisController/GetJobCompletionSort Key
 | 
			
		||||
        /// </summary>
 | 
			
		||||
        public const string HomeJobCompletion = "HomeJobCompletion_{0}";
 | 
			
		||||
 | 
			
		||||
        /// <summary>
 | 
			
		||||
        /// 所有数据库链接
 | 
			
		||||
        /// </summary>
 | 
			
		||||
        public const string ConnAll = "OPConn";
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -51,14 +51,5 @@ namespace APT.MS.Domain.Entities.PF
 | 
			
		||||
        public Guid? ROLE_ID { get; set; }
 | 
			
		||||
        [Description("导航属性:审批角色")]
 | 
			
		||||
        public virtual T_FM_ROLE Nav_Role { get; set; }
 | 
			
		||||
 | 
			
		||||
        /// <summary>
 | 
			
		||||
        /// 是否总部
 | 
			
		||||
        /// </summary>
 | 
			
		||||
        [Description("是否总部")]
 | 
			
		||||
        [FormFieldTable]
 | 
			
		||||
        [FormFieldQuery]
 | 
			
		||||
        [FormFieldEdit]
 | 
			
		||||
        public bool ISHEAD { get; set; }=false;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -76,14 +76,5 @@ namespace APT.BaseData.Domain.Entities
 | 
			
		||||
        /// </summary>
 | 
			
		||||
        [Description("是否取消")]
 | 
			
		||||
        public bool ISCANCEL { get; set; }
 | 
			
		||||
 | 
			
		||||
        /// <summary>
 | 
			
		||||
        /// 是否总部
 | 
			
		||||
        /// </summary>
 | 
			
		||||
        [Description("是否总部")]
 | 
			
		||||
        [FormFieldTable]
 | 
			
		||||
        [FormFieldQuery]
 | 
			
		||||
        [FormFieldEdit]
 | 
			
		||||
        public bool ISHEAD { get; set; } = false;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -1,10 +1,8 @@
 | 
			
		||||
using APT.BaseData.Domain.ApiModel.Platform;
 | 
			
		||||
using APT.BaseData.Domain.Entities.FM;
 | 
			
		||||
using APT.BaseData.Domain.Entities.FM;
 | 
			
		||||
using APT.BaseData.Domain.Entities.OP;
 | 
			
		||||
using APT.BaseData.Domain.Enums.OP;
 | 
			
		||||
using APT.BaseData.Domain.IServices.OP;
 | 
			
		||||
using APT.Infrastructure.Api;
 | 
			
		||||
using APT.Infrastructure.Api.Redis;
 | 
			
		||||
using APT.Infrastructure.Core;
 | 
			
		||||
using APT.Migrations;
 | 
			
		||||
using Newtonsoft.Json;
 | 
			
		||||
@ -25,31 +23,21 @@ namespace APT.BaseData.Services.Services.OP
 | 
			
		||||
        /// <summary>
 | 
			
		||||
        /// 获取 除 ORG_IDBeside 之外对应的数据库链接字典  ORG_ID  DB_CONN
 | 
			
		||||
        /// </summary>
 | 
			
		||||
        /// <param name="ORG_IDBeside">过滤值 没有就不过滤</param>
 | 
			
		||||
        /// <param name="ORG_IDBeside"></param>
 | 
			
		||||
        /// <returns></returns>
 | 
			
		||||
        public Dictionary<Guid, string> GetConnDictionary(Guid? ORG_IDBeside)
 | 
			
		||||
        {
 | 
			
		||||
            Dictionary<Guid, string> dicORGCONN = new Dictionary<Guid, string>();
 | 
			
		||||
            //从Redis中获取所有数据库链接值
 | 
			
		||||
 | 
			
		||||
            bool isRedisConfig = true;
 | 
			
		||||
            var redisConfig = APT.Infrastructure.Api.ConfigurationManager.AppSettings["RedisFormConfig"];
 | 
			
		||||
            if (!string.IsNullOrEmpty(redisConfig))
 | 
			
		||||
                isRedisConfig = bool.Parse(redisConfig);
 | 
			
		||||
            if (isRedisConfig)
 | 
			
		||||
            {
 | 
			
		||||
                if (CsRedisManager.KeyExists(RedisCacheKey.ConnAll))
 | 
			
		||||
                    dicORGCONN = CsRedisManager.StringGet<Dictionary<Guid, string>>(RedisCacheKey.ConnAll);
 | 
			
		||||
            }
 | 
			
		||||
            #region    Redis没找到 去数据库查找
 | 
			
		||||
 | 
			
		||||
            if (dicORGCONN == null || dicORGCONN.Count < 1)
 | 
			
		||||
            {
 | 
			
		||||
            string conn = string.Empty;
 | 
			
		||||
            IEnumerable<T_OP_TENANT> listTent = null;
 | 
			
		||||
            using (var context = new MigrationContext())
 | 
			
		||||
            {
 | 
			
		||||
                Expression<Func<T_OP_TENANT, bool>> expression = e => e.DB_CONN_ID.HasValue;
 | 
			
		||||
                if (ORG_IDBeside.HasValue)
 | 
			
		||||
                {
 | 
			
		||||
                    expression = expression.And(e => e.ID != ORG_IDBeside);
 | 
			
		||||
                }
 | 
			
		||||
 | 
			
		||||
                listTent = context.GetEntities(expression, null, null);
 | 
			
		||||
                List<Guid> listConnID = listTent.Select(e => e.DB_CONN_ID.Value).ToList();
 | 
			
		||||
                var listDbConn = context.GetEntities<T_OP_TENANT_DB_CONN>(e => listConnID.Contains(e.ID), null, null);
 | 
			
		||||
@ -68,32 +56,6 @@ namespace APT.BaseData.Services.Services.OP
 | 
			
		||||
                            dicORGCONN.Add(listTent.First(e => e.DB_CONN_ID == item.ID).ID, conn);
 | 
			
		||||
                        }
 | 
			
		||||
                    }
 | 
			
		||||
                        if (isRedisConfig && dicORGCONN.Count > 0)
 | 
			
		||||
                        {
 | 
			
		||||
                            try
 | 
			
		||||
                            {
 | 
			
		||||
                                CsRedisManager.StringSet<Dictionary<Guid, string>>(RedisCacheKey.ConnAll, dicORGCONN);//所有数据库链接 存入 Redis
 | 
			
		||||
                            }
 | 
			
		||||
                            catch { }
 | 
			
		||||
                        }
 | 
			
		||||
                    }
 | 
			
		||||
                }
 | 
			
		||||
            } 
 | 
			
		||||
            #endregion
 | 
			
		||||
 | 
			
		||||
            if (dicORGCONN != null && dicORGCONN.Count > 0)
 | 
			
		||||
            {
 | 
			
		||||
                if (ORG_IDBeside.HasValue)
 | 
			
		||||
                {
 | 
			
		||||
                    Dictionary<Guid, string> dicORGCONN1 = new Dictionary<Guid, string>();
 | 
			
		||||
                    foreach (var item in dicORGCONN)
 | 
			
		||||
                    {
 | 
			
		||||
                        if (item.Key == ORG_IDBeside.Value)
 | 
			
		||||
                            continue;
 | 
			
		||||
 | 
			
		||||
                        dicORGCONN1.Add(item.Key, item.Value);
 | 
			
		||||
                    }
 | 
			
		||||
                    dicORGCONN = dicORGCONN1;
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
            return dicORGCONN;
 | 
			
		||||
 | 
			
		||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							@ -1,24 +0,0 @@
 | 
			
		||||
using Microsoft.EntityFrameworkCore.Migrations;
 | 
			
		||||
 | 
			
		||||
namespace APT.Data.Migrations.Migrations
 | 
			
		||||
{
 | 
			
		||||
    public partial class wyw2025102101 : Migration
 | 
			
		||||
    {
 | 
			
		||||
        protected override void Up(MigrationBuilder migrationBuilder)
 | 
			
		||||
        {
 | 
			
		||||
            migrationBuilder.AddColumn<bool>(
 | 
			
		||||
                name: "ISHEAD",
 | 
			
		||||
                table: "T_PF_APPROVAL_ROLE",
 | 
			
		||||
                type: "bit",
 | 
			
		||||
                nullable: false,
 | 
			
		||||
                defaultValue: false);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        protected override void Down(MigrationBuilder migrationBuilder)
 | 
			
		||||
        {
 | 
			
		||||
            migrationBuilder.DropColumn(
 | 
			
		||||
                name: "ISHEAD",
 | 
			
		||||
                table: "T_PF_APPROVAL_ROLE");
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							@ -1,24 +0,0 @@
 | 
			
		||||
using Microsoft.EntityFrameworkCore.Migrations;
 | 
			
		||||
 | 
			
		||||
namespace APT.Data.Migrations.Migrations
 | 
			
		||||
{
 | 
			
		||||
    public partial class wyw2025102201 : Migration
 | 
			
		||||
    {
 | 
			
		||||
        protected override void Up(MigrationBuilder migrationBuilder)
 | 
			
		||||
        {
 | 
			
		||||
            migrationBuilder.AddColumn<bool>(
 | 
			
		||||
                name: "ISHEAD",
 | 
			
		||||
                table: "T_PF_APPROVE_DETAIL",
 | 
			
		||||
                type: "bit",
 | 
			
		||||
                nullable: false,
 | 
			
		||||
                defaultValue: false);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        protected override void Down(MigrationBuilder migrationBuilder)
 | 
			
		||||
        {
 | 
			
		||||
            migrationBuilder.DropColumn(
 | 
			
		||||
                name: "ISHEAD",
 | 
			
		||||
                table: "T_PF_APPROVE_DETAIL");
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
@ -11691,9 +11691,6 @@ namespace APT.Data.Migrations.Migrations
 | 
			
		||||
                    b.Property<bool>("ISCANCEL")
 | 
			
		||||
                        .HasColumnType("bit");
 | 
			
		||||
 | 
			
		||||
                    b.Property<bool>("ISHEAD")
 | 
			
		||||
                        .HasColumnType("bit");
 | 
			
		||||
 | 
			
		||||
                    b.Property<bool>("IS_ALLOW_UPDATE")
 | 
			
		||||
                        .HasColumnType("bit");
 | 
			
		||||
 | 
			
		||||
@ -53826,9 +53823,6 @@ namespace APT.Data.Migrations.Migrations
 | 
			
		||||
                    b.Property<Guid?>("FORM_ID")
 | 
			
		||||
                        .HasColumnType("uniqueidentifier");
 | 
			
		||||
 | 
			
		||||
                    b.Property<bool>("ISHEAD")
 | 
			
		||||
                        .HasColumnType("bit");
 | 
			
		||||
 | 
			
		||||
                    b.Property<bool>("IS_DELETED")
 | 
			
		||||
                        .HasColumnType("bit");
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -2,6 +2,12 @@
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
 
 | 
			
		||||
  
 | 
			
		||||
 | 
			
		||||
//------------------------------------------------------------------------------
 | 
			
		||||
//     T4模板文件:基础接口类
 | 
			
		||||
//     此代码由T4模板自动生成
 | 
			
		||||
@ -16,6 +22,7 @@ using APT.BaseData.Domain.ApiModel.PF;
 | 
			
		||||
namespace APT.BD.WebApi.Controllers.Api
 | 
			
		||||
{
 | 
			
		||||
	using APT.BaseData.Domain.Entities.BD;
 | 
			
		||||
 | 
			
		||||
	#region  Hmi-HMI资源表维护
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  HMI资源表维护
 | 
			
		||||
@ -123,8 +130,10 @@ namespace APT.BD.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  Picture-图片资源
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  图片资源
 | 
			
		||||
@ -232,8 +241,10 @@ namespace APT.BD.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  PictureFile-资源图片文件
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  资源图片文件
 | 
			
		||||
@ -341,8 +352,10 @@ namespace APT.BD.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  Place-区域表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  区域表
 | 
			
		||||
@ -449,6 +462,7 @@ namespace APT.BD.WebApi.Controllers.Api
 | 
			
		||||
       {
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
              	/// <summary>
 | 
			
		||||
	/// 获得树形实体数据
 | 
			
		||||
	/// </summary>
 | 
			
		||||
@ -460,8 +474,10 @@ namespace APT.BD.WebApi.Controllers.Api
 | 
			
		||||
		return WitTreeOrderEntities(null, filter);
 | 
			
		||||
	}
 | 
			
		||||
               
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  ServerInfo-服务器信息表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  服务器信息表
 | 
			
		||||
@ -569,8 +585,10 @@ namespace APT.BD.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  SystemInfo-系统信息表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  系统信息表
 | 
			
		||||
@ -678,8 +696,10 @@ namespace APT.BD.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  WordTemplate-WORD模板维护
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  WORD模板维护
 | 
			
		||||
@ -787,6 +807,8 @@ namespace APT.BD.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
 }
 | 
			
		||||
 | 
			
		||||
@ -2,6 +2,12 @@
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
 
 | 
			
		||||
  
 | 
			
		||||
 | 
			
		||||
//------------------------------------------------------------------------------
 | 
			
		||||
//     T4模板文件:基础接口类
 | 
			
		||||
//     此代码由T4模板自动生成
 | 
			
		||||
@ -16,6 +22,7 @@ using APT.BaseData.Domain.ApiModel.PF;
 | 
			
		||||
namespace APT.BS.WebApi.Controllers.Api
 | 
			
		||||
{
 | 
			
		||||
	using APT.MS.Domain.Entities.BS;
 | 
			
		||||
 | 
			
		||||
	#region  CheckContent-检查内容表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  检查内容表
 | 
			
		||||
@ -123,8 +130,10 @@ namespace APT.BS.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  CheckContents-检查内容
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  检查内容
 | 
			
		||||
@ -232,8 +241,10 @@ namespace APT.BS.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  CheckContentCheckType-检查类型
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  检查类型
 | 
			
		||||
@ -341,8 +352,10 @@ namespace APT.BS.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  CheckContentCheckTypeLevel-检查内容检查类型子表(关联层级)
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  检查内容检查类型子表(关联层级)
 | 
			
		||||
@ -450,8 +463,10 @@ namespace APT.BS.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  CheckContentHmRiskArea-检查区域
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  检查区域
 | 
			
		||||
@ -559,8 +574,10 @@ namespace APT.BS.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  CheckMain-安全检查库
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  安全检查库
 | 
			
		||||
@ -668,8 +685,10 @@ namespace APT.BS.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  CheckContentMainDepartment-安全检查库责任部门
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  安全检查库责任部门
 | 
			
		||||
@ -777,8 +796,10 @@ namespace APT.BS.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  CheckContentQuestion-检查问题
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  检查问题
 | 
			
		||||
@ -886,8 +907,10 @@ namespace APT.BS.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  CheckMainLaw-检查库法规
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  检查库法规
 | 
			
		||||
@ -995,8 +1018,10 @@ namespace APT.BS.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  CheckProject-检查项目
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  检查项目
 | 
			
		||||
@ -1104,8 +1129,10 @@ namespace APT.BS.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  CheckProjectCategory-检查项目分类表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  检查项目分类表
 | 
			
		||||
@ -1213,8 +1240,10 @@ namespace APT.BS.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  CheckProjectCategoryChecktype-检查项目分类_检查类型
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  检查项目分类_检查类型
 | 
			
		||||
@ -1322,8 +1351,10 @@ namespace APT.BS.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  CheckProjectCategoryObject-检查项目分类_检查区域
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  检查项目分类_检查区域
 | 
			
		||||
@ -1431,8 +1462,10 @@ namespace APT.BS.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  CheckProjectProjectCategory-检查项目分类
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  检查项目分类
 | 
			
		||||
@ -1540,8 +1573,10 @@ namespace APT.BS.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  CheckQuestion-检查问题
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  检查问题
 | 
			
		||||
@ -1649,8 +1684,10 @@ namespace APT.BS.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  CheckType-检查类型表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  检查类型表
 | 
			
		||||
@ -1757,6 +1794,7 @@ namespace APT.BS.WebApi.Controllers.Api
 | 
			
		||||
       {
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
              	/// <summary>
 | 
			
		||||
	/// 获得树形实体数据
 | 
			
		||||
	/// </summary>
 | 
			
		||||
@ -1768,8 +1806,10 @@ namespace APT.BS.WebApi.Controllers.Api
 | 
			
		||||
		return WitTreeOrderEntities(null, filter);
 | 
			
		||||
	}
 | 
			
		||||
               
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  CheckTypeLevel-检查层级
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  检查层级
 | 
			
		||||
@ -1877,8 +1917,10 @@ namespace APT.BS.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  CheckTypeMinetype-检查类型生产单元
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  检查类型生产单元
 | 
			
		||||
@ -1986,8 +2028,10 @@ namespace APT.BS.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  DepartmentAreaobject-部门范围
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  部门范围
 | 
			
		||||
@ -2095,8 +2139,10 @@ namespace APT.BS.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  OperateLog-操作日志
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  操作日志
 | 
			
		||||
@ -2204,8 +2250,10 @@ namespace APT.BS.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  PlanSet-制定任务
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  制定任务
 | 
			
		||||
@ -2313,8 +2361,10 @@ namespace APT.BS.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  PlanSetArea-制定任务区域
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  制定任务区域
 | 
			
		||||
@ -2422,8 +2472,10 @@ namespace APT.BS.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  PlanSetDepartmentOut-制定任务排除组织
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  制定任务排除组织
 | 
			
		||||
@ -2531,8 +2583,10 @@ namespace APT.BS.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  PlanSetDepObject-制定任务部门触发范围
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  制定任务部门触发范围
 | 
			
		||||
@ -2640,8 +2694,10 @@ namespace APT.BS.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  PlanSetObject-制定任务触发范围
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  制定任务触发范围
 | 
			
		||||
@ -2749,8 +2805,10 @@ namespace APT.BS.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  RiskCategory-隐患类别
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  隐患类别
 | 
			
		||||
@ -2858,8 +2916,10 @@ namespace APT.BS.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  RiskLevelDelayDays-隐患等级最长延期整改天数
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  隐患等级最长延期整改天数
 | 
			
		||||
@ -2967,8 +3027,10 @@ namespace APT.BS.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  RiskReason-隐患原因表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  隐患原因表
 | 
			
		||||
@ -3076,8 +3138,10 @@ namespace APT.BS.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  RiskSubmit-隐患上报表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  隐患上报表
 | 
			
		||||
@ -3185,8 +3249,10 @@ namespace APT.BS.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  RiskSubmitContent-隐患上报明细
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  隐患上报明细
 | 
			
		||||
@ -3294,8 +3360,10 @@ namespace APT.BS.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  RiskSubmitContentBack-隐患上报明细退回
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  隐患上报明细退回
 | 
			
		||||
@ -3403,8 +3471,10 @@ namespace APT.BS.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  RiskSubmitContentDeal-隐患整改记录
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  隐患整改记录
 | 
			
		||||
@ -3512,8 +3582,10 @@ namespace APT.BS.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  RiskSubmitContentDealAfterFile-检查任务附件表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  检查任务附件表
 | 
			
		||||
@ -3621,8 +3693,10 @@ namespace APT.BS.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  RiskSubmitContentDealFile-检查任务附件表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  检查任务附件表
 | 
			
		||||
@ -3730,8 +3804,10 @@ namespace APT.BS.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  RiskSubmitContentDealUserchecksign-隐患整改验收人签名
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  隐患整改验收人签名
 | 
			
		||||
@ -3839,8 +3915,10 @@ namespace APT.BS.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  RiskSubmitContentDealUsersign-隐患整改责任人签名
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  隐患整改责任人签名
 | 
			
		||||
@ -3948,8 +4026,10 @@ namespace APT.BS.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  RiskSubmitContentFile-检查任务明细附件表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  检查任务明细附件表
 | 
			
		||||
@ -4057,8 +4137,10 @@ namespace APT.BS.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  RiskSubmitContentReason-隐患上报明细原因
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  隐患上报明细原因
 | 
			
		||||
@ -4166,8 +4248,10 @@ namespace APT.BS.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  RiskSubmitContentTemp-隐患上报详情待入库
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  隐患上报详情待入库
 | 
			
		||||
@ -4275,8 +4359,10 @@ namespace APT.BS.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  RiskSubmitDelayApply-延期整改申请
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  延期整改申请
 | 
			
		||||
@ -4384,8 +4470,10 @@ namespace APT.BS.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  RiskSubmitDelayApplyDetail-延期整改申请详情
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  延期整改申请详情
 | 
			
		||||
@ -4493,8 +4581,10 @@ namespace APT.BS.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  RiskSubmitFile-检查任务附件表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  检查任务附件表
 | 
			
		||||
@ -4602,8 +4692,10 @@ namespace APT.BS.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  RiskSubmitNotice-隐患通知
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  隐患通知
 | 
			
		||||
@ -4711,8 +4803,10 @@ namespace APT.BS.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  RiskSubmitNoticePerson-隐患通知
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  隐患通知
 | 
			
		||||
@ -4820,8 +4914,10 @@ namespace APT.BS.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  RiskTpm-TPM对接数据
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  TPM对接数据
 | 
			
		||||
@ -4929,8 +5025,10 @@ namespace APT.BS.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  SafeCheck-安全检查
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  安全检查
 | 
			
		||||
@ -5038,8 +5136,10 @@ namespace APT.BS.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  SafeCheckDetail-检查明细
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  检查明细
 | 
			
		||||
@ -5147,8 +5247,10 @@ namespace APT.BS.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  SafeCheckDetailFile-检查任务明细附件表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  检查任务明细附件表
 | 
			
		||||
@ -5256,8 +5358,10 @@ namespace APT.BS.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  SafeCheckDetailLaw-检查依据
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  检查依据
 | 
			
		||||
@ -5365,8 +5469,10 @@ namespace APT.BS.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  SafeCheckDetailQuestion-检查明细问题
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  检查明细问题
 | 
			
		||||
@ -5474,8 +5580,10 @@ namespace APT.BS.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  SafeCheckDetailReason-检查明细隐患原因
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  检查明细隐患原因
 | 
			
		||||
@ -5583,8 +5691,10 @@ namespace APT.BS.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  SafeCheckDetailReject-检查明细退回
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  检查明细退回
 | 
			
		||||
@ -5692,8 +5802,10 @@ namespace APT.BS.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  SafeCheckDetailRejectFile-检查明细退回附件
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  检查明细退回附件
 | 
			
		||||
@ -5801,8 +5913,10 @@ namespace APT.BS.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  SafeCheckDetailUser-检查明细人员
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  检查明细人员
 | 
			
		||||
@ -5910,8 +6024,10 @@ namespace APT.BS.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  SafeCheckFile-安全检查文件
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  安全检查文件
 | 
			
		||||
@ -6019,8 +6135,10 @@ namespace APT.BS.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  SafeCheckProject-安全检查文件
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  安全检查文件
 | 
			
		||||
@ -6128,8 +6246,10 @@ namespace APT.BS.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  SafeCheckProjectCategory-安全检查文件
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  安全检查文件
 | 
			
		||||
@ -6237,8 +6357,10 @@ namespace APT.BS.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  SafeCheckRecord-检查记录确认
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  检查记录确认
 | 
			
		||||
@ -6346,8 +6468,10 @@ namespace APT.BS.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  SafeCheckRecordDetail-检查记录确认明细
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  检查记录确认明细
 | 
			
		||||
@ -6455,8 +6579,10 @@ namespace APT.BS.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  SafeCheckRiskArea-检查区域
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  检查区域
 | 
			
		||||
@ -6564,8 +6690,10 @@ namespace APT.BS.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  SafeCheckUsersign-检查签名
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  检查签名
 | 
			
		||||
@ -6673,6 +6801,8 @@ namespace APT.BS.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
 }
 | 
			
		||||
 | 
			
		||||
@ -2,12 +2,10 @@
 | 
			
		||||
using APT.BaseData.Domain.IServices.BS;
 | 
			
		||||
using APT.BaseData.Domain.IServices.EX;
 | 
			
		||||
using APT.BaseData.Domain.IServices.FM;
 | 
			
		||||
using APT.BaseData.Domain.IServices.OP;
 | 
			
		||||
using APT.BaseData.Domain.IServices.Platform;
 | 
			
		||||
using APT.BaseData.Services.DomainServices;
 | 
			
		||||
using APT.BaseData.Services.Services.EX;
 | 
			
		||||
using APT.BaseData.Services.Services.FM;
 | 
			
		||||
using APT.BaseData.Services.Services.OP;
 | 
			
		||||
using APT.BaseData.Services.Services.Platform;
 | 
			
		||||
using APT.BaseData.Services.Sys;
 | 
			
		||||
using Autofac;
 | 
			
		||||
@ -55,7 +53,6 @@ namespace APT.FM.WebApi.App_Start
 | 
			
		||||
            builder.RegisterType<PFApproveCallBackSEService>().As<IPFApproveCallBackSEService>().InstancePerLifetimeScope();
 | 
			
		||||
            builder.RegisterType<FMNotificationTaskService>().As<IFMNotificationTaskService>().InstancePerLifetimeScope();
 | 
			
		||||
            builder.RegisterType<PFApproveCallBackService>().As<IPFApproveCallBackService>().InstancePerLifetimeScope();
 | 
			
		||||
            builder.RegisterType<OPTenantDBConnService>().As<IOPTenantDBConnService>().InstancePerLifetimeScope();
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -54,10 +54,7 @@ namespace APT.FM.WebApi.Controllers.Api
 | 
			
		||||
                order2.Field = "TASK_STARTDT";
 | 
			
		||||
                order2.Order = DbOrder.DESC;
 | 
			
		||||
                pageFilter.Orders.Add(order2);
 | 
			
		||||
                pageFilter.OrgId = null;
 | 
			
		||||
                pageFilter.IgnoreOrgRule = true;
 | 
			
		||||
                var bear = new BaseFilter();
 | 
			
		||||
                bear.IgnoreOrgRule = true;
 | 
			
		||||
                var todoCount = GetCount<T_FM_NOTIFICATION_TASK>(s => s.USER_ID == userId && s.NOTICE_STATUS == 0 && s.NOTICE_TYPE != 2 && s.NOTICE_TYPE != 7 && s.TASK_ENDDT >= DateTime.Now.AddMonths(-3), bear);
 | 
			
		||||
                var todayNewCount = GetCount<T_FM_NOTIFICATION_TASK>(s => s.USER_ID == userId && s.NOTICE_STATUS == 0 && (s.NOTICE_TYPE == 2 || s.NOTICE_TYPE == 7), bear);//&& s.TASK_STARTDT > shortToday
 | 
			
		||||
                var doneCount = GetCount<T_FM_NOTIFICATION_TASK>(s => s.USER_ID == userId && (s.NOTICE_STATUS == 1 || s.NOTICE_STATUS == 2) && s.NOTICE_TYPE != 2 && s.NOTICE_TYPE != 7, bear);
 | 
			
		||||
 | 
			
		||||
@ -2,6 +2,12 @@
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
 
 | 
			
		||||
  
 | 
			
		||||
 | 
			
		||||
//------------------------------------------------------------------------------
 | 
			
		||||
//     T4模板文件:基础接口类
 | 
			
		||||
//     此代码由T4模板自动生成
 | 
			
		||||
@ -17,6 +23,7 @@ namespace APT.FM.WebApi.Controllers.Api
 | 
			
		||||
{
 | 
			
		||||
	using APT.BaseData.Domain.Entities.FM;
 | 
			
		||||
using APT.BaseData.Domain.Entities;
 | 
			
		||||
 | 
			
		||||
	#region  Api-API
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  API
 | 
			
		||||
@ -124,8 +131,10 @@ using APT.BaseData.Domain.Entities;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  BaseAdd-企业位置信息
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  企业位置信息
 | 
			
		||||
@ -233,8 +242,10 @@ using APT.BaseData.Domain.Entities;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  BaseEnergy-企业能耗配置信息
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  企业能耗配置信息
 | 
			
		||||
@ -342,8 +353,10 @@ using APT.BaseData.Domain.Entities;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  BaseInfo-企业基本信息
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  企业基本信息
 | 
			
		||||
@ -451,8 +464,10 @@ using APT.BaseData.Domain.Entities;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  DepartmentCalendarConfig-部门日历配置表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  部门日历配置表
 | 
			
		||||
@ -560,8 +575,10 @@ using APT.BaseData.Domain.Entities;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  DepartmentCalendarConfigDetail-部门日历配置明细表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  部门日历配置明细表
 | 
			
		||||
@ -669,8 +686,10 @@ using APT.BaseData.Domain.Entities;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  DepartmentCalendarConfigTeam-部门日历配置班组表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  部门日历配置班组表
 | 
			
		||||
@ -778,8 +797,10 @@ using APT.BaseData.Domain.Entities;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  DepartmentCompletion-XX班完成情况统计
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  XX班完成情况统计
 | 
			
		||||
@ -887,8 +908,10 @@ using APT.BaseData.Domain.Entities;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  DepartmentCompletionSort-班组完成情况前十
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  班组完成情况前十
 | 
			
		||||
@ -996,8 +1019,10 @@ using APT.BaseData.Domain.Entities;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  DepartmentPost-部门岗位
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  部门岗位
 | 
			
		||||
@ -1105,8 +1130,10 @@ using APT.BaseData.Domain.Entities;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  DepartmentPostUser-部门岗位人员
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  部门岗位人员
 | 
			
		||||
@ -1214,8 +1241,10 @@ using APT.BaseData.Domain.Entities;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  DepartmentProductionUnit-生产单元
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  生产单元
 | 
			
		||||
@ -1323,8 +1352,10 @@ using APT.BaseData.Domain.Entities;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  DepartmentSafeuser-安全员表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  安全员表
 | 
			
		||||
@ -1432,8 +1463,10 @@ using APT.BaseData.Domain.Entities;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  DepartmentScheduling-部门排班表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  部门排班表
 | 
			
		||||
@ -1541,8 +1574,10 @@ using APT.BaseData.Domain.Entities;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  DepartmentSchedulingDetail-排班信息人员明细表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  排班信息人员明细表
 | 
			
		||||
@ -1650,8 +1685,10 @@ using APT.BaseData.Domain.Entities;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  DepartmentUser-部门人员表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  部门人员表
 | 
			
		||||
@ -1759,8 +1796,10 @@ using APT.BaseData.Domain.Entities;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  Enum-枚举管理
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  枚举管理
 | 
			
		||||
@ -1868,8 +1907,10 @@ using APT.BaseData.Domain.Entities;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  Enums-枚举表单
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  枚举表单
 | 
			
		||||
@ -1977,8 +2018,10 @@ using APT.BaseData.Domain.Entities;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  EnumItem-枚举项
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  枚举项
 | 
			
		||||
@ -2086,8 +2129,10 @@ using APT.BaseData.Domain.Entities;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  EnumType-枚举类别
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  枚举类别
 | 
			
		||||
@ -2195,8 +2240,10 @@ using APT.BaseData.Domain.Entities;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  HiddenDangerRectification-隐患整改完成情况统计
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  隐患整改完成情况统计
 | 
			
		||||
@ -2304,8 +2351,10 @@ using APT.BaseData.Domain.Entities;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  JobActivityCompletion-班组作业完成率统计
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  班组作业完成率统计
 | 
			
		||||
@ -2413,8 +2462,10 @@ using APT.BaseData.Domain.Entities;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  MessageTemplate-短信模板表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  短信模板表
 | 
			
		||||
@ -2522,8 +2573,10 @@ using APT.BaseData.Domain.Entities;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  Monitoring-服务器监听表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  服务器监听表
 | 
			
		||||
@ -2631,8 +2684,10 @@ using APT.BaseData.Domain.Entities;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  Notice-信息通知表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  信息通知表
 | 
			
		||||
@ -2740,8 +2795,10 @@ using APT.BaseData.Domain.Entities;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  NotificationTask-娑堟伅琛?
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  娑堟伅琛?
 | 
			
		||||
@ -2849,8 +2906,10 @@ using APT.BaseData.Domain.Entities;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  NotificationTaskTimeSet-寰呭姙琛ㄦ椂闂撮厤缃?
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  寰呭姙琛ㄦ椂闂撮厤缃?
 | 
			
		||||
@ -2958,8 +3017,10 @@ using APT.BaseData.Domain.Entities;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  ParamSet-参数设置表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  参数设置表
 | 
			
		||||
@ -3067,8 +3128,10 @@ using APT.BaseData.Domain.Entities;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  ParamSetDepartment-组织关联信息
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  组织关联信息
 | 
			
		||||
@ -3176,8 +3239,10 @@ using APT.BaseData.Domain.Entities;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  Person-人员信息
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  人员信息
 | 
			
		||||
@ -3285,8 +3350,10 @@ using APT.BaseData.Domain.Entities;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  PersonCertificateFile-证书
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  证书
 | 
			
		||||
@ -3394,8 +3461,10 @@ using APT.BaseData.Domain.Entities;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  PersonEducationFile-学历证
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  学历证
 | 
			
		||||
@ -3503,8 +3572,10 @@ using APT.BaseData.Domain.Entities;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  PersonIdcardFile-身份证
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  身份证
 | 
			
		||||
@ -3612,8 +3683,10 @@ using APT.BaseData.Domain.Entities;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  PersonSkills-技能
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  技能
 | 
			
		||||
@ -3721,8 +3794,10 @@ using APT.BaseData.Domain.Entities;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  PersonWork-工作经历
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  工作经历
 | 
			
		||||
@ -3830,8 +3905,10 @@ using APT.BaseData.Domain.Entities;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  RiskLevelProportion-风险等级占比
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  风险等级占比
 | 
			
		||||
@ -3939,8 +4016,10 @@ using APT.BaseData.Domain.Entities;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  RiskTypeProportion-风险类别占比
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  风险类别占比
 | 
			
		||||
@ -4048,8 +4127,10 @@ using APT.BaseData.Domain.Entities;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  RoleDepartment-部门权限
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  部门权限
 | 
			
		||||
@ -4157,8 +4238,10 @@ using APT.BaseData.Domain.Entities;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  Snapshot-随手拍
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  随手拍
 | 
			
		||||
@ -4266,8 +4349,10 @@ using APT.BaseData.Domain.Entities;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  SnapshotFile-随手拍图片
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  随手拍图片
 | 
			
		||||
@ -4375,8 +4460,10 @@ using APT.BaseData.Domain.Entities;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  SyncLimit-数据同步次数限制
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  数据同步次数限制
 | 
			
		||||
@ -4484,8 +4571,10 @@ using APT.BaseData.Domain.Entities;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  SyncLog-跑批日志表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  跑批日志表
 | 
			
		||||
@ -4593,8 +4682,10 @@ using APT.BaseData.Domain.Entities;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  SyncLogDetail-跑批日志明细表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  跑批日志明细表
 | 
			
		||||
@ -4702,8 +4793,10 @@ using APT.BaseData.Domain.Entities;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  SyncUserRule-用户数据同步例外配置
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  用户数据同步例外配置
 | 
			
		||||
@ -4811,8 +4904,10 @@ using APT.BaseData.Domain.Entities;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  Team-班组表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  班组表
 | 
			
		||||
@ -4920,8 +5015,10 @@ using APT.BaseData.Domain.Entities;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  TeamPerson-班组人员关联信息
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  班组人员关联信息
 | 
			
		||||
@ -5029,8 +5126,10 @@ using APT.BaseData.Domain.Entities;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  UserDepartment-用户部门关联表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  用户部门关联表
 | 
			
		||||
@ -5138,8 +5237,10 @@ using APT.BaseData.Domain.Entities;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  UserPost-宀椾綅鍒楄〃
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  宀椾綅鍒楄〃
 | 
			
		||||
@ -5247,8 +5348,10 @@ using APT.BaseData.Domain.Entities;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  UserProductionUnit-生产单元
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  生产单元
 | 
			
		||||
@ -5356,8 +5459,10 @@ using APT.BaseData.Domain.Entities;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  UserProductionUnitSet-生产单元
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  生产单元
 | 
			
		||||
@ -5465,8 +5570,10 @@ using APT.BaseData.Domain.Entities;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  UserSignFile-签名照片
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  签名照片
 | 
			
		||||
@ -5574,8 +5681,10 @@ using APT.BaseData.Domain.Entities;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  UserTest-测试多选
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  测试多选
 | 
			
		||||
@ -5683,8 +5792,10 @@ using APT.BaseData.Domain.Entities;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  UserVacationSet-人员休假设置
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  人员休假设置
 | 
			
		||||
@ -5792,8 +5903,10 @@ using APT.BaseData.Domain.Entities;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  WorkTicketCompletion-关键许可工作票完成情况统计
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  关键许可工作票完成情况统计
 | 
			
		||||
@ -5901,6 +6014,8 @@ using APT.BaseData.Domain.Entities;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
 }
 | 
			
		||||
 | 
			
		||||
@ -34,7 +34,6 @@ using System.Security.Cryptography;
 | 
			
		||||
using APT.MS.Domain.Entities.SC.PT;
 | 
			
		||||
using Microsoft.Extensions.DependencyModel;
 | 
			
		||||
using APT.MS.Domain.Entities.SK;
 | 
			
		||||
using APT.BaseData.Domain.IServices.OP;
 | 
			
		||||
 | 
			
		||||
namespace APT.FM.WebApi.Controllers.Api.FM
 | 
			
		||||
{
 | 
			
		||||
@ -48,18 +47,15 @@ namespace APT.FM.WebApi.Controllers.Api.FM
 | 
			
		||||
        IFMUserService UserService { get; set; }
 | 
			
		||||
        IFMDepartmentService DepartmentService { get; set; }
 | 
			
		||||
        IFMNotificationTaskService NotificationTaskService { get; set; }
 | 
			
		||||
        IOPTenantDBConnService OPTenantDBConnService { get; set; }
 | 
			
		||||
 | 
			
		||||
        /// <summary>
 | 
			
		||||
        /// 
 | 
			
		||||
        /// </summary>
 | 
			
		||||
        /// <param name="personnelService"></param>
 | 
			
		||||
        public UserController(IFMUserService personnelService, IFMDepartmentService departmentService, IFMNotificationTaskService notificationTaskService, IOPTenantDBConnService opTenantDBConnService)
 | 
			
		||||
        public UserController(IFMUserService personnelService, IFMDepartmentService departmentService, IFMNotificationTaskService notificationTaskService)
 | 
			
		||||
        {
 | 
			
		||||
            UserService = personnelService;
 | 
			
		||||
            DepartmentService = departmentService;
 | 
			
		||||
            NotificationTaskService = notificationTaskService;
 | 
			
		||||
            OPTenantDBConnService = opTenantDBConnService;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        /// <summary>
 | 
			
		||||
@ -487,125 +483,110 @@ namespace APT.FM.WebApi.Controllers.Api.FM
 | 
			
		||||
                T_OG_SAFE_PDT_SIGNED_POST signPost = null;
 | 
			
		||||
                T_PT_ASSESSMENT_PLAN_AUDIT_TEMP_DETAIL library = null;
 | 
			
		||||
                T_FM_NOTIFICATION_TASK noticeToday = null;
 | 
			
		||||
                if (string.IsNullOrEmpty(entity.CODE))
 | 
			
		||||
                {
 | 
			
		||||
                    throw new Exception("工号不允许为空!");
 | 
			
		||||
                }
 | 
			
		||||
                if (entity.CODE.Length <= 3)
 | 
			
		||||
                    this.ThrowError("050003");
 | 
			
		||||
                if (string.IsNullOrEmpty(entity.NAME))
 | 
			
		||||
                {
 | 
			
		||||
                    throw new Exception("姓名不允许为空!");
 | 
			
		||||
                }
 | 
			
		||||
                if (entity.Nav_Person.POST_ID == null)
 | 
			
		||||
                {
 | 
			
		||||
                    throw new Exception("岗位不允许为空!");
 | 
			
		||||
                }
 | 
			
		||||
 | 
			
		||||
                if (!isAdd.Any())
 | 
			
		||||
                {
 | 
			
		||||
                    if (entity.CODE.Length <= 3)
 | 
			
		||||
                        this.ThrowError("050003");
 | 
			
		||||
                    userList = this.GetEntities<T_FM_USER>(t => (t.CODE == entity.CODE || t.APPROVE_ROLE_ID == entity.APPROVE_ROLE_ID) && t.ORG_ID == entity.ORG_ID, null, "Nav_Department").ToList();
 | 
			
		||||
                    var isRepeat = userList.FirstOrDefault(t => t.CODE == entity.CODE);
 | 
			
		||||
                    if (isRepeat != null)
 | 
			
		||||
                        this.ThrowError("050001");
 | 
			
		||||
                    if (entity.ORG_ID != Guid.Parse("b043b28b-bbc3-c452-6052-4fba1457abfa"))
 | 
			
		||||
                    {
 | 
			
		||||
                        #region    //
 | 
			
		||||
                        #region //新增人员增加三级安全教育
 | 
			
		||||
                        //eduCard = new T_SE_THREE_LEVEL_SAFE_EDU_CARD();
 | 
			
		||||
                        //eduCard.ID = Guid.NewGuid();
 | 
			
		||||
                        //eduCard.ID_CARD_NUMBER = entity.ID_CARD;
 | 
			
		||||
                        //eduCard.IN_TIME = entity.ENTRYTIME;
 | 
			
		||||
                        //eduCard.USER_ID = entity.ID;
 | 
			
		||||
                        //eduCard.DEPARTMENT_ID = entity.DEPARTMENT_ID;
 | 
			
		||||
                        //eduCard.LAUNCH_TIME = DateTime.Now;
 | 
			
		||||
                        //eduCard.ORG_ID = entity.ORG_ID;
 | 
			
		||||
                        //eduCard.POST_ID = entity.Nav_Person.POST_ID;
 | 
			
		||||
                        //eduCard.STATUS = SEThreeLevelSafeTrainStatus.公司培训;
 | 
			
		||||
                        //eduCard.LAUNCH_USER_ID = APT.Infrastructure.Api.AppContext.CurrentSession.UserID;
 | 
			
		||||
                        //eduCard.LAUNCH_DEPARTMENT_ID = APT.Infrastructure.Api.AppContext.CurrentSession.DepartmentID;
 | 
			
		||||
                        //next_train_record = new T_SE_THREE_LEVEL_SAFE_TRAIN_RECORD
 | 
			
		||||
                        //{
 | 
			
		||||
                        //    ID = Guid.NewGuid(),
 | 
			
		||||
                        //    EDU_CARD_ID = eduCard.ID,
 | 
			
		||||
                        //    ORG_ID = eduCard.ORG_ID,
 | 
			
		||||
                        //    THREE_LEVEL_SAFE_TRAIN_TYPE = SEThreeLevelSafeTrainType.公司级
 | 
			
		||||
                        //};
 | 
			
		||||
                        //var train_contents = GetEntity<T_SE_THREE_LEVEL_SAFE_CONTENT>(t => t.THREE_LEVEL_SAFE_TRAIN_TYPE == (SEThreeLevelSafeTrainType)eduCard.STATUS.GetInt());
 | 
			
		||||
                        //next_train_record.CONTENT_ID = train_contents.ID;
 | 
			
		||||
                        //var postName = GetEntity<T_FM_USER_POST>(eduCard.POST_ID ?? Guid.Empty)?.NAME;
 | 
			
		||||
                        //var sendUser = GetEntity<T_FM_USER>(t => t.Nav_ApproveRole != null && t.Nav_ApproveRole.NAME == "安环部安全员" && t.IS_DELETED == false && t.ENABLE_STATUS == 0);
 | 
			
		||||
                        //if (sendUser != null)
 | 
			
		||||
                        //{
 | 
			
		||||
                        //    var endTime = entity.ENTRYTIME.AddMonths(1);
 | 
			
		||||
                        //    var newEndTime = new DateTime(endTime.Year, endTime.Month, endTime.Day, 23, 59, 59);
 | 
			
		||||
                        //    sendNotice.Add(NotificationTaskService.InsertUserNoticeTaskModel("三级安全培训记录-" + entity.NAME + "-" + eduCard.STATUS.GetDescription(), next_train_record.ID, entity.ORG_ID, sendUser.ID, sendUser.NAME, DateTime.Now, newEndTime, 1, "SE042"));
 | 
			
		||||
                        //}
 | 
			
		||||
                        #endregion
 | 
			
		||||
                        #region //新增人员触发安全生产责任制
 | 
			
		||||
                        //var post = GetEntity<T_SC_DEPARTMENT_POST>(t => t.Nav_Dept.DEPARTMENT_ID == entity.DEPARTMENT_ID && t.DEPOST_ID == entity.Nav_Person.POST_ID, new string[] { "Nav_Dept.Nav_Post" });
 | 
			
		||||
                        //if (post != null)
 | 
			
		||||
                        //{
 | 
			
		||||
                        //    var standardCreate = GetEntity<T_SC_STANDARD_CREATE>(t => t.POST_ID == post.Nav_Dept.POST_ID && t.STATUS == SCSystemEditStatus.已归档 && t.FILE_STATUS == SCSystemFileStatus.有效);
 | 
			
		||||
                        //    if (standardCreate != null)
 | 
			
		||||
                        //    {
 | 
			
		||||
                        //        var chargeUser = GetEntity<T_FM_USER>(t => t.DEPARTMENT_ID == post.Nav_Dept.Nav_Post.DEPARTMENT_ID && t.Nav_Person.POST_ID == post.Nav_Dept.Nav_Post.DEPOST_ID && t.ENABLE_STATUS == 0);
 | 
			
		||||
                        //        if (chargeUser != null)
 | 
			
		||||
                        //        {
 | 
			
		||||
                        //            signRecord = new T_OG_SAFE_PDT_SIGNED
 | 
			
		||||
                        //            {
 | 
			
		||||
                        //                ID = Guid.NewGuid(),
 | 
			
		||||
                        //                ORG_ID = entity.ORG_ID,
 | 
			
		||||
                        //                STATUS = (int)PFStandardStatus.Draft,
 | 
			
		||||
                        //                TRIGGER_TYPE = OGPersonalSignedTriggerType.新员工触发,
 | 
			
		||||
                        //                //TRIGGER_TYPE = OGPersonalSignedTriggerType.手动新增,
 | 
			
		||||
                        //                STANDARD_ID = standardCreate.ID,
 | 
			
		||||
                        //                FILE_CONTENT = standardCreate.FILE_CONTENT,
 | 
			
		||||
                        //                DEPARTMENT_ID = entity.DEPARTMENT_ID,
 | 
			
		||||
                        //                ANNUAL = DateTime.Now.Year
 | 
			
		||||
                        //            };
 | 
			
		||||
                        //            if (chargeUser != null)
 | 
			
		||||
                        //            {
 | 
			
		||||
                        //                signRecord.CHARGE_USER_ID = chargeUser.ID;
 | 
			
		||||
                        //            }
 | 
			
		||||
                        //            signPost = new T_OG_SAFE_PDT_SIGNED_POST
 | 
			
		||||
                        //            {
 | 
			
		||||
                        //                SAFE_PDT_SIGNED_ID = signRecord.ID,
 | 
			
		||||
                        //                ID = Guid.NewGuid(),
 | 
			
		||||
                        //                ORG_ID = entity.ORG_ID,
 | 
			
		||||
                        //                USER_ID = entity.ID,
 | 
			
		||||
                        //                POST_ID = entity.Nav_Person.POST_ID,
 | 
			
		||||
                        //                CHARGE_USER_ID = signRecord.CHARGE_USER_ID
 | 
			
		||||
                        //            };
 | 
			
		||||
                        //            sendNotice.Add(NotificationTaskService.InsertUserNoticeTaskModel(DateTime.Now.ToShortDateString() + "安全生产责任制个人签订表", signRecord.ID, entity.ORG_ID, entity.ID, entity.NAME, DateTime.Now, DateTime.Now.AddDays(7), 1, "OG001_SHOWPRINT"));
 | 
			
		||||
                        //        }
 | 
			
		||||
                        //    }
 | 
			
		||||
                        //}
 | 
			
		||||
                        //else
 | 
			
		||||
                        //{
 | 
			
		||||
                        //    if (sendUser != null)
 | 
			
		||||
                        //    {
 | 
			
		||||
                        //        sendNotice.Add(NotificationTaskService.InsertUserNoticeTaskModel("请为《" + postName + "》绑定责任制岗位并上传责任状", entity.ID, entity.ORG_ID, sendUser.ID, sendUser.NAME, DateTime.Now, DateTime.Now.AddDays(7), (int)FMNoticeTypeEnum.今日提醒, "PF135"));
 | 
			
		||||
                        //    }
 | 
			
		||||
                        //}
 | 
			
		||||
                        #region 新增人员增加三级安全教育
 | 
			
		||||
                        eduCard = new T_SE_THREE_LEVEL_SAFE_EDU_CARD();
 | 
			
		||||
                        eduCard.ID = Guid.NewGuid();
 | 
			
		||||
                        eduCard.ID_CARD_NUMBER = entity.ID_CARD;
 | 
			
		||||
                        eduCard.IN_TIME = entity.ENTRYTIME;
 | 
			
		||||
                        eduCard.USER_ID = entity.ID;
 | 
			
		||||
                        eduCard.DEPARTMENT_ID = entity.DEPARTMENT_ID;
 | 
			
		||||
                        eduCard.LAUNCH_TIME = DateTime.Now;
 | 
			
		||||
                        eduCard.ORG_ID = entity.ORG_ID;
 | 
			
		||||
                        eduCard.POST_ID = entity.Nav_Person.POST_ID;
 | 
			
		||||
                        eduCard.STATUS = SEThreeLevelSafeTrainStatus.公司培训;
 | 
			
		||||
                        eduCard.LAUNCH_USER_ID = APT.Infrastructure.Api.AppContext.CurrentSession.UserID;
 | 
			
		||||
                        eduCard.LAUNCH_DEPARTMENT_ID = APT.Infrastructure.Api.AppContext.CurrentSession.DepartmentID;
 | 
			
		||||
                        next_train_record = new T_SE_THREE_LEVEL_SAFE_TRAIN_RECORD
 | 
			
		||||
                        {
 | 
			
		||||
                            ID = Guid.NewGuid(),
 | 
			
		||||
                            EDU_CARD_ID = eduCard.ID,
 | 
			
		||||
                            ORG_ID = eduCard.ORG_ID,
 | 
			
		||||
                            THREE_LEVEL_SAFE_TRAIN_TYPE = SEThreeLevelSafeTrainType.公司级
 | 
			
		||||
                        };
 | 
			
		||||
                        var train_contents = GetEntity<T_SE_THREE_LEVEL_SAFE_CONTENT>(t => t.THREE_LEVEL_SAFE_TRAIN_TYPE == (SEThreeLevelSafeTrainType)eduCard.STATUS.GetInt());
 | 
			
		||||
                        next_train_record.CONTENT_ID = train_contents.ID;
 | 
			
		||||
                        var postName = GetEntity<T_FM_USER_POST>(eduCard.POST_ID ?? Guid.Empty)?.NAME;
 | 
			
		||||
                        var sendUser = GetEntity<T_FM_USER>(t => t.Nav_ApproveRole != null && t.Nav_ApproveRole.NAME == "安环部安全员" && t.IS_DELETED == false && t.ENABLE_STATUS == 0);
 | 
			
		||||
                        if (sendUser != null)
 | 
			
		||||
                        {
 | 
			
		||||
                            var endTime = entity.ENTRYTIME.AddMonths(1);
 | 
			
		||||
                            var newEndTime = new DateTime(endTime.Year, endTime.Month, endTime.Day, 23, 59, 59);
 | 
			
		||||
                            sendNotice.Add(NotificationTaskService.InsertUserNoticeTaskModel("三级安全培训记录-" + entity.NAME + "-" + eduCard.STATUS.GetDescription(), next_train_record.ID, entity.ORG_ID, sendUser.ID, sendUser.NAME, DateTime.Now, newEndTime, 1, "SE042"));
 | 
			
		||||
                        }
 | 
			
		||||
                        #endregion
 | 
			
		||||
                        #region 新增人员触发安全生产责任制
 | 
			
		||||
                        var post = GetEntity<T_SC_DEPARTMENT_POST>(t => t.Nav_Dept.DEPARTMENT_ID == entity.DEPARTMENT_ID && t.DEPOST_ID == entity.Nav_Person.POST_ID, new string[] { "Nav_Dept.Nav_Post" });
 | 
			
		||||
                        if (post != null)
 | 
			
		||||
                        {
 | 
			
		||||
                            var standardCreate = GetEntity<T_SC_STANDARD_CREATE>(t => t.POST_ID == post.Nav_Dept.POST_ID && t.STATUS == SCSystemEditStatus.已归档 && t.FILE_STATUS == SCSystemFileStatus.有效);
 | 
			
		||||
                            if (standardCreate != null)
 | 
			
		||||
                            {
 | 
			
		||||
                                var chargeUser = GetEntity<T_FM_USER>(t => t.DEPARTMENT_ID == post.Nav_Dept.Nav_Post.DEPARTMENT_ID && t.Nav_Person.POST_ID == post.Nav_Dept.Nav_Post.DEPOST_ID && t.ENABLE_STATUS == 0);
 | 
			
		||||
                                if (chargeUser != null)
 | 
			
		||||
                                {
 | 
			
		||||
                                    signRecord = new T_OG_SAFE_PDT_SIGNED
 | 
			
		||||
                                    {
 | 
			
		||||
                                        ID = Guid.NewGuid(),
 | 
			
		||||
                                        ORG_ID = entity.ORG_ID,
 | 
			
		||||
                                        STATUS = (int)PFStandardStatus.Draft,
 | 
			
		||||
                                        TRIGGER_TYPE = OGPersonalSignedTriggerType.新员工触发,
 | 
			
		||||
                                        //TRIGGER_TYPE = OGPersonalSignedTriggerType.手动新增,
 | 
			
		||||
                                        STANDARD_ID = standardCreate.ID,
 | 
			
		||||
                                        FILE_CONTENT = standardCreate.FILE_CONTENT,
 | 
			
		||||
                                        DEPARTMENT_ID = entity.DEPARTMENT_ID,
 | 
			
		||||
                                        ANNUAL = DateTime.Now.Year
 | 
			
		||||
                                    };
 | 
			
		||||
                                    if (chargeUser != null)
 | 
			
		||||
                                    {
 | 
			
		||||
                                        signRecord.CHARGE_USER_ID = chargeUser.ID;
 | 
			
		||||
                                    }
 | 
			
		||||
                                    signPost = new T_OG_SAFE_PDT_SIGNED_POST
 | 
			
		||||
                                    {
 | 
			
		||||
                                        SAFE_PDT_SIGNED_ID = signRecord.ID,
 | 
			
		||||
                                        ID = Guid.NewGuid(),
 | 
			
		||||
                                        ORG_ID = entity.ORG_ID,
 | 
			
		||||
                                        USER_ID = entity.ID,
 | 
			
		||||
                                        POST_ID = entity.Nav_Person.POST_ID,
 | 
			
		||||
                                        CHARGE_USER_ID = signRecord.CHARGE_USER_ID
 | 
			
		||||
                                    };
 | 
			
		||||
                                    sendNotice.Add(NotificationTaskService.InsertUserNoticeTaskModel(DateTime.Now.ToShortDateString() + "安全生产责任制个人签订表", signRecord.ID, entity.ORG_ID, entity.ID, entity.NAME, DateTime.Now, DateTime.Now.AddDays(7), 1, "OG001_SHOWPRINT"));
 | 
			
		||||
                                }
 | 
			
		||||
                            }
 | 
			
		||||
                        }
 | 
			
		||||
                        else
 | 
			
		||||
                        {
 | 
			
		||||
                            if (sendUser != null)
 | 
			
		||||
                            {
 | 
			
		||||
                                sendNotice.Add(NotificationTaskService.InsertUserNoticeTaskModel("请为《" + postName + "》绑定责任制岗位并上传责任状", entity.ID, entity.ORG_ID, sendUser.ID, sendUser.NAME, DateTime.Now, DateTime.Now.AddDays(7), (int)FMNoticeTypeEnum.今日提醒, "PF135"));
 | 
			
		||||
                            }
 | 
			
		||||
                        }
 | 
			
		||||
                        #endregion
 | 
			
		||||
                    }
 | 
			
		||||
 | 
			
		||||
                    //#region 增加新增人员到ops表
 | 
			
		||||
                    //using (var context = new MigrationContext(ConfigurationManager.ConnectionStrings["default"]))
 | 
			
		||||
                    //{
 | 
			
		||||
                    //    var tennant = context.GetEntity<T_OP_TENANT>(t => t.ID == entity.ORG_ID, new string[] { "CODE" }).CODE;
 | 
			
		||||
                    //    T_OP_ALLUSER alluser = new T_OP_ALLUSER();
 | 
			
		||||
                    //    alluser.ID = entity.ID;
 | 
			
		||||
                    //    alluser.CODE = entity.CODE;
 | 
			
		||||
                    //    alluser.TENANT = tennant;
 | 
			
		||||
                    //    alluser.ORG_ID = entity.ORG_ID;
 | 
			
		||||
                    //    alluser.PHONE = entity.PHONE;
 | 
			
		||||
                    //    context.AddEntity(alluser);
 | 
			
		||||
                    //    context.SaveChanges();
 | 
			
		||||
                    //}
 | 
			
		||||
                    //#endregion
 | 
			
		||||
                    #region 增加新增人员到ops表
 | 
			
		||||
                    using (var context = new MigrationContext(ConfigurationManager.ConnectionStrings["default"]))
 | 
			
		||||
                    {
 | 
			
		||||
                        var tennant = context.GetEntity<T_OP_TENANT>(t => t.ID == entity.ORG_ID, new string[] { "CODE" }).CODE;
 | 
			
		||||
                        T_OP_ALLUSER alluser = new T_OP_ALLUSER();
 | 
			
		||||
                        alluser.ID = entity.ID;
 | 
			
		||||
                        alluser.CODE = entity.CODE;
 | 
			
		||||
                        alluser.TENANT = tennant;
 | 
			
		||||
                        alluser.ORG_ID = entity.ORG_ID;
 | 
			
		||||
                        alluser.PHONE = entity.PHONE;
 | 
			
		||||
                        context.AddEntity(alluser);
 | 
			
		||||
                        context.SaveChanges();
 | 
			
		||||
                    }
 | 
			
		||||
                    #endregion
 | 
			
		||||
 | 
			
		||||
                    #region   //wyw 密码初始化  Xyy+code(姓名拼音首字母(第一个大写)  +  工号(取数字)
 | 
			
		||||
 | 
			
		||||
@ -747,8 +728,8 @@ namespace APT.FM.WebApi.Controllers.Api.FM
 | 
			
		||||
                            }
 | 
			
		||||
                            if (roleInfo.DEPARTMENT_TYPE != 3 && roleInfo.DEPARTMENT_TYPE != departmentInfo.DEPARTMENT_TYPE)
 | 
			
		||||
                            {
 | 
			
		||||
                                var param = ((FMDepartmentType)departmentInfo.DEPARTMENT_TYPE).GetDescription();
 | 
			
		||||
                                var param2 = ((FMDepartmentType)roleInfo.DEPARTMENT_TYPE).GetDescription();
 | 
			
		||||
                                var param = Enum.GetName(typeof(FMDepartmentType), departmentInfo.DEPARTMENT_TYPE);
 | 
			
		||||
                                var param2 = Enum.GetName(typeof(FMDepartmentType), roleInfo.DEPARTMENT_TYPE);
 | 
			
		||||
                                throw new Exception(departmentInfo.NAME + "是" + param + "," + roleInfo.NAME + "是" + param2 + ",组织层级不一致");
 | 
			
		||||
                            }
 | 
			
		||||
                        }
 | 
			
		||||
@ -756,6 +737,10 @@ namespace APT.FM.WebApi.Controllers.Api.FM
 | 
			
		||||
                }
 | 
			
		||||
                else
 | 
			
		||||
                    this.ThrowError("060001");
 | 
			
		||||
                if (entity.Nav_Person.POST_ID == null)
 | 
			
		||||
                {
 | 
			
		||||
                    throw new Exception("岗位不允许为空!");
 | 
			
		||||
                }
 | 
			
		||||
                //else
 | 
			
		||||
                //{
 | 
			
		||||
                //    //查双控库是否有该辨识岗位,没有的话触发今日提醒给安全员
 | 
			
		||||
@ -943,38 +928,6 @@ namespace APT.FM.WebApi.Controllers.Api.FM
 | 
			
		||||
                    }
 | 
			
		||||
                }
 | 
			
		||||
 | 
			
		||||
                var isHead = HeadHelper.GetIsHead(this.Request.Headers);
 | 
			
		||||
                Dictionary<Guid, string> dicConn = null;
 | 
			
		||||
                if (isHead)
 | 
			
		||||
                {
 | 
			
		||||
                    dicConn = OPTenantDBConnService.GetConnDictionary(entity.ORG_ID);
 | 
			
		||||
                    if (dicConn == null)
 | 
			
		||||
                    {
 | 
			
		||||
                        throw new Exception("获取子公司链接失败,请关闭页面刷新后再试");
 | 
			
		||||
                    }
 | 
			
		||||
                }
 | 
			
		||||
 | 
			
		||||
                #region   总用户库添加
 | 
			
		||||
 | 
			
		||||
                if (!isAdd.Any())
 | 
			
		||||
                {
 | 
			
		||||
                    using (var context = new MigrationContext(ConfigurationManager.ConnectionStrings["default"]))
 | 
			
		||||
                    {
 | 
			
		||||
                        var tennant = context.GetEntity<T_OP_TENANT>(t => t.ID == entity.ORG_ID, new string[] { "CODE" }).CODE;
 | 
			
		||||
                        T_OP_ALLUSER alluser = new T_OP_ALLUSER();
 | 
			
		||||
                        alluser.ID = entity.ID;
 | 
			
		||||
                        alluser.CODE = entity.CODE;
 | 
			
		||||
                        alluser.TENANT = tennant;
 | 
			
		||||
                        alluser.ORG_ID = entity.ORG_ID;
 | 
			
		||||
                        alluser.PHONE = entity.PHONE;
 | 
			
		||||
                        context.AddEntity(alluser);
 | 
			
		||||
                        context.SaveChanges();
 | 
			
		||||
                    }
 | 
			
		||||
                }
 | 
			
		||||
 | 
			
		||||
                #endregion
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
                UnifiedCommit(() =>
 | 
			
		||||
                {
 | 
			
		||||
                    if (person != null)
 | 
			
		||||
@ -1032,68 +985,6 @@ namespace APT.FM.WebApi.Controllers.Api.FM
 | 
			
		||||
                    if (noticeToday != null)
 | 
			
		||||
                        this.UpdateEntityNoCommit(noticeToday);
 | 
			
		||||
                });
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
                #region    wyw  如果是总部  人员信息同步到子公司
 | 
			
		||||
 | 
			
		||||
                if (isHead)
 | 
			
		||||
                {
 | 
			
		||||
                    entity.Nav_Department = null;
 | 
			
		||||
                    entity.Nav_BelongRoles = null;
 | 
			
		||||
                    entity.Nav_BelongRoleGroups = null;
 | 
			
		||||
                    entity.Nav_BelongUserGroups = null;
 | 
			
		||||
                    entity.Nav_UserPhotoFiles = null;
 | 
			
		||||
                    entity.Nav_UserSignFiles = null;
 | 
			
		||||
                    entity.TEAM_ID = null;
 | 
			
		||||
                    entity.Nav_ApproveRole = null;
 | 
			
		||||
                    entity.PROJECT_ID = null;
 | 
			
		||||
                    entity.PRINTER_ID = null;
 | 
			
		||||
 | 
			
		||||
                    person.Nav_DepartMent = null;
 | 
			
		||||
                    person.Nav_Post = null;
 | 
			
		||||
                    person.POST_ID = null;
 | 
			
		||||
                    person.Nav_TeamPersons = null;
 | 
			
		||||
                    person.Nav_PersonWorks = null;
 | 
			
		||||
                    person.Nav_PersonSkills = null;
 | 
			
		||||
                    person.Nav_PersonIDCardFiles = null;
 | 
			
		||||
                    person.Nav_PersonEducationFiles = null;
 | 
			
		||||
                    person.Nav_PersonCertificateFiles = null;
 | 
			
		||||
 | 
			
		||||
                    int EditC = 0;
 | 
			
		||||
                    foreach (var item in dicConn)
 | 
			
		||||
                    {
 | 
			
		||||
                        try
 | 
			
		||||
                        {
 | 
			
		||||
                            entity.ORG_ID = item.Key;
 | 
			
		||||
                            person.ORG_ID = item.Key;
 | 
			
		||||
                            using (var context = new MigrationContext(item.Value))
 | 
			
		||||
                            {
 | 
			
		||||
                                EditC = context.GetCount<T_FM_USER>(e => e.ID == entity.ID);
 | 
			
		||||
                                entity.DEPARTMENT_ID = context.GetEntity<T_FM_DEPARTMENT>(e => e.PARENT_ID == null && !e.IS_DELETED && e.DEPARTMENT_TYPE == 5, null).ID;
 | 
			
		||||
                                person.DEPARTMENT_ID = entity.DEPARTMENT_ID;
 | 
			
		||||
 | 
			
		||||
                                if (EditC > 0)
 | 
			
		||||
                                {
 | 
			
		||||
                                    context.UpdateEntity(entity);
 | 
			
		||||
                                    context.UpdateEntity(person);
 | 
			
		||||
                                    context.SaveChanges();
 | 
			
		||||
                                }
 | 
			
		||||
                                else
 | 
			
		||||
                                {
 | 
			
		||||
                                    context.AddEntity(person);
 | 
			
		||||
                                    context.AddEntity(entity);
 | 
			
		||||
                                    context.SaveChanges();
 | 
			
		||||
                                }
 | 
			
		||||
                            }
 | 
			
		||||
                        }
 | 
			
		||||
                        catch (Exception ex)
 | 
			
		||||
                        {
 | 
			
		||||
 | 
			
		||||
                        }
 | 
			
		||||
                    }
 | 
			
		||||
                }
 | 
			
		||||
                #endregion
 | 
			
		||||
 | 
			
		||||
                return true;
 | 
			
		||||
            });
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
@ -2,6 +2,12 @@
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
 
 | 
			
		||||
  
 | 
			
		||||
 | 
			
		||||
//------------------------------------------------------------------------------
 | 
			
		||||
//     T4模板文件:基础接口类
 | 
			
		||||
//     此代码由T4模板自动生成
 | 
			
		||||
@ -16,6 +22,7 @@ using APT.BaseData.Domain.ApiModel.PF;
 | 
			
		||||
namespace APT.FO.WebApi.Controllers.Api
 | 
			
		||||
{
 | 
			
		||||
	using APT.MS.Domain.Entities.FO;
 | 
			
		||||
 | 
			
		||||
	#region  ChangeShiftRecord-岗位交接班记录表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  岗位交接班记录表
 | 
			
		||||
@ -123,8 +130,10 @@ namespace APT.FO.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  ChangeShiftRecordAfterUser-接班人员表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  接班人员表
 | 
			
		||||
@ -232,8 +241,10 @@ namespace APT.FO.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  ChangeShiftRecordFile-附件表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  附件表
 | 
			
		||||
@ -341,8 +352,10 @@ namespace APT.FO.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  ChangeShiftRecordPreUser-交班人员表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  交班人员表
 | 
			
		||||
@ -450,8 +463,10 @@ namespace APT.FO.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  CrucialLicenseDealMeasure-作业后处理措施
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  作业后处理措施
 | 
			
		||||
@ -559,8 +574,10 @@ namespace APT.FO.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  CrucialLicenseJob-关键许可工作表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  关键许可工作表
 | 
			
		||||
@ -668,8 +685,10 @@ namespace APT.FO.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  CrucialLicenseJobFile-附件上传
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  附件上传
 | 
			
		||||
@ -777,8 +796,10 @@ namespace APT.FO.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  CrucialLicenseJobOutsource-关键许可工作表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  关键许可工作表
 | 
			
		||||
@ -886,8 +907,10 @@ namespace APT.FO.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  CrucialLicenseOutsourceDealMeasure-作业后处理措施
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  作业后处理措施
 | 
			
		||||
@ -995,8 +1018,10 @@ namespace APT.FO.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  CrucialLicenseOutsourcePerson-关键许可人员表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  关键许可人员表
 | 
			
		||||
@ -1104,8 +1129,10 @@ namespace APT.FO.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  CrucialLicenseOutsourceSafeConfirm-作业前安全确认
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  作业前安全确认
 | 
			
		||||
@ -1213,8 +1240,10 @@ namespace APT.FO.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  CrucialLicenseOutsourceSafeMeasure-作业流程及安全措施
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  作业流程及安全措施
 | 
			
		||||
@ -1322,8 +1351,10 @@ namespace APT.FO.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  CrucialLicensePerson-关键许可人员表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  关键许可人员表
 | 
			
		||||
@ -1431,8 +1462,10 @@ namespace APT.FO.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  CrucialLicenseSafeConfirm-作业前安全确认
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  作业前安全确认
 | 
			
		||||
@ -1540,8 +1573,10 @@ namespace APT.FO.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  CrucialLicenseSafeMeasure-作业流程及安全措施
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  作业流程及安全措施
 | 
			
		||||
@ -1649,8 +1684,10 @@ namespace APT.FO.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  CurrentClassRecord-岗位当班工作记录表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  岗位当班工作记录表
 | 
			
		||||
@ -1758,8 +1795,10 @@ namespace APT.FO.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  CurrentClassRecordFile-附件表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  附件表
 | 
			
		||||
@ -1867,8 +1906,10 @@ namespace APT.FO.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  CurrentClassRecordLabourSupply-岗位当班劳保用品清单
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  岗位当班劳保用品清单
 | 
			
		||||
@ -1976,8 +2017,10 @@ namespace APT.FO.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  CurrentClassRecordUser-岗位当班工作人员表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  岗位当班工作人员表
 | 
			
		||||
@ -2085,8 +2128,10 @@ namespace APT.FO.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  Holidays-国家法定假期维护
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  国家法定假期维护
 | 
			
		||||
@ -2194,8 +2239,10 @@ namespace APT.FO.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  HolidaysDetail-
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  
 | 
			
		||||
@ -2303,8 +2350,10 @@ namespace APT.FO.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  JobActivityDetail-作业活动记录(关键/许可)明细表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  作业活动记录(关键/许可)明细表
 | 
			
		||||
@ -2412,8 +2461,10 @@ namespace APT.FO.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  JobActivityFile-作业活动记录附件表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  作业活动记录附件表
 | 
			
		||||
@ -2521,8 +2572,10 @@ namespace APT.FO.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  JobActivityFlow-作业流程及安全措施确认
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  作业流程及安全措施确认
 | 
			
		||||
@ -2630,8 +2683,10 @@ namespace APT.FO.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  JobActivityFlowFile-作业流程及安全措施附件表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  作业流程及安全措施附件表
 | 
			
		||||
@ -2739,8 +2794,10 @@ namespace APT.FO.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  JobActivityMeasure-作业后处理措施确认
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  作业后处理措施确认
 | 
			
		||||
@ -2848,8 +2905,10 @@ namespace APT.FO.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  JobActivityMeasureFile-作业活动记录附件表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  作业活动记录附件表
 | 
			
		||||
@ -2957,8 +3016,10 @@ namespace APT.FO.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  JobActivityPerson-作业活动记录(关键/许可)人员表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  作业活动记录(关键/许可)人员表
 | 
			
		||||
@ -3066,8 +3127,10 @@ namespace APT.FO.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  JobActivityRecord-作业活动记录表(关键/许可)
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  作业活动记录表(关键/许可)
 | 
			
		||||
@ -3175,8 +3238,10 @@ namespace APT.FO.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  JobEventDetail-作业活动记录明细表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  作业活动记录明细表
 | 
			
		||||
@ -3284,8 +3349,10 @@ namespace APT.FO.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  JobEventFile-作业活动记录附件表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  作业活动记录附件表
 | 
			
		||||
@ -3393,8 +3460,10 @@ namespace APT.FO.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  JobEventFlow-作业流程及安全措施确认
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  作业流程及安全措施确认
 | 
			
		||||
@ -3502,8 +3571,10 @@ namespace APT.FO.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  JobEventFlowFile-作业流程及安全措施附件表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  作业流程及安全措施附件表
 | 
			
		||||
@ -3611,8 +3682,10 @@ namespace APT.FO.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  JobEventMeasure-作业后处理措施确认
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  作业后处理措施确认
 | 
			
		||||
@ -3720,8 +3793,10 @@ namespace APT.FO.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  JobEventMeasureFile-作业活动记录附件表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  作业活动记录附件表
 | 
			
		||||
@ -3829,8 +3904,10 @@ namespace APT.FO.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  JobEventPerson-作业活动记录人员表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  作业活动记录人员表
 | 
			
		||||
@ -3938,8 +4015,10 @@ namespace APT.FO.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  JobEventRecord-作业活动记录表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  作业活动记录表
 | 
			
		||||
@ -4047,8 +4126,10 @@ namespace APT.FO.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  LabourSupply-劳保用品
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  劳保用品
 | 
			
		||||
@ -4156,8 +4237,10 @@ namespace APT.FO.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  PreOperSch-作业方案讨论记录
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  作业方案讨论记录
 | 
			
		||||
@ -4265,8 +4348,10 @@ namespace APT.FO.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  PreOperSchFile-作业方案讨论记录附件
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  作业方案讨论记录附件
 | 
			
		||||
@ -4374,8 +4459,10 @@ namespace APT.FO.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  PreOperSchUser-作业方案讨论记录参会人员表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  作业方案讨论记录参会人员表
 | 
			
		||||
@ -4483,8 +4570,10 @@ namespace APT.FO.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  PreShiftMeetingRecord-班前会议记录表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  班前会议记录表
 | 
			
		||||
@ -4592,8 +4681,10 @@ namespace APT.FO.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  PreShiftMeetingRecordDetail-导航:上班生产情况
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  导航:上班生产情况
 | 
			
		||||
@ -4701,8 +4792,10 @@ namespace APT.FO.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  PreShiftMeetingRecordDetailPost-涉及岗位
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  涉及岗位
 | 
			
		||||
@ -4810,8 +4903,10 @@ namespace APT.FO.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  PreShiftMeetingRecordFile-班前会议附件
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  班前会议附件
 | 
			
		||||
@ -4919,8 +5014,10 @@ namespace APT.FO.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  PreShiftMeetingRecordUser-班前会议记录与会人员表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  班前会议记录与会人员表
 | 
			
		||||
@ -5028,8 +5125,10 @@ namespace APT.FO.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  Scheduling-工作票排班明细
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  工作票排班明细
 | 
			
		||||
@ -5137,8 +5236,10 @@ namespace APT.FO.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  SchedulingTemplate-工作票排班模板
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  工作票排班模板
 | 
			
		||||
@ -5246,8 +5347,10 @@ namespace APT.FO.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  SchedulingTemplateDetail-明细表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  明细表
 | 
			
		||||
@ -5355,8 +5458,10 @@ namespace APT.FO.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  TeamActivity-班组安全活动记录表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  班组安全活动记录表
 | 
			
		||||
@ -5464,8 +5569,10 @@ namespace APT.FO.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  TeamActivityFile-班组安全活动附件
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  班组安全活动附件
 | 
			
		||||
@ -5573,8 +5680,10 @@ namespace APT.FO.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  TeamActivityUser-班组安全活动人员表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  班组安全活动人员表
 | 
			
		||||
@ -5682,8 +5791,10 @@ namespace APT.FO.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  TeamSlogan-班组口号配置
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  班组口号配置
 | 
			
		||||
@ -5791,8 +5902,10 @@ namespace APT.FO.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  TechDisclosureFrom-技术交底表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  技术交底表
 | 
			
		||||
@ -5900,8 +6013,10 @@ namespace APT.FO.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  TechDisclosurePerson-被交底人员表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  被交底人员表
 | 
			
		||||
@ -6009,6 +6124,8 @@ namespace APT.FO.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
 }
 | 
			
		||||
 | 
			
		||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							@ -2,6 +2,12 @@
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
 
 | 
			
		||||
  
 | 
			
		||||
 | 
			
		||||
//------------------------------------------------------------------------------
 | 
			
		||||
//     T4模板文件:基础接口类
 | 
			
		||||
//     此代码由T4模板自动生成
 | 
			
		||||
@ -16,6 +22,7 @@ using APT.BaseData.Domain.ApiModel.PF;
 | 
			
		||||
namespace APT.LG.WebApi.Controllers.Api
 | 
			
		||||
{
 | 
			
		||||
	using APT.BaseData.Domain.Entities.LG;
 | 
			
		||||
 | 
			
		||||
	#region  Oprate-表单操作日志表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  表单操作日志表
 | 
			
		||||
@ -123,6 +130,8 @@ namespace APT.LG.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
 }
 | 
			
		||||
 | 
			
		||||
@ -2,6 +2,12 @@
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
 
 | 
			
		||||
  
 | 
			
		||||
 | 
			
		||||
//------------------------------------------------------------------------------
 | 
			
		||||
//     T4模板文件:基础接口类
 | 
			
		||||
//     此代码由T4模板自动生成
 | 
			
		||||
@ -16,6 +22,7 @@ using APT.BaseData.Domain.ApiModel.PF;
 | 
			
		||||
namespace APT.NW.WebApi.Controllers.Api
 | 
			
		||||
{
 | 
			
		||||
	using APT.BaseData.Domain.Entities.NW;
 | 
			
		||||
 | 
			
		||||
	#region  Enterprise-子企业表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  子企业表
 | 
			
		||||
@ -122,6 +129,7 @@ namespace APT.NW.WebApi.Controllers.Api
 | 
			
		||||
       {
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
              	/// <summary>
 | 
			
		||||
	/// 获得树形实体数据
 | 
			
		||||
	/// </summary>
 | 
			
		||||
@ -133,8 +141,10 @@ namespace APT.NW.WebApi.Controllers.Api
 | 
			
		||||
		return WitTreeOrderEntities(null, filter);
 | 
			
		||||
	}
 | 
			
		||||
               
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  RoleDataPerm-子企业数据权限表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  子企业数据权限表
 | 
			
		||||
@ -242,8 +252,10 @@ namespace APT.NW.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  RoleMenu-子企业权限表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  子企业权限表
 | 
			
		||||
@ -351,6 +363,8 @@ namespace APT.NW.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
 }
 | 
			
		||||
 | 
			
		||||
@ -2,6 +2,12 @@
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
 
 | 
			
		||||
  
 | 
			
		||||
 | 
			
		||||
//------------------------------------------------------------------------------
 | 
			
		||||
//     T4模板文件:基础接口类
 | 
			
		||||
//     此代码由T4模板自动生成
 | 
			
		||||
@ -16,6 +22,7 @@ using APT.BaseData.Domain.ApiModel.PF;
 | 
			
		||||
namespace APT.OP.WebApi.Controllers.Api
 | 
			
		||||
{
 | 
			
		||||
	using APT.BaseData.Domain.Entities.OP;
 | 
			
		||||
 | 
			
		||||
	#region  Alluser-用户表(租户平台)
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  用户表(租户平台)
 | 
			
		||||
@ -123,8 +130,10 @@ namespace APT.OP.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  BillingRule-计费规则表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  计费规则表
 | 
			
		||||
@ -232,8 +241,10 @@ namespace APT.OP.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  BillingRuleVersion-计费规则子表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  计费规则子表
 | 
			
		||||
@ -341,8 +352,10 @@ namespace APT.OP.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  ChargeTimeSet-充电时长配置
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  充电时长配置
 | 
			
		||||
@ -450,8 +463,10 @@ namespace APT.OP.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  Client-客户表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  客户表
 | 
			
		||||
@ -559,8 +574,10 @@ namespace APT.OP.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  ClinetOpenid-客户表OpenId
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  客户表OpenId
 | 
			
		||||
@ -668,8 +685,10 @@ namespace APT.OP.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  CommonQuestion-常见问题
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  常见问题
 | 
			
		||||
@ -777,8 +796,10 @@ namespace APT.OP.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  FileFirmware-充电桩固件表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  充电桩固件表
 | 
			
		||||
@ -886,8 +907,10 @@ namespace APT.OP.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  Member-会员表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  会员表
 | 
			
		||||
@ -995,8 +1018,10 @@ namespace APT.OP.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  Menu-菜单表(租户平台)
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  菜单表(租户平台)
 | 
			
		||||
@ -1103,6 +1128,7 @@ namespace APT.OP.WebApi.Controllers.Api
 | 
			
		||||
       {
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
              	/// <summary>
 | 
			
		||||
	/// 获得树形实体数据
 | 
			
		||||
	/// </summary>
 | 
			
		||||
@ -1114,8 +1140,10 @@ namespace APT.OP.WebApi.Controllers.Api
 | 
			
		||||
		return WitTreeOrderEntities(null, filter);
 | 
			
		||||
	}
 | 
			
		||||
               
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  Notice-公告表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  公告表
 | 
			
		||||
@ -1223,8 +1251,10 @@ namespace APT.OP.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  NoticeDetail-公告内容
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  公告内容
 | 
			
		||||
@ -1332,8 +1362,10 @@ namespace APT.OP.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  PeakValleyConfig-峰谷配置表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  峰谷配置表
 | 
			
		||||
@ -1441,8 +1473,10 @@ namespace APT.OP.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  RechargeCard-充值卡
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  充值卡
 | 
			
		||||
@ -1550,8 +1584,10 @@ namespace APT.OP.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  RechargeOrder-充值订单
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  充值订单
 | 
			
		||||
@ -1659,8 +1695,10 @@ namespace APT.OP.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  RechargeSetting-充值金额配置
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  充值金额配置
 | 
			
		||||
@ -1768,8 +1806,10 @@ namespace APT.OP.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  RfidCard-RFID卡
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  RFID卡
 | 
			
		||||
@ -1877,8 +1917,10 @@ namespace APT.OP.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  RoleMenu-租户权限表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  租户权限表
 | 
			
		||||
@ -1986,8 +2028,10 @@ namespace APT.OP.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  Tenant-租户表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  租户表
 | 
			
		||||
@ -2095,8 +2139,10 @@ namespace APT.OP.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  TenantDbConn-租户数据库表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  租户数据库表
 | 
			
		||||
@ -2204,8 +2250,10 @@ namespace APT.OP.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  TenantDomain-租户域名表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  租户域名表
 | 
			
		||||
@ -2313,8 +2361,10 @@ namespace APT.OP.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  TenantExpiration-租户租期表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  租户租期表
 | 
			
		||||
@ -2422,8 +2472,10 @@ namespace APT.OP.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  User-用户表(租户平台)
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  用户表(租户平台)
 | 
			
		||||
@ -2531,8 +2583,10 @@ namespace APT.OP.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  Version-版本升级表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  版本升级表
 | 
			
		||||
@ -2640,8 +2694,10 @@ namespace APT.OP.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  VersionMenu-菜单版本升级表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  菜单版本升级表
 | 
			
		||||
@ -2749,8 +2805,10 @@ namespace APT.OP.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  VersionTenant-租户版本升级表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  租户版本升级表
 | 
			
		||||
@ -2858,6 +2916,8 @@ namespace APT.OP.WebApi.Controllers.Api
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
 }
 | 
			
		||||
 | 
			
		||||
@ -2,9 +2,7 @@
 | 
			
		||||
using APT.BaseData.Domain.Entities.FM;
 | 
			
		||||
using APT.BaseData.Domain.Entities.PF;
 | 
			
		||||
using APT.BaseData.Domain.Enums;
 | 
			
		||||
using APT.BaseData.Domain.IServices.OP;
 | 
			
		||||
using APT.Infrastructure.Core;
 | 
			
		||||
using APT.Migrations;
 | 
			
		||||
using APT.MS.Domain.Entities.BS;
 | 
			
		||||
using APT.MS.Domain.Entities.HM;
 | 
			
		||||
using APT.MS.Domain.Entities.PF;
 | 
			
		||||
@ -15,7 +13,6 @@ using Microsoft.AspNetCore.Mvc;
 | 
			
		||||
using System;
 | 
			
		||||
using System.Collections.Generic;
 | 
			
		||||
using System.Linq;
 | 
			
		||||
using System.Transactions;
 | 
			
		||||
 | 
			
		||||
namespace APT.PF.WebApi.Controllers.Api
 | 
			
		||||
{
 | 
			
		||||
@ -25,13 +22,6 @@ namespace APT.PF.WebApi.Controllers.Api
 | 
			
		||||
    [Route("api/PF/PFApprovalRole")]
 | 
			
		||||
    public partial class ApprovalRoleController : AuthorizeApiController<T_PF_APPROVAL_ROLE>
 | 
			
		||||
    {
 | 
			
		||||
        IOPTenantDBConnService OPTenantDBConnService { get; set; }
 | 
			
		||||
        public ApprovalRoleController(IOPTenantDBConnService opTenantDBConnService)
 | 
			
		||||
        {
 | 
			
		||||
            OPTenantDBConnService = opTenantDBConnService;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
        /// <summary>
 | 
			
		||||
        /// 更新或新增数据
 | 
			
		||||
        /// </summary>
 | 
			
		||||
@ -42,12 +32,6 @@ namespace APT.PF.WebApi.Controllers.Api
 | 
			
		||||
        {
 | 
			
		||||
            return SafeExecute<bool>(() =>
 | 
			
		||||
            {
 | 
			
		||||
              var isHead = HeadHelper.GetIsHead(this.Request.Headers);
 | 
			
		||||
              if (entity.ISHEAD && !isHead)
 | 
			
		||||
              {
 | 
			
		||||
                  throw new Exception("子公司不能修改总公司角色信息!");
 | 
			
		||||
              }
 | 
			
		||||
 | 
			
		||||
                var orgId = APT.Infrastructure.Api.AppContext.CurrentSession.OrgId;
 | 
			
		||||
                //var roleCodes = this.GetEntities<T_PF_APPROVAL_ROLE>(t => true, new BaseFilter(orgId)).Select(x => x.NAME).ToList();
 | 
			
		||||
                //if (roleCodes.Contains(entity.NAME))
 | 
			
		||||
@ -82,13 +66,13 @@ namespace APT.PF.WebApi.Controllers.Api
 | 
			
		||||
                        listRoles.Add(role);
 | 
			
		||||
                    }
 | 
			
		||||
                }
 | 
			
		||||
              List<Guid> deleteIds = new List<Guid>();
 | 
			
		||||
                List <Guid> deleteIds = new List<Guid>();
 | 
			
		||||
                if (entity.ROLE_ID != null)
 | 
			
		||||
                {
 | 
			
		||||
                    var datas = this.GetEntities<T_PF_APPROVE_OPERATION_ROLE>(t => t.APPROVAL_ROLE_ID == entity.ID, new BaseFilter(orgId));
 | 
			
		||||
                    if (datas.Any())
 | 
			
		||||
                    { 
 | 
			
		||||
                      var ids = datas.Select(t => t.ID).ToList();
 | 
			
		||||
                        var ids=datas.Select(t => t.ID).ToList();
 | 
			
		||||
                        deleteIds.AddRange(ids);
 | 
			
		||||
                    }
 | 
			
		||||
                    var role = new T_PF_APPROVE_OPERATION_ROLE();
 | 
			
		||||
@ -101,15 +85,6 @@ namespace APT.PF.WebApi.Controllers.Api
 | 
			
		||||
                {
 | 
			
		||||
                    listRoles = listRoles.Distinct(t => t.ROLE_ID).ToList();
 | 
			
		||||
                }
 | 
			
		||||
              Dictionary<Guid, string> dicConn = null;
 | 
			
		||||
              if (isHead)
 | 
			
		||||
              {
 | 
			
		||||
                  dicConn = OPTenantDBConnService.GetConnDictionary(entity.ORG_ID);
 | 
			
		||||
                  if (dicConn == null)
 | 
			
		||||
                  {
 | 
			
		||||
                      throw new Exception("获取子公司链接失败,请关闭页面刷新后再试");
 | 
			
		||||
                  }
 | 
			
		||||
              }
 | 
			
		||||
                UnifiedCommit(() =>
 | 
			
		||||
                {
 | 
			
		||||
                    if (entity != null)
 | 
			
		||||
@ -121,57 +96,6 @@ namespace APT.PF.WebApi.Controllers.Api
 | 
			
		||||
                    if (deleteIds != null && deleteIds.Any())
 | 
			
		||||
                        BantchDeleteEntityNoCommit<T_PF_APPROVE_OPERATION_ROLE>(deleteIds);    //保存子表
 | 
			
		||||
                });
 | 
			
		||||
 | 
			
		||||
              //如果是总部 同时同步到各个子公司
 | 
			
		||||
              if (isHead)
 | 
			
		||||
              {
 | 
			
		||||
                  entity.ISHEAD = true;
 | 
			
		||||
                  entity.ROLE_ID = null;
 | 
			
		||||
                  entity.Nav_Role = null;
 | 
			
		||||
                  entity.Nav_ApproveRoles = null;
 | 
			
		||||
                  int EditC = 0;
 | 
			
		||||
                  //using (var scope = new TransactionScope(TransactionScopeAsyncFlowOption.Enabled))
 | 
			
		||||
                  //{
 | 
			
		||||
                  //    try
 | 
			
		||||
                  //    {
 | 
			
		||||
                  foreach (var item in dicConn)
 | 
			
		||||
                  {
 | 
			
		||||
                      try
 | 
			
		||||
                      {
 | 
			
		||||
                          entity.ORG_ID = item.Key;
 | 
			
		||||
                          using (var context = new MigrationContext(item.Value))
 | 
			
		||||
                          {
 | 
			
		||||
                              EditC = context.GetCount<T_PF_APPROVAL_ROLE>(e => e.ID == entity.ID);
 | 
			
		||||
                              if (EditC > 0)
 | 
			
		||||
                              {
 | 
			
		||||
                                  context.UpdateEntity(entity);
 | 
			
		||||
                                  context.SaveChanges();
 | 
			
		||||
                                  //context.SaveChangesAsync();
 | 
			
		||||
                              }
 | 
			
		||||
                              else
 | 
			
		||||
                              {
 | 
			
		||||
                                  context.AddEntity(entity);
 | 
			
		||||
                                  context.SaveChanges();
 | 
			
		||||
                                  //context.AddAsync(entity);
 | 
			
		||||
                                  //context.SaveChangesAsync();
 | 
			
		||||
                              }
 | 
			
		||||
                          }
 | 
			
		||||
                      }
 | 
			
		||||
                      catch (Exception ex)
 | 
			
		||||
                      {
 | 
			
		||||
 | 
			
		||||
                      }
 | 
			
		||||
                  }
 | 
			
		||||
                  //        //// 所有操作成功,提交事务
 | 
			
		||||
                  //        scope.Complete();
 | 
			
		||||
                  //    }
 | 
			
		||||
                  //    catch (Exception ex)
 | 
			
		||||
                  //    {
 | 
			
		||||
                  //        // 发生异常,自动回滚(无需手动调用,scope 释放时未 Complete 则回滚)
 | 
			
		||||
                  //        throw;
 | 
			
		||||
                  //    }
 | 
			
		||||
                  //}
 | 
			
		||||
              }
 | 
			
		||||
                return true;
 | 
			
		||||
            });
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
@ -334,8 +334,8 @@
 | 
			
		||||
                                        case "关键许可工作票(二级审批)":
 | 
			
		||||
                                        case "关键许可工作票(三级审批)":
 | 
			
		||||
                                        case "关键许可工作票(四级审批)":
 | 
			
		||||
                                            var job = this.GetEntity<T_FO_CRUCIAL_LICENSE_JOB>(t => t.ID == entity.DATA_ID, "Nav_OperationStep");
 | 
			
		||||
                                            NoticeTitle = job != null && job.Nav_OperationStep != null ? entity.NAME + "-" + job.Nav_OperationStep?.NAME + "待审批" : NoticeTitle;
 | 
			
		||||
                                            var job = this.GetEntity<T_FO_CRUCIAL_LICENSE_JOB>(t=>t.ID == entity.DATA_ID, "Nav_OperationStep");
 | 
			
		||||
                                            NoticeTitle = job != null && job.Nav_OperationStep != null ? entity.NAME+"-"+job.Nav_OperationStep?.NAME + "待审批" : NoticeTitle;
 | 
			
		||||
                                            endTime = Convert.ToDateTime(DateTime.Now.AddDays(1).ToString("D").ToString()).AddSeconds(-1);
 | 
			
		||||
                                            break;
 | 
			
		||||
                                        default: break;
 | 
			
		||||
@ -645,33 +645,18 @@
 | 
			
		||||
        [HttpPost, Route("FullGet")]
 | 
			
		||||
        public JsonActionResult<T_PF_APPROVE> FullGet([FromBody] KeywordFilter filter)
 | 
			
		||||
        {
 | 
			
		||||
            return SafeExecute(() =>
 | 
			
		||||
            var result = WitEntity(null, filter);
 | 
			
		||||
            if (result.Data != null)
 | 
			
		||||
            {
 | 
			
		||||
                T_PF_APPROVE result = null;
 | 
			
		||||
                if (!string.IsNullOrEmpty(filter.Parameter1) && filter.OrgId.HasValue && filter.Parameter1 != filter.OrgId.Value.ToString())
 | 
			
		||||
                if (result.Data.APPROVE_TEMP_ID != null)
 | 
			
		||||
                {
 | 
			
		||||
                    //集团人员 通过 首页点击  获取对应的数据库链接 返回结果
 | 
			
		||||
                    //这边怎么调用 原生的   GetEntity 方法
 | 
			
		||||
 | 
			
		||||
                    //ICommonService service = _serviceLocator.GetService<ICommonService>();
 | 
			
		||||
 | 
			
		||||
                }
 | 
			
		||||
                else
 | 
			
		||||
                {
 | 
			
		||||
                    result = GetEntity<T_PF_APPROVE>(null, filter, null);
 | 
			
		||||
                    if (result != null)
 | 
			
		||||
                    {
 | 
			
		||||
                        if (result.APPROVE_TEMP_ID != null)
 | 
			
		||||
                        {
 | 
			
		||||
                            var approveTemp = this.GetEntity<T_PF_APPROVE_TEMP>(t => t.ID == result.APPROVE_TEMP_ID);
 | 
			
		||||
                    var approveTemp = this.GetEntity<T_PF_APPROVE_TEMP>(t => t.ID == result.Data.APPROVE_TEMP_ID);
 | 
			
		||||
                    if (approveTemp != null)
 | 
			
		||||
                                result.REJECT_INTERFACE = approveTemp.REJECT_INTERFACE;
 | 
			
		||||
                        }
 | 
			
		||||
                        result.Nav_ApproveDetails = result.Nav_ApproveDetails.OrderBy(t => t.NUM).ThenBy(m => m.MODIFY_TIME).ToList();
 | 
			
		||||
                        result.Data.REJECT_INTERFACE = approveTemp.REJECT_INTERFACE;
 | 
			
		||||
                }
 | 
			
		||||
                result.Data.Nav_ApproveDetails = result.Data.Nav_ApproveDetails.OrderBy(t => t.NUM).ThenBy(m => m.MODIFY_TIME).ToList();
 | 
			
		||||
            }
 | 
			
		||||
            return result;
 | 
			
		||||
            });
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        /// <summary>
 | 
			
		||||
@ -974,7 +959,7 @@
 | 
			
		||||
        /// </summary>
 | 
			
		||||
        /// <param name="id"></param>
 | 
			
		||||
        /// <returns></returns> 
 | 
			
		||||
        private bool BackUpdate_FOJobCrucialLicense(string id, Action action)
 | 
			
		||||
        private bool BackUpdate_FOJobCrucialLicense(string id,Action action)
 | 
			
		||||
        {
 | 
			
		||||
            //var entity = this.GetEntity<T_FO_CRUCIAL_LICENSE_JOB>(id, false, "Nav_OperationStep", "Nav_ApplyUser", "Nav_CrucialLicensePerson");
 | 
			
		||||
            var entity = this.GetEntity<T_FO_CRUCIAL_LICENSE_JOB>(id, new string[] { "Nav_OperationStep", "Nav_ApplyUser", "Nav_CrucialLicensePerson" });// wyw 
 | 
			
		||||
@ -1070,7 +1055,7 @@
 | 
			
		||||
            });
 | 
			
		||||
            return true;
 | 
			
		||||
        }
 | 
			
		||||
        private bool BackUpdate_FOJobEventRecord(string id, Action action)
 | 
			
		||||
        private bool BackUpdate_FOJobEventRecord(string id,Action action)
 | 
			
		||||
        {
 | 
			
		||||
            var entity = this.GetEntity<T_FO_JOB_EVENT_RECORD>(id, "Nav_Details");
 | 
			
		||||
            entity.FORM_STATUS = (int)FOTeamActivityState.已归档;
 | 
			
		||||
 | 
			
		||||
@ -2,6 +2,12 @@
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
 
 | 
			
		||||
  
 | 
			
		||||
 | 
			
		||||
//------------------------------------------------------------------------------
 | 
			
		||||
//     T4模板文件:基础接口类
 | 
			
		||||
//     此代码由T4模板自动生成
 | 
			
		||||
@ -19,6 +25,7 @@ namespace APT.PF.WebApi.Controllers.Api
 | 
			
		||||
using APT.BaseData.Domain.Entities;
 | 
			
		||||
using APT.BaseData.Domain.Entities.PF;
 | 
			
		||||
using APT.BaseData.Domain.Entities.T4;
 | 
			
		||||
 | 
			
		||||
	#region  ApprovalRole-审批角色
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  审批角色
 | 
			
		||||
@ -126,8 +133,10 @@ using APT.BaseData.Domain.Entities.T4;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  Approve-审批流主表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  审批流主表
 | 
			
		||||
@ -235,8 +244,10 @@ using APT.BaseData.Domain.Entities.T4;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  ApproveDetail-审批流子表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  审批流子表
 | 
			
		||||
@ -344,8 +355,10 @@ using APT.BaseData.Domain.Entities.T4;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  ApproveOperationRole-操作角色
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  操作角色
 | 
			
		||||
@ -453,8 +466,10 @@ using APT.BaseData.Domain.Entities.T4;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  ApproveRejectConfig-审批驳回配置表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  审批驳回配置表
 | 
			
		||||
@ -562,8 +577,10 @@ using APT.BaseData.Domain.Entities.T4;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  ApproveRoleDepartment-分管部门
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  分管部门
 | 
			
		||||
@ -671,8 +688,10 @@ using APT.BaseData.Domain.Entities.T4;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  ApproveTemp-审批流模板主表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  审批流模板主表
 | 
			
		||||
@ -780,8 +799,10 @@ using APT.BaseData.Domain.Entities.T4;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  ApproveTempDetail-审批流模板子表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  审批流模板子表
 | 
			
		||||
@ -889,8 +910,10 @@ using APT.BaseData.Domain.Entities.T4;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  AppVersion-App版本发布
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  App版本发布
 | 
			
		||||
@ -998,8 +1021,10 @@ using APT.BaseData.Domain.Entities.T4;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  AppVersionFile-App包文件
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  App包文件
 | 
			
		||||
@ -1107,8 +1132,10 @@ using APT.BaseData.Domain.Entities.T4;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  ClientScopes-资源表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  资源表
 | 
			
		||||
@ -1216,8 +1243,10 @@ using APT.BaseData.Domain.Entities.T4;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  CodeRuleRunLog-编码规则跑批表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  编码规则跑批表
 | 
			
		||||
@ -1325,8 +1354,10 @@ using APT.BaseData.Domain.Entities.T4;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  ComplaintLog-转办记录表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  转办记录表
 | 
			
		||||
@ -1434,8 +1465,10 @@ using APT.BaseData.Domain.Entities.T4;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  DataChannel-数据通道
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  数据通道
 | 
			
		||||
@ -1543,8 +1576,10 @@ using APT.BaseData.Domain.Entities.T4;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  DataFrequency-采集频率
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  采集频率
 | 
			
		||||
@ -1652,8 +1687,10 @@ using APT.BaseData.Domain.Entities.T4;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  Fddeback-意见反馈
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  意见反馈
 | 
			
		||||
@ -1761,8 +1798,10 @@ using APT.BaseData.Domain.Entities.T4;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  FddebackFile-意见反馈附件
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  意见反馈附件
 | 
			
		||||
@ -1870,8 +1909,10 @@ using APT.BaseData.Domain.Entities.T4;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  FileDb-
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  
 | 
			
		||||
@ -1979,8 +2020,10 @@ using APT.BaseData.Domain.Entities.T4;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  FileDbFile-
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  
 | 
			
		||||
@ -2088,8 +2131,10 @@ using APT.BaseData.Domain.Entities.T4;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  FileType-
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  
 | 
			
		||||
@ -2197,8 +2242,10 @@ using APT.BaseData.Domain.Entities.T4;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  FormHomeChart-首页:图标区域
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  首页:图标区域
 | 
			
		||||
@ -2306,8 +2353,10 @@ using APT.BaseData.Domain.Entities.T4;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  FormHomeHmi-首页:HMI区域
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  首页:HMI区域
 | 
			
		||||
@ -2415,8 +2464,10 @@ using APT.BaseData.Domain.Entities.T4;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  FormHomeRanking-首页:排名区域
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  首页:排名区域
 | 
			
		||||
@ -2524,8 +2575,10 @@ using APT.BaseData.Domain.Entities.T4;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  FormHomeStatistic-首页:统计区域
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  首页:统计区域
 | 
			
		||||
@ -2633,8 +2686,10 @@ using APT.BaseData.Domain.Entities.T4;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  FormRelation-关联表单配置
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  关联表单配置
 | 
			
		||||
@ -2742,8 +2797,10 @@ using APT.BaseData.Domain.Entities.T4;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  HomeTitle-首页方针
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  首页方针
 | 
			
		||||
@ -2851,8 +2908,10 @@ using APT.BaseData.Domain.Entities.T4;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  MqttConfig-MQTT配置表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  MQTT配置表
 | 
			
		||||
@ -2960,8 +3019,10 @@ using APT.BaseData.Domain.Entities.T4;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  MqttConfigTheme-
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  
 | 
			
		||||
@ -3069,8 +3130,10 @@ using APT.BaseData.Domain.Entities.T4;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  Notice-通知
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  通知
 | 
			
		||||
@ -3178,8 +3241,10 @@ using APT.BaseData.Domain.Entities.T4;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  NoticeFile-
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  
 | 
			
		||||
@ -3287,8 +3352,10 @@ using APT.BaseData.Domain.Entities.T4;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  PicFilter-图片条件主表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  图片条件主表
 | 
			
		||||
@ -3396,8 +3463,10 @@ using APT.BaseData.Domain.Entities.T4;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  PicFilterDetail-图片条件子表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  图片条件子表
 | 
			
		||||
@ -3505,8 +3574,10 @@ using APT.BaseData.Domain.Entities.T4;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  QuestionFeedback-问题反馈表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  问题反馈表
 | 
			
		||||
@ -3614,8 +3685,10 @@ using APT.BaseData.Domain.Entities.T4;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  QuestionFeedbackFile-问题反馈附件表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  问题反馈附件表
 | 
			
		||||
@ -3723,8 +3796,10 @@ using APT.BaseData.Domain.Entities.T4;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  Scopes-资源表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  资源表
 | 
			
		||||
@ -3832,8 +3907,10 @@ using APT.BaseData.Domain.Entities.T4;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
	#region  VersionManage-版本管理表
 | 
			
		||||
	/// <summary>
 | 
			
		||||
    ///  版本管理表
 | 
			
		||||
@ -3941,6 +4018,8 @@ using APT.BaseData.Domain.Entities.T4;
 | 
			
		||||
           return WitEntity(null, filter);
 | 
			
		||||
       }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
	#endregion
 | 
			
		||||
 | 
			
		||||
 }
 | 
			
		||||
 | 
			
		||||
@ -2,6 +2,12 @@
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
 
 | 
			
		||||
  
 | 
			
		||||
 | 
			
		||||
//------------------------------------------------------------------------------
 | 
			
		||||
//     T4模板文件:基础接口类
 | 
			
		||||
//     此代码由T4模板自动生成
 | 
			
		||||
@ -15,4 +21,5 @@ using APT.Infrastructure.Api;
 | 
			
		||||
using APT.BaseData.Domain.ApiModel.PF;
 | 
			
		||||
namespace APT.PP.WebApi.Controllers.Api
 | 
			
		||||
{
 | 
			
		||||
	
 | 
			
		||||
 }
 | 
			
		||||
 | 
			
		||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							@ -1,22 +0,0 @@
 | 
			
		||||
using APT.Infrastructure.Core;
 | 
			
		||||
using Microsoft.AspNetCore.Http;
 | 
			
		||||
 | 
			
		||||
namespace APT.Utility
 | 
			
		||||
{
 | 
			
		||||
    public class HeadHelper
 | 
			
		||||
    {
 | 
			
		||||
        /// <summary>
 | 
			
		||||
        /// 地球半径
 | 
			
		||||
        /// </summary>
 | 
			
		||||
        public const string HeadtelnetCode = "0003";
 | 
			
		||||
 | 
			
		||||
        public static bool GetIsHead(IHeaderDictionary Headers)
 | 
			
		||||
        {
 | 
			
		||||
            if (Headers != null && Headers.ContainsKey("Tenant") && Headers["Tenant"] == HeadtelnetCode)
 | 
			
		||||
            {
 | 
			
		||||
                return true;
 | 
			
		||||
            }
 | 
			
		||||
            return false;
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
@ -24,6 +24,5 @@ namespace APT.Utility
 | 
			
		||||
        public string MineType { get; set; }
 | 
			
		||||
 | 
			
		||||
        public string[] DataRule { get; set; }
 | 
			
		||||
        public bool IsHead { get; set; }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user