修改关键事项与沟通协调

This commit is contained in:
2024-10-15 10:06:34 +08:00
parent d35d9efdcb
commit 6614252a9c
10 changed files with 242 additions and 14 deletions
@@ -60,10 +60,26 @@ namespace FineUIPro.Web.DocManage
}
}
/// <summary>
/// 类型
/// </summary>
public string classify
{
get
{
return (string)ViewState["classify"];
}
set
{
ViewState["classify"] = value;
}
}
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
classify = Request.Params["classify"];
UnitService.GetUnit(drpSendUnit, CurrUser.LoginProjectId, true);
UnitService.GetUnit(drpReceivUnit, CurrUser.LoginProjectId, true);
UserService.InitUserDropDownList(drpCompileMan, CurrUser.LoginProjectId, true);
@@ -74,6 +90,10 @@ namespace FineUIPro.Web.DocManage
ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
btnNew.OnClientClick = Window1.GetShowReference("DocManageEdit.aspx") + "return false;";
GetButtonPower();
if (classify != "0")
{
btnNew.Hidden = true;
}
BindData();
}
@@ -141,6 +161,29 @@ namespace FineUIPro.Web.DocManage
strSql += " AND doc.AcceptMan like @AcceptMan";
listStr.Add(new SqlParameter("@AcceptMan", "%" + drpAcceptMan.SelectedValue + "%"));
}
var uid = CurrUser.UserId;
//我创建的
if (classify == "0")
{
strSql += " AND doc.CompileMan ='" + uid + "' ";
}
//待我处理
else if (classify == "1")
{
strSql += " AND (doc.State ='1' and doc.AcceptMan like'%" + uid + "%' )";
}
//我已处理
else if (classify == "2")
{
strSql += " AND (doc.State ='2' and doc.AcceptMan like'%" + uid + "%' )";
}
//我参与的
else if (classify == "3")
{
strSql += " AND doc.CopyMan like'%" + uid + "%' ";
}
SqlParameter[] parameter = listStr.ToArray();