From 4746c215085da0dfa2ca5f9ea75a82ee7f8f7d19 Mon Sep 17 00:00:00 2001
From: xiaju <1784803958@qq.com>
Date: Sat, 19 Apr 2025 16:21:39 +0800
Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=8A=A8=E7=94=9F=E6=88=90=E5=9F=B9?=
=?UTF-8?q?=E8=AE=AD=E8=AE=A1=E5=88=92?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../版本日志/SGGLDB_V2025-02-25-xiaj.sql | 2 +
.../HSSE/EduTrain/CompanyTrainingService.cs | 1 +
SGGL/BLL/HSSE/EduTrain/TrainingPlanService.cs | 217 +-
SGGL/BLL/HSSE/SitePerson/PersonService.cs | 27 +
SGGL/FineUIPro.Web/FineUIPro.Web.csproj | 9 +-
.../HSSE/Check/ProjectLeaderCheckEdit.aspx.cs | 2 +-
SGGL/FineUIPro.Web/HSSE/EduTrain/Plan.aspx | 186 +-
SGGL/FineUIPro.Web/HSSE/EduTrain/Plan.aspx.cs | 91 +-
.../HSSE/EduTrain/Plan.aspx.designer.cs | 58 +-
.../FineUIPro.Web/HSSE/EduTrain/PlanEdit.aspx | 220 +-
.../HSSE/EduTrain/PlanEdit.aspx.cs | 3 +-
.../SelectCompanyTrainingItemProducePlan.aspx | 93 +
...lectCompanyTrainingItemProducePlan.aspx.cs | 194 ++
...nyTrainingItemProducePlan.aspx.designer.cs | 134 +
SGGL/FineUIPro.Web/HSSE/EduTrain/Task.aspx | 6 +-
SGGL/FineUIPro.Web/HSSE/EduTrain/Task.aspx.cs | 1 +
.../HSSE/EduTrain/TrainFind.aspx | 232 +-
.../HSSE/EduTrain/TrainFind.aspx.cs | 44 +-
.../HSSE/EduTrain/TrainFind.aspx.designer.cs | 99 +-
.../HSSE/EduTrain/TrainRecord.aspx.cs | 103 +-
.../HSSE/EduTrain/Trainingrecords.aspx | 2 +-
.../HSSE/EduTrain/Trainingrecords.aspx.cs | 1 +
.../HiddenRectificationAdd.aspx.cs | 2 +-
.../HSSE/SitePerson/PersonList.aspx | 2 +
.../HSSE/SitePerson/PersonList.aspx.cs | 45 +-
.../SitePerson/PersonList.aspx.designer.cs | 9 +
...eProducePlanInfo.cs => ProducePlanInfo.cs} | 2 +-
SGGL/Model/Model.cs | 3013 +----------------
SGGL/Model/Model.csproj | 2 +-
29 files changed, 1357 insertions(+), 3443 deletions(-)
create mode 100644 SGGL/FineUIPro.Web/HSSE/EduTrain/SelectCompanyTrainingItemProducePlan.aspx
create mode 100644 SGGL/FineUIPro.Web/HSSE/EduTrain/SelectCompanyTrainingItemProducePlan.aspx.cs
create mode 100644 SGGL/FineUIPro.Web/HSSE/EduTrain/SelectCompanyTrainingItemProducePlan.aspx.designer.cs
rename SGGL/Model/HSSE/EduTrain/{RetakeCourseProducePlanInfo.cs => ProducePlanInfo.cs} (95%)
diff --git a/DataBase/版本日志/SGGLDB_V2025-02-25-xiaj.sql b/DataBase/版本日志/SGGLDB_V2025-02-25-xiaj.sql
index 2f6704b..af494cc 100644
--- a/DataBase/版本日志/SGGLDB_V2025-02-25-xiaj.sql
+++ b/DataBase/版本日志/SGGLDB_V2025-02-25-xiaj.sql
@@ -34,6 +34,8 @@ BEGIN
ALTER TABLE Training_Plan ADD CheckType nvarchar(50) ;
--¼Id
ALTER TABLE Training_Plan ADD CheckId nvarchar(50) ;
+ --ѵ̲Id
+ ALTER TABLE Training_Plan ADD CompanyTrainingItemId nvarchar(50) ;
END
GO
diff --git a/SGGL/BLL/HSSE/EduTrain/CompanyTrainingService.cs b/SGGL/BLL/HSSE/EduTrain/CompanyTrainingService.cs
index 12541da..d548380 100644
--- a/SGGL/BLL/HSSE/EduTrain/CompanyTrainingService.cs
+++ b/SGGL/BLL/HSSE/EduTrain/CompanyTrainingService.cs
@@ -117,6 +117,7 @@ namespace BLL
{
return (from x in Funs.DB.Training_CompanyTraining
where x.IsEndLever == true
+ orderby x.CompanyTrainingCode
select x).ToList();
}
diff --git a/SGGL/BLL/HSSE/EduTrain/TrainingPlanService.cs b/SGGL/BLL/HSSE/EduTrain/TrainingPlanService.cs
index 5b517ea..ff398eb 100644
--- a/SGGL/BLL/HSSE/EduTrain/TrainingPlanService.cs
+++ b/SGGL/BLL/HSSE/EduTrain/TrainingPlanService.cs
@@ -1,10 +1,8 @@
-using Microsoft.Office.Interop.Excel;
-using Microsoft.SqlServer.Dts.Runtime;
-using Model;
+using Model;
using System;
using System.Collections.Generic;
using System.Linq;
-using System.Text;
+using System.Numerics;
namespace BLL
{
@@ -35,6 +33,18 @@ namespace BLL
return db.Training_Plan.FirstOrDefault(e => e.CheckId == checkId && e.IsRetakeCourse == 1);
}
+ ///
+ /// 根据培训教材Id获取今年培训计划
+ ///
+ ///
+ ///
+ ///
+ ///
+ public static List GetThisYearPlanByCompanyTrainingItemId(string projectId, string itemId, int year)
+ {
+ return db.Training_Plan.Where(e => e.ProjectId == projectId && e.CompanyTrainingItemId == itemId && e.IsRetakeCourse != 1 && ((DateTime)e.DesignerDate).Year == year).ToList();
+ }
+
///
@@ -52,6 +62,7 @@ namespace BLL
PlanName = model.PlanName,
TrainContent = model.TrainContent,
TrainStartDate = model.TrainStartDate,
+ TrainEndDate = model.TrainEndDate,
TeachHour = model.TeachHour,
TeachMan = model.TeachMan,
TeachAddress = model.TeachAddress,
@@ -64,7 +75,8 @@ namespace BLL
Cycle = model.Cycle,
IsRetakeCourse = model.IsRetakeCourse,
CheckType = model.CheckType,
- CheckId = model.CheckId
+ CheckId = model.CheckId,
+ CompanyTrainingItemId = model.CompanyTrainingItemId
};
db.Training_Plan.InsertOnSubmit(newModel);
db.SubmitChanges();
@@ -82,8 +94,8 @@ namespace BLL
isUpdate.PlanName = model.PlanName;
isUpdate.TrainContent = model.TrainContent;
isUpdate.TrainStartDate = model.TrainStartDate;
- isUpdate.TeachHour = model.TeachHour;
isUpdate.TrainEndDate = model.TrainEndDate;
+ isUpdate.TeachHour = model.TeachHour;
isUpdate.TeachMan = model.TeachMan;
isUpdate.TeachAddress = model.TeachAddress;
isUpdate.TrainTypeId = model.TrainTypeId;
@@ -96,6 +108,7 @@ namespace BLL
isUpdate.IsRetakeCourse = model.IsRetakeCourse;
isUpdate.CheckType = model.CheckType;
isUpdate.CheckId = model.CheckId;
+ isUpdate.CompanyTrainingItemId = model.CompanyTrainingItemId;
db.SubmitChanges();
}
}
@@ -123,12 +136,25 @@ namespace BLL
return (from x in db.Training_Plan orderby x.PlanCode select x).ToList();
}
+ ///
+ /// 获取某一岗位今年入场培训计划
+ ///
+ ///
+ ///
+ ///
+ public static List GetPlanListByWorkPostId(string projectId, string workPostId)
+ {
+ var list = (from x in db.Training_Plan
+ where x.ProjectId == projectId && (x.WorkPostId == null || x.WorkPostId.Contains(workPostId)) && x.CompanyTrainingItemId != null && x.IsRetakeCourse == null && Convert.ToDateTime(x.DesignerDate).Year == DateTime.Now.Year
+ select x).ToList();
+ return list;
+ }
///
/// 检查重修,并生成培训计划、任务
///
///
- public static void RetakeCourseProducePlan(RetakeCourseProducePlanInfo info)
+ public static void RetakeCourseProducePlan(ProducePlanInfo info)
{
var plan = GetPlanByCheckId(info.CheckId);
var person = PersonService.GetPersonById(info.PersonId);
@@ -157,7 +183,8 @@ namespace BLL
Cycle = "",
IsRetakeCourse = 1,
CheckType = plan.CheckType,
- CheckId = plan.CheckId
+ CheckId = plan.CheckId,
+ CompanyTrainingItemId = info.CompanyTrainingItemId
};
UpdatePlan(planModel);
}
@@ -189,7 +216,8 @@ namespace BLL
Cycle = "",
IsRetakeCourse = 1,
CheckType = info.CheckType.ToString(),
- CheckId = info.CheckId
+ CheckId = info.CheckId,
+ CompanyTrainingItemId = info.CompanyTrainingItemId
};
AddPlan(planModel);
}
@@ -239,5 +267,176 @@ namespace BLL
};
TrainingPlanItemService.AddPlanItem(newPlanItem);
}
+
+ ///
+ /// 选择教材生成培训计划
+ ///
+ ///
+ public static void SelectCompanyTrainingItemProducePlan(ProducePlanInfo info)
+ {
+ var companyTrainingItem = CompanyTrainingItemService.GetCompanyTrainingItemById(info.CompanyTrainingItemId);
+ var teachHour = companyTrainingItem.LearningTime / 3600;
+
+ //1、根据教材id查询适用岗位下相关人员;
+ var workPostIds = !string.IsNullOrWhiteSpace(companyTrainingItem.WorkPostIds) ? companyTrainingItem.WorkPostIds.Split(',').ToList() : new List();
+
+ var workPostPersons = PersonService.GetPersonListByWorkPostIds(info.CurrProjectId, workPostIds);
+ //人员单位
+ var unitIds = workPostPersons.Any() ? String.Join(", ", workPostPersons.Select(x => x.UnitId).Distinct()) : string.Empty;
+ //2、根据教材id查询今年是否有相关培训计划(排除重修培训计划),如果有先删除;
+ var plans = GetThisYearPlanByCompanyTrainingItemId(info.CurrProjectId, info.CompanyTrainingItemId, DateTime.Now.Year);
+ if (plans.Any())
+ {//删除今年的培训计划
+ foreach (var plan in plans)
+ {
+ //删除培训明细
+ TrainingPlanItemService.DeletePlanItemByPlanId(plan.PlanId);
+ //删除任务
+ TrainingTaskService.DeleteTaskByPlanId(plan.PlanId);
+ DeletePlanById(plan.PlanId);
+ }
+ }
+
+ //生成培训计划
+ string planId = SQLHelper.GetNewID();
+ string code = ProjectService.GetProjectByProjectId(info.CurrProjectId).ProjectCode + "-";
+ string planCode = BLL.SQLHelper.RunProcNewId("SpGetNewCode5ByProjectId", "dbo.Training_Plan", "PlanCode", info.CurrProjectId, code);
+
+ Model.Training_Plan planModel = new Model.Training_Plan
+ {
+ PlanId = planId,
+ PlanCode = planCode,
+ ProjectId = info.CurrProjectId,
+ DesignerId = info.CurrUserId,
+ DesignerDate = DateTime.Now,
+ PlanName = companyTrainingItem.CompanyTrainingItemName,
+ TrainContent = companyTrainingItem.CompanyTrainingItemName,
+ TrainStartDate = DateTime.Now,
+ TrainEndDate = info.TrainEndDate,
+ TeachHour = teachHour,
+ //TeachMan = companyTrainingItem.,
+ //TeachAddress = model.TeachAddress,
+ TrainTypeId = Const.EntryTrainTypeId,
+ TrainLevelId = Const.OtherTrainLevelId,
+ UnitIds = unitIds,
+ WorkPostId = companyTrainingItem.WorkPostIds,
+ States = "1",
+ Cycle = "",
+ //IsRetakeCourse = 0,
+ //CheckType = info.CheckType.ToString(),
+ //CheckId = info.CheckId,
+ CompanyTrainingItemId = info.CompanyTrainingItemId
+ };
+ AddPlan(planModel);
+
+ //新增培训明细
+ Model.Training_PlanItem newPlanItem = new Model.Training_PlanItem
+ {
+ PlanItemId = SQLHelper.GetNewID(),
+ PlanId = planId,
+ CompanyTrainingItemId = info.CompanyTrainingItemId,
+ CompanyTrainingId = companyTrainingItem.CompanyTrainingId
+ };
+ TrainingPlanItemService.AddPlanItem(newPlanItem);
+
+ List newTasks = new List();
+ List newTaskItems = new List();
+ //循环给人员添加任务
+ foreach (var person in workPostPersons)
+ {
+ string taskId = SQLHelper.GetNewID();
+ //新增培训任务
+ Model.Training_Task newTask = new Model.Training_Task
+ {
+ TaskId = taskId,
+ ProjectId = info.CurrProjectId,
+ PlanId = planId,
+ UserId = person.PersonId,
+ TaskDate = DateTime.Now,
+ States = Const.State_1,
+ };
+ newTasks.Add(newTask);
+
+ //新增培训任务明细
+ Model.Training_TaskItem newTaskItem = new Model.Training_TaskItem
+ {
+ TaskItemId = SQLHelper.GetNewID(),
+ TaskId = taskId,
+ PlanId = planId,
+ PersonId = person.PersonId,
+ TrainingItemCode = companyTrainingItem.CompanyTrainingItemCode,
+ TrainingItemName = companyTrainingItem.CompanyTrainingItemName,
+ AttachUrl = companyTrainingItem.AttachUrl,
+ CompanyTrainingItemId = info.CompanyTrainingItemId,
+ //LearnTime = trainingItem.LearningTime,
+ //VideoProgress = 0,
+ };
+ newTaskItems.Add(newTaskItem);
+ }
+
+ db.Training_Task.InsertAllOnSubmit(newTasks);
+ db.Training_TaskItem.InsertAllOnSubmit(newTaskItems);
+ db.SubmitChanges();
+ }
+
+ ///
+ /// 选择人员生成培训计划
+ ///
+ ///
+ public static bool SelectPersonProducePlan(ProducePlanInfo info)
+ {
+ bool result = false;
+ //1、根据人员获取人员基本信息
+ var person = PersonService.GetPersonById(info.PersonId);
+ if (string.IsNullOrWhiteSpace(person.WorkPostId))
+ {
+ return result;
+ }
+ //2、根据人员岗位Id查询今年入场培训计划
+ var lstPlan = GetPlanListByWorkPostId(info.CurrProjectId, person.WorkPostId);
+ foreach (var plan in lstPlan)
+ {
+ var task = (from x in db.Training_Task
+ where x.ProjectId == info.CurrProjectId && x.PlanId == plan.PlanId && x.UserId == person.PersonId
+ select x).ToList();
+ if (task.Any())
+ {
+ continue;
+ }
+ var companyTrainingItem = CompanyTrainingItemService.GetCompanyTrainingItemById(plan.CompanyTrainingItemId);
+ string taskId = SQLHelper.GetNewID();
+ //新增培训任务
+ Model.Training_Task newTask = new Model.Training_Task
+ {
+ TaskId = taskId,
+ ProjectId = info.CurrProjectId,
+ PlanId = plan.PlanId,
+ UserId = person.PersonId,
+ TaskDate = DateTime.Now,
+ States = Const.State_1,
+ };
+
+ //新增培训任务明细
+ Model.Training_TaskItem newTaskItem = new Model.Training_TaskItem
+ {
+ TaskItemId = SQLHelper.GetNewID(),
+ TaskId = taskId,
+ PlanId = plan.PlanId,
+ PersonId = person.PersonId,
+ TrainingItemCode = companyTrainingItem.CompanyTrainingItemCode,
+ TrainingItemName = companyTrainingItem.CompanyTrainingItemName,
+ AttachUrl = companyTrainingItem.AttachUrl,
+ CompanyTrainingItemId = info.CompanyTrainingItemId,
+ //LearnTime = trainingItem.LearningTime,
+ //VideoProgress = 0,
+ };
+
+ db.Training_Task.InsertOnSubmit(newTask);
+ db.Training_TaskItem.InsertOnSubmit(newTaskItem);
+ db.SubmitChanges();
+ }
+
+ return true;
+ }
}
}
diff --git a/SGGL/BLL/HSSE/SitePerson/PersonService.cs b/SGGL/BLL/HSSE/SitePerson/PersonService.cs
index 5408907..8c78da0 100644
--- a/SGGL/BLL/HSSE/SitePerson/PersonService.cs
+++ b/SGGL/BLL/HSSE/SitePerson/PersonService.cs
@@ -323,6 +323,33 @@ namespace BLL
return (from x in Funs.DB.SitePerson_Person where x.ProjectId == projectId select x).ToList();
}
+ ///
+ /// 根据岗位id获取在岗人员信息列表
+ ///
+ ///
+ ///
+ ///
+ public static List GetPersonListByWorkPostIds(string projectId, List workPostIds)
+ {
+ var list = new List();
+ if (workPostIds.Any())
+ {
+ foreach (var work in workPostIds)
+ {
+ var plist = (from x in Funs.DB.SitePerson_Person where x.IsUsed == true && x.ProjectId == projectId && x.WorkPostId == work select x).ToList();
+ if (plist.Any())
+ {
+ list.AddRange(plist);
+ }
+ }
+ }
+ else
+ {
+ list = (from x in Funs.DB.SitePerson_Person where x.IsUsed == true && x.ProjectId == projectId select x).ToList();
+ }
+ return list;
+ }
+
///
/// 增加人员信息
///
diff --git a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj
index 2f43442..8d7f62e 100644
--- a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj
+++ b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj
@@ -1850,6 +1850,7 @@
+
@@ -3675,7 +3676,6 @@
-
@@ -12680,6 +12680,13 @@
PlanEdit.aspx
+
+ SelectCompanyTrainingItemProducePlan.aspx
+ ASPXCodeBehind
+
+
+ SelectCompanyTrainingItemProducePlan.aspx
+
TaskNotice.aspx
ASPXCodeBehind
diff --git a/SGGL/FineUIPro.Web/HSSE/Check/ProjectLeaderCheckEdit.aspx.cs b/SGGL/FineUIPro.Web/HSSE/Check/ProjectLeaderCheckEdit.aspx.cs
index cf880bb..7043030 100644
--- a/SGGL/FineUIPro.Web/HSSE/Check/ProjectLeaderCheckEdit.aspx.cs
+++ b/SGGL/FineUIPro.Web/HSSE/Check/ProjectLeaderCheckEdit.aspx.cs
@@ -232,7 +232,7 @@ namespace FineUIPro.Web.HSSE.Check
if (!string.IsNullOrWhiteSpace(model.ResponsibleMan) && !string.IsNullOrWhiteSpace(model.CompanyTrainingItemId))
{//责任人和重修教材非空,生成培训计划
var CheckTypeName = Enums.RetakeCourseType.领导带班检查.ToString();
- Model.RetakeCourseProducePlanInfo info = new Model.RetakeCourseProducePlanInfo
+ Model.ProducePlanInfo info = new Model.ProducePlanInfo
{
CurrProjectId = this.CurrUser.LoginProjectId,
CurrUserId = this.CurrUser.UserId,
diff --git a/SGGL/FineUIPro.Web/HSSE/EduTrain/Plan.aspx b/SGGL/FineUIPro.Web/HSSE/EduTrain/Plan.aspx
index ab3d297..9d83e03 100644
--- a/SGGL/FineUIPro.Web/HSSE/EduTrain/Plan.aspx
+++ b/SGGL/FineUIPro.Web/HSSE/EduTrain/Plan.aspx
@@ -1,6 +1,7 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Plan.aspx.cs" Inherits="FineUIPro.Web.HSSE.EduTrain.Plan" %>
+<%@ Register Src="~/Controls/UnitProjectTControl.ascx" TagName="UnitProjectTControl" TagPrefix="uc1" %>
@@ -9,96 +10,115 @@
diff --git a/SGGL/FineUIPro.Web/HSSE/EduTrain/TrainFind.aspx.cs b/SGGL/FineUIPro.Web/HSSE/EduTrain/TrainFind.aspx.cs
index 591c64d..ae93069 100644
--- a/SGGL/FineUIPro.Web/HSSE/EduTrain/TrainFind.aspx.cs
+++ b/SGGL/FineUIPro.Web/HSSE/EduTrain/TrainFind.aspx.cs
@@ -43,12 +43,14 @@ namespace FineUIPro.Web.HSSE.EduTrain
{
this.ProjectId = Request.Params["projectId"];
}
- //单位
- BLL.UnitService.InitUnitDropDownList(this.drpUnitId, this.ProjectId, true);
- if (BLL.ProjectUnitService.GetProjectUnitTypeByProjectIdUnitId(this.ProjectId, this.CurrUser.UnitId))
+ this.InitDropDownList();
+ this.ucTree.UnitId = this.CurrUser.UnitId;
+ this.ucTree.ProjectId = this.ProjectId;
+ if (!string.IsNullOrEmpty(this.CurrUser.LoginProjectId))
{
- this.drpUnitId.SelectedValue = this.CurrUser.UnitId;
- this.drpUnitId.Enabled = false;
+ this.panelLeftRegion.Hidden = true;
+ //////权限按钮方法
+ //this.GetButtonPower();
}
//培训类型
BLL.TrainTypeService.InitTrainTypeDropDownList(this.drpTrainType, true);
@@ -59,12 +61,44 @@ namespace FineUIPro.Web.HSSE.EduTrain
BindGrid();
}
}
+ private void InitDropDownList()
+ {
+ //单位
+ BLL.UnitService.InitUnitDropDownList(this.drpUnitId, this.ProjectId, true);
+ if (BLL.ProjectUnitService.GetProjectUnitTypeByProjectIdUnitId(this.ProjectId, this.CurrUser.UnitId))
+ {
+ this.drpUnitId.SelectedValue = this.CurrUser.UnitId;
+ this.drpUnitId.Enabled = false;
+ }
+ }
+ ///
+ /// 公司级树加载
+ ///
+ ///
+ ///
+ protected void changeTree(object sender, EventArgs e)
+ {
+ this.ProjectId = this.ucTree.ProjectId;
+ this.InitDropDownList();
+ this.BindGrid();
+
+ //this.GetButtonPower();
+ //if (string.IsNullOrEmpty(this.CurrUser.LoginProjectId))
+ //{
+ // btnNew.Hidden = true;
+ //}
+ }
///
/// 加载数据
///
private void BindGrid()
{
+ if (string.IsNullOrEmpty(this.ProjectId))
+ {
+ return;
+ }
+
string strSql = @"SELECT NEWID() AS ID, CardNo,PersonName,ProjectId,UnitId,UnitName,WorkPostName,TrainTitle ,TrainStartDate,TrainEndDate,TrainTypeId,TeachHour,TrainTypeName,CheckScore,CheckResult,TeachMan,UnitType,TrainLevelName" +
@" FROM dbo.View_EduTrain_TrainFind" +
@" WHERE 1=1";
diff --git a/SGGL/FineUIPro.Web/HSSE/EduTrain/TrainFind.aspx.designer.cs b/SGGL/FineUIPro.Web/HSSE/EduTrain/TrainFind.aspx.designer.cs
index 5c3a10e..9148591 100644
--- a/SGGL/FineUIPro.Web/HSSE/EduTrain/TrainFind.aspx.designer.cs
+++ b/SGGL/FineUIPro.Web/HSSE/EduTrain/TrainFind.aspx.designer.cs
@@ -7,11 +7,13 @@
// 自动生成>
//------------------------------------------------------------------------------
-namespace FineUIPro.Web.HSSE.EduTrain {
-
-
- public partial class TrainFind {
-
+namespace FineUIPro.Web.HSSE.EduTrain
+{
+
+
+ public partial class TrainFind
+ {
+
///
/// Head1 控件。
///
@@ -20,7 +22,7 @@ namespace FineUIPro.Web.HSSE.EduTrain {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::System.Web.UI.HtmlControls.HtmlHead Head1;
-
+
///
/// form1 控件。
///
@@ -29,7 +31,7 @@ namespace FineUIPro.Web.HSSE.EduTrain {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
-
+
///
/// PageManager1 控件。
///
@@ -38,7 +40,52 @@ namespace FineUIPro.Web.HSSE.EduTrain {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.PageManager PageManager1;
-
+
+ ///
+ /// Panel2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Panel Panel2;
+
+ ///
+ /// panelLeftRegion 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Panel panelLeftRegion;
+
+ ///
+ /// ContentPanel1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ContentPanel ContentPanel1;
+
+ ///
+ /// ucTree 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Web.Controls.UnitProjectTControl ucTree;
+
+ ///
+ /// panelCenterRegion 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Panel panelCenterRegion;
+
///
/// Panel1 控件。
///
@@ -47,7 +94,7 @@ namespace FineUIPro.Web.HSSE.EduTrain {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Panel Panel1;
-
+
///
/// Grid1 控件。
///
@@ -56,7 +103,7 @@ namespace FineUIPro.Web.HSSE.EduTrain {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Grid Grid1;
-
+
///
/// Toolbar2 控件。
///
@@ -65,7 +112,7 @@ namespace FineUIPro.Web.HSSE.EduTrain {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Toolbar Toolbar2;
-
+
///
/// cbIssue 控件。
///
@@ -74,7 +121,7 @@ namespace FineUIPro.Web.HSSE.EduTrain {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.CheckBoxList cbIssue;
-
+
///
/// txtPersonName 控件。
///
@@ -83,7 +130,7 @@ namespace FineUIPro.Web.HSSE.EduTrain {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.TextBox txtPersonName;
-
+
///
/// drpUnitId 控件。
///
@@ -92,7 +139,7 @@ namespace FineUIPro.Web.HSSE.EduTrain {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.DropDownList drpUnitId;
-
+
///
/// txtTeachMan 控件。
///
@@ -101,7 +148,7 @@ namespace FineUIPro.Web.HSSE.EduTrain {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.TextBox txtTeachMan;
-
+
///
/// drpTrainType 控件。
///
@@ -110,7 +157,7 @@ namespace FineUIPro.Web.HSSE.EduTrain {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.DropDownList drpTrainType;
-
+
///
/// ToolbarFill1 控件。
///
@@ -119,7 +166,7 @@ namespace FineUIPro.Web.HSSE.EduTrain {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.ToolbarFill ToolbarFill1;
-
+
///
/// btnOut 控件。
///
@@ -128,7 +175,7 @@ namespace FineUIPro.Web.HSSE.EduTrain {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Button btnOut;
-
+
///
/// labNumber 控件。
///
@@ -137,7 +184,7 @@ namespace FineUIPro.Web.HSSE.EduTrain {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::System.Web.UI.WebControls.Label labNumber;
-
+
///
/// lbUnitName 控件。
///
@@ -146,7 +193,7 @@ namespace FineUIPro.Web.HSSE.EduTrain {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::System.Web.UI.WebControls.Label lbUnitName;
-
+
///
/// lbWorkPostName 控件。
///
@@ -155,7 +202,7 @@ namespace FineUIPro.Web.HSSE.EduTrain {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::System.Web.UI.WebControls.Label lbWorkPostName;
-
+
///
/// lbTrainTitle 控件。
///
@@ -164,7 +211,7 @@ namespace FineUIPro.Web.HSSE.EduTrain {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::System.Web.UI.WebControls.Label lbTrainTitle;
-
+
///
/// lbTrainTypeName 控件。
///
@@ -173,7 +220,7 @@ namespace FineUIPro.Web.HSSE.EduTrain {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::System.Web.UI.WebControls.Label lbTrainTypeName;
-
+
///
/// lbCheckResult 控件。
///
@@ -182,7 +229,7 @@ namespace FineUIPro.Web.HSSE.EduTrain {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::System.Web.UI.WebControls.Label lbCheckResult;
-
+
///
/// ToolbarSeparator1 控件。
///
@@ -191,7 +238,7 @@ namespace FineUIPro.Web.HSSE.EduTrain {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
-
+
///
/// ToolbarText1 控件。
///
@@ -200,7 +247,7 @@ namespace FineUIPro.Web.HSSE.EduTrain {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.ToolbarText ToolbarText1;
-
+
///
/// ddlPageSize 控件。
///
diff --git a/SGGL/FineUIPro.Web/HSSE/EduTrain/TrainRecord.aspx.cs b/SGGL/FineUIPro.Web/HSSE/EduTrain/TrainRecord.aspx.cs
index c46d5db..62c1af5 100644
--- a/SGGL/FineUIPro.Web/HSSE/EduTrain/TrainRecord.aspx.cs
+++ b/SGGL/FineUIPro.Web/HSSE/EduTrain/TrainRecord.aspx.cs
@@ -70,7 +70,7 @@ namespace FineUIPro.Web.HSSE.EduTrain
{
this.ProjectId = Request.Params["projectId"];
}
-
+ this.InitDropDownList();
this.ucTree.UnitId = this.CurrUser.UnitId;
this.ucTree.ProjectId = this.ProjectId;
Funs.DropDownPageSize(this.ddlPageSize);
@@ -78,8 +78,7 @@ namespace FineUIPro.Web.HSSE.EduTrain
this.GetButtonPower();
this.btnMenuDelete.OnClientClick = Grid1.GetNoSelectionAlertReference("请至少选择一项!");
this.btnMenuDelete.ConfirmText = String.Format("你确定要删除选中的 行数据吗?", Grid1.GetSelectedCountReference());
- //单位
- BLL.UnitService.InitUnitDropDownList(this.drpUnitId, this.CurrUser.LoginProjectId, true);
+
//培训类型
BLL.TrainTypeService.InitTrainTypeDropDownList(this.drpTrainType, true);
trainType = Request.Params["trainType"];
@@ -97,7 +96,7 @@ namespace FineUIPro.Web.HSSE.EduTrain
{
this.btnRefresh.Hidden = false;
}
- if (!string.IsNullOrEmpty(this.CurrUser.LoginProjectId))
+ if (!string.IsNullOrEmpty(this.ProjectId))
{
this.panelLeftRegion.Hidden = true;
// this.Grid1.Columns[0].Hidden = true;
@@ -106,9 +105,23 @@ namespace FineUIPro.Web.HSSE.EduTrain
}
}
}
+
+ private void InitDropDownList()
+ {
+ //单位
+ BLL.UnitService.InitUnitDropDownList(this.drpUnitId, this.ProjectId, true);
+ if (BLL.ProjectUnitService.GetProjectUnitTypeByProjectIdUnitId(this.ProjectId, this.CurrUser.UnitId))
+ {
+ this.drpUnitId.SelectedValue = this.CurrUser.UnitId;
+ this.drpUnitId.Enabled = false;
+ }
+ }
+
+
protected void changeTree(object sender, EventArgs e)
{
this.ProjectId = this.ucTree.ProjectId;
+ this.InitDropDownList();
//新增UnitId
this.UnitId = this.ucTree.UnitId;
//判断 当有projectId的时候单位id为空
@@ -234,88 +247,6 @@ namespace FineUIPro.Web.HSSE.EduTrain
}
- #region 2023-6-27 15:03:28修改废弃代码
- //else //公司级数据
- //{
-
- // string strSql = "select TrainRecord.TrainingId"
- // + @",TrainRecord.TrainTitle"
- // + @",TrainType.TrainTypeName,TrainLevel.TrainLevelName"
- // + @",TrainRecord.TrainStartDate"
- // + @",TrainRecord.TrainEndDate"
- // + @",TrainRecord.TeachHour"
- // + @",TrainRecord.TeachMan"
- // + @",TrainRecord.TrainPersonNum"
- // + @",TrainingCode"
- // // + @",CodeRecords.Code AS TrainingCode"
- // + @",(CASE WHEN TrainRecord.States = " + BLL.Const.State_0 + " OR TrainRecord.States IS NULL THEN '待['+OperateUser.UserName+']提交' WHEN TrainRecord.States = " + BLL.Const.State_2 + " THEN '审核/审批完成' ELSE '待['+OperateUser.UserName+']办理' END) AS FlowOperateName"
- // + @",TrainRecord.UnitIds"
- // + @" from EduTrain_TrainRecord AS TrainRecord "
- // + @" LEFT JOIN Sys_FlowOperate AS FlowOperate ON TrainRecord.TrainingId=FlowOperate.DataId AND FlowOperate.IsClosed <> 1"
- // + @" LEFT JOIN Sys_User AS OperateUser ON FlowOperate.OperaterId=OperateUser.UserId "
- // + @" LEFT JOIN Base_TrainType AS TrainType ON TrainRecord.TrainTypeId=TrainType.TrainTypeId "
- // + @" LEFT JOIN Base_TrainLevel AS TrainLevel ON TrainRecord.TrainLevelId=TrainLevel.TrainLevelId "
- // + @" LEFT JOIN Sys_CodeRecords AS CodeRecords ON TrainRecord.TrainingId=CodeRecords.DataId WHERE 1=1 ";
- // List listStr = new List();
-
- // if (!string.IsNullOrEmpty(ProjectId))
- // {
- // strSql += " AND (TrainRecord.ProjectId = '' or TrainRecord.ProjectId is null) ";
- // //listStr.Add(new SqlParameter("@ProjectId", ProjectId));
- // }
-
-
- // if (this.drpTrainType.SelectedValue != BLL.Const._Null)
- // {
- // strSql += " AND TrainRecord.TrainTypeId = @TrainType";
- // listStr.Add(new SqlParameter("@TrainType", this.drpTrainType.SelectedValue));
- // }
- // if (this.drpTrainLevel.SelectedValue != BLL.Const._Null)
- // {
- // strSql += " AND TrainRecord.TrainLevelId = @TrainLevel";
- // listStr.Add(new SqlParameter("@TrainLevel", this.drpTrainLevel.SelectedValue));
- // }
- // if (!string.IsNullOrEmpty(this.txtStartDate.Text.Trim()))
- // {
- // strSql += " AND TrainRecord.TrainStartDate >= @StartDate ";
- // listStr.Add(new SqlParameter("@StartDate", this.txtStartDate.Text.Trim()));
- // }
- // if (!string.IsNullOrEmpty(this.txtEndDate.Text.Trim()))
- // {
- // strSql += " AND TrainRecord.TrainStartDate <= @EndDate ";
- // listStr.Add(new SqlParameter("@EndDate", this.txtEndDate.Text.Trim()));
- // }
- // if (BLL.ProjectUnitService.GetProjectUnitTypeByProjectIdUnitId(this.CurrUser.LoginProjectId, this.CurrUser.UnitId))
- // {
- // strSql += " AND TrainRecord.UnitIds LIKE @UnitId1";
- // listStr.Add(new SqlParameter("@UnitId1", "%" + this.CurrUser.UnitId + "%"));
- // }
- // strSql += " AND TrainRecord.UnitIds LIKE @UnitId";
- // listStr.Add(new SqlParameter("@UnitId", "%" + this.ucTree.UnitId.Trim() + "%"));
-
- // SqlParameter[] parameter = listStr.ToArray();
- // DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
- // Grid1.RecordCount = tb.Rows.Count;
- // //tb = GetFilteredTable(Grid1.FilteredData, tb);
- // var table = this.GetPagedDataTable(Grid1, tb);
-
- // Grid1.DataSource = table;
- // Grid1.DataBind();
- // int totalPersonNum = 0;
- // for (int i = 0; i < tb.Rows.Count; i++)
- // {
- // totalPersonNum += Funs.GetNewIntOrZero(tb.Rows[i][8].ToString());
- // }
-
- // JObject summary = new JObject
- // {
- // { "TeachMan", "合计:" },
- // { "TrainPersonNum", totalPersonNum }
- // };
-
- // Grid1.SummaryData = summary;
- //}
- #endregion
string projectId = this.CurrUser.LoginProjectId;
if (!string.IsNullOrEmpty(Request.Params["projectId"])) ///是否文件柜查看页面传项目值
{
diff --git a/SGGL/FineUIPro.Web/HSSE/EduTrain/Trainingrecords.aspx b/SGGL/FineUIPro.Web/HSSE/EduTrain/Trainingrecords.aspx
index 7ba2fda..57205f9 100644
--- a/SGGL/FineUIPro.Web/HSSE/EduTrain/Trainingrecords.aspx
+++ b/SGGL/FineUIPro.Web/HSSE/EduTrain/Trainingrecords.aspx
@@ -17,7 +17,7 @@
diff --git a/SGGL/FineUIPro.Web/HSSE/EduTrain/Trainingrecords.aspx.cs b/SGGL/FineUIPro.Web/HSSE/EduTrain/Trainingrecords.aspx.cs
index 79b4d9b..655a6d2 100644
--- a/SGGL/FineUIPro.Web/HSSE/EduTrain/Trainingrecords.aspx.cs
+++ b/SGGL/FineUIPro.Web/HSSE/EduTrain/Trainingrecords.aspx.cs
@@ -62,6 +62,7 @@ namespace FineUIPro.Web.HSSE.EduTrain
strSql += " AND tp.TrainStartDate <= @EndDate ";
listStr.Add(new SqlParameter("@EndDate", this.txtEndDate.Text.Trim()));
}
+ strSql += " ORDER BY tp.TrainStartDate DESC ";
SqlParameter[] parameter = listStr.ToArray();
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
Grid1.RecordCount = tb.Rows.Count;
diff --git a/SGGL/FineUIPro.Web/HSSE/HiddenInspection/HiddenRectificationAdd.aspx.cs b/SGGL/FineUIPro.Web/HSSE/HiddenInspection/HiddenRectificationAdd.aspx.cs
index dc05ff3..99f7c7b 100644
--- a/SGGL/FineUIPro.Web/HSSE/HiddenInspection/HiddenRectificationAdd.aspx.cs
+++ b/SGGL/FineUIPro.Web/HSSE/HiddenInspection/HiddenRectificationAdd.aspx.cs
@@ -333,7 +333,7 @@ namespace FineUIPro.Web.HSSE.HiddenInspection
if (!string.IsNullOrWhiteSpace(model.ResponsibleMan) && !string.IsNullOrWhiteSpace(model.CompanyTrainingItemId))
{//责任人和重修教材非空,生成培训计划
- Model.RetakeCourseProducePlanInfo info = new Model.RetakeCourseProducePlanInfo
+ Model.ProducePlanInfo info = new Model.ProducePlanInfo
{
CurrProjectId = this.CurrUser.LoginProjectId,
CurrUserId = this.CurrUser.UserId,
diff --git a/SGGL/FineUIPro.Web/HSSE/SitePerson/PersonList.aspx b/SGGL/FineUIPro.Web/HSSE/SitePerson/PersonList.aspx
index 53b5032..5848453 100644
--- a/SGGL/FineUIPro.Web/HSSE/SitePerson/PersonList.aspx
+++ b/SGGL/FineUIPro.Web/HSSE/SitePerson/PersonList.aspx
@@ -99,6 +99,8 @@
+
+
diff --git a/SGGL/FineUIPro.Web/HSSE/SitePerson/PersonList.aspx.cs b/SGGL/FineUIPro.Web/HSSE/SitePerson/PersonList.aspx.cs
index c263b8d..f899eea 100644
--- a/SGGL/FineUIPro.Web/HSSE/SitePerson/PersonList.aspx.cs
+++ b/SGGL/FineUIPro.Web/HSSE/SitePerson/PersonList.aspx.cs
@@ -82,11 +82,11 @@ namespace FineUIPro.Web.HSSE.SitePerson
//var personLists = BLL.PersonService.GetPersonList(project.ProjectId);
String strSql1 = @"select UnitId,count( * ) num from SitePerson_Person
- where ProjectId='"+ this.CurrUser.LoginProjectId +@"'
+ where ProjectId='" + this.CurrUser.LoginProjectId + @"'
group by UnitId";
- String strSql2= @" select UnitId,count( * ) num from SitePerson_Person
- where ProjectId='" + this.CurrUser.LoginProjectId + @"' and IsUsed =1 and InTime<='" + DateTime.Now.ToString("yyyy-MM-dd")+"' and (OutTime is null or OutTime>'"+DateTime.Now.ToString("yyyy-MM-dd")+@"' )
+ String strSql2 = @" select UnitId,count( * ) num from SitePerson_Person
+ where ProjectId='" + this.CurrUser.LoginProjectId + @"' and IsUsed =1 and InTime<='" + DateTime.Now.ToString("yyyy-MM-dd") + "' and (OutTime is null or OutTime>'" + DateTime.Now.ToString("yyyy-MM-dd") + @"' )
group by UnitId";
@@ -126,7 +126,7 @@ namespace FineUIPro.Web.HSSE.SitePerson
}
rootNode.Expanded = true;
this.tvProjectAndUnit.Nodes.Add(rootNode);
- GetUnitLists(rootNode.Nodes, this.ProjectId, dt1,dt2);
+ GetUnitLists(rootNode.Nodes, this.ProjectId, dt1, dt2);
}
}
@@ -322,7 +322,7 @@ namespace FineUIPro.Web.HSSE.SitePerson
if (ckIsBlackList.Checked)
{
strSql += " AND BlackList = @BlackList";
- listStr.Add(new SqlParameter("@BlackList", "1"));
+ listStr.Add(new SqlParameter("@BlackList", "1"));
}
SqlParameter[] parameter = listStr.ToArray();
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
@@ -350,6 +350,39 @@ namespace FineUIPro.Web.HSSE.SitePerson
}
#endregion
+ ///
+ /// 选择人员生成培训计划
+ ///
+ ///
+ ///
+ protected void btnSelectProducePlan_Click(object sender, EventArgs e)
+ {
+ foreach (int rowIndex in Grid1.SelectedRowIndexArray)
+ {
+ string personId = Grid1.DataKeys[rowIndex][0].ToString();
+ this.ProducePlan(personId, this.ProjectId);
+ }
+ ShowNotify("生成培训计划成功!", MessageBoxIcon.Success);
+ BindGrid();
+ }
+
+ ///
+ /// 生成计划
+ ///
+ /// 被选中的人员
+ /// 项目
+ private void ProducePlan(string personId, string projectId)
+ {
+ Model.ProducePlanInfo info = new Model.ProducePlanInfo
+ {
+ CurrProjectId = projectId,
+ CurrUserId = this.CurrUser.UserId,
+ PersonId = personId,
+ TrainEndDate = new DateTime(DateTime.Now.Year, 12, 31)
+ };
+ bool result = TrainingPlanService.SelectPersonProducePlan(info);
+ }
+
#region 点击TreeView
///
/// 点击TreeView
@@ -788,7 +821,7 @@ namespace FineUIPro.Web.HSSE.SitePerson
protected void drpIsUsedName_OnSelectedIndexChanged(object sender, EventArgs e)
{
- if (drpIsUsedName.SelectedValue== "否")
+ if (drpIsUsedName.SelectedValue == "否")
{
ckIsBlackList.Hidden = false;
}
diff --git a/SGGL/FineUIPro.Web/HSSE/SitePerson/PersonList.aspx.designer.cs b/SGGL/FineUIPro.Web/HSSE/SitePerson/PersonList.aspx.designer.cs
index 213f092..daead55 100644
--- a/SGGL/FineUIPro.Web/HSSE/SitePerson/PersonList.aspx.designer.cs
+++ b/SGGL/FineUIPro.Web/HSSE/SitePerson/PersonList.aspx.designer.cs
@@ -257,6 +257,15 @@ namespace FineUIPro.Web.HSSE.SitePerson
///
protected global::FineUIPro.Button btnQR;
+ ///
+ /// btnSelectProducePlan 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnSelectProducePlan;
+
///
/// lbI 控件。
///
diff --git a/SGGL/Model/HSSE/EduTrain/RetakeCourseProducePlanInfo.cs b/SGGL/Model/HSSE/EduTrain/ProducePlanInfo.cs
similarity index 95%
rename from SGGL/Model/HSSE/EduTrain/RetakeCourseProducePlanInfo.cs
rename to SGGL/Model/HSSE/EduTrain/ProducePlanInfo.cs
index b66cf3d..d4af3eb 100644
--- a/SGGL/Model/HSSE/EduTrain/RetakeCourseProducePlanInfo.cs
+++ b/SGGL/Model/HSSE/EduTrain/ProducePlanInfo.cs
@@ -2,7 +2,7 @@
namespace Model
{
- public class RetakeCourseProducePlanInfo
+ public class ProducePlanInfo
{
///
/// 项目Id
diff --git a/SGGL/Model/Model.cs b/SGGL/Model/Model.cs
index 2f708c6..78ed285 100644
--- a/SGGL/Model/Model.cs
+++ b/SGGL/Model/Model.cs
@@ -1004,9 +1004,6 @@ namespace Model
partial void InsertEpidemic_Vaccin(Epidemic_Vaccin instance);
partial void UpdateEpidemic_Vaccin(Epidemic_Vaccin instance);
partial void DeleteEpidemic_Vaccin(Epidemic_Vaccin instance);
- partial void InsertExamine_BehavioralSafetyObservation(Examine_BehavioralSafetyObservation instance);
- partial void UpdateExamine_BehavioralSafetyObservation(Examine_BehavioralSafetyObservation instance);
- partial void DeleteExamine_BehavioralSafetyObservation(Examine_BehavioralSafetyObservation instance);
partial void InsertExamine_BonusScoreSelfManagement(Examine_BonusScoreSelfManagement instance);
partial void UpdateExamine_BonusScoreSelfManagement(Examine_BonusScoreSelfManagement instance);
partial void DeleteExamine_BonusScoreSelfManagement(Examine_BonusScoreSelfManagement instance);
@@ -1016,21 +1013,9 @@ namespace Model
partial void InsertExamine_BonusScoreType(Examine_BonusScoreType instance);
partial void UpdateExamine_BonusScoreType(Examine_BonusScoreType instance);
partial void DeleteExamine_BonusScoreType(Examine_BonusScoreType instance);
- partial void InsertExamine_CoConstructionActivities(Examine_CoConstructionActivities instance);
- partial void UpdateExamine_CoConstructionActivities(Examine_CoConstructionActivities instance);
- partial void DeleteExamine_CoConstructionActivities(Examine_CoConstructionActivities instance);
- partial void InsertExamine_LeadershipJoinHomeworkAnalysisMeeting(Examine_LeadershipJoinHomeworkAnalysisMeeting instance);
- partial void UpdateExamine_LeadershipJoinHomeworkAnalysisMeeting(Examine_LeadershipJoinHomeworkAnalysisMeeting instance);
- partial void DeleteExamine_LeadershipJoinHomeworkAnalysisMeeting(Examine_LeadershipJoinHomeworkAnalysisMeeting instance);
partial void InsertExamine_MinusScoreSituation(Examine_MinusScoreSituation instance);
partial void UpdateExamine_MinusScoreSituation(Examine_MinusScoreSituation instance);
partial void DeleteExamine_MinusScoreSituation(Examine_MinusScoreSituation instance);
- partial void InsertExamine_PersonalSafetyActionPlan(Examine_PersonalSafetyActionPlan instance);
- partial void UpdateExamine_PersonalSafetyActionPlan(Examine_PersonalSafetyActionPlan instance);
- partial void DeleteExamine_PersonalSafetyActionPlan(Examine_PersonalSafetyActionPlan instance);
- partial void InsertExamine_SharingOfSafetyExperience(Examine_SharingOfSafetyExperience instance);
- partial void UpdateExamine_SharingOfSafetyExperience(Examine_SharingOfSafetyExperience instance);
- partial void DeleteExamine_SharingOfSafetyExperience(Examine_SharingOfSafetyExperience instance);
partial void InsertExchange_Content(Exchange_Content instance);
partial void UpdateExchange_Content(Exchange_Content instance);
partial void DeleteExchange_Content(Exchange_Content instance);
@@ -2375,12 +2360,6 @@ namespace Model
partial void InsertSys_Menu(Sys_Menu instance);
partial void UpdateSys_Menu(Sys_Menu instance);
partial void DeleteSys_Menu(Sys_Menu instance);
- partial void InsertSys_Menu_0501(Sys_Menu_0501 instance);
- partial void UpdateSys_Menu_0501(Sys_Menu_0501 instance);
- partial void DeleteSys_Menu_0501(Sys_Menu_0501 instance);
- partial void InsertSys_Menu_0501t(Sys_Menu_0501t instance);
- partial void UpdateSys_Menu_0501t(Sys_Menu_0501t instance);
- partial void DeleteSys_Menu_0501t(Sys_Menu_0501t instance);
partial void InsertSys_MenuFlowOperate(Sys_MenuFlowOperate instance);
partial void UpdateSys_MenuFlowOperate(Sys_MenuFlowOperate instance);
partial void DeleteSys_MenuFlowOperate(Sys_MenuFlowOperate instance);
@@ -5346,14 +5325,6 @@ namespace Model
}
}
- public System.Data.Linq.Table Examine_BehavioralSafetyObservation
- {
- get
- {
- return this.GetTable();
- }
- }
-
public System.Data.Linq.Table Examine_BonusScoreSelfManagement
{
get
@@ -5378,22 +5349,6 @@ namespace Model
}
}
- public System.Data.Linq.Table Examine_CoConstructionActivities
- {
- get
- {
- return this.GetTable();
- }
- }
-
- public System.Data.Linq.Table Examine_LeadershipJoinHomeworkAnalysisMeeting
- {
- get
- {
- return this.GetTable();
- }
- }
-
public System.Data.Linq.Table Examine_MinusScoreSituation
{
get
@@ -5402,22 +5357,6 @@ namespace Model
}
}
- public System.Data.Linq.Table Examine_PersonalSafetyActionPlan
- {
- get
- {
- return this.GetTable();
- }
- }
-
- public System.Data.Linq.Table Examine_SharingOfSafetyExperience
- {
- get
- {
- return this.GetTable();
- }
- }
-
public System.Data.Linq.Table Exchange_Content
{
get
@@ -9034,22 +8973,6 @@ namespace Model
}
}
- public System.Data.Linq.Table Sys_Menu_0501
- {
- get
- {
- return this.GetTable();
- }
- }
-
- public System.Data.Linq.Table Sys_Menu_0501t
- {
- get
- {
- return this.GetTable();
- }
- }
-
public System.Data.Linq.Table Sys_MenuFlowOperate
{
get
@@ -28350,22 +28273,12 @@ namespace Model
private EntitySet _Environmental_ProjectOperationReport;
- private EntitySet _Examine_BehavioralSafetyObservation;
-
private EntitySet _Examine_BonusScoreSelfManagement;
private EntitySet _Examine_BonusScoreSituation;
- private EntitySet _Examine_CoConstructionActivities;
-
- private EntitySet _Examine_LeadershipJoinHomeworkAnalysisMeeting;
-
private EntitySet _Examine_MinusScoreSituation;
- private EntitySet _Examine_PersonalSafetyActionPlan;
-
- private EntitySet _Examine_SharingOfSafetyExperience;
-
private EntitySet _FinalFileManage_FinalFileList;
private EntitySet _FinalFileManage_HSEFinalFileList;
@@ -28918,14 +28831,9 @@ namespace Model
this._Environmental_ProjectArchitectureReport = new EntitySet(new Action(this.attach_Environmental_ProjectArchitectureReport), new Action(this.detach_Environmental_ProjectArchitectureReport));
this._Environmental_ProjectChemicalReport = new EntitySet(new Action(this.attach_Environmental_ProjectChemicalReport), new Action(this.detach_Environmental_ProjectChemicalReport));
this._Environmental_ProjectOperationReport = new EntitySet(new Action(this.attach_Environmental_ProjectOperationReport), new Action(this.detach_Environmental_ProjectOperationReport));
- this._Examine_BehavioralSafetyObservation = new EntitySet(new Action(this.attach_Examine_BehavioralSafetyObservation), new Action(this.detach_Examine_BehavioralSafetyObservation));
this._Examine_BonusScoreSelfManagement = new EntitySet(new Action(this.attach_Examine_BonusScoreSelfManagement), new Action(this.detach_Examine_BonusScoreSelfManagement));
this._Examine_BonusScoreSituation = new EntitySet(new Action(this.attach_Examine_BonusScoreSituation), new Action(this.detach_Examine_BonusScoreSituation));
- this._Examine_CoConstructionActivities = new EntitySet(new Action(this.attach_Examine_CoConstructionActivities), new Action(this.detach_Examine_CoConstructionActivities));
- this._Examine_LeadershipJoinHomeworkAnalysisMeeting = new EntitySet(new Action(this.attach_Examine_LeadershipJoinHomeworkAnalysisMeeting), new Action(this.detach_Examine_LeadershipJoinHomeworkAnalysisMeeting));
this._Examine_MinusScoreSituation = new EntitySet(new Action(this.attach_Examine_MinusScoreSituation), new Action(this.detach_Examine_MinusScoreSituation));
- this._Examine_PersonalSafetyActionPlan = new EntitySet(new Action(this.attach_Examine_PersonalSafetyActionPlan), new Action(this.detach_Examine_PersonalSafetyActionPlan));
- this._Examine_SharingOfSafetyExperience = new EntitySet(new Action(this.attach_Examine_SharingOfSafetyExperience), new Action(this.detach_Examine_SharingOfSafetyExperience));
this._FinalFileManage_FinalFileList = new EntitySet(new Action(this.attach_FinalFileManage_FinalFileList), new Action(this.detach_FinalFileManage_FinalFileList));
this._FinalFileManage_HSEFinalFileList = new EntitySet(new Action(this.attach_FinalFileManage_HSEFinalFileList), new Action(this.detach_FinalFileManage_HSEFinalFileList));
this._FinalFileManage_OtherDocumentList = new EntitySet(new Action(this.attach_FinalFileManage_OtherDocumentList), new Action(this.detach_FinalFileManage_OtherDocumentList));
@@ -31435,19 +31343,6 @@ namespace Model
}
}
- [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Examine_BehavioralSafetyObservation_Base_Project", Storage="_Examine_BehavioralSafetyObservation", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")]
- public EntitySet Examine_BehavioralSafetyObservation
- {
- get
- {
- return this._Examine_BehavioralSafetyObservation;
- }
- set
- {
- this._Examine_BehavioralSafetyObservation.Assign(value);
- }
- }
-
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Examine_BonusScoreSelfManagement_Base_Project", Storage="_Examine_BonusScoreSelfManagement", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")]
public EntitySet Examine_BonusScoreSelfManagement
{
@@ -31474,32 +31369,6 @@ namespace Model
}
}
- [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Examine_CoConstructionActivities_Base_Project", Storage="_Examine_CoConstructionActivities", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")]
- public EntitySet Examine_CoConstructionActivities
- {
- get
- {
- return this._Examine_CoConstructionActivities;
- }
- set
- {
- this._Examine_CoConstructionActivities.Assign(value);
- }
- }
-
- [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Examine_LeadershipJoinHomeworkAnalysisMeeting_Base_Project", Storage="_Examine_LeadershipJoinHomeworkAnalysisMeeting", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")]
- public EntitySet Examine_LeadershipJoinHomeworkAnalysisMeeting
- {
- get
- {
- return this._Examine_LeadershipJoinHomeworkAnalysisMeeting;
- }
- set
- {
- this._Examine_LeadershipJoinHomeworkAnalysisMeeting.Assign(value);
- }
- }
-
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Examine_MinusScoreSituation_Base_Project", Storage="_Examine_MinusScoreSituation", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")]
public EntitySet Examine_MinusScoreSituation
{
@@ -31513,32 +31382,6 @@ namespace Model
}
}
- [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Examine_PersonalSafetyActionPlan_Base_Project", Storage="_Examine_PersonalSafetyActionPlan", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")]
- public EntitySet Examine_PersonalSafetyActionPlan
- {
- get
- {
- return this._Examine_PersonalSafetyActionPlan;
- }
- set
- {
- this._Examine_PersonalSafetyActionPlan.Assign(value);
- }
- }
-
- [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Examine_SharingOfSafetyExperience_Base_Project", Storage="_Examine_SharingOfSafetyExperience", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")]
- public EntitySet Examine_SharingOfSafetyExperience
- {
- get
- {
- return this._Examine_SharingOfSafetyExperience;
- }
- set
- {
- this._Examine_SharingOfSafetyExperience.Assign(value);
- }
- }
-
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_FinalFileManage_FinalFileList_Base_Project", Storage="_FinalFileManage_FinalFileList", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")]
public EntitySet FinalFileManage_FinalFileList
{
@@ -35263,18 +35106,6 @@ namespace Model
entity.Base_Project = null;
}
- private void attach_Examine_BehavioralSafetyObservation(Examine_BehavioralSafetyObservation entity)
- {
- this.SendPropertyChanging();
- entity.Base_Project = this;
- }
-
- private void detach_Examine_BehavioralSafetyObservation(Examine_BehavioralSafetyObservation entity)
- {
- this.SendPropertyChanging();
- entity.Base_Project = null;
- }
-
private void attach_Examine_BonusScoreSelfManagement(Examine_BonusScoreSelfManagement entity)
{
this.SendPropertyChanging();
@@ -35299,30 +35130,6 @@ namespace Model
entity.Base_Project = null;
}
- private void attach_Examine_CoConstructionActivities(Examine_CoConstructionActivities entity)
- {
- this.SendPropertyChanging();
- entity.Base_Project = this;
- }
-
- private void detach_Examine_CoConstructionActivities(Examine_CoConstructionActivities entity)
- {
- this.SendPropertyChanging();
- entity.Base_Project = null;
- }
-
- private void attach_Examine_LeadershipJoinHomeworkAnalysisMeeting(Examine_LeadershipJoinHomeworkAnalysisMeeting entity)
- {
- this.SendPropertyChanging();
- entity.Base_Project = this;
- }
-
- private void detach_Examine_LeadershipJoinHomeworkAnalysisMeeting(Examine_LeadershipJoinHomeworkAnalysisMeeting entity)
- {
- this.SendPropertyChanging();
- entity.Base_Project = null;
- }
-
private void attach_Examine_MinusScoreSituation(Examine_MinusScoreSituation entity)
{
this.SendPropertyChanging();
@@ -35335,30 +35142,6 @@ namespace Model
entity.Base_Project = null;
}
- private void attach_Examine_PersonalSafetyActionPlan(Examine_PersonalSafetyActionPlan entity)
- {
- this.SendPropertyChanging();
- entity.Base_Project = this;
- }
-
- private void detach_Examine_PersonalSafetyActionPlan(Examine_PersonalSafetyActionPlan entity)
- {
- this.SendPropertyChanging();
- entity.Base_Project = null;
- }
-
- private void attach_Examine_SharingOfSafetyExperience(Examine_SharingOfSafetyExperience entity)
- {
- this.SendPropertyChanging();
- entity.Base_Project = this;
- }
-
- private void detach_Examine_SharingOfSafetyExperience(Examine_SharingOfSafetyExperience entity)
- {
- this.SendPropertyChanging();
- entity.Base_Project = null;
- }
-
private void attach_FinalFileManage_FinalFileList(FinalFileManage_FinalFileList entity)
{
this.SendPropertyChanging();
@@ -159157,407 +158940,6 @@ namespace Model
}
}
- [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Examine_BehavioralSafetyObservation")]
- public partial class Examine_BehavioralSafetyObservation : INotifyPropertyChanging, INotifyPropertyChanged
- {
-
- private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
-
- private string _Id;
-
- private string _ProjectId;
-
- private string _Code;
-
- private string _Name;
-
- private string _UserId;
-
- private System.Nullable _DateTime;
-
- private string _Content;
-
- private string _Remark;
-
- private System.Nullable _CompileDate;
-
- private string _CompileMan;
-
- private EntityRef _Base_Project;
-
- private EntityRef _Sys_User;
-
- private EntityRef _User;
-
- #region 可扩展性方法定义
- partial void OnLoaded();
- partial void OnValidate(System.Data.Linq.ChangeAction action);
- partial void OnCreated();
- partial void OnIdChanging(string value);
- partial void OnIdChanged();
- partial void OnProjectIdChanging(string value);
- partial void OnProjectIdChanged();
- partial void OnCodeChanging(string value);
- partial void OnCodeChanged();
- partial void OnNameChanging(string value);
- partial void OnNameChanged();
- partial void OnUserIdChanging(string value);
- partial void OnUserIdChanged();
- partial void OnDateTimeChanging(System.Nullable value);
- partial void OnDateTimeChanged();
- partial void OnContentChanging(string value);
- partial void OnContentChanged();
- partial void OnRemarkChanging(string value);
- partial void OnRemarkChanged();
- partial void OnCompileDateChanging(System.Nullable value);
- partial void OnCompileDateChanged();
- partial void OnCompileManChanging(string value);
- partial void OnCompileManChanged();
- #endregion
-
- public Examine_BehavioralSafetyObservation()
- {
- this._Base_Project = default(EntityRef);
- this._Sys_User = default(EntityRef);
- this._User = default(EntityRef);
- OnCreated();
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
- public string Id
- {
- get
- {
- return this._Id;
- }
- set
- {
- if ((this._Id != value))
- {
- this.OnIdChanging(value);
- this.SendPropertyChanging();
- this._Id = value;
- this.SendPropertyChanged("Id");
- this.OnIdChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)")]
- public string ProjectId
- {
- get
- {
- return this._ProjectId;
- }
- set
- {
- if ((this._ProjectId != value))
- {
- if (this._Base_Project.HasLoadedOrAssignedValue)
- {
- throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
- }
- this.OnProjectIdChanging(value);
- this.SendPropertyChanging();
- this._ProjectId = value;
- this.SendPropertyChanged("ProjectId");
- this.OnProjectIdChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Code", DbType="NVarChar(50)")]
- public string Code
- {
- get
- {
- return this._Code;
- }
- set
- {
- if ((this._Code != value))
- {
- this.OnCodeChanging(value);
- this.SendPropertyChanging();
- this._Code = value;
- this.SendPropertyChanged("Code");
- this.OnCodeChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Name", DbType="NVarChar(200)")]
- public string Name
- {
- get
- {
- return this._Name;
- }
- set
- {
- if ((this._Name != value))
- {
- this.OnNameChanging(value);
- this.SendPropertyChanging();
- this._Name = value;
- this.SendPropertyChanged("Name");
- this.OnNameChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserId", DbType="NVarChar(50)")]
- public string UserId
- {
- get
- {
- return this._UserId;
- }
- set
- {
- if ((this._UserId != value))
- {
- if (this._User.HasLoadedOrAssignedValue)
- {
- throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
- }
- this.OnUserIdChanging(value);
- this.SendPropertyChanging();
- this._UserId = value;
- this.SendPropertyChanged("UserId");
- this.OnUserIdChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DateTime", DbType="DateTime")]
- public System.Nullable DateTime
- {
- get
- {
- return this._DateTime;
- }
- set
- {
- if ((this._DateTime != value))
- {
- this.OnDateTimeChanging(value);
- this.SendPropertyChanging();
- this._DateTime = value;
- this.SendPropertyChanged("DateTime");
- this.OnDateTimeChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Content", DbType="NVarChar(1000)")]
- public string Content
- {
- get
- {
- return this._Content;
- }
- set
- {
- if ((this._Content != value))
- {
- this.OnContentChanging(value);
- this.SendPropertyChanging();
- this._Content = value;
- this.SendPropertyChanged("Content");
- this.OnContentChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Remark", DbType="NVarChar(1000)")]
- public string Remark
- {
- get
- {
- return this._Remark;
- }
- set
- {
- if ((this._Remark != value))
- {
- this.OnRemarkChanging(value);
- this.SendPropertyChanging();
- this._Remark = value;
- this.SendPropertyChanged("Remark");
- this.OnRemarkChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileDate", DbType="DateTime")]
- public System.Nullable CompileDate
- {
- get
- {
- return this._CompileDate;
- }
- set
- {
- if ((this._CompileDate != value))
- {
- this.OnCompileDateChanging(value);
- this.SendPropertyChanging();
- this._CompileDate = value;
- this.SendPropertyChanged("CompileDate");
- this.OnCompileDateChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileMan", DbType="NVarChar(50)")]
- public string CompileMan
- {
- get
- {
- return this._CompileMan;
- }
- set
- {
- if ((this._CompileMan != value))
- {
- if (this._Sys_User.HasLoadedOrAssignedValue)
- {
- throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
- }
- this.OnCompileManChanging(value);
- this.SendPropertyChanging();
- this._CompileMan = value;
- this.SendPropertyChanged("CompileMan");
- this.OnCompileManChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Examine_BehavioralSafetyObservation_Base_Project", Storage="_Base_Project", ThisKey="ProjectId", OtherKey="ProjectId", IsForeignKey=true)]
- public Base_Project Base_Project
- {
- get
- {
- return this._Base_Project.Entity;
- }
- set
- {
- Base_Project previousValue = this._Base_Project.Entity;
- if (((previousValue != value)
- || (this._Base_Project.HasLoadedOrAssignedValue == false)))
- {
- this.SendPropertyChanging();
- if ((previousValue != null))
- {
- this._Base_Project.Entity = null;
- previousValue.Examine_BehavioralSafetyObservation.Remove(this);
- }
- this._Base_Project.Entity = value;
- if ((value != null))
- {
- value.Examine_BehavioralSafetyObservation.Add(this);
- this._ProjectId = value.ProjectId;
- }
- else
- {
- this._ProjectId = default(string);
- }
- this.SendPropertyChanged("Base_Project");
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Examine_BehavioralSafetyObservation_Sys_User", Storage="_Sys_User", ThisKey="CompileMan", OtherKey="UserId", IsForeignKey=true)]
- public Sys_User Sys_User
- {
- get
- {
- return this._Sys_User.Entity;
- }
- set
- {
- Sys_User previousValue = this._Sys_User.Entity;
- if (((previousValue != value)
- || (this._Sys_User.HasLoadedOrAssignedValue == false)))
- {
- this.SendPropertyChanging();
- if ((previousValue != null))
- {
- this._Sys_User.Entity = null;
- previousValue.Examine_BehavioralSafetyObservation.Remove(this);
- }
- this._Sys_User.Entity = value;
- if ((value != null))
- {
- value.Examine_BehavioralSafetyObservation.Add(this);
- this._CompileMan = value.UserId;
- }
- else
- {
- this._CompileMan = default(string);
- }
- this.SendPropertyChanged("Sys_User");
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Examine_BehavioralSafetyObservation_User", Storage="_User", ThisKey="UserId", OtherKey="UserId", IsForeignKey=true)]
- public Sys_User User
- {
- get
- {
- return this._User.Entity;
- }
- set
- {
- Sys_User previousValue = this._User.Entity;
- if (((previousValue != value)
- || (this._User.HasLoadedOrAssignedValue == false)))
- {
- this.SendPropertyChanging();
- if ((previousValue != null))
- {
- this._User.Entity = null;
- previousValue.Examine_BehavioralSafetyObservation_User.Remove(this);
- }
- this._User.Entity = value;
- if ((value != null))
- {
- value.Examine_BehavioralSafetyObservation_User.Add(this);
- this._UserId = value.UserId;
- }
- else
- {
- this._UserId = default(string);
- }
- this.SendPropertyChanged("User");
- }
- }
- }
-
- public event PropertyChangingEventHandler PropertyChanging;
-
- public event PropertyChangedEventHandler PropertyChanged;
-
- protected virtual void SendPropertyChanging()
- {
- if ((this.PropertyChanging != null))
- {
- this.PropertyChanging(this, emptyChangingEventArgs);
- }
- }
-
- protected virtual void SendPropertyChanged(String propertyName)
- {
- if ((this.PropertyChanged != null))
- {
- this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
- }
- }
- }
-
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Examine_BonusScoreSelfManagement")]
public partial class Examine_BonusScoreSelfManagement : INotifyPropertyChanging, INotifyPropertyChanged
{
@@ -160686,808 +160068,6 @@ namespace Model
}
}
- [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Examine_CoConstructionActivities")]
- public partial class Examine_CoConstructionActivities : INotifyPropertyChanging, INotifyPropertyChanged
- {
-
- private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
-
- private string _Id;
-
- private string _ProjectId;
-
- private string _Code;
-
- private string _Name;
-
- private string _UserId;
-
- private System.Nullable _DateTime;
-
- private string _Content;
-
- private string _Remark;
-
- private System.Nullable _CompileDate;
-
- private string _CompileMan;
-
- private EntityRef _Base_Project;
-
- private EntityRef _Sys_User;
-
- private EntityRef _User;
-
- #region 可扩展性方法定义
- partial void OnLoaded();
- partial void OnValidate(System.Data.Linq.ChangeAction action);
- partial void OnCreated();
- partial void OnIdChanging(string value);
- partial void OnIdChanged();
- partial void OnProjectIdChanging(string value);
- partial void OnProjectIdChanged();
- partial void OnCodeChanging(string value);
- partial void OnCodeChanged();
- partial void OnNameChanging(string value);
- partial void OnNameChanged();
- partial void OnUserIdChanging(string value);
- partial void OnUserIdChanged();
- partial void OnDateTimeChanging(System.Nullable value);
- partial void OnDateTimeChanged();
- partial void OnContentChanging(string value);
- partial void OnContentChanged();
- partial void OnRemarkChanging(string value);
- partial void OnRemarkChanged();
- partial void OnCompileDateChanging(System.Nullable value);
- partial void OnCompileDateChanged();
- partial void OnCompileManChanging(string value);
- partial void OnCompileManChanged();
- #endregion
-
- public Examine_CoConstructionActivities()
- {
- this._Base_Project = default(EntityRef);
- this._Sys_User = default(EntityRef);
- this._User = default(EntityRef);
- OnCreated();
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
- public string Id
- {
- get
- {
- return this._Id;
- }
- set
- {
- if ((this._Id != value))
- {
- this.OnIdChanging(value);
- this.SendPropertyChanging();
- this._Id = value;
- this.SendPropertyChanged("Id");
- this.OnIdChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)")]
- public string ProjectId
- {
- get
- {
- return this._ProjectId;
- }
- set
- {
- if ((this._ProjectId != value))
- {
- if (this._Base_Project.HasLoadedOrAssignedValue)
- {
- throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
- }
- this.OnProjectIdChanging(value);
- this.SendPropertyChanging();
- this._ProjectId = value;
- this.SendPropertyChanged("ProjectId");
- this.OnProjectIdChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Code", DbType="NVarChar(50)")]
- public string Code
- {
- get
- {
- return this._Code;
- }
- set
- {
- if ((this._Code != value))
- {
- this.OnCodeChanging(value);
- this.SendPropertyChanging();
- this._Code = value;
- this.SendPropertyChanged("Code");
- this.OnCodeChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Name", DbType="NVarChar(200)")]
- public string Name
- {
- get
- {
- return this._Name;
- }
- set
- {
- if ((this._Name != value))
- {
- this.OnNameChanging(value);
- this.SendPropertyChanging();
- this._Name = value;
- this.SendPropertyChanged("Name");
- this.OnNameChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserId", DbType="NVarChar(50)")]
- public string UserId
- {
- get
- {
- return this._UserId;
- }
- set
- {
- if ((this._UserId != value))
- {
- if (this._User.HasLoadedOrAssignedValue)
- {
- throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
- }
- this.OnUserIdChanging(value);
- this.SendPropertyChanging();
- this._UserId = value;
- this.SendPropertyChanged("UserId");
- this.OnUserIdChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DateTime", DbType="DateTime")]
- public System.Nullable DateTime
- {
- get
- {
- return this._DateTime;
- }
- set
- {
- if ((this._DateTime != value))
- {
- this.OnDateTimeChanging(value);
- this.SendPropertyChanging();
- this._DateTime = value;
- this.SendPropertyChanged("DateTime");
- this.OnDateTimeChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Content", DbType="NVarChar(1000)")]
- public string Content
- {
- get
- {
- return this._Content;
- }
- set
- {
- if ((this._Content != value))
- {
- this.OnContentChanging(value);
- this.SendPropertyChanging();
- this._Content = value;
- this.SendPropertyChanged("Content");
- this.OnContentChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Remark", DbType="NVarChar(1000)")]
- public string Remark
- {
- get
- {
- return this._Remark;
- }
- set
- {
- if ((this._Remark != value))
- {
- this.OnRemarkChanging(value);
- this.SendPropertyChanging();
- this._Remark = value;
- this.SendPropertyChanged("Remark");
- this.OnRemarkChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileDate", DbType="DateTime")]
- public System.Nullable CompileDate
- {
- get
- {
- return this._CompileDate;
- }
- set
- {
- if ((this._CompileDate != value))
- {
- this.OnCompileDateChanging(value);
- this.SendPropertyChanging();
- this._CompileDate = value;
- this.SendPropertyChanged("CompileDate");
- this.OnCompileDateChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileMan", DbType="NVarChar(50)")]
- public string CompileMan
- {
- get
- {
- return this._CompileMan;
- }
- set
- {
- if ((this._CompileMan != value))
- {
- if (this._Sys_User.HasLoadedOrAssignedValue)
- {
- throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
- }
- this.OnCompileManChanging(value);
- this.SendPropertyChanging();
- this._CompileMan = value;
- this.SendPropertyChanged("CompileMan");
- this.OnCompileManChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Examine_CoConstructionActivities_Base_Project", Storage="_Base_Project", ThisKey="ProjectId", OtherKey="ProjectId", IsForeignKey=true)]
- public Base_Project Base_Project
- {
- get
- {
- return this._Base_Project.Entity;
- }
- set
- {
- Base_Project previousValue = this._Base_Project.Entity;
- if (((previousValue != value)
- || (this._Base_Project.HasLoadedOrAssignedValue == false)))
- {
- this.SendPropertyChanging();
- if ((previousValue != null))
- {
- this._Base_Project.Entity = null;
- previousValue.Examine_CoConstructionActivities.Remove(this);
- }
- this._Base_Project.Entity = value;
- if ((value != null))
- {
- value.Examine_CoConstructionActivities.Add(this);
- this._ProjectId = value.ProjectId;
- }
- else
- {
- this._ProjectId = default(string);
- }
- this.SendPropertyChanged("Base_Project");
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Examine_CoConstructionActivities_Sys_User", Storage="_Sys_User", ThisKey="CompileMan", OtherKey="UserId", IsForeignKey=true)]
- public Sys_User Sys_User
- {
- get
- {
- return this._Sys_User.Entity;
- }
- set
- {
- Sys_User previousValue = this._Sys_User.Entity;
- if (((previousValue != value)
- || (this._Sys_User.HasLoadedOrAssignedValue == false)))
- {
- this.SendPropertyChanging();
- if ((previousValue != null))
- {
- this._Sys_User.Entity = null;
- previousValue.Examine_CoConstructionActivities.Remove(this);
- }
- this._Sys_User.Entity = value;
- if ((value != null))
- {
- value.Examine_CoConstructionActivities.Add(this);
- this._CompileMan = value.UserId;
- }
- else
- {
- this._CompileMan = default(string);
- }
- this.SendPropertyChanged("Sys_User");
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Examine_CoConstructionActivities_User", Storage="_User", ThisKey="UserId", OtherKey="UserId", IsForeignKey=true)]
- public Sys_User User
- {
- get
- {
- return this._User.Entity;
- }
- set
- {
- Sys_User previousValue = this._User.Entity;
- if (((previousValue != value)
- || (this._User.HasLoadedOrAssignedValue == false)))
- {
- this.SendPropertyChanging();
- if ((previousValue != null))
- {
- this._User.Entity = null;
- previousValue.Examine_CoConstructionActivities_User.Remove(this);
- }
- this._User.Entity = value;
- if ((value != null))
- {
- value.Examine_CoConstructionActivities_User.Add(this);
- this._UserId = value.UserId;
- }
- else
- {
- this._UserId = default(string);
- }
- this.SendPropertyChanged("User");
- }
- }
- }
-
- public event PropertyChangingEventHandler PropertyChanging;
-
- public event PropertyChangedEventHandler PropertyChanged;
-
- protected virtual void SendPropertyChanging()
- {
- if ((this.PropertyChanging != null))
- {
- this.PropertyChanging(this, emptyChangingEventArgs);
- }
- }
-
- protected virtual void SendPropertyChanged(String propertyName)
- {
- if ((this.PropertyChanged != null))
- {
- this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Examine_LeadershipJoinHomeworkAnalysisMeeting")]
- public partial class Examine_LeadershipJoinHomeworkAnalysisMeeting : INotifyPropertyChanging, INotifyPropertyChanged
- {
-
- private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
-
- private string _Id;
-
- private string _ProjectId;
-
- private string _Code;
-
- private string _Name;
-
- private string _UserId;
-
- private System.Nullable _DateTime;
-
- private string _Content;
-
- private string _Remark;
-
- private System.Nullable _CompileDate;
-
- private string _CompileMan;
-
- private EntityRef _Base_Project;
-
- private EntityRef _Sys_User;
-
- private EntityRef _User;
-
- #region 可扩展性方法定义
- partial void OnLoaded();
- partial void OnValidate(System.Data.Linq.ChangeAction action);
- partial void OnCreated();
- partial void OnIdChanging(string value);
- partial void OnIdChanged();
- partial void OnProjectIdChanging(string value);
- partial void OnProjectIdChanged();
- partial void OnCodeChanging(string value);
- partial void OnCodeChanged();
- partial void OnNameChanging(string value);
- partial void OnNameChanged();
- partial void OnUserIdChanging(string value);
- partial void OnUserIdChanged();
- partial void OnDateTimeChanging(System.Nullable value);
- partial void OnDateTimeChanged();
- partial void OnContentChanging(string value);
- partial void OnContentChanged();
- partial void OnRemarkChanging(string value);
- partial void OnRemarkChanged();
- partial void OnCompileDateChanging(System.Nullable value);
- partial void OnCompileDateChanged();
- partial void OnCompileManChanging(string value);
- partial void OnCompileManChanged();
- #endregion
-
- public Examine_LeadershipJoinHomeworkAnalysisMeeting()
- {
- this._Base_Project = default(EntityRef);
- this._Sys_User = default(EntityRef);
- this._User = default(EntityRef);
- OnCreated();
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
- public string Id
- {
- get
- {
- return this._Id;
- }
- set
- {
- if ((this._Id != value))
- {
- this.OnIdChanging(value);
- this.SendPropertyChanging();
- this._Id = value;
- this.SendPropertyChanged("Id");
- this.OnIdChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)")]
- public string ProjectId
- {
- get
- {
- return this._ProjectId;
- }
- set
- {
- if ((this._ProjectId != value))
- {
- if (this._Base_Project.HasLoadedOrAssignedValue)
- {
- throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
- }
- this.OnProjectIdChanging(value);
- this.SendPropertyChanging();
- this._ProjectId = value;
- this.SendPropertyChanged("ProjectId");
- this.OnProjectIdChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Code", DbType="NVarChar(50)")]
- public string Code
- {
- get
- {
- return this._Code;
- }
- set
- {
- if ((this._Code != value))
- {
- this.OnCodeChanging(value);
- this.SendPropertyChanging();
- this._Code = value;
- this.SendPropertyChanged("Code");
- this.OnCodeChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Name", DbType="NVarChar(200)")]
- public string Name
- {
- get
- {
- return this._Name;
- }
- set
- {
- if ((this._Name != value))
- {
- this.OnNameChanging(value);
- this.SendPropertyChanging();
- this._Name = value;
- this.SendPropertyChanged("Name");
- this.OnNameChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserId", DbType="NVarChar(50)")]
- public string UserId
- {
- get
- {
- return this._UserId;
- }
- set
- {
- if ((this._UserId != value))
- {
- if (this._User.HasLoadedOrAssignedValue)
- {
- throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
- }
- this.OnUserIdChanging(value);
- this.SendPropertyChanging();
- this._UserId = value;
- this.SendPropertyChanged("UserId");
- this.OnUserIdChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DateTime", DbType="DateTime")]
- public System.Nullable DateTime
- {
- get
- {
- return this._DateTime;
- }
- set
- {
- if ((this._DateTime != value))
- {
- this.OnDateTimeChanging(value);
- this.SendPropertyChanging();
- this._DateTime = value;
- this.SendPropertyChanged("DateTime");
- this.OnDateTimeChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Content", DbType="NVarChar(1000)")]
- public string Content
- {
- get
- {
- return this._Content;
- }
- set
- {
- if ((this._Content != value))
- {
- this.OnContentChanging(value);
- this.SendPropertyChanging();
- this._Content = value;
- this.SendPropertyChanged("Content");
- this.OnContentChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Remark", DbType="NVarChar(1000)")]
- public string Remark
- {
- get
- {
- return this._Remark;
- }
- set
- {
- if ((this._Remark != value))
- {
- this.OnRemarkChanging(value);
- this.SendPropertyChanging();
- this._Remark = value;
- this.SendPropertyChanged("Remark");
- this.OnRemarkChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileDate", DbType="DateTime")]
- public System.Nullable CompileDate
- {
- get
- {
- return this._CompileDate;
- }
- set
- {
- if ((this._CompileDate != value))
- {
- this.OnCompileDateChanging(value);
- this.SendPropertyChanging();
- this._CompileDate = value;
- this.SendPropertyChanged("CompileDate");
- this.OnCompileDateChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileMan", DbType="NVarChar(50)")]
- public string CompileMan
- {
- get
- {
- return this._CompileMan;
- }
- set
- {
- if ((this._CompileMan != value))
- {
- if (this._Sys_User.HasLoadedOrAssignedValue)
- {
- throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
- }
- this.OnCompileManChanging(value);
- this.SendPropertyChanging();
- this._CompileMan = value;
- this.SendPropertyChanged("CompileMan");
- this.OnCompileManChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Examine_LeadershipJoinHomeworkAnalysisMeeting_Base_Project", Storage="_Base_Project", ThisKey="ProjectId", OtherKey="ProjectId", IsForeignKey=true)]
- public Base_Project Base_Project
- {
- get
- {
- return this._Base_Project.Entity;
- }
- set
- {
- Base_Project previousValue = this._Base_Project.Entity;
- if (((previousValue != value)
- || (this._Base_Project.HasLoadedOrAssignedValue == false)))
- {
- this.SendPropertyChanging();
- if ((previousValue != null))
- {
- this._Base_Project.Entity = null;
- previousValue.Examine_LeadershipJoinHomeworkAnalysisMeeting.Remove(this);
- }
- this._Base_Project.Entity = value;
- if ((value != null))
- {
- value.Examine_LeadershipJoinHomeworkAnalysisMeeting.Add(this);
- this._ProjectId = value.ProjectId;
- }
- else
- {
- this._ProjectId = default(string);
- }
- this.SendPropertyChanged("Base_Project");
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Examine_LeadershipJoinHomeworkAnalysisMeeting_Sys_User", Storage="_Sys_User", ThisKey="CompileMan", OtherKey="UserId", IsForeignKey=true)]
- public Sys_User Sys_User
- {
- get
- {
- return this._Sys_User.Entity;
- }
- set
- {
- Sys_User previousValue = this._Sys_User.Entity;
- if (((previousValue != value)
- || (this._Sys_User.HasLoadedOrAssignedValue == false)))
- {
- this.SendPropertyChanging();
- if ((previousValue != null))
- {
- this._Sys_User.Entity = null;
- previousValue.Examine_LeadershipJoinHomeworkAnalysisMeeting.Remove(this);
- }
- this._Sys_User.Entity = value;
- if ((value != null))
- {
- value.Examine_LeadershipJoinHomeworkAnalysisMeeting.Add(this);
- this._CompileMan = value.UserId;
- }
- else
- {
- this._CompileMan = default(string);
- }
- this.SendPropertyChanged("Sys_User");
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Examine_LeadershipJoinHomeworkAnalysisMeeting_User", Storage="_User", ThisKey="UserId", OtherKey="UserId", IsForeignKey=true)]
- public Sys_User User
- {
- get
- {
- return this._User.Entity;
- }
- set
- {
- Sys_User previousValue = this._User.Entity;
- if (((previousValue != value)
- || (this._User.HasLoadedOrAssignedValue == false)))
- {
- this.SendPropertyChanging();
- if ((previousValue != null))
- {
- this._User.Entity = null;
- previousValue.Examine_LeadershipJoinHomeworkAnalysisMeeting_User.Remove(this);
- }
- this._User.Entity = value;
- if ((value != null))
- {
- value.Examine_LeadershipJoinHomeworkAnalysisMeeting_User.Add(this);
- this._UserId = value.UserId;
- }
- else
- {
- this._UserId = default(string);
- }
- this.SendPropertyChanged("User");
- }
- }
- }
-
- public event PropertyChangingEventHandler PropertyChanging;
-
- public event PropertyChangedEventHandler PropertyChanged;
-
- protected virtual void SendPropertyChanging()
- {
- if ((this.PropertyChanging != null))
- {
- this.PropertyChanging(this, emptyChangingEventArgs);
- }
- }
-
- protected virtual void SendPropertyChanged(String propertyName)
- {
- if ((this.PropertyChanged != null))
- {
- this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
- }
- }
- }
-
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Examine_MinusScoreSituation")]
public partial class Examine_MinusScoreSituation : INotifyPropertyChanging, INotifyPropertyChanged
{
@@ -161961,767 +160541,6 @@ namespace Model
}
}
- [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Examine_PersonalSafetyActionPlan")]
- public partial class Examine_PersonalSafetyActionPlan : INotifyPropertyChanging, INotifyPropertyChanged
- {
-
- private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
-
- private string _Id;
-
- private string _ProjectId;
-
- private string _Code;
-
- private string _Name;
-
- private string _UserId;
-
- private System.Nullable _DateTime;
-
- private string _Content;
-
- private string _Remark;
-
- private System.Nullable _CompileDate;
-
- private string _CompileMan;
-
- private EntityRef _Base_Project;
-
- private EntityRef _Sys_User;
-
- #region 可扩展性方法定义
- partial void OnLoaded();
- partial void OnValidate(System.Data.Linq.ChangeAction action);
- partial void OnCreated();
- partial void OnIdChanging(string value);
- partial void OnIdChanged();
- partial void OnProjectIdChanging(string value);
- partial void OnProjectIdChanged();
- partial void OnCodeChanging(string value);
- partial void OnCodeChanged();
- partial void OnNameChanging(string value);
- partial void OnNameChanged();
- partial void OnUserIdChanging(string value);
- partial void OnUserIdChanged();
- partial void OnDateTimeChanging(System.Nullable value);
- partial void OnDateTimeChanged();
- partial void OnContentChanging(string value);
- partial void OnContentChanged();
- partial void OnRemarkChanging(string value);
- partial void OnRemarkChanged();
- partial void OnCompileDateChanging(System.Nullable value);
- partial void OnCompileDateChanged();
- partial void OnCompileManChanging(string value);
- partial void OnCompileManChanged();
- #endregion
-
- public Examine_PersonalSafetyActionPlan()
- {
- this._Base_Project = default(EntityRef);
- this._Sys_User = default(EntityRef);
- OnCreated();
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
- public string Id
- {
- get
- {
- return this._Id;
- }
- set
- {
- if ((this._Id != value))
- {
- this.OnIdChanging(value);
- this.SendPropertyChanging();
- this._Id = value;
- this.SendPropertyChanged("Id");
- this.OnIdChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)")]
- public string ProjectId
- {
- get
- {
- return this._ProjectId;
- }
- set
- {
- if ((this._ProjectId != value))
- {
- if (this._Base_Project.HasLoadedOrAssignedValue)
- {
- throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
- }
- this.OnProjectIdChanging(value);
- this.SendPropertyChanging();
- this._ProjectId = value;
- this.SendPropertyChanged("ProjectId");
- this.OnProjectIdChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Code", DbType="NVarChar(50)")]
- public string Code
- {
- get
- {
- return this._Code;
- }
- set
- {
- if ((this._Code != value))
- {
- this.OnCodeChanging(value);
- this.SendPropertyChanging();
- this._Code = value;
- this.SendPropertyChanged("Code");
- this.OnCodeChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Name", DbType="NVarChar(200)")]
- public string Name
- {
- get
- {
- return this._Name;
- }
- set
- {
- if ((this._Name != value))
- {
- this.OnNameChanging(value);
- this.SendPropertyChanging();
- this._Name = value;
- this.SendPropertyChanged("Name");
- this.OnNameChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserId", DbType="NVarChar(50)")]
- public string UserId
- {
- get
- {
- return this._UserId;
- }
- set
- {
- if ((this._UserId != value))
- {
- if (this._Sys_User.HasLoadedOrAssignedValue)
- {
- throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
- }
- this.OnUserIdChanging(value);
- this.SendPropertyChanging();
- this._UserId = value;
- this.SendPropertyChanged("UserId");
- this.OnUserIdChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DateTime", DbType="DateTime")]
- public System.Nullable DateTime
- {
- get
- {
- return this._DateTime;
- }
- set
- {
- if ((this._DateTime != value))
- {
- this.OnDateTimeChanging(value);
- this.SendPropertyChanging();
- this._DateTime = value;
- this.SendPropertyChanged("DateTime");
- this.OnDateTimeChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Content", DbType="NVarChar(1000)")]
- public string Content
- {
- get
- {
- return this._Content;
- }
- set
- {
- if ((this._Content != value))
- {
- this.OnContentChanging(value);
- this.SendPropertyChanging();
- this._Content = value;
- this.SendPropertyChanged("Content");
- this.OnContentChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Remark", DbType="NVarChar(1000)")]
- public string Remark
- {
- get
- {
- return this._Remark;
- }
- set
- {
- if ((this._Remark != value))
- {
- this.OnRemarkChanging(value);
- this.SendPropertyChanging();
- this._Remark = value;
- this.SendPropertyChanged("Remark");
- this.OnRemarkChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileDate", DbType="DateTime")]
- public System.Nullable CompileDate
- {
- get
- {
- return this._CompileDate;
- }
- set
- {
- if ((this._CompileDate != value))
- {
- this.OnCompileDateChanging(value);
- this.SendPropertyChanging();
- this._CompileDate = value;
- this.SendPropertyChanged("CompileDate");
- this.OnCompileDateChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileMan", DbType="NVarChar(50)")]
- public string CompileMan
- {
- get
- {
- return this._CompileMan;
- }
- set
- {
- if ((this._CompileMan != value))
- {
- this.OnCompileManChanging(value);
- this.SendPropertyChanging();
- this._CompileMan = value;
- this.SendPropertyChanged("CompileMan");
- this.OnCompileManChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Examine_PersonalSafetyActionPlan_Base_Project", Storage="_Base_Project", ThisKey="ProjectId", OtherKey="ProjectId", IsForeignKey=true)]
- public Base_Project Base_Project
- {
- get
- {
- return this._Base_Project.Entity;
- }
- set
- {
- Base_Project previousValue = this._Base_Project.Entity;
- if (((previousValue != value)
- || (this._Base_Project.HasLoadedOrAssignedValue == false)))
- {
- this.SendPropertyChanging();
- if ((previousValue != null))
- {
- this._Base_Project.Entity = null;
- previousValue.Examine_PersonalSafetyActionPlan.Remove(this);
- }
- this._Base_Project.Entity = value;
- if ((value != null))
- {
- value.Examine_PersonalSafetyActionPlan.Add(this);
- this._ProjectId = value.ProjectId;
- }
- else
- {
- this._ProjectId = default(string);
- }
- this.SendPropertyChanged("Base_Project");
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Examine_PersonalSafetyActionPlan_Sys_User", Storage="_Sys_User", ThisKey="UserId", OtherKey="UserId", IsForeignKey=true)]
- public Sys_User Sys_User
- {
- get
- {
- return this._Sys_User.Entity;
- }
- set
- {
- Sys_User previousValue = this._Sys_User.Entity;
- if (((previousValue != value)
- || (this._Sys_User.HasLoadedOrAssignedValue == false)))
- {
- this.SendPropertyChanging();
- if ((previousValue != null))
- {
- this._Sys_User.Entity = null;
- previousValue.Examine_PersonalSafetyActionPlan.Remove(this);
- }
- this._Sys_User.Entity = value;
- if ((value != null))
- {
- value.Examine_PersonalSafetyActionPlan.Add(this);
- this._UserId = value.UserId;
- }
- else
- {
- this._UserId = default(string);
- }
- this.SendPropertyChanged("Sys_User");
- }
- }
- }
-
- public event PropertyChangingEventHandler PropertyChanging;
-
- public event PropertyChangedEventHandler PropertyChanged;
-
- protected virtual void SendPropertyChanging()
- {
- if ((this.PropertyChanging != null))
- {
- this.PropertyChanging(this, emptyChangingEventArgs);
- }
- }
-
- protected virtual void SendPropertyChanged(String propertyName)
- {
- if ((this.PropertyChanged != null))
- {
- this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Examine_SharingOfSafetyExperience")]
- public partial class Examine_SharingOfSafetyExperience : INotifyPropertyChanging, INotifyPropertyChanged
- {
-
- private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
-
- private string _Id;
-
- private string _ProjectId;
-
- private string _Code;
-
- private string _Name;
-
- private string _UserId;
-
- private System.Nullable _DateTime;
-
- private string _Content;
-
- private string _Remark;
-
- private System.Nullable _CompileDate;
-
- private string _CompileMan;
-
- private EntityRef _Base_Project;
-
- private EntityRef _Sys_User;
-
- private EntityRef _User;
-
- #region 可扩展性方法定义
- partial void OnLoaded();
- partial void OnValidate(System.Data.Linq.ChangeAction action);
- partial void OnCreated();
- partial void OnIdChanging(string value);
- partial void OnIdChanged();
- partial void OnProjectIdChanging(string value);
- partial void OnProjectIdChanged();
- partial void OnCodeChanging(string value);
- partial void OnCodeChanged();
- partial void OnNameChanging(string value);
- partial void OnNameChanged();
- partial void OnUserIdChanging(string value);
- partial void OnUserIdChanged();
- partial void OnDateTimeChanging(System.Nullable value);
- partial void OnDateTimeChanged();
- partial void OnContentChanging(string value);
- partial void OnContentChanged();
- partial void OnRemarkChanging(string value);
- partial void OnRemarkChanged();
- partial void OnCompileDateChanging(System.Nullable value);
- partial void OnCompileDateChanged();
- partial void OnCompileManChanging(string value);
- partial void OnCompileManChanged();
- #endregion
-
- public Examine_SharingOfSafetyExperience()
- {
- this._Base_Project = default(EntityRef);
- this._Sys_User = default(EntityRef);
- this._User = default(EntityRef);
- OnCreated();
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
- public string Id
- {
- get
- {
- return this._Id;
- }
- set
- {
- if ((this._Id != value))
- {
- this.OnIdChanging(value);
- this.SendPropertyChanging();
- this._Id = value;
- this.SendPropertyChanged("Id");
- this.OnIdChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)")]
- public string ProjectId
- {
- get
- {
- return this._ProjectId;
- }
- set
- {
- if ((this._ProjectId != value))
- {
- if (this._Base_Project.HasLoadedOrAssignedValue)
- {
- throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
- }
- this.OnProjectIdChanging(value);
- this.SendPropertyChanging();
- this._ProjectId = value;
- this.SendPropertyChanged("ProjectId");
- this.OnProjectIdChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Code", DbType="NVarChar(50)")]
- public string Code
- {
- get
- {
- return this._Code;
- }
- set
- {
- if ((this._Code != value))
- {
- this.OnCodeChanging(value);
- this.SendPropertyChanging();
- this._Code = value;
- this.SendPropertyChanged("Code");
- this.OnCodeChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Name", DbType="NVarChar(200)")]
- public string Name
- {
- get
- {
- return this._Name;
- }
- set
- {
- if ((this._Name != value))
- {
- this.OnNameChanging(value);
- this.SendPropertyChanging();
- this._Name = value;
- this.SendPropertyChanged("Name");
- this.OnNameChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserId", DbType="NVarChar(50)")]
- public string UserId
- {
- get
- {
- return this._UserId;
- }
- set
- {
- if ((this._UserId != value))
- {
- if (this._User.HasLoadedOrAssignedValue)
- {
- throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
- }
- this.OnUserIdChanging(value);
- this.SendPropertyChanging();
- this._UserId = value;
- this.SendPropertyChanged("UserId");
- this.OnUserIdChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DateTime", DbType="DateTime")]
- public System.Nullable DateTime
- {
- get
- {
- return this._DateTime;
- }
- set
- {
- if ((this._DateTime != value))
- {
- this.OnDateTimeChanging(value);
- this.SendPropertyChanging();
- this._DateTime = value;
- this.SendPropertyChanged("DateTime");
- this.OnDateTimeChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Content", DbType="NVarChar(1000)")]
- public string Content
- {
- get
- {
- return this._Content;
- }
- set
- {
- if ((this._Content != value))
- {
- this.OnContentChanging(value);
- this.SendPropertyChanging();
- this._Content = value;
- this.SendPropertyChanged("Content");
- this.OnContentChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Remark", DbType="NVarChar(1000)")]
- public string Remark
- {
- get
- {
- return this._Remark;
- }
- set
- {
- if ((this._Remark != value))
- {
- this.OnRemarkChanging(value);
- this.SendPropertyChanging();
- this._Remark = value;
- this.SendPropertyChanged("Remark");
- this.OnRemarkChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileDate", DbType="DateTime")]
- public System.Nullable CompileDate
- {
- get
- {
- return this._CompileDate;
- }
- set
- {
- if ((this._CompileDate != value))
- {
- this.OnCompileDateChanging(value);
- this.SendPropertyChanging();
- this._CompileDate = value;
- this.SendPropertyChanged("CompileDate");
- this.OnCompileDateChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileMan", DbType="NVarChar(50)")]
- public string CompileMan
- {
- get
- {
- return this._CompileMan;
- }
- set
- {
- if ((this._CompileMan != value))
- {
- if (this._Sys_User.HasLoadedOrAssignedValue)
- {
- throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
- }
- this.OnCompileManChanging(value);
- this.SendPropertyChanging();
- this._CompileMan = value;
- this.SendPropertyChanged("CompileMan");
- this.OnCompileManChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Examine_SharingOfSafetyExperience_Base_Project", Storage="_Base_Project", ThisKey="ProjectId", OtherKey="ProjectId", IsForeignKey=true)]
- public Base_Project Base_Project
- {
- get
- {
- return this._Base_Project.Entity;
- }
- set
- {
- Base_Project previousValue = this._Base_Project.Entity;
- if (((previousValue != value)
- || (this._Base_Project.HasLoadedOrAssignedValue == false)))
- {
- this.SendPropertyChanging();
- if ((previousValue != null))
- {
- this._Base_Project.Entity = null;
- previousValue.Examine_SharingOfSafetyExperience.Remove(this);
- }
- this._Base_Project.Entity = value;
- if ((value != null))
- {
- value.Examine_SharingOfSafetyExperience.Add(this);
- this._ProjectId = value.ProjectId;
- }
- else
- {
- this._ProjectId = default(string);
- }
- this.SendPropertyChanged("Base_Project");
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Examine_SharingOfSafetyExperience_Sys_User", Storage="_Sys_User", ThisKey="CompileMan", OtherKey="UserId", IsForeignKey=true)]
- public Sys_User Sys_User
- {
- get
- {
- return this._Sys_User.Entity;
- }
- set
- {
- Sys_User previousValue = this._Sys_User.Entity;
- if (((previousValue != value)
- || (this._Sys_User.HasLoadedOrAssignedValue == false)))
- {
- this.SendPropertyChanging();
- if ((previousValue != null))
- {
- this._Sys_User.Entity = null;
- previousValue.Examine_SharingOfSafetyExperience.Remove(this);
- }
- this._Sys_User.Entity = value;
- if ((value != null))
- {
- value.Examine_SharingOfSafetyExperience.Add(this);
- this._CompileMan = value.UserId;
- }
- else
- {
- this._CompileMan = default(string);
- }
- this.SendPropertyChanged("Sys_User");
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Examine_SharingOfSafetyExperience_User", Storage="_User", ThisKey="UserId", OtherKey="UserId", IsForeignKey=true)]
- public Sys_User User
- {
- get
- {
- return this._User.Entity;
- }
- set
- {
- Sys_User previousValue = this._User.Entity;
- if (((previousValue != value)
- || (this._User.HasLoadedOrAssignedValue == false)))
- {
- this.SendPropertyChanging();
- if ((previousValue != null))
- {
- this._User.Entity = null;
- previousValue.Examine_SharingOfSafetyExperience_User.Remove(this);
- }
- this._User.Entity = value;
- if ((value != null))
- {
- value.Examine_SharingOfSafetyExperience_User.Add(this);
- this._UserId = value.UserId;
- }
- else
- {
- this._UserId = default(string);
- }
- this.SendPropertyChanged("User");
- }
- }
- }
-
- public event PropertyChangingEventHandler PropertyChanging;
-
- public event PropertyChangedEventHandler PropertyChanged;
-
- protected virtual void SendPropertyChanging()
- {
- if ((this.PropertyChanging != null))
- {
- this.PropertyChanging(this, emptyChangingEventArgs);
- }
- }
-
- protected virtual void SendPropertyChanged(String propertyName)
- {
- if ((this.PropertyChanged != null))
- {
- this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
- }
- }
- }
-
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Exchange_Content")]
public partial class Exchange_Content : INotifyPropertyChanging, INotifyPropertyChanged
{
@@ -372109,562 +369928,6 @@ namespace Model
}
}
- [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Sys_Menu_0501")]
- public partial class Sys_Menu_0501 : INotifyPropertyChanging, INotifyPropertyChanged
- {
-
- private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
-
- private string _MenuId;
-
- private string _MenuName;
-
- private string _Icon;
-
- private string _Url;
-
- private System.Nullable _SortIndex;
-
- private string _SuperMenu;
-
- private string _MenuType;
-
- private System.Nullable _IsOffice;
-
- private System.Nullable _IsEnd;
-
- private System.Nullable _IsUsed;
-
- #region 可扩展性方法定义
- partial void OnLoaded();
- partial void OnValidate(System.Data.Linq.ChangeAction action);
- partial void OnCreated();
- partial void OnMenuIdChanging(string value);
- partial void OnMenuIdChanged();
- partial void OnMenuNameChanging(string value);
- partial void OnMenuNameChanged();
- partial void OnIconChanging(string value);
- partial void OnIconChanged();
- partial void OnUrlChanging(string value);
- partial void OnUrlChanged();
- partial void OnSortIndexChanging(System.Nullable value);
- partial void OnSortIndexChanged();
- partial void OnSuperMenuChanging(string value);
- partial void OnSuperMenuChanged();
- partial void OnMenuTypeChanging(string value);
- partial void OnMenuTypeChanged();
- partial void OnIsOfficeChanging(System.Nullable value);
- partial void OnIsOfficeChanged();
- partial void OnIsEndChanging(System.Nullable value);
- partial void OnIsEndChanged();
- partial void OnIsUsedChanging(System.Nullable value);
- partial void OnIsUsedChanged();
- #endregion
-
- public Sys_Menu_0501()
- {
- OnCreated();
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MenuId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
- public string MenuId
- {
- get
- {
- return this._MenuId;
- }
- set
- {
- if ((this._MenuId != value))
- {
- this.OnMenuIdChanging(value);
- this.SendPropertyChanging();
- this._MenuId = value;
- this.SendPropertyChanged("MenuId");
- this.OnMenuIdChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MenuName", DbType="NVarChar(50)")]
- public string MenuName
- {
- get
- {
- return this._MenuName;
- }
- set
- {
- if ((this._MenuName != value))
- {
- this.OnMenuNameChanging(value);
- this.SendPropertyChanging();
- this._MenuName = value;
- this.SendPropertyChanged("MenuName");
- this.OnMenuNameChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Icon", DbType="NVarChar(50)")]
- public string Icon
- {
- get
- {
- return this._Icon;
- }
- set
- {
- if ((this._Icon != value))
- {
- this.OnIconChanging(value);
- this.SendPropertyChanging();
- this._Icon = value;
- this.SendPropertyChanged("Icon");
- this.OnIconChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Url", DbType="NVarChar(200)")]
- public string Url
- {
- get
- {
- return this._Url;
- }
- set
- {
- if ((this._Url != value))
- {
- this.OnUrlChanging(value);
- this.SendPropertyChanging();
- this._Url = value;
- this.SendPropertyChanged("Url");
- this.OnUrlChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SortIndex", DbType="Int")]
- public System.Nullable SortIndex
- {
- get
- {
- return this._SortIndex;
- }
- set
- {
- if ((this._SortIndex != value))
- {
- this.OnSortIndexChanging(value);
- this.SendPropertyChanging();
- this._SortIndex = value;
- this.SendPropertyChanged("SortIndex");
- this.OnSortIndexChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SuperMenu", DbType="NVarChar(50)")]
- public string SuperMenu
- {
- get
- {
- return this._SuperMenu;
- }
- set
- {
- if ((this._SuperMenu != value))
- {
- this.OnSuperMenuChanging(value);
- this.SendPropertyChanging();
- this._SuperMenu = value;
- this.SendPropertyChanged("SuperMenu");
- this.OnSuperMenuChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MenuType", DbType="NVarChar(50)")]
- public string MenuType
- {
- get
- {
- return this._MenuType;
- }
- set
- {
- if ((this._MenuType != value))
- {
- this.OnMenuTypeChanging(value);
- this.SendPropertyChanging();
- this._MenuType = value;
- this.SendPropertyChanged("MenuType");
- this.OnMenuTypeChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsOffice", DbType="Bit")]
- public System.Nullable IsOffice
- {
- get
- {
- return this._IsOffice;
- }
- set
- {
- if ((this._IsOffice != value))
- {
- this.OnIsOfficeChanging(value);
- this.SendPropertyChanging();
- this._IsOffice = value;
- this.SendPropertyChanged("IsOffice");
- this.OnIsOfficeChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsEnd", DbType="Bit")]
- public System.Nullable IsEnd
- {
- get
- {
- return this._IsEnd;
- }
- set
- {
- if ((this._IsEnd != value))
- {
- this.OnIsEndChanging(value);
- this.SendPropertyChanging();
- this._IsEnd = value;
- this.SendPropertyChanged("IsEnd");
- this.OnIsEndChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsUsed", DbType="Bit")]
- public System.Nullable IsUsed
- {
- get
- {
- return this._IsUsed;
- }
- set
- {
- if ((this._IsUsed != value))
- {
- this.OnIsUsedChanging(value);
- this.SendPropertyChanging();
- this._IsUsed = value;
- this.SendPropertyChanged("IsUsed");
- this.OnIsUsedChanged();
- }
- }
- }
-
- public event PropertyChangingEventHandler PropertyChanging;
-
- public event PropertyChangedEventHandler PropertyChanged;
-
- protected virtual void SendPropertyChanging()
- {
- if ((this.PropertyChanging != null))
- {
- this.PropertyChanging(this, emptyChangingEventArgs);
- }
- }
-
- protected virtual void SendPropertyChanged(String propertyName)
- {
- if ((this.PropertyChanged != null))
- {
- this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Sys_Menu_0501t")]
- public partial class Sys_Menu_0501t : INotifyPropertyChanging, INotifyPropertyChanged
- {
-
- private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
-
- private string _MenuId;
-
- private string _MenuName;
-
- private string _Icon;
-
- private string _Url;
-
- private System.Nullable _SortIndex;
-
- private string _SuperMenu;
-
- private string _MenuType;
-
- private System.Nullable _IsOffice;
-
- private System.Nullable _IsEnd;
-
- private System.Nullable _IsUsed;
-
- #region 可扩展性方法定义
- partial void OnLoaded();
- partial void OnValidate(System.Data.Linq.ChangeAction action);
- partial void OnCreated();
- partial void OnMenuIdChanging(string value);
- partial void OnMenuIdChanged();
- partial void OnMenuNameChanging(string value);
- partial void OnMenuNameChanged();
- partial void OnIconChanging(string value);
- partial void OnIconChanged();
- partial void OnUrlChanging(string value);
- partial void OnUrlChanged();
- partial void OnSortIndexChanging(System.Nullable value);
- partial void OnSortIndexChanged();
- partial void OnSuperMenuChanging(string value);
- partial void OnSuperMenuChanged();
- partial void OnMenuTypeChanging(string value);
- partial void OnMenuTypeChanged();
- partial void OnIsOfficeChanging(System.Nullable value);
- partial void OnIsOfficeChanged();
- partial void OnIsEndChanging(System.Nullable value);
- partial void OnIsEndChanged();
- partial void OnIsUsedChanging(System.Nullable value);
- partial void OnIsUsedChanged();
- #endregion
-
- public Sys_Menu_0501t()
- {
- OnCreated();
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MenuId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
- public string MenuId
- {
- get
- {
- return this._MenuId;
- }
- set
- {
- if ((this._MenuId != value))
- {
- this.OnMenuIdChanging(value);
- this.SendPropertyChanging();
- this._MenuId = value;
- this.SendPropertyChanged("MenuId");
- this.OnMenuIdChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MenuName", DbType="NVarChar(50)")]
- public string MenuName
- {
- get
- {
- return this._MenuName;
- }
- set
- {
- if ((this._MenuName != value))
- {
- this.OnMenuNameChanging(value);
- this.SendPropertyChanging();
- this._MenuName = value;
- this.SendPropertyChanged("MenuName");
- this.OnMenuNameChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Icon", DbType="NVarChar(50)")]
- public string Icon
- {
- get
- {
- return this._Icon;
- }
- set
- {
- if ((this._Icon != value))
- {
- this.OnIconChanging(value);
- this.SendPropertyChanging();
- this._Icon = value;
- this.SendPropertyChanged("Icon");
- this.OnIconChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Url", DbType="NVarChar(200)")]
- public string Url
- {
- get
- {
- return this._Url;
- }
- set
- {
- if ((this._Url != value))
- {
- this.OnUrlChanging(value);
- this.SendPropertyChanging();
- this._Url = value;
- this.SendPropertyChanged("Url");
- this.OnUrlChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SortIndex", DbType="Int")]
- public System.Nullable SortIndex
- {
- get
- {
- return this._SortIndex;
- }
- set
- {
- if ((this._SortIndex != value))
- {
- this.OnSortIndexChanging(value);
- this.SendPropertyChanging();
- this._SortIndex = value;
- this.SendPropertyChanged("SortIndex");
- this.OnSortIndexChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SuperMenu", DbType="NVarChar(50)")]
- public string SuperMenu
- {
- get
- {
- return this._SuperMenu;
- }
- set
- {
- if ((this._SuperMenu != value))
- {
- this.OnSuperMenuChanging(value);
- this.SendPropertyChanging();
- this._SuperMenu = value;
- this.SendPropertyChanged("SuperMenu");
- this.OnSuperMenuChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MenuType", DbType="NVarChar(50)")]
- public string MenuType
- {
- get
- {
- return this._MenuType;
- }
- set
- {
- if ((this._MenuType != value))
- {
- this.OnMenuTypeChanging(value);
- this.SendPropertyChanging();
- this._MenuType = value;
- this.SendPropertyChanged("MenuType");
- this.OnMenuTypeChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsOffice", DbType="Bit")]
- public System.Nullable IsOffice
- {
- get
- {
- return this._IsOffice;
- }
- set
- {
- if ((this._IsOffice != value))
- {
- this.OnIsOfficeChanging(value);
- this.SendPropertyChanging();
- this._IsOffice = value;
- this.SendPropertyChanged("IsOffice");
- this.OnIsOfficeChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsEnd", DbType="Bit")]
- public System.Nullable IsEnd
- {
- get
- {
- return this._IsEnd;
- }
- set
- {
- if ((this._IsEnd != value))
- {
- this.OnIsEndChanging(value);
- this.SendPropertyChanging();
- this._IsEnd = value;
- this.SendPropertyChanged("IsEnd");
- this.OnIsEndChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsUsed", DbType="Bit")]
- public System.Nullable IsUsed
- {
- get
- {
- return this._IsUsed;
- }
- set
- {
- if ((this._IsUsed != value))
- {
- this.OnIsUsedChanging(value);
- this.SendPropertyChanging();
- this._IsUsed = value;
- this.SendPropertyChanged("IsUsed");
- this.OnIsUsedChanged();
- }
- }
- }
-
- public event PropertyChangingEventHandler PropertyChanging;
-
- public event PropertyChangedEventHandler PropertyChanged;
-
- protected virtual void SendPropertyChanging()
- {
- if ((this.PropertyChanging != null))
- {
- this.PropertyChanging(this, emptyChangingEventArgs);
- }
- }
-
- protected virtual void SendPropertyChanged(String propertyName)
- {
- if ((this.PropertyChanged != null))
- {
- this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
- }
- }
- }
-
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Sys_MenuFlowOperate")]
public partial class Sys_MenuFlowOperate : INotifyPropertyChanging, INotifyPropertyChanged
{
@@ -375664,10 +372927,6 @@ namespace Model
private EntitySet _Environmental_UnexpectedEnvironmental;
- private EntitySet _Examine_BehavioralSafetyObservation;
-
- private EntitySet _Examine_BehavioralSafetyObservation_User;
-
private EntitySet _Examine_BonusScoreSelfManagement;
private EntitySet _Examine_BonusScoreSituation;
@@ -375676,24 +372935,10 @@ namespace Model
private EntitySet _Examine_BonusScoreType;
- private EntitySet _Examine_CoConstructionActivities;
-
- private EntitySet _Examine_CoConstructionActivities_User;
-
- private EntitySet _Examine_LeadershipJoinHomeworkAnalysisMeeting;
-
- private EntitySet _Examine_LeadershipJoinHomeworkAnalysisMeeting_User;
-
private EntitySet _Examine_MinusScoreSituation;
private EntitySet _Examine_MinusScoreSituation_User;
- private EntitySet _Examine_PersonalSafetyActionPlan;
-
- private EntitySet _Examine_SharingOfSafetyExperience;
-
- private EntitySet _Examine_SharingOfSafetyExperience_User;
-
private EntitySet _Exchange_Content;
private EntitySet _FinalFileManage_FinalFileList;
@@ -376378,21 +373623,12 @@ namespace Model
this._Environmental_EnvironmentalEmergencyPlan = new EntitySet(new Action(this.attach_Environmental_EnvironmentalEmergencyPlan), new Action(this.detach_Environmental_EnvironmentalEmergencyPlan));
this._Environmental_EnvironmentalMonitoring = new EntitySet(new Action(this.attach_Environmental_EnvironmentalMonitoring), new Action(this.detach_Environmental_EnvironmentalMonitoring));
this._Environmental_UnexpectedEnvironmental = new EntitySet(new Action(this.attach_Environmental_UnexpectedEnvironmental), new Action(this.detach_Environmental_UnexpectedEnvironmental));
- this._Examine_BehavioralSafetyObservation = new EntitySet(new Action(this.attach_Examine_BehavioralSafetyObservation), new Action(this.detach_Examine_BehavioralSafetyObservation));
- this._Examine_BehavioralSafetyObservation_User = new EntitySet(new Action(this.attach_Examine_BehavioralSafetyObservation_User), new Action(this.detach_Examine_BehavioralSafetyObservation_User));
this._Examine_BonusScoreSelfManagement = new EntitySet(new Action(this.attach_Examine_BonusScoreSelfManagement), new Action(this.detach_Examine_BonusScoreSelfManagement));
this._Examine_BonusScoreSituation = new EntitySet(new Action(this.attach_Examine_BonusScoreSituation), new Action(this.detach_Examine_BonusScoreSituation));
this._Examine_BonusScoreSituation_User = new EntitySet(new Action(this.attach_Examine_BonusScoreSituation_User), new Action(this.detach_Examine_BonusScoreSituation_User));
this._Examine_BonusScoreType = new EntitySet(new Action(this.attach_Examine_BonusScoreType), new Action(this.detach_Examine_BonusScoreType));
- this._Examine_CoConstructionActivities = new EntitySet(new Action(this.attach_Examine_CoConstructionActivities), new Action(this.detach_Examine_CoConstructionActivities));
- this._Examine_CoConstructionActivities_User = new EntitySet(new Action(this.attach_Examine_CoConstructionActivities_User), new Action(this.detach_Examine_CoConstructionActivities_User));
- this._Examine_LeadershipJoinHomeworkAnalysisMeeting = new EntitySet(new Action(this.attach_Examine_LeadershipJoinHomeworkAnalysisMeeting), new Action(this.detach_Examine_LeadershipJoinHomeworkAnalysisMeeting));
- this._Examine_LeadershipJoinHomeworkAnalysisMeeting_User = new EntitySet(new Action(this.attach_Examine_LeadershipJoinHomeworkAnalysisMeeting_User), new Action(this.detach_Examine_LeadershipJoinHomeworkAnalysisMeeting_User));
this._Examine_MinusScoreSituation = new EntitySet(new Action(this.attach_Examine_MinusScoreSituation), new Action(this.detach_Examine_MinusScoreSituation));
this._Examine_MinusScoreSituation_User = new EntitySet(new Action(this.attach_Examine_MinusScoreSituation_User), new Action(this.detach_Examine_MinusScoreSituation_User));
- this._Examine_PersonalSafetyActionPlan = new EntitySet(new Action(this.attach_Examine_PersonalSafetyActionPlan), new Action(this.detach_Examine_PersonalSafetyActionPlan));
- this._Examine_SharingOfSafetyExperience = new EntitySet(new Action(this.attach_Examine_SharingOfSafetyExperience), new Action(this.detach_Examine_SharingOfSafetyExperience));
- this._Examine_SharingOfSafetyExperience_User = new EntitySet(new Action(this.attach_Examine_SharingOfSafetyExperience_User), new Action(this.detach_Examine_SharingOfSafetyExperience_User));
this._Exchange_Content = new EntitySet(new Action(this.attach_Exchange_Content), new Action(this.detach_Exchange_Content));
this._FinalFileManage_FinalFileList = new EntitySet(new Action(this.attach_FinalFileManage_FinalFileList), new Action