From 02f8f10a17393cfdf24c840b7343c4ef60195173 Mon Sep 17 00:00:00 2001 From: gaofei1985 <181547018@qq.com> Date: Fri, 22 Dec 2023 14:36:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DataBase/ConstInitData.sql | 3 + DataBase/版本日志/SGGLDB_V2023-12-22.sql | 51 ++++ .../菜单初始化脚本/1-12帮助(Menu_Help).sql | 19 ++ SGGL/BLL/BLL.csproj | 1 + SGGL/BLL/Common/Const.cs | 9 + SGGL/BLL/Doc/DocService.cs | 74 ++++++ SGGL/FineUIPro.Web/FineUIPro.Web.csproj | 24 ++ SGGL/FineUIPro.Web/Personal/PersonalInfo.aspx | 2 +- SGGL/FineUIPro.Web/SysManage/Doc.aspx | 103 ++++++++ SGGL/FineUIPro.Web/SysManage/Doc.aspx.cs | 225 ++++++++++++++++++ .../SysManage/Doc.aspx.designer.cs | 168 +++++++++++++ SGGL/FineUIPro.Web/SysManage/DocEdit.aspx | 61 +++++ SGGL/FineUIPro.Web/SysManage/DocEdit.aspx.cs | 134 +++++++++++ .../SysManage/DocEdit.aspx.designer.cs | 105 ++++++++ SGGL/FineUIPro.Web/SysManage/DocView.aspx | 58 +++++ SGGL/FineUIPro.Web/SysManage/DocView.aspx.cs | 82 +++++++ .../SysManage/DocView.aspx.designer.cs | 96 ++++++++ SGGL/FineUIPro.Web/common/Menu_HJGL.xml | 4 +- SGGL/FineUIPro.Web/common/Menu_Help.xml | 5 + SGGL/FineUIPro.Web/common/Menu_PHTGL.xml | 2 +- SGGL/FineUIPro.Web/indexProject.aspx | 4 + SGGL/FineUIPro.Web/indexProject.aspx.cs | 11 +- .../indexProject.aspx.designer.cs | 105 ++++---- SGGL/Model/Model.cs | 169 +++++++++++++ 24 files changed, 1461 insertions(+), 54 deletions(-) create mode 100644 DataBase/版本日志/SGGLDB_V2023-12-22.sql create mode 100644 DataBase/菜单初始化脚本/1-12帮助(Menu_Help).sql create mode 100644 SGGL/BLL/Doc/DocService.cs create mode 100644 SGGL/FineUIPro.Web/SysManage/Doc.aspx create mode 100644 SGGL/FineUIPro.Web/SysManage/Doc.aspx.cs create mode 100644 SGGL/FineUIPro.Web/SysManage/Doc.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/SysManage/DocEdit.aspx create mode 100644 SGGL/FineUIPro.Web/SysManage/DocEdit.aspx.cs create mode 100644 SGGL/FineUIPro.Web/SysManage/DocEdit.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/SysManage/DocView.aspx create mode 100644 SGGL/FineUIPro.Web/SysManage/DocView.aspx.cs create mode 100644 SGGL/FineUIPro.Web/SysManage/DocView.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/common/Menu_Help.xml diff --git a/DataBase/ConstInitData.sql b/DataBase/ConstInitData.sql index db02c084..53aecad5 100644 --- a/DataBase/ConstInitData.sql +++ b/DataBase/ConstInitData.sql @@ -568,6 +568,9 @@ GO INSERT INTO Sys_Const (ID,ConstValue,ConstText,SortIndex,GroupId) VALUES('69B856E6-E385-4771-9341-23E7416C46F1','Menu_PDigData','',9,'MenuType_P') GO +INSERT INTO Sys_Const (ID,ConstValue,ConstText,SortIndex,GroupId) +VALUES('C7590B86-EE29-4E17-9B10-90A7E45652B0','Menu_Help','',11,'MenuType_P') +GO --Ŀ INSERT INTO dbo.Sys_Const(ID, ConstValue, ConstText, SortIndex, GroupId) diff --git a/DataBase/版本日志/SGGLDB_V2023-12-22.sql b/DataBase/版本日志/SGGLDB_V2023-12-22.sql new file mode 100644 index 00000000..9acbca08 --- /dev/null +++ b/DataBase/版本日志/SGGLDB_V2023-12-22.sql @@ -0,0 +1,51 @@ + +CREATE TABLE [dbo].[Doc_Doc]( + [DocId] [nvarchar](50) NOT NULL, + [DocName] [nvarchar](100) NULL, + [CompileMan] [nvarchar](50) NULL, + [CompileDate] [datetime] NULL, + [Remark] [nvarchar](200) NULL, + CONSTRAINT [PK_Doc_Doc] PRIMARY KEY CLUSTERED +( + [DocId] 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'Doc_Doc', @level2type=N'COLUMN',@level2name=N'DocId' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ļ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Doc_Doc', @level2type=N'COLUMN',@level2name=N'DocName' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Doc_Doc', @level2type=N'COLUMN',@level2name=N'CompileMan' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Doc_Doc', @level2type=N'COLUMN',@level2name=N'CompileDate' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ע' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Doc_Doc', @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'Doc_Doc' +GO + + +insert into Sys_Const values +('C7590B86-EE29-4E17-9B10-90A7E45652B0','Menu_Help','',11,'MenuType_P',null) +GO + +-- +INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) +VALUES('A2EE1158-9562-4956-8235-47A34384A080','','SysManage/Doc.aspx',10,'0','Menu_Help',0,1,1) +GO + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('6D849D99-4AC5-4591-8F6A-FB860E0A7075','A2EE1158-9562-4956-8235-47A34384A080','',1) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('8BD61796-F19F-4313-BC6E-E69E21920757','A2EE1158-9562-4956-8235-47A34384A080','޸',2) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('BEDE66FD-3ACC-4519-9434-C72E793532FA','A2EE1158-9562-4956-8235-47A34384A080','ɾ',3) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('B3A12B93-BB43-4045-8D8B-F9EF683FF824','A2EE1158-9562-4956-8235-47A34384A080','',4) + GO diff --git a/DataBase/菜单初始化脚本/1-12帮助(Menu_Help).sql b/DataBase/菜单初始化脚本/1-12帮助(Menu_Help).sql new file mode 100644 index 00000000..20f15fd1 --- /dev/null +++ b/DataBase/菜单初始化脚本/1-12帮助(Menu_Help).sql @@ -0,0 +1,19 @@ +--delete from Sys_ButtonToMenu where MenuId in (select MenuId from Sys_Menu where MenuType='Menu_Help') +--go +--delete from Sys_Menu where MenuType='Menu_Help' +--go + +-- +INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) +VALUES('A2EE1158-9562-4956-8235-47A34384A080','','SysManage/Doc.aspx',10,'0','Menu_Help',0,1,1) +GO + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('6D849D99-4AC5-4591-8F6A-FB860E0A7075','A2EE1158-9562-4956-8235-47A34384A080','',1) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('8BD61796-F19F-4313-BC6E-E69E21920757','A2EE1158-9562-4956-8235-47A34384A080','޸',2) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('BEDE66FD-3ACC-4519-9434-C72E793532FA','A2EE1158-9562-4956-8235-47A34384A080','ɾ',3) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('B3A12B93-BB43-4045-8D8B-F9EF683FF824','A2EE1158-9562-4956-8235-47A34384A080','',4) + GO + diff --git a/SGGL/BLL/BLL.csproj b/SGGL/BLL/BLL.csproj index 0ee1899e..e65dc0c9 100644 --- a/SGGL/BLL/BLL.csproj +++ b/SGGL/BLL/BLL.csproj @@ -349,6 +349,7 @@ + diff --git a/SGGL/BLL/Common/Const.cs b/SGGL/BLL/Common/Const.cs index 6e6f23c2..2b19d5af 100644 --- a/SGGL/BLL/Common/Const.cs +++ b/SGGL/BLL/Common/Const.cs @@ -712,6 +712,10 @@ namespace BLL /// public const string Menu_Personal = "Menu_Personal"; /// + /// 帮助菜单 + /// + public const string Menu_Help = "Menu_Help"; + /// /// 项目清单 /// public const string Menu_Project = "Menu_Project"; @@ -1468,6 +1472,11 @@ namespace BLL /// public const string PersonalInfoMenuId = "42368A1C-EE84-423D-9003-B0CAD0FF169D"; + /// + /// 帮助 + /// + public const string HelpMenuId = "A2EE1158-9562-4956-8235-47A34384A080"; + /// /// 操作日志 /// diff --git a/SGGL/BLL/Doc/DocService.cs b/SGGL/BLL/Doc/DocService.cs new file mode 100644 index 00000000..b05b5ba7 --- /dev/null +++ b/SGGL/BLL/Doc/DocService.cs @@ -0,0 +1,74 @@ +using System.Collections.Generic; +using System.Linq; + +namespace BLL +{ + /// + /// 帮助文档 + /// + public static class DocService + { + public static Model.SGGLDB db = Funs.DB; + + /// + /// 根据主键获取帮助文档 + /// + /// + /// + public static Model.Doc_Doc GetDocById(string DocId) + { + return Funs.DB.Doc_Doc.FirstOrDefault(e => e.DocId == DocId); + } + + /// + /// 添加帮助文档 + /// + /// + public static void AddDoc(Model.Doc_Doc Doc) + { + Model.SGGLDB db = Funs.DB; + Model.Doc_Doc newDoc = new Model.Doc_Doc + { + DocId = Doc.DocId, + DocName = Doc.DocName, + CompileMan = Doc.CompileMan, + CompileDate = Doc.CompileDate, + Remark = Doc.Remark + }; + db.Doc_Doc.InsertOnSubmit(newDoc); + db.SubmitChanges(); + } + + /// + /// 修改帮助文档 + /// + /// + public static void UpdateDoc(Model.Doc_Doc Doc) + { + Model.SGGLDB db = Funs.DB; + Model.Doc_Doc newDoc = db.Doc_Doc.FirstOrDefault(e => e.DocId == Doc.DocId); + if (newDoc != null) + { + newDoc.DocName = Doc.DocName; + newDoc.Remark = Doc.Remark; + db.SubmitChanges(); + } + } + + /// + /// 根据主键删除帮助文档 + /// + /// + public static void DeleteDocById(string DocId) + { + Model.SGGLDB db = Funs.DB; + Model.Doc_Doc Doc = db.Doc_Doc.FirstOrDefault(e => e.DocId == DocId); + if (Doc != null) + { + BLL.CommonService.DeleteAttachFileById(DocId); + db.Doc_Doc.DeleteOnSubmit(Doc); + db.SubmitChanges(); + } + } + } +} diff --git a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj index de4ba068..f0907c0d 100644 --- a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj +++ b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj @@ -1568,6 +1568,9 @@ + + + @@ -13343,6 +13346,27 @@ Depart.aspx + + Doc.aspx + ASPXCodeBehind + + + Doc.aspx + + + DocEdit.aspx + ASPXCodeBehind + + + DocEdit.aspx + + + DocView.aspx + ASPXCodeBehind + + + DocView.aspx + HttpLog.aspx ASPXCodeBehind diff --git a/SGGL/FineUIPro.Web/Personal/PersonalInfo.aspx b/SGGL/FineUIPro.Web/Personal/PersonalInfo.aspx index 49d7c6ff..1a7c281c 100644 --- a/SGGL/FineUIPro.Web/Personal/PersonalInfo.aspx +++ b/SGGL/FineUIPro.Web/Personal/PersonalInfo.aspx @@ -33,7 +33,7 @@ - + diff --git a/SGGL/FineUIPro.Web/SysManage/Doc.aspx b/SGGL/FineUIPro.Web/SysManage/Doc.aspx new file mode 100644 index 00000000..261974ee --- /dev/null +++ b/SGGL/FineUIPro.Web/SysManage/Doc.aspx @@ -0,0 +1,103 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Doc.aspx.cs" Inherits="FineUIPro.Web.SysManage.Doc" %> + + + + + + 帮助 + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/SysManage/Doc.aspx.cs b/SGGL/FineUIPro.Web/SysManage/Doc.aspx.cs new file mode 100644 index 00000000..03aa7c12 --- /dev/null +++ b/SGGL/FineUIPro.Web/SysManage/Doc.aspx.cs @@ -0,0 +1,225 @@ +using BLL; +using System; +using System.Collections.Generic; +using System.Data; +using System.Data.SqlClient; +using System.Linq; + +namespace FineUIPro.Web.SysManage +{ + public partial class Doc : PageBase + { + #region 加载 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + Funs.DropDownPageSize(this.ddlPageSize); + ////权限按钮方法 + this.GetButtonPower(); + this.btnNew.OnClientClick = Window1.GetShowReference("DocEdit.aspx") + "return false;"; + + // 绑定表格 + this.BindGrid(); + } + } + /// + /// 绑定数据 + /// + private void BindGrid() + { + string strSql = @"SELECT Doc.DocId,DocName,CompileMan,Users.PersonName AS CompileManName, CompileDate,Remark " + + @" FROM Doc_Doc AS Doc " + + @" LEFT JOIN Person_Persons AS Users ON Doc.CompileMan=Users.PersonId " + + @" WHERE 1=1 "; + List listStr = new List(); + if (!string.IsNullOrEmpty(this.txtDocName.Text.Trim())) + { + strSql += " AND Doc.DocName LIKE @DocName"; + listStr.Add(new SqlParameter("@DocName", "%" + this.txtDocName.Text.Trim() + "%")); + } + SqlParameter[] parameter = listStr.ToArray(); + DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); + + Grid1.RecordCount = tb.Rows.Count; + var table = this.GetPagedDataTable(Grid1, tb); + Grid1.DataSource = table; + Grid1.DataBind(); + } + + #region 分页 排序 + /// + /// 改变索引事件 + /// + /// + /// + protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e) + { + BindGrid(); + } + + /// + /// 分页下拉选择事件 + /// + /// + /// + protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e) + { + this.Grid1.PageSize = Convert.ToInt32(this.ddlPageSize.SelectedValue); + BindGrid(); + } + + /// + /// 排序 + /// + /// + /// + protected void Grid1_Sort(object sender, FineUIPro.GridSortEventArgs e) + { + this.BindGrid(); + } + #endregion + #endregion + + #region 查询 + /// + /// 查询 + /// + /// + /// + protected void TextBox_TextChanged(object sender, EventArgs e) + { + this.BindGrid(); + } + #endregion + + #region 编辑 + /// + /// 双击事件 + /// + /// + /// + protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e) + { + this.EditData(); + } + + /// + /// 右键编辑事件 + /// + /// + /// + 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 docing = BLL.DocService.GetDocById(id); + if (docing != null) + { + if (this.btnMenuEdit.Hidden) ////双击事件 编辑权限有:编辑页面,无:查看页面 或者状态是完成时查看页面 + { + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("DocView.aspx?DocId={0}", id, "查看 - "))); + } + else + { + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("DocEdit.aspx?DocId={0}", id, "编辑 - "))); + } + } + } + #endregion + + #region 删除 + /// + /// 右键删除事件 + /// + /// + /// + protected void btnMenuDelete_Click(object sender, EventArgs e) + { + if (Grid1.SelectedRowIndexArray.Length > 0) + { + foreach (int rowIndex in Grid1.SelectedRowIndexArray) + { + string rowID = Grid1.DataKeys[rowIndex][0].ToString(); + var doc = BLL.DocService.GetDocById(rowID); + if (doc != null) + { + BLL.LogService.AddSys_Log(this.CurrUser, doc.DocName, doc.DocId, BLL.Const.HelpMenuId, BLL.Const.BtnDelete); + BLL.DocService.DeleteDocById(rowID); + } + } + + this.BindGrid(); + ShowNotify("删除数据成功!", MessageBoxIcon.Success); + } + } + #endregion + + #region 获取按钮权限 + /// + /// 获取按钮权限 + /// + /// + /// + private void GetButtonPower() + { + if (Request.Params["value"] == "0") + { + return; + } + var buttonList = BLL.CommonService.GetAllButtonList(null, this.CurrUser.PersonId, BLL.Const.HelpMenuId); + 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.btnMenuDelete.Hidden = false; + } + } + } + #endregion + + #region 导出按钮 + /// 导出按钮 + /// + /// + /// + protected void btnOut_Click(object sender, EventArgs e) + { + Response.ClearContent(); + string filename = Funs.GetNewFileName(); + Response.AddHeader("content-disposition", "attachment; filename=" + System.Web.HttpUtility.UrlEncode("安全周例会" + filename, System.Text.Encoding.UTF8) + ".xls"); + Response.ContentType = "application/excel"; + Response.ContentEncoding = System.Text.Encoding.UTF8; + this.Grid1.PageSize = this.Grid1.RecordCount; + this.BindGrid(); + Response.Write(GetGridTableHtml(Grid1)); + Response.End(); + } + #endregion + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/SysManage/Doc.aspx.designer.cs b/SGGL/FineUIPro.Web/SysManage/Doc.aspx.designer.cs new file mode 100644 index 00000000..ef732f8a --- /dev/null +++ b/SGGL/FineUIPro.Web/SysManage/Doc.aspx.designer.cs @@ -0,0 +1,168 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.SysManage { + + + public partial class Doc { + + /// + /// 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; + + /// + /// Toolbar2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar2; + + /// + /// txtDocName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtDocName; + + /// + /// ToolbarFill1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarFill ToolbarFill1; + + /// + /// btnNew 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnNew; + + /// + /// lblNumber 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label lblNumber; + + /// + /// ToolbarSeparator1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1; + + /// + /// ToolbarText1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarText ToolbarText1; + + /// + /// ddlPageSize 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList ddlPageSize; + + /// + /// Window1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window Window1; + + /// + /// WindowAtt 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window WindowAtt; + + /// + /// Menu1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Menu Menu1; + + /// + /// btnMenuEdit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnMenuEdit; + + /// + /// btnMenuDelete 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnMenuDelete; + } +} diff --git a/SGGL/FineUIPro.Web/SysManage/DocEdit.aspx b/SGGL/FineUIPro.Web/SysManage/DocEdit.aspx new file mode 100644 index 00000000..f3b9349e --- /dev/null +++ b/SGGL/FineUIPro.Web/SysManage/DocEdit.aspx @@ -0,0 +1,61 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DocEdit.aspx.cs" Inherits="FineUIPro.Web.SysManage.DocEdit" %> + + + + + + + 编辑帮助 + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/SysManage/DocEdit.aspx.cs b/SGGL/FineUIPro.Web/SysManage/DocEdit.aspx.cs new file mode 100644 index 00000000..69845cdb --- /dev/null +++ b/SGGL/FineUIPro.Web/SysManage/DocEdit.aspx.cs @@ -0,0 +1,134 @@ +using BLL; +using System; +using System.Web; + +namespace FineUIPro.Web.SysManage +{ + public partial class DocEdit : PageBase + { + #region 定义项 + /// + /// 主键 + /// + public string DocId + { + get + { + return (string)ViewState["DocId"]; + } + set + { + ViewState["DocId"] = value; + } + } + /// + /// 项目主键 + /// + public string ProjectId + { + get + { + return (string)ViewState["ProjectId"]; + } + set + { + ViewState["ProjectId"] = value; + } + } + #endregion + + #region 加载 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + this.ProjectId = this.CurrUser.LoginProjectId; + this.DocId = Request.Params["DocId"]; + if (!string.IsNullOrEmpty(this.DocId)) + { + Model.Doc_Doc Doc = BLL.DocService.GetDocById(this.DocId); + if (Doc != null) + { + hdId.Text = this.DocId; + this.txtDocName.Text = Doc.DocName; + this.txtRemark.Text = Doc.Remark; + } + } + } + } + #endregion + + #region 保存 + /// + /// 保存按钮 + /// + /// + /// + protected void btnSave_Click(object sender, EventArgs e) + { + if (!AttachFileService.Getfile(hdId.Text, Const.HelpMenuId)) + { + Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning); + return; + } + this.SaveData(BLL.Const.BtnSave); + PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference()); + } + + /// + /// 保存数据 + /// + /// + private void SaveData(string type) + { + Model.Doc_Doc Doc = new Model.Doc_Doc + { + DocName = this.txtDocName.Text.Trim(), + Remark = this.txtRemark.Text.Trim(), + }; + Doc.CompileMan = this.CurrUser.PersonId; + Doc.CompileDate = DateTime.Now; + if (!string.IsNullOrEmpty(this.DocId)) + { + Doc.DocId = this.DocId; + BLL.DocService.UpdateDoc(Doc); + BLL.LogService.AddSys_Log(this.CurrUser, Doc.DocName, Doc.DocId, BLL.Const.HelpMenuId, BLL.Const.BtnModify); + } + else + { + if (string.IsNullOrEmpty(hdId.Text.Trim())) + { + Doc.DocId = SQLHelper.GetNewID(typeof(Model.Doc_Doc)); + } + else + { + Doc.DocId = hdId.Text.Trim(); + } + BLL.DocService.AddDoc(Doc); + BLL.LogService.AddSys_Log(this.CurrUser, Doc.DocName, Doc.DocId, BLL.Const.HelpMenuId, BLL.Const.BtnAdd); + } + } + #endregion + + #region 附件上传 + /// + /// 上传附件 + /// + /// + /// + protected void btnAttachUrl_Click(object sender, EventArgs e) + { + if (string.IsNullOrEmpty(hdId.Text.Trim())) + { + hdId.Text = SQLHelper.GetNewID(typeof(Model.Doc_Doc)); + } + PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("~/AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/DocAttachUrl&menuId={1}", hdId.Text, BLL.Const.HelpMenuId))); + } + #endregion + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/SysManage/DocEdit.aspx.designer.cs b/SGGL/FineUIPro.Web/SysManage/DocEdit.aspx.designer.cs new file mode 100644 index 00000000..fcc4f2b8 --- /dev/null +++ b/SGGL/FineUIPro.Web/SysManage/DocEdit.aspx.designer.cs @@ -0,0 +1,105 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.SysManage { + + + public partial class DocEdit { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// SimpleForm1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form SimpleForm1; + + /// + /// txtDocName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtDocName; + + /// + /// txtRemark 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtRemark; + + /// + /// imgBtnFile 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button imgBtnFile; + + /// + /// Toolbar1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar1; + + /// + /// hdId 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.HiddenField hdId; + + /// + /// btnSave 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnSave; + + /// + /// WindowAtt 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window WindowAtt; + } +} diff --git a/SGGL/FineUIPro.Web/SysManage/DocView.aspx b/SGGL/FineUIPro.Web/SysManage/DocView.aspx new file mode 100644 index 00000000..4c58e4a9 --- /dev/null +++ b/SGGL/FineUIPro.Web/SysManage/DocView.aspx @@ -0,0 +1,58 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DocView.aspx.cs" Inherits="FineUIPro.Web.SysManage.DocView" %> + + + + + + + 编辑帮助 + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/SysManage/DocView.aspx.cs b/SGGL/FineUIPro.Web/SysManage/DocView.aspx.cs new file mode 100644 index 00000000..9547db46 --- /dev/null +++ b/SGGL/FineUIPro.Web/SysManage/DocView.aspx.cs @@ -0,0 +1,82 @@ +using BLL; +using System; +using System.Web; + +namespace FineUIPro.Web.SysManage +{ + public partial class DocView : PageBase + { + #region 定义项 + /// + /// 主键 + /// + public string DocId + { + get + { + return (string)ViewState["DocId"]; + } + set + { + ViewState["DocId"] = value; + } + } + /// + /// 项目主键 + /// + public string ProjectId + { + get + { + return (string)ViewState["ProjectId"]; + } + set + { + ViewState["ProjectId"] = value; + } + } + #endregion + + #region 加载 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + this.ProjectId = this.CurrUser.LoginProjectId; + this.DocId = Request.Params["DocId"]; + if (!string.IsNullOrEmpty(this.DocId)) + { + Model.Doc_Doc Doc = BLL.DocService.GetDocById(this.DocId); + if (Doc != null) + { + hdId.Text = this.DocId; + this.txtDocName.Text = Doc.DocName; + this.txtRemark.Text = Doc.Remark; + } + } + } + } + #endregion + + #region 附件上传 + /// + /// 上传附件 + /// + /// + /// + protected void btnAttachUrl_Click(object sender, EventArgs e) + { + if (string.IsNullOrEmpty(hdId.Text.Trim())) + { + hdId.Text = SQLHelper.GetNewID(typeof(Model.Doc_Doc)); + } + PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("~/AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/DocAttachUrl&menuId={1}&type=-1", hdId.Text, BLL.Const.HelpMenuId))); + } + #endregion + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/SysManage/DocView.aspx.designer.cs b/SGGL/FineUIPro.Web/SysManage/DocView.aspx.designer.cs new file mode 100644 index 00000000..abe2ec31 --- /dev/null +++ b/SGGL/FineUIPro.Web/SysManage/DocView.aspx.designer.cs @@ -0,0 +1,96 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.SysManage { + + + public partial class DocView { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// SimpleForm1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form SimpleForm1; + + /// + /// txtDocName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtDocName; + + /// + /// txtRemark 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtRemark; + + /// + /// imgBtnFile 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button imgBtnFile; + + /// + /// Toolbar1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar1; + + /// + /// hdId 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.HiddenField hdId; + + /// + /// WindowAtt 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window WindowAtt; + } +} diff --git a/SGGL/FineUIPro.Web/common/Menu_HJGL.xml b/SGGL/FineUIPro.Web/common/Menu_HJGL.xml index ce5228bb..b428bd9e 100644 --- a/SGGL/FineUIPro.Web/common/Menu_HJGL.xml +++ b/SGGL/FineUIPro.Web/common/Menu_HJGL.xml @@ -14,7 +14,7 @@ - + @@ -28,7 +28,7 @@ - + diff --git a/SGGL/FineUIPro.Web/common/Menu_Help.xml b/SGGL/FineUIPro.Web/common/Menu_Help.xml new file mode 100644 index 00000000..25141e44 --- /dev/null +++ b/SGGL/FineUIPro.Web/common/Menu_Help.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/common/Menu_PHTGL.xml b/SGGL/FineUIPro.Web/common/Menu_PHTGL.xml index 31955789..e9a16e96 100644 --- a/SGGL/FineUIPro.Web/common/Menu_PHTGL.xml +++ b/SGGL/FineUIPro.Web/common/Menu_PHTGL.xml @@ -4,10 +4,10 @@ + - diff --git a/SGGL/FineUIPro.Web/indexProject.aspx b/SGGL/FineUIPro.Web/indexProject.aspx index d53d9b17..a05b504c 100644 --- a/SGGL/FineUIPro.Web/indexProject.aspx +++ b/SGGL/FineUIPro.Web/indexProject.aspx @@ -260,6 +260,10 @@
    +
  • class="sd-message-dot <%=cssMessageNo %>">帮助 + +
  • class="sd-message-dot <%=cssMessageNo %>">消息 diff --git a/SGGL/FineUIPro.Web/indexProject.aspx.cs b/SGGL/FineUIPro.Web/indexProject.aspx.cs index 93643687..85714c4b 100644 --- a/SGGL/FineUIPro.Web/indexProject.aspx.cs +++ b/SGGL/FineUIPro.Web/indexProject.aspx.cs @@ -603,7 +603,7 @@ namespace FineUIPro.Web if (!string.IsNullOrEmpty(type)) { this.CurrUser.LastProjectId = this.CurrUser.LoginProjectId; - if (CommonService.IsHaveSystemPower(this.CurrUser.PersonId, type, this.CurrUser.LoginProjectId) || type == Const.Menu_Personal || type == Const.Menu_ToDo) + if (CommonService.IsHaveSystemPower(this.CurrUser.PersonId, type, this.CurrUser.LoginProjectId) || type == Const.Menu_Personal || type == Const.Menu_Help || type == Const.Menu_ToDo) { this.XmlDataSource1.DataFile = "common/" + type + ".xml"; this.leftPanel.Hidden = false; @@ -612,6 +612,10 @@ namespace FineUIPro.Web { this.Tab1.IFrameUrl = "~/Personal/PersonalInfo.aspx"; } + if (type == Const.Menu_Help) + { + this.Tab1.IFrameUrl = "~/SysManage/Doc.aspx"; + } else if (type == Const.Menu_ProjectSet) { this.Tab1.IFrameUrl = "~/ProjectData/ProjectSetView.aspx"; @@ -683,6 +687,11 @@ namespace FineUIPro.Web this.MenuSwitchMethod(Const.Menu_Personal); } + protected void btnHelp_Click(object sender, EventArgs e) + { + this.MenuSwitchMethod(Const.Menu_Help); + } + protected void btnProjectSet_Click(object sender, EventArgs e) { this.MenuSwitchMethod(Const.Menu_ProjectSet); diff --git a/SGGL/FineUIPro.Web/indexProject.aspx.designer.cs b/SGGL/FineUIPro.Web/indexProject.aspx.designer.cs index 7443bc30..af5c55fc 100644 --- a/SGGL/FineUIPro.Web/indexProject.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/indexProject.aspx.designer.cs @@ -7,13 +7,11 @@ // //------------------------------------------------------------------------------ -namespace FineUIPro.Web -{ - - - public partial class indexProject - { - +namespace FineUIPro.Web { + + + public partial class indexProject { + /// /// form1 控件。 /// @@ -22,7 +20,7 @@ namespace FineUIPro.Web /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.HtmlControls.HtmlForm form1; - + /// /// PageManager1 控件。 /// @@ -31,7 +29,7 @@ namespace FineUIPro.Web /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.PageManager PageManager1; - + /// /// Panel1 控件。 /// @@ -40,7 +38,7 @@ namespace FineUIPro.Web /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Panel Panel1; - + /// /// topPanel 控件。 /// @@ -49,7 +47,7 @@ namespace FineUIPro.Web /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ContentPanel topPanel; - + /// /// ContentPanel1 控件。 /// @@ -58,7 +56,7 @@ namespace FineUIPro.Web /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ContentPanel ContentPanel1; - + /// /// Button21 控件。 /// @@ -67,7 +65,7 @@ namespace FineUIPro.Web /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button Button21; - + /// /// drpProject 控件。 /// @@ -76,7 +74,7 @@ namespace FineUIPro.Web /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList drpProject; - + /// /// btnPHTGL 控件。 /// @@ -85,7 +83,7 @@ namespace FineUIPro.Web /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnPHTGL; - + /// /// btnHSSE 控件。 /// @@ -94,7 +92,7 @@ namespace FineUIPro.Web /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnHSSE; - + /// /// btnCQMS 控件。 /// @@ -103,7 +101,7 @@ namespace FineUIPro.Web /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnCQMS; - + /// /// btnJDGL 控件。 /// @@ -112,7 +110,7 @@ namespace FineUIPro.Web /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnJDGL; - + /// /// Button1 控件。 /// @@ -121,7 +119,7 @@ namespace FineUIPro.Web /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button Button1; - + /// /// btnDigitalSite 控件。 /// @@ -130,7 +128,7 @@ namespace FineUIPro.Web /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnDigitalSite; - + /// /// btnPPerson 控件。 /// @@ -139,7 +137,7 @@ namespace FineUIPro.Web /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnPPerson; - + /// /// btnPZHGL 控件。 /// @@ -148,7 +146,7 @@ namespace FineUIPro.Web /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnPZHGL; - + /// /// btnPDigData 控件。 /// @@ -157,7 +155,16 @@ namespace FineUIPro.Web /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnPDigData; - + + /// + /// btnHelp 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnHelp; + /// /// btnToDoItem 控件。 /// @@ -166,7 +173,7 @@ namespace FineUIPro.Web /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnToDoItem; - + /// /// userName 控件。 /// @@ -175,7 +182,7 @@ namespace FineUIPro.Web /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.HtmlControls.HtmlGenericControl userName; - + /// /// btnPersonal 控件。 /// @@ -184,7 +191,7 @@ namespace FineUIPro.Web /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnPersonal; - + /// /// btnSysSet 控件。 /// @@ -193,7 +200,7 @@ namespace FineUIPro.Web /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnSysSet; - + /// /// leftPanel 控件。 /// @@ -202,7 +209,7 @@ namespace FineUIPro.Web /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Panel leftPanel; - + /// /// leftPanelToolCollapse 控件。 /// @@ -211,7 +218,7 @@ namespace FineUIPro.Web /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Tool leftPanelToolCollapse; - + /// /// leftPanelToolGear 控件。 /// @@ -220,7 +227,7 @@ namespace FineUIPro.Web /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Tool leftPanelToolGear; - + /// /// btnExpandAll 控件。 /// @@ -229,7 +236,7 @@ namespace FineUIPro.Web /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.MenuButton btnExpandAll; - + /// /// btnCollapseAll 控件。 /// @@ -238,7 +245,7 @@ namespace FineUIPro.Web /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.MenuButton btnCollapseAll; - + /// /// MenuMode 控件。 /// @@ -247,7 +254,7 @@ namespace FineUIPro.Web /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.MenuButton MenuMode; - + /// /// MenuModeNormal 控件。 /// @@ -256,7 +263,7 @@ namespace FineUIPro.Web /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.MenuCheckBox MenuModeNormal; - + /// /// MenuModeCompact 控件。 /// @@ -265,7 +272,7 @@ namespace FineUIPro.Web /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.MenuCheckBox MenuModeCompact; - + /// /// MenuModeLarge 控件。 /// @@ -274,7 +281,7 @@ namespace FineUIPro.Web /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.MenuCheckBox MenuModeLarge; - + /// /// MenuStyle 控件。 /// @@ -283,7 +290,7 @@ namespace FineUIPro.Web /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.MenuButton MenuStyle; - + /// /// MenuStyleTree 控件。 /// @@ -292,7 +299,7 @@ namespace FineUIPro.Web /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.MenuCheckBox MenuStyleTree; - + /// /// MenuStyleMiniModeTree 控件。 /// @@ -301,7 +308,7 @@ namespace FineUIPro.Web /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.MenuCheckBox MenuStyleMiniModeTree; - + /// /// MenuStylePlainTree 控件。 /// @@ -310,7 +317,7 @@ namespace FineUIPro.Web /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.MenuCheckBox MenuStylePlainTree; - + /// /// MenuLang 控件。 /// @@ -319,7 +326,7 @@ namespace FineUIPro.Web /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.MenuButton MenuLang; - + /// /// MenuLangZHCN 控件。 /// @@ -328,7 +335,7 @@ namespace FineUIPro.Web /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.MenuCheckBox MenuLangZHCN; - + /// /// mainTabStrip 控件。 /// @@ -337,7 +344,7 @@ namespace FineUIPro.Web /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TabStrip mainTabStrip; - + /// /// Tab1 控件。 /// @@ -346,7 +353,7 @@ namespace FineUIPro.Web /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Tab Tab1; - + /// /// toolRefresh 控件。 /// @@ -355,7 +362,7 @@ namespace FineUIPro.Web /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Tool toolRefresh; - + /// /// toolNewWindow 控件。 /// @@ -364,7 +371,7 @@ namespace FineUIPro.Web /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Tool toolNewWindow; - + /// /// toolMaximize 控件。 /// @@ -373,7 +380,7 @@ namespace FineUIPro.Web /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Tool toolMaximize; - + /// /// toolSignOut 控件。 /// @@ -382,7 +389,7 @@ namespace FineUIPro.Web /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Tool toolSignOut; - + /// /// windowCustomQuery 控件。 /// @@ -391,7 +398,7 @@ namespace FineUIPro.Web /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Window windowCustomQuery; - + /// /// XmlDataSource1 控件。 /// diff --git a/SGGL/Model/Model.cs b/SGGL/Model/Model.cs index 2ab6a8eb..482ac9bb 100644 --- a/SGGL/Model/Model.cs +++ b/SGGL/Model/Model.cs @@ -449,6 +449,9 @@ namespace Model partial void InsertDigData_HSEDataCollectSubmission(DigData_HSEDataCollectSubmission instance); partial void UpdateDigData_HSEDataCollectSubmission(DigData_HSEDataCollectSubmission instance); partial void DeleteDigData_HSEDataCollectSubmission(DigData_HSEDataCollectSubmission instance); + partial void InsertDoc_Doc(Doc_Doc instance); + partial void UpdateDoc_Doc(Doc_Doc instance); + partial void DeleteDoc_Doc(Doc_Doc instance); partial void InsertDt_document(Dt_document instance); partial void UpdateDt_document(Dt_document instance); partial void DeleteDt_document(Dt_document instance); @@ -2924,6 +2927,14 @@ namespace Model } } + public System.Data.Linq.Table Doc_Doc + { + get + { + return this.GetTable(); + } + } + public System.Data.Linq.Table Dt_document { get @@ -66591,6 +66602,164 @@ namespace Model } } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Doc_Doc")] + public partial class Doc_Doc : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _DocId; + + private string _DocName; + + private string _CompileMan; + + private System.Nullable _CompileDate; + + private string _Remark; + + #region 可扩展性方法定义 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnDocIdChanging(string value); + partial void OnDocIdChanged(); + partial void OnDocNameChanging(string value); + partial void OnDocNameChanged(); + partial void OnCompileManChanging(string value); + partial void OnCompileManChanged(); + partial void OnCompileDateChanging(System.Nullable value); + partial void OnCompileDateChanged(); + partial void OnRemarkChanging(string value); + partial void OnRemarkChanged(); + #endregion + + public Doc_Doc() + { + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DocId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string DocId + { + get + { + return this._DocId; + } + set + { + if ((this._DocId != value)) + { + this.OnDocIdChanging(value); + this.SendPropertyChanging(); + this._DocId = value; + this.SendPropertyChanged("DocId"); + this.OnDocIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DocName", DbType="NVarChar(100)")] + public string DocName + { + get + { + return this._DocName; + } + set + { + if ((this._DocName != value)) + { + this.OnDocNameChanging(value); + this.SendPropertyChanging(); + this._DocName = value; + this.SendPropertyChanged("DocName"); + this.OnDocNameChanged(); + } + } + } + + [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.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="_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.dt_document")] public partial class Dt_document : INotifyPropertyChanging, INotifyPropertyChanged {