⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 messagefolder.aspx.cs

📁 专业的办公oa代码下载 c#语言编写 三层结构
💻 CS
字号:
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using qminoa.DA;
namespace qminoa.Webs.Msg
{
	public class MessageFolder : qminoa.Webs.PageBase
	{
		protected System.Web.UI.WebControls.DataGrid gridFolder;
	
		private void Page_Load(object sender, System.EventArgs e)
		{
			this.PageBegin("信息箱",false);
			string [] info_list = (new MsgObj()).MsgFolder(this.Empid); 

			DataTable table = new DataTable("infolist");
			DataColumnCollection columns = table.Columns;
			columns.Add("msgbox",typeof(System.String));
			columns.Add("msgbox_pic",typeof(System.String));
			columns.Add("total",typeof(System.String));
			columns.Add("new",typeof(System.String));
			string [] img_folder = new string [4];
			img_folder[0] = "<img src='image/inbox.gif' border='0'>收信息箱";
			img_folder[1] = "<img src='image/inbox.gif' border='0'>发信息箱";
			img_folder[2] = "<img src='image/inbox.gif' border='0'>草稿箱";
			img_folder[3] = "<img src='image/inbox.gif' border='0'>垃圾箱";
			string [] msgbox = new string [4];
			msgbox[0]="recnote";
			msgbox[1]="sendnote";
			msgbox[2]="caonote";
			msgbox[3] = "lanote";
			string [] msgcount = new string [4];
			int total = 0;
			total = Convert.ToInt32(info_list[1],10)+Convert.ToInt32(info_list[2],10);
			msgcount[0] = total.ToString();
			msgcount[1] = info_list[0];
			msgcount[2] = info_list[3];
			total = Convert.ToInt32(info_list[4],10)+ Convert.ToInt32(info_list[5],10);
			msgcount[3] = total.ToString();
			for(int i = 0; i < 4; i++)
			{
				DataRow row = table.NewRow();
				row["msgbox"] = msgbox[i];
				row["msgbox_pic"] = img_folder[i];
				row["total"] = msgcount[i];
				if(i == 0)
				{
					row["new"] = info_list[1];
				}
				table.Rows.Add(row);
			}
			gridFolder.DataSource = table.DefaultView;
			gridFolder.DataBind();
		}

		#region Web Form Designer generated code
		override protected void OnInit(EventArgs e)
		{
			//
			// CODEGEN:该调用是 ASP.NET Web 窗体设计器所必需的。
			//
			InitializeComponent();
			base.OnInit(e);
		}
		
		/// <summary>
		/// 设计器支持所需的方法 - 不要使用代码编辑器修改
		/// 此方法的内容。
		/// </summary>
		private void InitializeComponent()
		{    
			this.Load += new System.EventHandler(this.Page_Load);

		}
		#endregion
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -