diff --git a/SGGL/BLL/Common/Const.cs b/SGGL/BLL/Common/Const.cs index 5a20907a..7d9f5c13 100644 --- a/SGGL/BLL/Common/Const.cs +++ b/SGGL/BLL/Common/Const.cs @@ -746,6 +746,10 @@ namespace BLL /// 文档管理 /// public const string Menu_Doc = "Menu_Doc"; + /// + /// 待办 + /// + public const string Menu_ToDo = "Menu_ToDo"; #endregion #endregion diff --git a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj index 58a41924..0179e2db 100644 --- a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj +++ b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj @@ -313,6 +313,7 @@ + @@ -1589,6 +1590,7 @@ + @@ -14638,6 +14640,13 @@ ParticipateProject.aspx + + ProjectToDo.aspx + ASPXCodeBehind + + + ProjectToDo.aspx + RoleItem.aspx ASPXCodeBehind diff --git a/SGGL/FineUIPro.Web/HSSE/HiddenInspection/HiddenRectificationConfirm.aspx.cs b/SGGL/FineUIPro.Web/HSSE/HiddenInspection/HiddenRectificationConfirm.aspx.cs index 50c310fa..96a2eb35 100644 --- a/SGGL/FineUIPro.Web/HSSE/HiddenInspection/HiddenRectificationConfirm.aspx.cs +++ b/SGGL/FineUIPro.Web/HSSE/HiddenInspection/HiddenRectificationConfirm.aspx.cs @@ -166,7 +166,8 @@ namespace FineUIPro.Web.HSSE.HiddenInspection if (isClosed) { - PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference()); + string scripts = String.Format("F.getActiveWindow().window.reloadGrid('{0}');", ""); + PageContext.RegisterStartupScript(scripts + ActiveWindow.GetHidePostBackReference()); } } #endregion diff --git a/SGGL/FineUIPro.Web/HSSE/HiddenInspection/HiddenRectificationRectify.aspx.cs b/SGGL/FineUIPro.Web/HSSE/HiddenInspection/HiddenRectificationRectify.aspx.cs index 1c27b076..34911fd8 100644 --- a/SGGL/FineUIPro.Web/HSSE/HiddenInspection/HiddenRectificationRectify.aspx.cs +++ b/SGGL/FineUIPro.Web/HSSE/HiddenInspection/HiddenRectificationRectify.aspx.cs @@ -150,7 +150,8 @@ namespace FineUIPro.Web.HiddenInspection BLL.LogService.AddSys_Log(this.CurrUser, register.HazardCode, register.HazardRegisterId, BLL.Const.HSSE_HiddenRectificationListMenuId, BLL.Const.BtnModify); if (isClosed) { - PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference()); + string scripts = String.Format("F.getActiveWindow().window.reloadGrid('{0}');", ""); + PageContext.RegisterStartupScript(scripts + ActiveWindow.GetHidePostBackReference()); } } } diff --git a/SGGL/FineUIPro.Web/SysManage/ProjectToDo.aspx b/SGGL/FineUIPro.Web/SysManage/ProjectToDo.aspx new file mode 100644 index 00000000..f1dae786 --- /dev/null +++ b/SGGL/FineUIPro.Web/SysManage/ProjectToDo.aspx @@ -0,0 +1,89 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ProjectToDo.aspx.cs" Inherits="FineUIPro.Web.SysManage.ProjectToDo" %> + + + + + 代办事项 + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/SysManage/ProjectToDo.aspx.cs b/SGGL/FineUIPro.Web/SysManage/ProjectToDo.aspx.cs new file mode 100644 index 00000000..4c926193 --- /dev/null +++ b/SGGL/FineUIPro.Web/SysManage/ProjectToDo.aspx.cs @@ -0,0 +1,125 @@ +using BLL; +using FineUIPro.Web.DataShow; +using System; +using System.Collections.Generic; +using System.Data; +using System.Data.SqlClient; +using System.Linq; + +namespace FineUIPro.Web.SysManage +{ + public partial class ProjectToDo : PageBase + { + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack && this.CurrUser != null) + { + Funs.DropDownPageSize(this.ddlPageSize); + // 绑定表格 + this.BindGrid(); + } + else + { + string requestArg = GetRequestEventArgument(); // 此函数所在文件:PageBase.cs + if (requestArg.StartsWith("ReloadGrid$")) + { + BindGrid(); + //PageContext.RegisterStartupScript("parent.__doPostBack('','Test3WindowClose');" + // + ActiveWindow.GetHidePostBackReference()); + } + } + } + + /// + /// 绑定数据 + /// + private void BindGrid() + { + var getDataList = Funs.DB.Sp_Project_GetToDoItems(this.CurrUser.LoginProjectId, this.CurrUser.UserId).ToList(); + Grid1.RecordCount = getDataList.Count(); + Grid1.DataSource = getDataList; + Grid1.DataBind(); + } + + #region 查询 + /// + /// 查询 + /// + /// + /// + protected void TextBox_TextChanged(object sender, EventArgs e) + { + this.BindGrid(); + } + #endregion + + /// + /// 分页 + /// + /// + /// + protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e) + { + BindGrid(); + } + + /// + /// 分页显示条数下拉框 + /// + /// + /// + protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e) + { + Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue); + BindGrid(); + } + + /// + /// 排序 + /// + /// + /// + protected void Grid1_Sort(object sender, FineUIPro.GridSortEventArgs e) + { + BindGrid(); + } + + /// + /// Grid行双击事件 + /// + /// + /// + 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; + } + var getData = Funs.DB.Sp_Project_GetToDoItems(this.CurrUser.LoginProjectId, this.CurrUser.UserId).FirstOrDefault(x => x.DataId == Grid1.SelectedRowID); + + if (getData != null) ////双击事件 编辑权限有:编辑页面,无:查看页面 或者状态是完成时查看页面 + { + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("{0}", getData.PCUrl, "编辑 - "))); + } + } + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/SysManage/ProjectToDo.aspx.designer.cs b/SGGL/FineUIPro.Web/SysManage/ProjectToDo.aspx.designer.cs new file mode 100644 index 00000000..5f7d350c --- /dev/null +++ b/SGGL/FineUIPro.Web/SysManage/ProjectToDo.aspx.designer.cs @@ -0,0 +1,125 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.SysManage +{ + + + public partial class ProjectToDo + { + + /// + /// 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; + + /// + /// 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; + + /// + /// Menu1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Menu Menu1; + + /// + /// btnMenuEdit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnMenuEdit; + } +} diff --git a/SGGL/FineUIPro.Web/common/Menu_ToDo.xml b/SGGL/FineUIPro.Web/common/Menu_ToDo.xml new file mode 100644 index 00000000..52e2081a --- /dev/null +++ b/SGGL/FineUIPro.Web/common/Menu_ToDo.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/indexProject.aspx b/SGGL/FineUIPro.Web/indexProject.aspx index 5863aa95..06c32a47 100644 --- a/SGGL/FineUIPro.Web/indexProject.aspx +++ b/SGGL/FineUIPro.Web/indexProject.aspx @@ -287,6 +287,11 @@ + +
  • + +
  • <%--.f-tabstrip-noheader>.f-panel-header--%> + EnableIFrame="true" IFrameUrl="~/SysManage/ProjectToDo.aspx" runat="server"> diff --git a/SGGL/FineUIPro.Web/indexProject.aspx.cs b/SGGL/FineUIPro.Web/indexProject.aspx.cs index 1a3f9a41..6bda20ef 100644 --- a/SGGL/FineUIPro.Web/indexProject.aspx.cs +++ b/SGGL/FineUIPro.Web/indexProject.aspx.cs @@ -642,7 +642,7 @@ namespace FineUIPro.Web if (!string.IsNullOrEmpty(type)) { this.CurrUser.LastProjectId = this.CurrUser.LoginProjectId; - if (CommonService.IsHaveSystemPower(this.CurrUser.UserId, type, this.CurrUser.LoginProjectId) || type == Const.Menu_Personal) + if (CommonService.IsHaveSystemPower(this.CurrUser.UserId, type, this.CurrUser.LoginProjectId) || type == Const.Menu_Personal || type == Const.Menu_ToDo) { this.XmlDataSource1.DataFile = "common/" + type + ".xml"; this.leftPanel.Hidden = false; @@ -682,6 +682,10 @@ namespace FineUIPro.Web this.Tab1.IFrameUrl = "~/DocManage/DocManage.aspx"; this.Tab1.Title = "协调与沟通"; } + else if (type==Const.Menu_ToDo) + { + this.Tab1.IFrameUrl = "~/SysManage/ProjectToDo.aspx"; + } else { this.Tab1.Title = "首页"; @@ -794,5 +798,10 @@ namespace FineUIPro.Web { this.MenuSwitchMethod(Const.Menu_Opinion); } + + protected void btnTodo_Click(object sender, EventArgs e) + { + this.MenuSwitchMethod(Const.Menu_ToDo); + } } } diff --git a/SGGL/FineUIPro.Web/indexProject.aspx.designer.cs b/SGGL/FineUIPro.Web/indexProject.aspx.designer.cs index f9fd8c51..b599ef69 100644 --- a/SGGL/FineUIPro.Web/indexProject.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/indexProject.aspx.designer.cs @@ -203,6 +203,15 @@ namespace FineUIPro.Web /// protected global::FineUIPro.Button Button19; + /// + /// btnMessage 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnMessage; + /// /// btnPersonal 控件。 /// diff --git a/SGGL/Model/ModelProc.cs b/SGGL/Model/ModelProc.cs index 9bf28721..1d3009ed 100644 --- a/SGGL/Model/ModelProc.cs +++ b/SGGL/Model/ModelProc.cs @@ -93,5 +93,18 @@ namespace Model IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)MethodInfo.GetCurrentMethod()), projectId, unitId, workPostId, day); return (ISingleResult)result.ReturnValue; } + + /// + /// ȡǰûĿ + /// + /// + /// + /// + [Function(Name = "[dbo].[Sp_Project_GetToDoItems]")] + public IEnumerable Sp_Project_GetToDoItems([Parameter(DbType = "nvarchar(50)")] string projectId, [Parameter(DbType = "nvarchar(50)")] string userId) + { + IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)MethodInfo.GetCurrentMethod()), projectId, userId); + return (ISingleResult)result.ReturnValue; + } } }