using System; using System.Collections.Generic; using System.Text; using System.Data; using BP.DA; using BP.En; using BP.Sys; namespace BP.GPM { /// /// 我发起的流程 /// public class BarOfStartlist : BarBase { #region 系统属性. /// /// 流程编号/流程标记. /// override public string No { get { return this.ToString(); } } /// /// 名称 /// override public string Name { get { return "我发起的流程"; } } /// /// 权限控制-是否可以查看 /// override public bool IsCanView { get { if (BP.Difference.SystemConfig.AppCenterDBType == DBType.MSSQL) return true; return false; } } #endregion 系统属性. #region 外观行为. /// /// 标题 /// override public string Title { get { return "我发起的流程"; } } /// /// 更多连接 /// override public string More { get { return "我要发起流程"; } } /// /// 内容信息 /// override public string Documents { get { Paras ps = new Paras(); if (BP.Difference.SystemConfig.AppCenterDBType == DBType.MSSQL) ps.SQL = "SELECT top 9 Title,RDT,FK_Flow,WorkID,FK_Node,Sender FROM WF_GenerWorkFlow WHERE Starter=" + ps.DBStr + "FK_Emp ORDER BY WorkID "; ps.Add("FK_Emp",BP.Web.WebUser.No); DataTable dt = DBAccess.RunSQLReturnTable(ps); string html = ""; int idx = 0; foreach (DataRow dr in dt.Rows) { 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 += ""; html += ""; html += ""; html += ""; html += ""; } html += "
" + idx + "" + title + "" + sender + "
"; return html; } } /// /// 宽度 /// override public string Width { get { return "300"; } } /// /// 高度 /// override public string Height { get { return "200"; } } /// /// 是否整行显示 /// public override bool IsLine { get { return true; } } #endregion 外观行为. } }