From 6908efcf2c4bc65848e1f05201be715e2e3f0c19 Mon Sep 17 00:00:00 2001
From: gaofei <181547018@qq.com>
Date: Mon, 12 Sep 2022 14:58:35 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=B4=A8=E9=87=8F=E4=BC=9A?=
=?UTF-8?q?=E8=AE=AE=E5=8F=8A=E5=9F=B9=E8=AE=AD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
DataBase/版本日志/SGGLDB_V2022-09-12.sql | 43 +++
.../版本日志/SGGLDB_V2022-09-12修改明细.txt | 4 +
.../0-0系统设置(Menu_SysSet).sql | 13 +
SGGL/BLL/BLL.csproj | 3 +-
SGGL/BLL/BaseInfo/CQMSTrainObjectService.cs | 117 ++++++++
SGGL/BLL/Common/Const.cs | 5 +
.../BaseInfo/CQMSTrainObject.aspx | 147 +++++++++
.../BaseInfo/CQMSTrainObject.aspx.cs | 278 ++++++++++++++++++
.../BaseInfo/CQMSTrainObject.aspx.designer.cs | 195 ++++++++++++
.../CQMS/Meeting/MonthMeetingEdit.aspx | 23 +-
.../Meeting/MonthMeetingEdit.aspx.designer.cs | 18 +-
.../CQMS/Meeting/MonthMeetingView.aspx | 22 +-
.../Meeting/MonthMeetingView.aspx.designer.cs | 18 +-
.../CQMS/Meeting/SpecialMeetingEdit.aspx | 22 +-
.../SpecialMeetingEdit.aspx.designer.cs | 18 +-
.../CQMS/Meeting/SpecialMeetingView.aspx | 22 +-
.../SpecialMeetingView.aspx.designer.cs | 18 +-
.../CQMS/Train/TrainPlan.aspx.cs | 2 +-
.../CQMS/Train/TrainPlanEdit.aspx.cs | 2 +-
.../CQMS/Train/TrainPlanView.aspx.cs | 2 +-
.../CQMS/Train/TrainRecord.aspx.cs | 2 +-
.../CQMS/Train/TrainRecordEdit.aspx.cs | 2 +-
.../CQMS/Train/TrainRecordView.aspx.cs | 2 +-
SGGL/FineUIPro.Web/FineUIPro.Web.csproj | 8 +
SGGL/Model/Model.cs | 145 +++++++++
25 files changed, 1028 insertions(+), 103 deletions(-)
create mode 100644 DataBase/版本日志/SGGLDB_V2022-09-12.sql
create mode 100644 DataBase/版本日志/SGGLDB_V2022-09-12修改明细.txt
create mode 100644 SGGL/BLL/BaseInfo/CQMSTrainObjectService.cs
create mode 100644 SGGL/FineUIPro.Web/BaseInfo/CQMSTrainObject.aspx
create mode 100644 SGGL/FineUIPro.Web/BaseInfo/CQMSTrainObject.aspx.cs
create mode 100644 SGGL/FineUIPro.Web/BaseInfo/CQMSTrainObject.aspx.designer.cs
diff --git a/DataBase/版本日志/SGGLDB_V2022-09-12.sql b/DataBase/版本日志/SGGLDB_V2022-09-12.sql
new file mode 100644
index 00000000..d90d6356
--- /dev/null
+++ b/DataBase/版本日志/SGGLDB_V2022-09-12.sql
@@ -0,0 +1,43 @@
+ INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
+ VALUES('D2027C3D-ECE9-445E-8DBE-AF0DA10005FC','ѵ','BaseInfo/CQMSTrainObject.aspx',85,'A93BA810-3511-4BB2-9C10-9663351DF79F','Menu_SysSet',1,1,1)
+ GO
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('47CDCB0A-A025-47CC-9196-C6DCB5D329A8','D2027C3D-ECE9-445E-8DBE-AF0DA10005FC','',1)
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('E963573E-41E7-443F-AA8C-27B08573C96B','D2027C3D-ECE9-445E-8DBE-AF0DA10005FC','',2)
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('1D2D8B68-462D-4484-AB1A-98B1FAD0D8E3','D2027C3D-ECE9-445E-8DBE-AF0DA10005FC','ɾ',3)
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('AF40B71B-8179-4E09-BFAA-DFDAA5862942','D2027C3D-ECE9-445E-8DBE-AF0DA10005FC','',4)
+ GO
+
+
+CREATE TABLE [dbo].[Base_CQMSTrainObject](
+ [TrainObjectId] [nvarchar](50) NOT NULL,
+ [TrainObjectCode] [nvarchar](50) NULL,
+ [TrainObjectName] [nvarchar](50) NULL,
+ [Remark] [nvarchar](200) NULL,
+ CONSTRAINT [PK_Base_CQMSTrainObject] PRIMARY KEY CLUSTERED
+(
+ [TrainObjectId] ASC
+)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
+) ON [PRIMARY]
+
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Base_CQMSTrainObject', @level2type=N'COLUMN',@level2name=N'TrainObjectId'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Base_CQMSTrainObject', @level2type=N'COLUMN',@level2name=N'TrainObjectCode'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Base_CQMSTrainObject', @level2type=N'COLUMN',@level2name=N'TrainObjectName'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ע' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Base_CQMSTrainObject', @level2type=N'COLUMN',@level2name=N'Remark'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ѵ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Base_CQMSTrainObject'
+GO
+
+
diff --git a/DataBase/版本日志/SGGLDB_V2022-09-12修改明细.txt b/DataBase/版本日志/SGGLDB_V2022-09-12修改明细.txt
new file mode 100644
index 00000000..5e6771c9
--- /dev/null
+++ b/DataBase/版本日志/SGGLDB_V2022-09-12修改明细.txt
@@ -0,0 +1,4 @@
+--ADD BY gaofei 2022-09-12
+1,调整质量会议页面
+2,增加培训对象字典,修改培训计划及培训记录中的培训对象
+--END
diff --git a/DataBase/菜单初始化脚本/0-0系统设置(Menu_SysSet).sql b/DataBase/菜单初始化脚本/0-0系统设置(Menu_SysSet).sql
index 51557a6f..0a128b9b 100644
--- a/DataBase/菜单初始化脚本/0-0系统设置(Menu_SysSet).sql
+++ b/DataBase/菜单初始化脚本/0-0系统设置(Menu_SysSet).sql
@@ -347,6 +347,19 @@ GO
VALUES('D14B9367-64DC-4FE4-A9B8-4DD7730622D9','164CDCED-E794-4177-AADE-23CA8E1AA1B8','',4)
GO
+ INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
+ VALUES('D2027C3D-ECE9-445E-8DBE-AF0DA10005FC','ѵ','BaseInfo/CQMSTrainObject.aspx',85,'A93BA810-3511-4BB2-9C10-9663351DF79F','Menu_SysSet',1,1,1)
+ GO
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('47CDCB0A-A025-47CC-9196-C6DCB5D329A8','D2027C3D-ECE9-445E-8DBE-AF0DA10005FC','',1)
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('E963573E-41E7-443F-AA8C-27B08573C96B','D2027C3D-ECE9-445E-8DBE-AF0DA10005FC','',2)
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('1D2D8B68-462D-4484-AB1A-98B1FAD0D8E3','D2027C3D-ECE9-445E-8DBE-AF0DA10005FC','ɾ',3)
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('AF40B71B-8179-4E09-BFAA-DFDAA5862942','D2027C3D-ECE9-445E-8DBE-AF0DA10005FC','',4)
+ GO
+
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
VALUES('E20647B6-315D-483B-8E5D-4810DBECE79E','Ͷ','',90,'A93BA810-3511-4BB2-9C10-9663351DF79F','Menu_SysSet',1,0,1)
GO
diff --git a/SGGL/BLL/BLL.csproj b/SGGL/BLL/BLL.csproj
index 5b6f8713..a41b2ef0 100644
--- a/SGGL/BLL/BLL.csproj
+++ b/SGGL/BLL/BLL.csproj
@@ -55,7 +55,7 @@
..\packages\EmitMapper.1.0.0\lib\EmitMapper.dll
- ..\FineUIPro\FineUIPro.dll
+ ..\FineUIPro\Reference BLL\FineUIPro.dll
..\packages\SharpZipLib.1.3.3\lib\net45\ICSharpCode.SharpZipLib.dll
@@ -169,6 +169,7 @@
+
diff --git a/SGGL/BLL/BaseInfo/CQMSTrainObjectService.cs b/SGGL/BLL/BaseInfo/CQMSTrainObjectService.cs
new file mode 100644
index 00000000..70a972d6
--- /dev/null
+++ b/SGGL/BLL/BaseInfo/CQMSTrainObjectService.cs
@@ -0,0 +1,117 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace BLL
+{
+ public static class CQMSTrainObjectService
+ {
+ public static Model.SGGLDB db = Funs.DB;
+
+ ///
+ /// 根据主键获取培训对象
+ ///
+ ///
+ ///
+ public static Model.Base_CQMSTrainObject GetTrainObjectById(string trainObjectId)
+ {
+ return Funs.DB.Base_CQMSTrainObject.FirstOrDefault(e => e.TrainObjectId == trainObjectId);
+ }
+
+ ///
+ /// 根据主键获取培训对象
+ ///
+ ///
+ ///
+ public static string GetTrainObjectNameById(string trainObjectId)
+ {
+ string name = string.Empty;
+ var o= Funs.DB.Base_CQMSTrainObject.FirstOrDefault(e => e.TrainObjectId == trainObjectId);
+ if (o != null)
+ {
+ name = o.TrainObjectName;
+ }
+ return name;
+ }
+
+ ///
+ /// 添加培训对象
+ ///
+ ///
+ public static void AddTrainObject(Model.Base_CQMSTrainObject trainObject)
+ {
+ Model.SGGLDB db = Funs.DB;
+ Model.Base_CQMSTrainObject newTrainObject = new Model.Base_CQMSTrainObject
+ {
+ TrainObjectId = trainObject.TrainObjectId,
+ TrainObjectCode = trainObject.TrainObjectCode,
+ TrainObjectName = trainObject.TrainObjectName,
+ Remark = trainObject.Remark,
+ };
+ db.Base_CQMSTrainObject.InsertOnSubmit(newTrainObject);
+ db.SubmitChanges();
+ }
+
+ ///
+ /// 修改培训对象
+ ///
+ ///
+ public static void UpdateTrainObject(Model.Base_CQMSTrainObject trainObject)
+ {
+ Model.SGGLDB db = Funs.DB;
+ Model.Base_CQMSTrainObject newTrainObject = db.Base_CQMSTrainObject.FirstOrDefault(e => e.TrainObjectId == trainObject.TrainObjectId);
+ if (newTrainObject != null)
+ {
+ newTrainObject.TrainObjectCode = trainObject.TrainObjectCode;
+ newTrainObject.TrainObjectName = trainObject.TrainObjectName;
+ newTrainObject.Remark = trainObject.Remark;
+ db.SubmitChanges();
+ }
+ }
+
+ ///
+ /// 根据主键删除培训对象
+ ///
+ ///
+ public static void DeleteTrainObjectById(string trainObjectId)
+ {
+ Model.SGGLDB db = Funs.DB;
+ Model.Base_CQMSTrainObject trainObject = db.Base_CQMSTrainObject.FirstOrDefault(e => e.TrainObjectId == trainObjectId);
+ if (trainObject != null)
+ {
+ db.Base_CQMSTrainObject.DeleteOnSubmit(trainObject);
+ db.SubmitChanges();
+ }
+ }
+
+ ///
+ /// 获取培训对象列表
+ ///
+ ///
+ public static List GetTrainObjectList()
+ {
+ return (from x in Funs.DB.Base_CQMSTrainObject orderby x.TrainObjectCode select x).ToList();
+ }
+
+ #region 培训对象下拉框
+ ///
+ /// 培训对象下拉框
+ ///
+ /// 下拉框名字
+ /// 是否显示请选择
+ public static void InitTrainObjectDropDownList(FineUIPro.DropDownList dropName, bool isShowPlease)
+ {
+ dropName.DataValueField = "TrainObjectId";
+ dropName.DataTextField = "TrainObjectName";
+ dropName.DataSource = GetTrainObjectList();
+ dropName.DataBind();
+ if (isShowPlease)
+ {
+ Funs.FineUIPleaseSelect(dropName);
+ }
+ }
+ #endregion
+ }
+}
diff --git a/SGGL/BLL/Common/Const.cs b/SGGL/BLL/Common/Const.cs
index ddc85a7a..d908756c 100644
--- a/SGGL/BLL/Common/Const.cs
+++ b/SGGL/BLL/Common/Const.cs
@@ -1015,6 +1015,11 @@
///
public const string CQMSTrainTypeMenuId = "164CDCED-E794-4177-AADE-23CA8E1AA1B8";
+ ///
+ /// 培训对象
+ ///
+ public const string CQMSTrainObjectMenuId = "D2027C3D-ECE9-445E-8DBE-AF0DA10005FC";
+
///
/// 奖励定义
///
diff --git a/SGGL/FineUIPro.Web/BaseInfo/CQMSTrainObject.aspx b/SGGL/FineUIPro.Web/BaseInfo/CQMSTrainObject.aspx
new file mode 100644
index 00000000..99261d20
--- /dev/null
+++ b/SGGL/FineUIPro.Web/BaseInfo/CQMSTrainObject.aspx
@@ -0,0 +1,147 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CQMSTrainObject.aspx.cs" Inherits="FineUIPro.Web.BaseInfo.CQMSTrainObject" %>
+
+
+
+
+
+ 培训对象
+
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/BaseInfo/CQMSTrainObject.aspx.cs b/SGGL/FineUIPro.Web/BaseInfo/CQMSTrainObject.aspx.cs
new file mode 100644
index 00000000..fb823a47
--- /dev/null
+++ b/SGGL/FineUIPro.Web/BaseInfo/CQMSTrainObject.aspx.cs
@@ -0,0 +1,278 @@
+using BLL;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web.UI.WebControls;
+
+namespace FineUIPro.Web.BaseInfo
+{
+ public partial class CQMSTrainObject : PageBase
+ {
+ #region 加载
+ ///
+ /// 加载页面
+ ///
+ ///
+ ///
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ ////权限按钮方法
+ this.GetButtonPower();
+ Funs.DropDownPageSize(this.ddlPageSize);
+ ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
+ // 绑定表格
+ BindGrid();
+ }
+ }
+
+ ///
+ /// 绑定数据
+ ///
+ private void BindGrid()
+ {
+ var q = from x in Funs.DB.Base_CQMSTrainObject orderby x.TrainObjectCode select x;
+ Grid1.RecordCount = q.Count();
+ // 2.获取当前分页数据
+ var table = GetPagedDataTable(Grid1.PageIndex, Grid1.PageSize);
+ Grid1.DataSource = table;
+ Grid1.DataBind();
+ }
+
+ ///
+ /// 过滤表头
+ ///
+ ///
+ ///
+ protected void Grid1_FilterChange(object sender, EventArgs e)
+ {
+ BindGrid();
+ }
+
+ ///
+ /// 分页
+ ///
+ ///
+ private List GetPagedDataTable(int pageIndex, int pageSize)
+ {
+ List source = (from x in Funs.DB.Base_CQMSTrainObject orderby x.TrainObjectCode select x).ToList();
+ List paged = new List();
+
+ int rowbegin = pageIndex * pageSize;
+ int rowend = (pageIndex + 1) * pageSize;
+ if (rowend > source.Count())
+ {
+ rowend = source.Count();
+ }
+
+ for (int i = rowbegin; i < rowend; i++)
+ {
+ paged.Add(source[i]);
+ }
+
+ return paged;
+ }
+
+ ///
+ /// 改变索引事件
+ ///
+ ///
+ ///
+ protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
+ {
+ Grid1.PageIndex = e.NewPageIndex;
+ BindGrid();
+ }
+ #endregion
+
+ #region 分页下拉选择
+ ///
+ /// 分页下拉选择
+ ///
+ ///
+ ///
+ protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue);
+ BindGrid();
+ }
+ #endregion
+
+ #region 删除
+ ///
+ /// 删除
+ ///
+ ///
+ ///
+ protected void btnDelete_Click(object sender, EventArgs e)
+ {
+ var getV = BLL.CQMSTrainObjectService.GetTrainObjectById(hfFormID.Text);
+ if (getV != null)
+ {
+ BLL.LogService.AddSys_Log(this.CurrUser, getV.TrainObjectCode, getV.TrainObjectId, BLL.Const.CQMSTrainObjectMenuId, BLL.Const.BtnDelete);
+ BLL.CQMSTrainObjectService.DeleteTrainObjectById(getV.TrainObjectId);
+
+ // 重新绑定表格,并模拟点击[新增按钮]
+ BindGrid();
+ PageContext.RegisterStartupScript("onNewButtonClick();");
+ }
+ }
+ ///
+ /// 右键删除事件
+ ///
+ ///
+ ///
+ protected void btnMenuDelete_Click(object sender, EventArgs e)
+ {
+ this.DeleteData();
+ }
+
+ ///
+ /// 删除方法
+ ///
+ private void DeleteData()
+ {
+ if (Grid1.SelectedRowIndexArray.Length > 0)
+ {
+ foreach (int rowIndex in Grid1.SelectedRowIndexArray)
+ {
+ string rowID = Grid1.DataKeys[rowIndex][0].ToString();
+
+ var getV = BLL.CQMSTrainObjectService.GetTrainObjectById(hfFormID.Text);
+ if (getV != null)
+ {
+ BLL.LogService.AddSys_Log(this.CurrUser, getV.TrainObjectCode, getV.TrainObjectId, BLL.Const.CQMSTrainObjectMenuId, BLL.Const.BtnDelete);
+ BLL.CQMSTrainObjectService.DeleteTrainObjectById(getV.TrainObjectId);
+ }
+ }
+ BindGrid();
+ PageContext.RegisterStartupScript("onNewButtonClick();");
+ }
+ }
+ #endregion
+
+ #region 编辑
+ ///
+ /// 右键编辑事件
+ ///
+ ///
+ ///
+ protected void btnMenuEdit_Click(object sender, EventArgs e)
+ {
+ this.EditData();
+ }
+
+ ///
+ /// 编辑数据方法
+ ///
+ private void EditData()
+ {
+ if (Grid1.SelectedRowIndexArray.Length == 0)
+ {
+ Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning);
+ return;
+ }
+ string Id = Grid1.SelectedRowID;
+ var TrainObject = BLL.CQMSTrainObjectService.GetTrainObjectById(Id);
+ if (TrainObject != null)
+ {
+ this.txtTrainObjectCode.Text = TrainObject.TrainObjectCode;
+ this.txtTrainObjectName.Text = TrainObject.TrainObjectName;
+ this.txtRemark.Text = TrainObject.Remark;
+ hfFormID.Text = Id;
+ this.btnDelete.Enabled = true;
+ }
+ }
+ #endregion
+
+ #region 保存
+ ///
+ /// 保存按钮
+ ///
+ ///
+ ///
+ protected void btnSave_Click(object sender, EventArgs e)
+ {
+ string strRowID = hfFormID.Text;
+ Model.Base_CQMSTrainObject TrainObject = new Model.Base_CQMSTrainObject
+ {
+ TrainObjectCode = this.txtTrainObjectCode.Text.Trim(),
+ TrainObjectName = this.txtTrainObjectName.Text.Trim(),
+ Remark = txtRemark.Text.Trim()
+ };
+ if (string.IsNullOrEmpty(strRowID))
+ {
+ TrainObject.TrainObjectId = SQLHelper.GetNewID(typeof(Model.Base_CQMSTrainObject));
+ BLL.CQMSTrainObjectService.AddTrainObject(TrainObject);
+ BLL.LogService.AddSys_Log(this.CurrUser, TrainObject.TrainObjectCode, TrainObject.TrainObjectId, BLL.Const.CQMSTrainObjectMenuId, BLL.Const.BtnAdd);
+ }
+ else
+ {
+ TrainObject.TrainObjectId = strRowID;
+ BLL.CQMSTrainObjectService.UpdateTrainObject(TrainObject);
+ BLL.LogService.AddSys_Log(this.CurrUser, TrainObject.TrainObjectCode, TrainObject.TrainObjectId, BLL.Const.CQMSTrainObjectMenuId, BLL.Const.BtnModify);
+ }
+
+ this.SimpleForm1.Reset();
+ // 重新绑定表格,并点击当前编辑或者新增的行
+ BindGrid();
+ PageContext.RegisterStartupScript(String.Format("F('{0}').selectRow('{1}');", Grid1.ClientID, TrainObject.TrainObjectId));
+ }
+ #endregion
+
+ #region 验证对象名称、编号是否存在
+ ///
+ /// 验证对象名称、编号是否存在
+ ///
+ ///
+ ///
+ protected void TextBox_TextChanged(object sender, EventArgs e)
+ {
+ var q = Funs.DB.Base_CQMSTrainObject.FirstOrDefault(x => x.TrainObjectCode == this.txtTrainObjectCode.Text.Trim() && (x.TrainObjectId != hfFormID.Text || (hfFormID.Text == null && x.TrainObjectId != null)));
+ if (q != null)
+ {
+ ShowNotify("输入的对象编号已存在!", MessageBoxIcon.Warning);
+ }
+
+ var q2 = Funs.DB.Base_CQMSTrainObject.FirstOrDefault(x => x.TrainObjectName == this.txtTrainObjectName.Text.Trim() && (x.TrainObjectId != hfFormID.Text || (hfFormID.Text == null && x.TrainObjectId != null)));
+ if (q2 != null)
+ {
+ ShowNotify("输入的对象名称已存在!", MessageBoxIcon.Warning);
+ }
+ }
+ #endregion
+
+ #region 获取按钮权限
+ ///
+ /// 获取按钮权限
+ ///
+ ///
+ ///
+ private void GetButtonPower()
+ {
+ var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.PersonId, BLL.Const.CQMSTrainObjectMenuId);
+ if (buttonList.Count() > 0)
+ {
+ if (buttonList.Contains(BLL.Const.BtnAdd))
+ {
+ this.btnNew.Hidden = false;
+ }
+ if (buttonList.Contains(BLL.Const.BtnModify))
+ {
+ this.btnMenuEdit.Hidden = false;
+ }
+ if (buttonList.Contains(BLL.Const.BtnDelete))
+ {
+ this.btnDelete.Hidden = false;
+ this.btnMenuDelete.Hidden = false;
+ }
+ if (buttonList.Contains(BLL.Const.BtnSave))
+ {
+ this.btnSave.Hidden = false;
+ }
+ }
+ }
+ #endregion
+ }
+}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/BaseInfo/CQMSTrainObject.aspx.designer.cs b/SGGL/FineUIPro.Web/BaseInfo/CQMSTrainObject.aspx.designer.cs
new file mode 100644
index 00000000..c34e9ff0
--- /dev/null
+++ b/SGGL/FineUIPro.Web/BaseInfo/CQMSTrainObject.aspx.designer.cs
@@ -0,0 +1,195 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.BaseInfo {
+
+
+ public partial class CQMSTrainObject {
+
+ ///
+ /// form1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlForm form1;
+
+ ///
+ /// PageManager1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.PageManager PageManager1;
+
+ ///
+ /// Panel1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Panel Panel1;
+
+ ///
+ /// Grid1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Grid Grid1;
+
+ ///
+ /// ToolbarSeparator1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
+
+ ///
+ /// ToolbarText1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarText ToolbarText1;
+
+ ///
+ /// ddlPageSize 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList ddlPageSize;
+
+ ///
+ /// SimpleForm1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.SimpleForm SimpleForm1;
+
+ ///
+ /// hfFormID 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.HiddenField hfFormID;
+
+ ///
+ /// txtTrainObjectCode 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtTrainObjectCode;
+
+ ///
+ /// txtTrainObjectName 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtTrainObjectName;
+
+ ///
+ /// txtRemark 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextArea txtRemark;
+
+ ///
+ /// Toolbar1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Toolbar Toolbar1;
+
+ ///
+ /// btnNew 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnNew;
+
+ ///
+ /// btnDelete 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnDelete;
+
+ ///
+ /// ToolbarFill1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarFill ToolbarFill1;
+
+ ///
+ /// btnSave 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnSave;
+
+ ///
+ /// Menu1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Menu Menu1;
+
+ ///
+ /// btnMenuEdit 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.MenuButton btnMenuEdit;
+
+ ///
+ /// btnMenuDelete 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.MenuButton btnMenuDelete;
+ }
+}
diff --git a/SGGL/FineUIPro.Web/CQMS/Meeting/MonthMeetingEdit.aspx b/SGGL/FineUIPro.Web/CQMS/Meeting/MonthMeetingEdit.aspx
index 472b7368..12a77241 100644
--- a/SGGL/FineUIPro.Web/CQMS/Meeting/MonthMeetingEdit.aspx
+++ b/SGGL/FineUIPro.Web/CQMS/Meeting/MonthMeetingEdit.aspx
@@ -39,20 +39,20 @@
-
-
-
-
-
-
+
+
+
+
+
@@ -65,14 +65,7 @@
-
-
-
-
-
-
-
+
diff --git a/SGGL/FineUIPro.Web/CQMS/Meeting/MonthMeetingEdit.aspx.designer.cs b/SGGL/FineUIPro.Web/CQMS/Meeting/MonthMeetingEdit.aspx.designer.cs
index f0bc19e8..99d52ac0 100644
--- a/SGGL/FineUIPro.Web/CQMS/Meeting/MonthMeetingEdit.aspx.designer.cs
+++ b/SGGL/FineUIPro.Web/CQMS/Meeting/MonthMeetingEdit.aspx.designer.cs
@@ -84,6 +84,15 @@ namespace FineUIPro.Web.CQMS.Meeting {
///
protected global::FineUIPro.DatePicker txtMeetingDate;
+ ///
+ /// txtMeetingTheme 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtMeetingTheme;
+
///
/// txtPlace 控件。
///
@@ -111,15 +120,6 @@ namespace FineUIPro.Web.CQMS.Meeting {
///
protected global::FineUIPro.DropDownList drpAttentPerson;
- ///
- /// txtMeetingTheme 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.TextBox txtMeetingTheme;
-
///
/// txtMeetingContents 控件。
///
diff --git a/SGGL/FineUIPro.Web/CQMS/Meeting/MonthMeetingView.aspx b/SGGL/FineUIPro.Web/CQMS/Meeting/MonthMeetingView.aspx
index f0b59dbc..bbe60907 100644
--- a/SGGL/FineUIPro.Web/CQMS/Meeting/MonthMeetingView.aspx
+++ b/SGGL/FineUIPro.Web/CQMS/Meeting/MonthMeetingView.aspx
@@ -39,20 +39,19 @@
-
-
-
-
-
-
+
+
+
+
@@ -65,14 +64,7 @@
-
-
-
-
-
-
-
+
diff --git a/SGGL/FineUIPro.Web/CQMS/Meeting/MonthMeetingView.aspx.designer.cs b/SGGL/FineUIPro.Web/CQMS/Meeting/MonthMeetingView.aspx.designer.cs
index 37a83e0d..9c3eca58 100644
--- a/SGGL/FineUIPro.Web/CQMS/Meeting/MonthMeetingView.aspx.designer.cs
+++ b/SGGL/FineUIPro.Web/CQMS/Meeting/MonthMeetingView.aspx.designer.cs
@@ -84,6 +84,15 @@ namespace FineUIPro.Web.CQMS.Meeting {
///
protected global::FineUIPro.DatePicker txtMeetingDate;
+ ///
+ /// txtMeetingTheme 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtMeetingTheme;
+
///
/// txtPlace 控件。
///
@@ -111,15 +120,6 @@ namespace FineUIPro.Web.CQMS.Meeting {
///
protected global::FineUIPro.DropDownList drpAttentPerson;
- ///
- /// txtMeetingTheme 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.TextBox txtMeetingTheme;
-
///
/// txtMeetingContents 控件。
///
diff --git a/SGGL/FineUIPro.Web/CQMS/Meeting/SpecialMeetingEdit.aspx b/SGGL/FineUIPro.Web/CQMS/Meeting/SpecialMeetingEdit.aspx
index 8792e9a4..b49ae04d 100644
--- a/SGGL/FineUIPro.Web/CQMS/Meeting/SpecialMeetingEdit.aspx
+++ b/SGGL/FineUIPro.Web/CQMS/Meeting/SpecialMeetingEdit.aspx
@@ -39,20 +39,19 @@
-
-
-
-
-
-
+
+
+
+
@@ -65,14 +64,7 @@
-
-
-
-
-
-
-
+
diff --git a/SGGL/FineUIPro.Web/CQMS/Meeting/SpecialMeetingEdit.aspx.designer.cs b/SGGL/FineUIPro.Web/CQMS/Meeting/SpecialMeetingEdit.aspx.designer.cs
index 941e735b..6f5c76f7 100644
--- a/SGGL/FineUIPro.Web/CQMS/Meeting/SpecialMeetingEdit.aspx.designer.cs
+++ b/SGGL/FineUIPro.Web/CQMS/Meeting/SpecialMeetingEdit.aspx.designer.cs
@@ -84,6 +84,15 @@ namespace FineUIPro.Web.CQMS.Meeting {
///
protected global::FineUIPro.DatePicker txtMeetingDate;
+ ///
+ /// txtMeetingTheme 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtMeetingTheme;
+
///
/// txtPlace 控件。
///
@@ -111,15 +120,6 @@ namespace FineUIPro.Web.CQMS.Meeting {
///
protected global::FineUIPro.DropDownList drpAttentPerson;
- ///
- /// txtMeetingTheme 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.TextBox txtMeetingTheme;
-
///
/// txtMeetingContents 控件。
///
diff --git a/SGGL/FineUIPro.Web/CQMS/Meeting/SpecialMeetingView.aspx b/SGGL/FineUIPro.Web/CQMS/Meeting/SpecialMeetingView.aspx
index 6be9413c..17b97cd5 100644
--- a/SGGL/FineUIPro.Web/CQMS/Meeting/SpecialMeetingView.aspx
+++ b/SGGL/FineUIPro.Web/CQMS/Meeting/SpecialMeetingView.aspx
@@ -39,20 +39,19 @@
-
-
-
-
-
-
+
+
+
+
@@ -65,14 +64,7 @@
-
-
-
-
-
-
-
+
diff --git a/SGGL/FineUIPro.Web/CQMS/Meeting/SpecialMeetingView.aspx.designer.cs b/SGGL/FineUIPro.Web/CQMS/Meeting/SpecialMeetingView.aspx.designer.cs
index 6e09a03b..2786c9b9 100644
--- a/SGGL/FineUIPro.Web/CQMS/Meeting/SpecialMeetingView.aspx.designer.cs
+++ b/SGGL/FineUIPro.Web/CQMS/Meeting/SpecialMeetingView.aspx.designer.cs
@@ -84,6 +84,15 @@ namespace FineUIPro.Web.CQMS.Meeting {
///
protected global::FineUIPro.DatePicker txtMeetingDate;
+ ///
+ /// txtMeetingTheme 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtMeetingTheme;
+
///
/// txtPlace 控件。
///
@@ -111,15 +120,6 @@ namespace FineUIPro.Web.CQMS.Meeting {
///
protected global::FineUIPro.DropDownList drpAttentPerson;
- ///
- /// txtMeetingTheme 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.TextBox txtMeetingTheme;
-
///
/// txtMeetingContents 控件。
///
diff --git a/SGGL/FineUIPro.Web/CQMS/Train/TrainPlan.aspx.cs b/SGGL/FineUIPro.Web/CQMS/Train/TrainPlan.aspx.cs
index 031aaa22..762018fa 100644
--- a/SGGL/FineUIPro.Web/CQMS/Train/TrainPlan.aspx.cs
+++ b/SGGL/FineUIPro.Web/CQMS/Train/TrainPlan.aspx.cs
@@ -197,7 +197,7 @@ namespace FineUIPro.Web.CQMS.Train
string[] strs = PlanTrainPersons.ToString().Split(',');
foreach (var item in strs)
{
- names += BLL.Person_PersonsService.GetPersonsNameById(item) + ",";
+ names += BLL.CQMSTrainObjectService.GetTrainObjectNameById(item) + ",";
}
if (!string.IsNullOrEmpty(names))
{
diff --git a/SGGL/FineUIPro.Web/CQMS/Train/TrainPlanEdit.aspx.cs b/SGGL/FineUIPro.Web/CQMS/Train/TrainPlanEdit.aspx.cs
index 7f91fa2c..8fd99a31 100644
--- a/SGGL/FineUIPro.Web/CQMS/Train/TrainPlanEdit.aspx.cs
+++ b/SGGL/FineUIPro.Web/CQMS/Train/TrainPlanEdit.aspx.cs
@@ -47,7 +47,7 @@ namespace FineUIPro.Web.CQMS.Train
if (!IsPostBack)
{
TrainPlanId = Request.Params["TrainPlanId"];
- BLL.SitePerson_PersonService.InitProjectUserListByProjectUnitTypeDropDownList(this.drpPlanTrainPersons, this.CurrUser.LoginProjectId, Const.ProjectUnitType_1 + "," + Const.ProjectUnitType_2, true);
+ BLL.CQMSTrainObjectService.InitTrainObjectDropDownList(this.drpPlanTrainPersons, true);
BLL.CQMSTrainTypeService.InitTrainTypeDropDownList(this.drpTrainType, true);
if (!string.IsNullOrEmpty(TrainPlanId))
{
diff --git a/SGGL/FineUIPro.Web/CQMS/Train/TrainPlanView.aspx.cs b/SGGL/FineUIPro.Web/CQMS/Train/TrainPlanView.aspx.cs
index a749b795..97528bdc 100644
--- a/SGGL/FineUIPro.Web/CQMS/Train/TrainPlanView.aspx.cs
+++ b/SGGL/FineUIPro.Web/CQMS/Train/TrainPlanView.aspx.cs
@@ -47,7 +47,7 @@ namespace FineUIPro.Web.CQMS.Train
if (!IsPostBack)
{
TrainPlanId = Request.Params["TrainPlanId"];
- BLL.SitePerson_PersonService.InitProjectUserListByProjectUnitTypeDropDownList(this.drpPlanTrainPersons, this.CurrUser.LoginProjectId, Const.ProjectUnitType_1 + "," + Const.ProjectUnitType_2, true);
+ BLL.CQMSTrainObjectService.InitTrainObjectDropDownList(this.drpPlanTrainPersons, true);
BLL.CQMSTrainTypeService.InitTrainTypeDropDownList(this.drpTrainType, true);
if (!string.IsNullOrEmpty(TrainPlanId))
{
diff --git a/SGGL/FineUIPro.Web/CQMS/Train/TrainRecord.aspx.cs b/SGGL/FineUIPro.Web/CQMS/Train/TrainRecord.aspx.cs
index a1e9b7ad..52f7b3d5 100644
--- a/SGGL/FineUIPro.Web/CQMS/Train/TrainRecord.aspx.cs
+++ b/SGGL/FineUIPro.Web/CQMS/Train/TrainRecord.aspx.cs
@@ -192,7 +192,7 @@ namespace FineUIPro.Web.CQMS.Train
string[] strs = PlanTrainPersons.ToString().Split(',');
foreach (var item in strs)
{
- names += BLL.Person_PersonsService.GetPersonsNameById(item) + ",";
+ names += BLL.CQMSTrainObjectService.GetTrainObjectNameById(item) + ",";
}
if (!string.IsNullOrEmpty(names))
{
diff --git a/SGGL/FineUIPro.Web/CQMS/Train/TrainRecordEdit.aspx.cs b/SGGL/FineUIPro.Web/CQMS/Train/TrainRecordEdit.aspx.cs
index fa4ef4b2..06330d39 100644
--- a/SGGL/FineUIPro.Web/CQMS/Train/TrainRecordEdit.aspx.cs
+++ b/SGGL/FineUIPro.Web/CQMS/Train/TrainRecordEdit.aspx.cs
@@ -47,7 +47,7 @@ namespace FineUIPro.Web.CQMS.Train
if (!IsPostBack)
{
TrainPlanId = Request.Params["TrainPlanId"];
- BLL.SitePerson_PersonService.InitProjectUserListByProjectUnitTypeDropDownList(this.drpPlanTrainPersons, this.CurrUser.LoginProjectId, Const.ProjectUnitType_1 + "," + Const.ProjectUnitType_2, true);
+ BLL.CQMSTrainObjectService.InitTrainObjectDropDownList(this.drpPlanTrainPersons, true);
BLL.SitePerson_PersonService.InitProjectUserListByProjectUnitTypeDropDownList(this.drpRealTrainPersons, this.CurrUser.LoginProjectId, Const.ProjectUnitType_1 + "," + Const.ProjectUnitType_2, true);
BLL.SitePerson_PersonService.InitSitePersonByUnitTypeRoletIdsDropDownList(this.drpHostMan,this.CurrUser.LoginProjectId, Const.ProjectUnitType_1, Const.QAManager + "," + Const.CQEngineer, true);
BLL.CQMSTrainTypeService.InitTrainTypeDropDownList(this.drpTrainType, true);
diff --git a/SGGL/FineUIPro.Web/CQMS/Train/TrainRecordView.aspx.cs b/SGGL/FineUIPro.Web/CQMS/Train/TrainRecordView.aspx.cs
index f280a156..c67a75b7 100644
--- a/SGGL/FineUIPro.Web/CQMS/Train/TrainRecordView.aspx.cs
+++ b/SGGL/FineUIPro.Web/CQMS/Train/TrainRecordView.aspx.cs
@@ -47,7 +47,7 @@ namespace FineUIPro.Web.CQMS.Train
if (!IsPostBack)
{
TrainPlanId = Request.Params["TrainPlanId"];
- BLL.SitePerson_PersonService.InitProjectUserListByProjectUnitTypeDropDownList(this.drpPlanTrainPersons, this.CurrUser.LoginProjectId, Const.ProjectUnitType_1 + "," + Const.ProjectUnitType_2, true);
+ BLL.CQMSTrainObjectService.InitTrainObjectDropDownList(this.drpPlanTrainPersons, true);
BLL.SitePerson_PersonService.InitProjectUserListByProjectUnitTypeDropDownList(this.drpRealTrainPersons, this.CurrUser.LoginProjectId, Const.ProjectUnitType_1 + "," + Const.ProjectUnitType_2, true);
BLL.SitePerson_PersonService.InitSitePersonByUnitTypeRoletIdsDropDownList(this.drpHostMan, this.CurrUser.LoginProjectId, Const.ProjectUnitType_1, Const.QAManager + "," + Const.CQEngineer, true);
BLL.CQMSTrainTypeService.InitTrainTypeDropDownList(this.drpTrainType, true);
diff --git a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj
index db0cf18e..078f9428 100644
--- a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj
+++ b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj
@@ -210,6 +210,7 @@
+
@@ -5516,6 +5517,13 @@
CostType.aspx
+
+ CQMSTrainObject.aspx
+ ASPXCodeBehind
+
+
+ CQMSTrainObject.aspx
+
CQMSTrainType.aspx
ASPXCodeBehind
diff --git a/SGGL/Model/Model.cs b/SGGL/Model/Model.cs
index cd15e5cd..0fb4cdfc 100644
--- a/SGGL/Model/Model.cs
+++ b/SGGL/Model/Model.cs
@@ -86,6 +86,9 @@ namespace Model
partial void InsertBase_CostType(Base_CostType instance);
partial void UpdateBase_CostType(Base_CostType instance);
partial void DeleteBase_CostType(Base_CostType instance);
+ partial void InsertBase_CQMSTrainObject(Base_CQMSTrainObject instance);
+ partial void UpdateBase_CQMSTrainObject(Base_CQMSTrainObject instance);
+ partial void DeleteBase_CQMSTrainObject(Base_CQMSTrainObject instance);
partial void InsertBase_CQMSTrainType(Base_CQMSTrainType instance);
partial void UpdateBase_CQMSTrainType(Base_CQMSTrainType instance);
partial void DeleteBase_CQMSTrainType(Base_CQMSTrainType instance);
@@ -1587,6 +1590,14 @@ namespace Model
}
}
+ public System.Data.Linq.Table Base_CQMSTrainObject
+ {
+ get
+ {
+ return this.GetTable();
+ }
+ }
+
public System.Data.Linq.Table Base_CQMSTrainType
{
get
@@ -12980,6 +12991,140 @@ namespace Model
}
}
+ [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Base_CQMSTrainObject")]
+ public partial class Base_CQMSTrainObject : INotifyPropertyChanging, INotifyPropertyChanged
+ {
+
+ private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
+
+ private string _TrainObjectId;
+
+ private string _TrainObjectCode;
+
+ private string _TrainObjectName;
+
+ private string _Remark;
+
+ #region 可扩展性方法定义
+ partial void OnLoaded();
+ partial void OnValidate(System.Data.Linq.ChangeAction action);
+ partial void OnCreated();
+ partial void OnTrainObjectIdChanging(string value);
+ partial void OnTrainObjectIdChanged();
+ partial void OnTrainObjectCodeChanging(string value);
+ partial void OnTrainObjectCodeChanged();
+ partial void OnTrainObjectNameChanging(string value);
+ partial void OnTrainObjectNameChanged();
+ partial void OnRemarkChanging(string value);
+ partial void OnRemarkChanged();
+ #endregion
+
+ public Base_CQMSTrainObject()
+ {
+ OnCreated();
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TrainObjectId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
+ public string TrainObjectId
+ {
+ get
+ {
+ return this._TrainObjectId;
+ }
+ set
+ {
+ if ((this._TrainObjectId != value))
+ {
+ this.OnTrainObjectIdChanging(value);
+ this.SendPropertyChanging();
+ this._TrainObjectId = value;
+ this.SendPropertyChanged("TrainObjectId");
+ this.OnTrainObjectIdChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TrainObjectCode", DbType="NVarChar(50)")]
+ public string TrainObjectCode
+ {
+ get
+ {
+ return this._TrainObjectCode;
+ }
+ set
+ {
+ if ((this._TrainObjectCode != value))
+ {
+ this.OnTrainObjectCodeChanging(value);
+ this.SendPropertyChanging();
+ this._TrainObjectCode = value;
+ this.SendPropertyChanged("TrainObjectCode");
+ this.OnTrainObjectCodeChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TrainObjectName", DbType="NVarChar(50)")]
+ public string TrainObjectName
+ {
+ get
+ {
+ return this._TrainObjectName;
+ }
+ set
+ {
+ if ((this._TrainObjectName != value))
+ {
+ this.OnTrainObjectNameChanging(value);
+ this.SendPropertyChanging();
+ this._TrainObjectName = value;
+ this.SendPropertyChanged("TrainObjectName");
+ this.OnTrainObjectNameChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Remark", DbType="NVarChar(200)")]
+ 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();
+ }
+ }
+ }
+
+ 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.Base_CQMSTrainType")]
public partial class Base_CQMSTrainType : INotifyPropertyChanging, INotifyPropertyChanged
{