Esempio n. 1
0
		private void TranSearch(string msgSerType,string sendFrom,string content,string title,string timeType,string readType)
		{
			DataSet dsTranSearch = null;

			if ( msgSerType.Equals("全部") )
				dsTranSearch = new TransactionSystem().TranSearch(Thread.CurrentPrincipal.Identity.Name,"","","",msgTimeType,msgReadType);
			else if ( msgSerType.Equals("发信人") )
				dsTranSearch = new TransactionSystem().TranSearch(Thread.CurrentPrincipal.Identity.Name,sendFrom,"","",msgTimeType,msgReadType);
			else if ( msgSerType.Equals("信息内容") )
				dsTranSearch = new TransactionSystem().TranSearch(Thread.CurrentPrincipal.Identity.Name,"",content,"",msgTimeType,msgReadType);
			else 
				dsTranSearch = new TransactionSystem().TranSearch(Thread.CurrentPrincipal.Identity.Name,"","",title,msgTimeType,msgReadType);

			if ( dsTranSearch != null )
				gridControl2.DataSource = dsTranSearch.Tables[0];
		}
Esempio n. 2
0
		public void SetMsgStatus()
		{
			int getMsgNumbers = new TransactionSystem().GetMsgNumbers(Thread.CurrentPrincipal.Identity.Name);

			if ( getMsgNumbers > 0 )
			{
				barStaticItem_Custom.Caption = "您的信箱里有"+getMsgNumbers+"条未读信息,请收阅!";
				barStatus.Appearance.ForeColor = System.Drawing.Color.Red;
			}
			else
			{
				barStaticItem_Custom.Caption = "";
				barStatus.Appearance.ForeColor = System.Drawing.Color.Black;
			}
		}