You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
142 lines
3.6 KiB
Plaintext
142 lines
3.6 KiB
Plaintext
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using System.Data;
|
|
using BP.DA;
|
|
using BP.En;
|
|
|
|
namespace BP.GPM
|
|
{
|
|
/// <summary>
|
|
/// 流程待办
|
|
/// </summary>
|
|
public class BarOfTodolist : BarBase
|
|
{
|
|
#region 系统属性.
|
|
/// <summary>
|
|
/// 标记
|
|
/// </summary>
|
|
override public string No
|
|
{
|
|
get
|
|
{
|
|
return this.ToString();
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// 名称
|
|
/// </summary>
|
|
override public string Name
|
|
{
|
|
get
|
|
{
|
|
return "待办流程";
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// 权限控制-是否可以查看
|
|
/// </summary>
|
|
override public bool IsCanView
|
|
{
|
|
get
|
|
{
|
|
if (BP.Web.WebUser.No.Equals("admin")==true)
|
|
return true; //任何人都可以看到.
|
|
else
|
|
return false;
|
|
}
|
|
}
|
|
#endregion 系统属性.
|
|
|
|
#region 外观行为.
|
|
/// <summary>
|
|
/// 标题
|
|
/// </summary>
|
|
override public string Title
|
|
{
|
|
get
|
|
{
|
|
return "待办";
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// 更多连接
|
|
/// </summary>
|
|
override public string More
|
|
{
|
|
get
|
|
{
|
|
return "<a href='/WF/Todolist.htm' target=_self >更多</a>";
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// 内容信息
|
|
/// </summary>
|
|
override public string Documents
|
|
{
|
|
get
|
|
{
|
|
string sql = "select A.WorkID, A.FK_Flow, A.FK_Node, A.Title , A.Sender, A.RDT FROM WF_GenerWorkFlow A , WF_GenerWorkerlist B WHERE A.WorkID=B.WorkID AND B.IsPass=0 AND B.FK_Emp='" + Web.WebUser.No + "' ";
|
|
|
|
DataTable dt = DBAccess.RunSQLReturnTable(sql);
|
|
if (dt.Rows.Count == 0)
|
|
return "无待办工作...";
|
|
|
|
string html = "<table>";
|
|
|
|
Int32 idx = 0;
|
|
foreach (DataRow dr in dt.Rows)
|
|
{
|
|
if (idx == 8)
|
|
break;
|
|
|
|
string fk_flow = dr["FK_Flow"].ToString();
|
|
string workID = dr["WorkID"].ToString();
|
|
string nodeID = dr["FK_Node"].ToString();
|
|
string title = dr["Title"].ToString();
|
|
string sender = dr["Sender"].ToString();
|
|
string rdt = dr["RDT"].ToString();
|
|
|
|
idx++;
|
|
html += "<tr>";
|
|
html += "<td>"+idx+"</td>";
|
|
html += "<td><a href='../../WF/MyFlow.htm?FK_Flow=" + fk_flow + "&WorkID=" + workID + "&FK_Node=" + nodeID + "&1=2' target=_blank >" + title + "</a></td>";
|
|
html += "<td>" + sender + "</td>";
|
|
html += "</tr>";
|
|
}
|
|
|
|
html += "</table>";
|
|
return html;
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// 宽度
|
|
/// </summary>
|
|
override public string Width
|
|
{
|
|
get
|
|
{
|
|
return "300";
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// 高度
|
|
/// </summary>
|
|
override public string Height
|
|
{
|
|
get
|
|
{
|
|
return "200";
|
|
}
|
|
}
|
|
public override bool IsLine
|
|
{
|
|
get
|
|
{
|
|
return false;
|
|
}
|
|
}
|
|
#endregion 外观行为.
|
|
}
|
|
}
|