修改关键事项与沟通协调
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -162,7 +162,7 @@
|
||||
<Items>
|
||||
<f:RadioButtonList runat="server" ID="drpHandleType" Label="办理步骤" LabelWidth="120px" ShowRedStar="true" AutoPostBack="true" OnSelectedIndexChanged="drpHandleType_SelectedIndexChanged" AutoColumnWidth="true">
|
||||
<f:RadioItem Text="请回复和处理" Value="1" Selected="true" />
|
||||
<f:RadioItem Text="请知悉了解" Value="2" />
|
||||
<f:RadioItem Text="已知悉了解" Value="2" />
|
||||
</f:RadioButtonList>
|
||||
<f:DatePicker ID="txtFinishTime" runat="server" Label="要求完成时间" LabelWidth="120px" LabelAlign="Right"
|
||||
EnableEdit="true">
|
||||
|
||||
@@ -94,6 +94,11 @@
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox runat="server" ID="txtCopyMan" Label="抄送人员" Readonly="True" Enabled="False"/>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:HtmlEditor runat="server" Label=" " ID="txtDocContent" ShowLabel="false"
|
||||
|
||||
@@ -45,6 +45,16 @@ namespace FineUIPro.Web.DocManage
|
||||
}
|
||||
}
|
||||
|
||||
private string GetUserNames(string Ids)
|
||||
{
|
||||
string[] arr = Ids.Split(',');
|
||||
var data = Funs.DB.Sys_User.Where(t => arr.Contains(t.UserId)).Select(t => t.UserName).ToList();
|
||||
if (data.Count > 0)
|
||||
return string.Join(",", data);
|
||||
return null;
|
||||
|
||||
}
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
@@ -82,6 +92,14 @@ namespace FineUIPro.Web.DocManage
|
||||
{
|
||||
State = Const.Doc_State_0;
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(doc.CopyMan))
|
||||
{
|
||||
txtCopyMan.Text = GetUserNames(doc.CopyMan);
|
||||
}
|
||||
|
||||
|
||||
|
||||
BindGrid();
|
||||
if (!string.IsNullOrEmpty(Type) && Type == "notice")
|
||||
{
|
||||
|
||||
@@ -140,6 +140,15 @@ namespace FineUIPro.Web.DocManage
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtFinishTime;
|
||||
|
||||
/// <summary>
|
||||
/// txtCopyMan 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtCopyMan;
|
||||
|
||||
/// <summary>
|
||||
/// txtDocContent 控件。
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user