/// <summary> /// 返回意见列表 /// </summary> /// <param name="gid">公文ID</param> /// <returns></returns> public string getAdvice(string gid) { string list = ""; Tunnel.BLL.Tunnel_Advice bta = new Tunnel.BLL.Tunnel_Advice(); DataSet ds = bta.GetList("a_gid=" + gid); if (ds.Tables[0].Rows.Count > 0) { int ifd = 0; foreach (DataRow dr in ds.Tables[0].Rows) { try { ifd++; string username = Tunnel.Common.GetValue.getDataValue("Tunnel_menber", "m_name", "m_id=" + dr["a_user"]); list += "<tr><td align=\"left\" colspan=\"2\" rowspan=\"1\" style=\"height: 30px; width: 662px;padding-left:5px\">第 " + ifd + " 步 <font color=blue>" + username + "</font> :<br/>" + dr["a_content"].ToString() + " " + dr["a_time"].ToString() + "</td></tr>"; } catch { list += ""; } } return(list); } else { return(""); } }
/// <summary> /// 返回意见列表 /// </summary> /// <param name="gid">公文ID</param> /// <returns></returns> public string getAdvice(string gid) { string list = ""; Tunnel.BLL.Tunnel_Advice bta = new Tunnel.BLL.Tunnel_Advice(); DataSet ds = bta.GetList("a_gid=" + gid); if (ds.Tables[0].Rows.Count > 0) { foreach (DataRow dr in ds.Tables[0].Rows) { try { Tunnel.BLL.Tunnel_step bts = new Tunnel.BLL.Tunnel_step(); Tunnel.Model.Tunnel_step mts = new Tunnel.Model.Tunnel_step(); mts = bts.GetModel(Convert.ToInt32(dr["a_bid"])); string username = Tunnel.Common.GetValue.getDataValue("Tunnel_menber", "m_name", "m_id=" + dr["a_user"]); list += "<tr><td align=\"left\" colspan=\"2\" rowspan=\"1\" style=\"height: 30px; width: 662px;padding-left:5px\">第 " + mts.s_num + " 步【" + mts.s_name + "】" + username + " :<br/>" + dr["a_content"].ToString() + " " + dr["a_time"].ToString() + "</td></tr>"; } catch { list += ""; } } return(list); } else { return(""); } }
public string GetAtive(string uid, string gid) { string advice = " "; Tunnel.BLL.Tunnel_Advice bta = new Tunnel.BLL.Tunnel_Advice(); if (!string.IsNullOrEmpty(uid) && !string.IsNullOrEmpty(gid)) { if (uid != "0" && gid != "0") { DataSet ds = bta.GetList("a_gid=" + gid + " and a_user="******"a_content"].ToString(); } } } return(advice); }