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甯姪锛圡enu_Help锛.sql b/DataBase/鑿滃崟鍒濆鍖栬剼鏈/1-12甯姪锛圡enu_Help锛.sql new file mode 100644 index 00000000..20f15fd1 --- /dev/null +++ b/DataBase/鑿滃崟鍒濆鍖栬剼鏈/1-12甯姪锛圡enu_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 @@ +锘縰sing 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 @@ +锘縰sing 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 @@ +锘//------------------------------------------------------------------------------ +// <鑷姩鐢熸垚> +// 姝や唬鐮佺敱宸ュ叿鐢熸垚銆 +// +// 瀵规鏂囦欢鐨勬洿鏀瑰彲鑳藉鑷翠笉姝g‘鐨勮涓猴紝濡傛灉 +// 閲嶆柊鐢熸垚浠g爜锛屽垯鎵鍋氭洿鏀瑰皢涓㈠け銆 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.SysManage { + + + public partial class Doc { + + /// + /// form1 鎺т欢銆 + /// + /// + /// 鑷姩鐢熸垚鐨勫瓧娈点 + /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 鎺т欢銆 + /// + /// + /// 鑷姩鐢熸垚鐨勫瓧娈点 + /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// Panel1 鎺т欢銆 + /// + /// + /// 鑷姩鐢熸垚鐨勫瓧娈点 + /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 + /// + protected global::FineUIPro.Panel Panel1; + + /// + /// Grid1 鎺т欢銆 + /// + /// + /// 鑷姩鐢熸垚鐨勫瓧娈点 + /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 + /// + protected global::FineUIPro.Grid Grid1; + + /// + /// Toolbar2 鎺т欢銆 + /// + /// + /// 鑷姩鐢熸垚鐨勫瓧娈点 + /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 + /// + protected global::FineUIPro.Toolbar Toolbar2; + + /// + /// txtDocName 鎺т欢銆 + /// + /// + /// 鑷姩鐢熸垚鐨勫瓧娈点 + /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 + /// + protected global::FineUIPro.TextBox txtDocName; + + /// + /// ToolbarFill1 鎺т欢銆 + /// + /// + /// 鑷姩鐢熸垚鐨勫瓧娈点 + /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 + /// + protected global::FineUIPro.ToolbarFill ToolbarFill1; + + /// + /// btnNew 鎺т欢銆 + /// + /// + /// 鑷姩鐢熸垚鐨勫瓧娈点 + /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 + /// + protected global::FineUIPro.Button btnNew; + + /// + /// lblNumber 鎺т欢銆 + /// + /// + /// 鑷姩鐢熸垚鐨勫瓧娈点 + /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 + /// + protected global::System.Web.UI.WebControls.Label lblNumber; + + /// + /// ToolbarSeparator1 鎺т欢銆 + /// + /// + /// 鑷姩鐢熸垚鐨勫瓧娈点 + /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 + /// + protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1; + + /// + /// ToolbarText1 鎺т欢銆 + /// + /// + /// 鑷姩鐢熸垚鐨勫瓧娈点 + /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 + /// + protected global::FineUIPro.ToolbarText ToolbarText1; + + /// + /// ddlPageSize 鎺т欢銆 + /// + /// + /// 鑷姩鐢熸垚鐨勫瓧娈点 + /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 + /// + protected global::FineUIPro.DropDownList ddlPageSize; + + /// + /// Window1 鎺т欢銆 + /// + /// + /// 鑷姩鐢熸垚鐨勫瓧娈点 + /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 + /// + protected global::FineUIPro.Window Window1; + + /// + /// WindowAtt 鎺т欢銆 + /// + /// + /// 鑷姩鐢熸垚鐨勫瓧娈点 + /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 + /// + protected global::FineUIPro.Window WindowAtt; + + /// + /// Menu1 鎺т欢銆 + /// + /// + /// 鑷姩鐢熸垚鐨勫瓧娈点 + /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 + /// + protected global::FineUIPro.Menu Menu1; + + /// + /// btnMenuEdit 鎺т欢銆 + /// + /// + /// 鑷姩鐢熸垚鐨勫瓧娈点 + /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 + /// + protected global::FineUIPro.MenuButton btnMenuEdit; + + /// + /// btnMenuDelete 鎺т欢銆 + /// + /// + /// 鑷姩鐢熸垚鐨勫瓧娈点 + /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 + /// + 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 @@ +锘縰sing 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 @@ +锘//------------------------------------------------------------------------------ +// <鑷姩鐢熸垚> +// 姝や唬鐮佺敱宸ュ叿鐢熸垚銆 +// +// 瀵规鏂囦欢鐨勬洿鏀瑰彲鑳藉鑷翠笉姝g‘鐨勮涓猴紝濡傛灉 +// 閲嶆柊鐢熸垚浠g爜锛屽垯鎵鍋氭洿鏀瑰皢涓㈠け銆 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.SysManage { + + + public partial class DocEdit { + + /// + /// form1 鎺т欢銆 + /// + /// + /// 鑷姩鐢熸垚鐨勫瓧娈点 + /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 鎺т欢銆 + /// + /// + /// 鑷姩鐢熸垚鐨勫瓧娈点 + /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// SimpleForm1 鎺т欢銆 + /// + /// + /// 鑷姩鐢熸垚鐨勫瓧娈点 + /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 + /// + protected global::FineUIPro.Form SimpleForm1; + + /// + /// txtDocName 鎺т欢銆 + /// + /// + /// 鑷姩鐢熸垚鐨勫瓧娈点 + /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 + /// + protected global::FineUIPro.TextBox txtDocName; + + /// + /// txtRemark 鎺т欢銆 + /// + /// + /// 鑷姩鐢熸垚鐨勫瓧娈点 + /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 + /// + protected global::FineUIPro.TextBox txtRemark; + + /// + /// imgBtnFile 鎺т欢銆 + /// + /// + /// 鑷姩鐢熸垚鐨勫瓧娈点 + /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 + /// + protected global::FineUIPro.Button imgBtnFile; + + /// + /// Toolbar1 鎺т欢銆 + /// + /// + /// 鑷姩鐢熸垚鐨勫瓧娈点 + /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 + /// + protected global::FineUIPro.Toolbar Toolbar1; + + /// + /// hdId 鎺т欢銆 + /// + /// + /// 鑷姩鐢熸垚鐨勫瓧娈点 + /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 + /// + protected global::FineUIPro.HiddenField hdId; + + /// + /// btnSave 鎺т欢銆 + /// + /// + /// 鑷姩鐢熸垚鐨勫瓧娈点 + /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 + /// + protected global::FineUIPro.Button btnSave; + + /// + /// WindowAtt 鎺т欢銆 + /// + /// + /// 鑷姩鐢熸垚鐨勫瓧娈点 + /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 + /// + 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 @@ +锘縰sing 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 @@ +锘//------------------------------------------------------------------------------ +// <鑷姩鐢熸垚> +// 姝や唬鐮佺敱宸ュ叿鐢熸垚銆 +// +// 瀵规鏂囦欢鐨勬洿鏀瑰彲鑳藉鑷翠笉姝g‘鐨勮涓猴紝濡傛灉 +// 閲嶆柊鐢熸垚浠g爜锛屽垯鎵鍋氭洿鏀瑰皢涓㈠け銆 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.SysManage { + + + public partial class DocView { + + /// + /// form1 鎺т欢銆 + /// + /// + /// 鑷姩鐢熸垚鐨勫瓧娈点 + /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 鎺т欢銆 + /// + /// + /// 鑷姩鐢熸垚鐨勫瓧娈点 + /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// SimpleForm1 鎺т欢銆 + /// + /// + /// 鑷姩鐢熸垚鐨勫瓧娈点 + /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 + /// + protected global::FineUIPro.Form SimpleForm1; + + /// + /// txtDocName 鎺т欢銆 + /// + /// + /// 鑷姩鐢熸垚鐨勫瓧娈点 + /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 + /// + protected global::FineUIPro.TextBox txtDocName; + + /// + /// txtRemark 鎺т欢銆 + /// + /// + /// 鑷姩鐢熸垚鐨勫瓧娈点 + /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 + /// + protected global::FineUIPro.TextBox txtRemark; + + /// + /// imgBtnFile 鎺т欢銆 + /// + /// + /// 鑷姩鐢熸垚鐨勫瓧娈点 + /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 + /// + protected global::FineUIPro.Button imgBtnFile; + + /// + /// Toolbar1 鎺т欢銆 + /// + /// + /// 鑷姩鐢熸垚鐨勫瓧娈点 + /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 + /// + protected global::FineUIPro.Toolbar Toolbar1; + + /// + /// hdId 鎺т欢銆 + /// + /// + /// 鑷姩鐢熸垚鐨勫瓧娈点 + /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 + /// + protected global::FineUIPro.HiddenField hdId; + + /// + /// WindowAtt 鎺т欢銆 + /// + /// + /// 鑷姩鐢熸垚鐨勫瓧娈点 + /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 + /// + 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 /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 /// protected global::System.Web.UI.HtmlControls.HtmlForm form1; - + /// /// PageManager1 鎺т欢銆 /// @@ -31,7 +29,7 @@ namespace FineUIPro.Web /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 /// protected global::FineUIPro.PageManager PageManager1; - + /// /// Panel1 鎺т欢銆 /// @@ -40,7 +38,7 @@ namespace FineUIPro.Web /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 /// protected global::FineUIPro.Panel Panel1; - + /// /// topPanel 鎺т欢銆 /// @@ -49,7 +47,7 @@ namespace FineUIPro.Web /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 /// protected global::FineUIPro.ContentPanel topPanel; - + /// /// ContentPanel1 鎺т欢銆 /// @@ -58,7 +56,7 @@ namespace FineUIPro.Web /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 /// protected global::FineUIPro.ContentPanel ContentPanel1; - + /// /// Button21 鎺т欢銆 /// @@ -67,7 +65,7 @@ namespace FineUIPro.Web /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 /// protected global::FineUIPro.Button Button21; - + /// /// drpProject 鎺т欢銆 /// @@ -76,7 +74,7 @@ namespace FineUIPro.Web /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 /// protected global::FineUIPro.DropDownList drpProject; - + /// /// btnPHTGL 鎺т欢銆 /// @@ -85,7 +83,7 @@ namespace FineUIPro.Web /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 /// protected global::FineUIPro.Button btnPHTGL; - + /// /// btnHSSE 鎺т欢銆 /// @@ -94,7 +92,7 @@ namespace FineUIPro.Web /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 /// protected global::FineUIPro.Button btnHSSE; - + /// /// btnCQMS 鎺т欢銆 /// @@ -103,7 +101,7 @@ namespace FineUIPro.Web /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 /// protected global::FineUIPro.Button btnCQMS; - + /// /// btnJDGL 鎺т欢銆 /// @@ -112,7 +110,7 @@ namespace FineUIPro.Web /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 /// protected global::FineUIPro.Button btnJDGL; - + /// /// Button1 鎺т欢銆 /// @@ -121,7 +119,7 @@ namespace FineUIPro.Web /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 /// protected global::FineUIPro.Button Button1; - + /// /// btnDigitalSite 鎺т欢銆 /// @@ -130,7 +128,7 @@ namespace FineUIPro.Web /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 /// protected global::FineUIPro.Button btnDigitalSite; - + /// /// btnPPerson 鎺т欢銆 /// @@ -139,7 +137,7 @@ namespace FineUIPro.Web /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 /// protected global::FineUIPro.Button btnPPerson; - + /// /// btnPZHGL 鎺т欢銆 /// @@ -148,7 +146,7 @@ namespace FineUIPro.Web /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 /// protected global::FineUIPro.Button btnPZHGL; - + /// /// btnPDigData 鎺т欢銆 /// @@ -157,7 +155,16 @@ namespace FineUIPro.Web /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 /// protected global::FineUIPro.Button btnPDigData; - + + /// + /// btnHelp 鎺т欢銆 + /// + /// + /// 鑷姩鐢熸垚鐨勫瓧娈点 + /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 + /// + protected global::FineUIPro.Button btnHelp; + /// /// btnToDoItem 鎺т欢銆 /// @@ -166,7 +173,7 @@ namespace FineUIPro.Web /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 /// protected global::FineUIPro.Button btnToDoItem; - + /// /// userName 鎺т欢銆 /// @@ -175,7 +182,7 @@ namespace FineUIPro.Web /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 /// protected global::System.Web.UI.HtmlControls.HtmlGenericControl userName; - + /// /// btnPersonal 鎺т欢銆 /// @@ -184,7 +191,7 @@ namespace FineUIPro.Web /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 /// protected global::FineUIPro.Button btnPersonal; - + /// /// btnSysSet 鎺т欢銆 /// @@ -193,7 +200,7 @@ namespace FineUIPro.Web /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 /// protected global::FineUIPro.Button btnSysSet; - + /// /// leftPanel 鎺т欢銆 /// @@ -202,7 +209,7 @@ namespace FineUIPro.Web /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 /// protected global::FineUIPro.Panel leftPanel; - + /// /// leftPanelToolCollapse 鎺т欢銆 /// @@ -211,7 +218,7 @@ namespace FineUIPro.Web /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 /// protected global::FineUIPro.Tool leftPanelToolCollapse; - + /// /// leftPanelToolGear 鎺т欢銆 /// @@ -220,7 +227,7 @@ namespace FineUIPro.Web /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 /// protected global::FineUIPro.Tool leftPanelToolGear; - + /// /// btnExpandAll 鎺т欢銆 /// @@ -229,7 +236,7 @@ namespace FineUIPro.Web /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 /// protected global::FineUIPro.MenuButton btnExpandAll; - + /// /// btnCollapseAll 鎺т欢銆 /// @@ -238,7 +245,7 @@ namespace FineUIPro.Web /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 /// protected global::FineUIPro.MenuButton btnCollapseAll; - + /// /// MenuMode 鎺т欢銆 /// @@ -247,7 +254,7 @@ namespace FineUIPro.Web /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 /// protected global::FineUIPro.MenuButton MenuMode; - + /// /// MenuModeNormal 鎺т欢銆 /// @@ -256,7 +263,7 @@ namespace FineUIPro.Web /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 /// protected global::FineUIPro.MenuCheckBox MenuModeNormal; - + /// /// MenuModeCompact 鎺т欢銆 /// @@ -265,7 +272,7 @@ namespace FineUIPro.Web /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 /// protected global::FineUIPro.MenuCheckBox MenuModeCompact; - + /// /// MenuModeLarge 鎺т欢銆 /// @@ -274,7 +281,7 @@ namespace FineUIPro.Web /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 /// protected global::FineUIPro.MenuCheckBox MenuModeLarge; - + /// /// MenuStyle 鎺т欢銆 /// @@ -283,7 +290,7 @@ namespace FineUIPro.Web /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 /// protected global::FineUIPro.MenuButton MenuStyle; - + /// /// MenuStyleTree 鎺т欢銆 /// @@ -292,7 +299,7 @@ namespace FineUIPro.Web /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 /// protected global::FineUIPro.MenuCheckBox MenuStyleTree; - + /// /// MenuStyleMiniModeTree 鎺т欢銆 /// @@ -301,7 +308,7 @@ namespace FineUIPro.Web /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 /// protected global::FineUIPro.MenuCheckBox MenuStyleMiniModeTree; - + /// /// MenuStylePlainTree 鎺т欢銆 /// @@ -310,7 +317,7 @@ namespace FineUIPro.Web /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 /// protected global::FineUIPro.MenuCheckBox MenuStylePlainTree; - + /// /// MenuLang 鎺т欢銆 /// @@ -319,7 +326,7 @@ namespace FineUIPro.Web /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 /// protected global::FineUIPro.MenuButton MenuLang; - + /// /// MenuLangZHCN 鎺т欢銆 /// @@ -328,7 +335,7 @@ namespace FineUIPro.Web /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 /// protected global::FineUIPro.MenuCheckBox MenuLangZHCN; - + /// /// mainTabStrip 鎺т欢銆 /// @@ -337,7 +344,7 @@ namespace FineUIPro.Web /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 /// protected global::FineUIPro.TabStrip mainTabStrip; - + /// /// Tab1 鎺т欢銆 /// @@ -346,7 +353,7 @@ namespace FineUIPro.Web /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 /// protected global::FineUIPro.Tab Tab1; - + /// /// toolRefresh 鎺т欢銆 /// @@ -355,7 +362,7 @@ namespace FineUIPro.Web /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 /// protected global::FineUIPro.Tool toolRefresh; - + /// /// toolNewWindow 鎺т欢銆 /// @@ -364,7 +371,7 @@ namespace FineUIPro.Web /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 /// protected global::FineUIPro.Tool toolNewWindow; - + /// /// toolMaximize 鎺т欢銆 /// @@ -373,7 +380,7 @@ namespace FineUIPro.Web /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 /// protected global::FineUIPro.Tool toolMaximize; - + /// /// toolSignOut 鎺т欢銆 /// @@ -382,7 +389,7 @@ namespace FineUIPro.Web /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 /// protected global::FineUIPro.Tool toolSignOut; - + /// /// windowCustomQuery 鎺т欢銆 /// @@ -391,7 +398,7 @@ namespace FineUIPro.Web /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 /// 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 {