MyPrompt.aspx.cs
上传用户:simon2hong
上传日期:2021-11-18
资源大小:16746k
文件大小:22k
- using System;
- using System.Data;
- using System.Configuration;
- using System.Collections.Generic;
- using System.Web;
- using System.Web.Security;
- using System.Web.UI;
- using System.Web.UI.WebControls;
- using System.Web.UI.WebControls.WebParts;
- using System.Web.UI.HtmlControls;
- public partial class MyDeskTop_MyPrompt : System.Web.UI.Page
- {
- /// <summary>
- /// 待办的公文
- /// </summary>
- public string WaitForWorkStr = "";
- /// <summary>
- /// 新闻
- /// </summary>
- public string NewsStr = "";
- /// <summary>
- /// 公告
- /// </summary>
- public string ADStr = "";
- /// <summary>
- /// 邮件
- /// </summary>
- public string EmailStr = "";
- /// <summary>
- /// 调查问卷
- /// </summary>
- public string MyFileStr = "";
- /// <summary>
- /// 考勤记录
- /// </summary>
- public string MyAttenDanceStr = "";
- /// <summary>
- /// 提示消息
- /// </summary>
- public string MsgStr = "";
- protected void Page_Load(object sender, EventArgs e)
- {
- RtWaitForWorkStr();
- RtNewsStr();
- RtADStr();
- RtEmailStr();
- RtMyFileStr();
- RtMyFileStr();
- RtMyAttenDanceStr();
- RtMsgStr();
- }
- /// <summary>
- /// 获取新闻内容
- /// </summary>
- public void RtWaitForWorkStr()
- {
- WaitForWorkStr = @" <tr>
- <td class=""usertablerow2"" align=""right"" style=""width: 82px"">
- </td>
- <td class=""usertablerow2"">
- </td>
- </tr>
- <tr>
- <td class=""usertablerow2"" align=""right"" style=""width: 82px"">
- </td>
- <td class=""usertablerow2"">
- </td>
- </tr>
- <tr>
- <td class=""usertablerow1"" style=""height: 25px; width: 82px;"" align=""right"">
- </td>
- <td class=""usertablerow1"" style=""height: 25px"">
- </td>
- </tr>
- <tr>
- <td class=""usertablerow1"" style=""height: 25px; width: 82px;"" align=""right"">
- </td>
- <td class=""usertablerow1"" style=""height: 25px"">
- </td>
- </tr>
- <tr>
- <td class=""usertablerow2"" align=""right"" style=""width: 82px; height: 26px;"">
- </td>
- <td class=""usertablerow2"" style=""height: 26px"">
- </td>
- </tr>";
- List<Model.FlowRun> LRData = new BLL.FlowRun().GetPageList(5, 1, "ID", false, "YXZT='运行中' and XBR='" + SessionInclude.SessionId + "'");
- if (LRData.Count > 0)
- {
- WaitForWorkStr = "";
- foreach (Model.FlowRun LR in LRData)
- {
- WaitForWorkStr += @" <tr>
- <td class=""usertablerow2"" align=""right"" style=""width: 82px; height: 25px;"">
- <font color=""green"">办理中</font></td>
- <td class=""usertablerow2"" style=""height: 26px"">
- <a href=""../Work/WorkEdit.aspx?id=" + LR.XBR + @""">" + EnumGet.GetFlowBaseTypeName(LR.BZID) + "</a>〖" + EnumGet.GetFlowBaseFormName(LR.BZID) + @"〗</td>
- </tr>";
- }
- int loop = 5 - LRData.Count;
- for (int i = 0; i < loop; i++)
- {
- WaitForWorkStr += @" <tr>
- <td class=""usertablerow2"" align=""right"" style=""width: 82px; height: 26px;"">
- </td>
- <td class=""usertablerow2"" style=""height: 26px"">
- </td>
- </tr>";
- }
- }
- }
- /// <summary>
- /// 获取新闻内容
- /// </summary>
- public void RtNewsStr()
- {
- NewsStr = @" <tr>
- <td class=""usertablerow2"" align=""right"" style=""width: 82px"">
- </td>
- <td class=""usertablerow2"">
- </td>
- </tr>
- <tr>
- <td class=""usertablerow2"" align=""right"" style=""width: 82px"">
- </td>
- <td class=""usertablerow2"">
- </td>
- </tr>
- <tr>
- <td class=""usertablerow1"" style=""height: 25px; width: 82px;"" align=""right"">
- </td>
- <td class=""usertablerow1"" style=""height: 25px"">
- </td>
- </tr>
- <tr>
- <td class=""usertablerow1"" style=""height: 25px; width: 82px;"" align=""right"">
- </td>
- <td class=""usertablerow1"" style=""height: 25px"">
- </td>
- </tr>
- <tr>
- <td class=""usertablerow2"" align=""right"" style=""width: 82px; height: 26px;"">
- </td>
- <td class=""usertablerow2"" style=""height: 26px"">
- </td>
- </tr>";
- List<Model.INFONews> LRData = new BLL.INFONews().GetPageList(5, 1, "ID", false, "");
- if (LRData.Count > 0)
- {
- NewsStr = "";
- foreach (Model.INFONews LR in LRData)
- {
- NewsStr += @" <tr>
- <td class=""usertablerow2"" align=""right"" style=""width: 82px; height: 26px;"">
- " + LR.SJ.ToString("yyyy-MM-dd") + @"</td>
- <td class=""usertablerow2"" style=""height: 26px"">
- <a href='../InFos/InfoView.aspx?id=" + LR.ID + @"'>" + LR.ZT + @"</a></td>
- </tr>";
- }
- int loop = 5 - LRData.Count;
- for (int i = 0; i < loop; i++)
- {
- NewsStr += @" <tr>
- <td class=""usertablerow2"" align=""right"" style=""width: 82px; height: 26px;"">
- </td>
- <td class=""usertablerow2"" style=""height: 26px"">
- </td>
- </tr>";
- }
- }
-
- }
- /// <summary>
- /// 获取公告内容
- /// </summary>
- public void RtADStr()
- {
- ADStr = @" <tr>
- <td class=""usertablerow2"" align=""right"" style=""width: 82px"">
- </td>
- <td class=""usertablerow2"">
- </td>
- </tr>
- <tr>
- <td class=""usertablerow2"" align=""right"" style=""width: 82px"">
- </td>
- <td class=""usertablerow2"">
- </td>
- </tr>
- <tr>
- <td class=""usertablerow1"" style=""height: 25px; width: 82px;"" align=""right"">
- </td>
- <td class=""usertablerow1"" style=""height: 25px"">
- </td>
- </tr>
- <tr>
- <td class=""usertablerow1"" style=""height: 25px; width: 82px;"" align=""right"">
- </td>
- <td class=""usertablerow1"" style=""height: 25px"">
- </td>
- </tr>
- <tr>
- <td class=""usertablerow2"" align=""right"" style=""width: 82px; height: 26px;"">
- </td>
- <td class=""usertablerow2"" style=""height: 26px"">
- </td>
- </tr>";
- List<Model.INFOADNews> LRData =new BLL.INFOADNews().GetPageList(5, 1, "ID", false, "");
- if (LRData.Count > 0)
- {
- ADStr = "";
- foreach (Model.INFOADNews LR in LRData)
- {
- ADStr += @" <tr>
- <td class=""usertablerow2"" align=""right"" style=""width: 82px; height: 26px;"">
- " + LR.SJ.ToString("yyyy-MM-dd") + @"</td>
- <td class=""usertablerow2"" style=""height: 26px"">
- <a href='../InFos/AdInfoView.aspx?id=" + LR.ID + @"'>" + LR.ZT + @"</a></td>
- </tr>";
- }
- int loop = 5 - LRData.Count;
- for (int i = 0; i < loop; i++)
- {
- ADStr += @" <tr>
- <td class=""usertablerow2"" align=""right"" style=""width: 82px; height: 26px;"">
- </td>
- <td class=""usertablerow2"" style=""height: 26px"">
- </td>
- </tr>";
- }
- }
- }
- /// <summary>
- /// 获取邮件内容
- /// </summary>
- public void RtEmailStr()
- {
- EmailStr = @" <tr>
- <td class=""usertablerow2"" align=""right"" style=""width: 82px"">
- </td>
- <td class=""usertablerow2"">
- </td>
- </tr>
- <tr>
- <td class=""usertablerow2"" align=""right"" style=""width: 82px"">
- </td>
- <td class=""usertablerow2"">
- </td>
- </tr>
- <tr>
- <td class=""usertablerow1"" style=""height: 25px; width: 82px;"" align=""right"">
- </td>
- <td class=""usertablerow1"" style=""height: 25px"">
- </td>
- </tr>
- <tr>
- <td class=""usertablerow1"" style=""height: 25px; width: 82px;"" align=""right"">
- </td>
- <td class=""usertablerow1"" style=""height: 25px"">
- </td>
- </tr>
- <tr>
- <td class=""usertablerow2"" align=""right"" style=""width: 82px; height: 26px;"">
- </td>
- <td class=""usertablerow2"" style=""height: 26px"">
- </td>
- </tr>";
- List<Model.Mails> LRData = new BLL.Mails().GetPageList(5, 1, "SenderDate", false, "ToAddress='" + SessionInclude.SessionId + "' and FolderID=3");
- if (LRData.Count > 0)
- {
- EmailStr = "";
- foreach (Model.Mails LR in LRData)
- {
- EmailStr += @" <tr>
- <td class=""usertablerow2"" align=""right"" style=""width: 82px; height: 26px;"">
- " + LR.SenderDate.ToString("yyyy-MM-dd") + @"</td>
- <td class=""usertablerow2"" style=""height: 26px"">
- <a href='../EmailSystem/Reader.aspx?MailID=" + LR.MailID + @"&FolderID=3'>" + LR.Title + @"</a></td>
- </tr>";
- }
- int loop = 5 - LRData.Count;
- for (int i = 0; i < loop; i++)
- {
- EmailStr += @" <tr>
- <td class=""usertablerow2"" align=""right"" style=""width: 82px; height: 26px;"">
- </td>
- <td class=""usertablerow2"" style=""height: 26px"">
- </td>
- </tr>";
- }
- }
- }
- /// <summary>
- /// 调查问卷
- /// </summary>
- public void RtMyFileStr()
- {
- MyFileStr = @" <tr>
- <td class=""usertablerow2"" align=""right"" style=""width: 82px"">
- </td>
- <td class=""usertablerow2"">
- </td>
- </tr>
- <tr>
- <td class=""usertablerow2"" align=""right"" style=""width: 82px"">
- </td>
- <td class=""usertablerow2"">
- </td>
- </tr>
- <tr>
- <td class=""usertablerow1"" style=""height: 25px; width: 82px;"" align=""right"">
- </td>
- <td class=""usertablerow1"" style=""height: 25px"">
- </td>
- </tr>
- <tr>
- <td class=""usertablerow1"" style=""height: 25px; width: 82px;"" align=""right"">
- </td>
- <td class=""usertablerow1"" style=""height: 25px"">
- </td>
- </tr>
- <tr>
- <td class=""usertablerow2"" align=""right"" style=""width: 82px; height: 26px;"">
- </td>
- <td class=""usertablerow2"" style=""height: 26px"">
- </td>
- </tr>";
- List<Model.Asks> LRData = new BLL.Asks().GetPageList(5, 1, "ID", false, "");
- if (LRData.Count > 0)
- {
- MyFileStr = "";
- foreach (Model.Asks LR in LRData)
- {
- MyFileStr += @" <tr>
- <td class=""usertablerow2"" align=""right"" style=""width: 82px; height: 26px;"">
- " + LR.DCSJ.ToString("yyyy-MM-dd") + @"</td>
- <td class=""usertablerow2"" style=""height: 26px"">
- <a href='../InFos/AskView.aspx?id=" + LR.ID + @"'>" + LR.DCNR + @"</a></td>
- </tr>";
- }
- int loop = 5 - LRData.Count;
- for (int i = 0; i < loop; i++)
- {
- MyFileStr += @" <tr>
- <td class=""usertablerow2"" align=""right"" style=""width: 82px; height: 26px;"">
- </td>
- <td class=""usertablerow2"" style=""height: 26px"">
- </td>
- </tr>";
- }
- }
- }
- /// <summary>
- /// 获取考勤内容
- /// </summary>
- public void RtMyAttenDanceStr()
- {
- MyAttenDanceStr = @" <tr>
- <td class=""usertablerow2"" align=""right"" style=""width: 82px"">
- </td>
- <td class=""usertablerow2"">
- </td>
- </tr>
- <tr>
- <td class=""usertablerow2"" align=""right"" style=""width: 82px"">
- </td>
- <td class=""usertablerow2"">
- </td>
- </tr>
- <tr>
- <td class=""usertablerow1"" style=""height: 25px; width: 82px;"" align=""right"">
- </td>
- <td class=""usertablerow1"" style=""height: 25px"">
- </td>
- </tr>
- <tr>
- <td class=""usertablerow1"" style=""height: 25px; width: 82px;"" align=""right"">
- </td>
- <td class=""usertablerow1"" style=""height: 25px"">
- </td>
- </tr>
- <tr>
- <td class=""usertablerow2"" align=""right"" style=""width: 82px; height: 26px;"">
- </td>
- <td class=""usertablerow2"" style=""height: 26px"">
- </td>
- </tr>";
- List<Model.AttenDance> LRData = new BLL.AttenDance().GetPageList(5, 1, "ID", false, "");
- if (LRData.Count > 0)
- {
- MyAttenDanceStr = "";
- foreach (Model.AttenDance LR in LRData)
- {
- MyAttenDanceStr += @" <tr>
- <td class=""usertablerow2"" align=""right"" style=""width: 82px; height: 26px;"">
- " + LR.KQLX + @"</td>
- <td class=""usertablerow2"" style=""height: 26px"">
- " + LR.DJSJ.ToString("yyyy-MM-dd HH:mm:ss")+ @"</td>
- </tr>";
- }
- int loop = 5 - LRData.Count;
- for (int i = 0; i < loop; i++)
- {
- MyAttenDanceStr += @" <tr>
- <td class=""usertablerow2"" align=""right"" style=""width: 82px; height: 26px;"">
- </td>
- <td class=""usertablerow2"" style=""height: 26px"">
- </td>
- </tr>";
- }
- }
- }
- /// <summary>
- /// 短信息
- /// </summary>
- public void RtMsgStr()
- {
- MsgStr = @" <tr>
- <td class=""usertablerow2"" align=""right"" style=""width: 82px"">
- </td>
- <td class=""usertablerow2"">
- </td>
- </tr>
- <tr>
- <td class=""usertablerow2"" align=""right"" style=""width: 82px"">
- </td>
- <td class=""usertablerow2"">
- </td>
- </tr>
- <tr>
- <td class=""usertablerow1"" style=""height: 25px; width: 82px;"" align=""right"">
- </td>
- <td class=""usertablerow1"" style=""height: 25px"">
- </td>
- </tr>
- <tr>
- <td class=""usertablerow1"" style=""height: 25px; width: 82px;"" align=""right"">
- </td>
- <td class=""usertablerow1"" style=""height: 25px"">
- </td>
- </tr>
- <tr>
- <td class=""usertablerow2"" align=""right"" style=""width: 82px; height: 26px;"">
- </td>
- <td class=""usertablerow2"" style=""height: 26px"">
- </td>
- </tr><tr>
- <td class=""usertablerow2"" align=""right"" style=""width: 82px"">
- </td>
- <td class=""usertablerow2"">
- </td>
- </tr>
- <tr>
- <td class=""usertablerow2"" align=""right"" style=""width: 82px"">
- </td>
- <td class=""usertablerow2"">
- </td>
- </tr>
- <tr>
- <td class=""usertablerow1"" style=""height: 25px; width: 82px;"" align=""right"">
- </td>
- <td class=""usertablerow1"" style=""height: 25px"">
- </td>
- </tr>
- <tr>
- <td class=""usertablerow1"" style=""height: 25px; width: 82px;"" align=""right"">
- </td>
- <td class=""usertablerow1"" style=""height: 25px"">
- </td>
- </tr>
- <tr>
- <td class=""usertablerow1"" style=""height: 25px; width: 82px;"" align=""right"">
- </td>
- <td class=""usertablerow1"" style=""height: 25px"">
- </td>
- </tr>
- <tr>
- <td class=""usertablerow2"" align=""right"" style=""width: 82px; height: 26px;"">
- </td>
- <td class=""usertablerow2"" style=""height: 26px"">
- </td>
- </tr>";
- List<Model.Sms> LRData = new BLL.Sms().GetPageList(11, 1, "ID", false, "ToId='" + SessionInclude.SessionId + "' and type=0");
- if (LRData.Count > 0)
- {
- MsgStr = "";
- foreach (Model.Sms LR in LRData)
- {
- MsgStr += @" <tr>
- <td class=""usertablerow2"" align=""right"" style=""width: 82px; height: 26px;"">
- " + LR.SendTime.ToString("yyyy-MM-dd") + @"</td>
- <td class=""usertablerow2"" style=""height: 26px"">
- <a href='../SMS/SMSManager.aspx'>" + LR.Content + @"</a></td>
- </tr>";
- }
- int loop = 11 - LRData.Count;
- for (int i = 0; i < loop; i++)
- {
- MsgStr += @" <tr>
- <td class=""usertablerow2"" align=""right"" style=""width: 82px; height: 26px;"">
- </td>
- <td class=""usertablerow2"" style=""height: 26px"">
- </td>
- </tr>";
- }
- }
- }
- }