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

📄 shareclass.cs

📁 汽车销售公司ERP进销存系统 汽车销售公司ERP进销存系统
💻 CS
字号:
using System;
using System.Windows.Forms;
using System.Data;
using CallCenter.BusinessLayer;
using CallCenter.DALFactory;
using CallCenter.IDAL;
using CallCenter.Modules;
using CallCenter.OracleDAL;
namespace CallCenter.BusinessInterfaces.MainForms
{
	/// <summary>
	/// ShareClass 的摘要说明。
	/// </summary>
	public class ShareClass
	{
		public ShareClass()
		{
			//
			// TODO: 在此处添加构造函数逻辑
			//
		}
		static string m_DBServer;
		static string m_DBName;
		static string m_Trusted_Connection;
		static string m_DBUserID;
		static string m_DBPWD;
		static string m_Date;
		static string m_Operator;
		static string m_OperatorChinese;
		static string m_OK="√";
		private string _path="";
		private string _classpath="";
		static string _loginfail="";
		static int _rcolor;//ivr颜色
		static int _gcolor;
		static int _bcolor;
		static string _skin="";//窗体皮肤
		static string _winstate="close";//窗体状态
		static string _FaxOutMsg="";//传真电话号码
		public static string FaxOutMsg
		{
			get
			{
				return _FaxOutMsg;
			}
			set
			{
				_FaxOutMsg=value;
			}
		}
		static string _FaxOutFileMsg="";//传真文件
		public static string FaxOutFileMsg
		{
			get
			{
				return _FaxOutFileMsg;
			}
			set
			{
				_FaxOutFileMsg=value;
			}
		}
		public static string winstate
		{
			get
			{
				return _winstate;
			}
			set
			{
				_winstate=value;
			}
		}
		public static string skin
		{
			get
			{
				return _skin;
			}
			set
			{
				_skin=value;
			}
		}
		public static int Rcolor
		{
			get
			{
				return _rcolor;
			}
			set
			{
				_rcolor=value;
			}
		}
		public static int Gcolor
		{
			get
			{
				return _gcolor;
			}
			set
			{
				_gcolor=value;
			}
		}
		public static int Bcolor
		{
			get
			{
				return _bcolor;
			}
			set
			{
				_bcolor=value;
			}
		}
		static SysoperatorInfo _sysinfo=new SysoperatorInfo();
		public static SysoperatorInfo sysinfo
		{
			get
			{
				return _sysinfo;
			}
			set
			{
				_sysinfo=value;
			}
		}
		//建立人:赵维
		//建立时间:2006-6-6
		//功能:校验数据长度
		public static int checkoutLength(int colLength,TextBox tb,string labelname)
		{
			if(tb.Text.Length>colLength)
			{
				MessageBox.Show(labelname+"输入内容超出范围,请重新输入!!","提示",MessageBoxButtons.OK,MessageBoxIcon.Information);
				tb.Focus();
				return 1;
			}
			return 0;
		}
		//参数:val校验的字符串,labelname标签中文名
		//功能:校验是否为数字
		public static int isNubmic(string val,string labelname)
		{
			for(int i=0;i<val.Length;i++)
			{
				if(Char.IsNumber(val,i)==false)
				{
					MessageBox.Show(labelname+"请输入数字!");
					return 1;
				}
			}
			return 0;
		}
		//参数:dr选择的当前行,col文本框的数组
		//功能:校验列表是否已修改,修改返回值1否则返回值为0
		public static int isSave(DataRow dr,string[] col)
		{
			
			for(int i=0;i<dr.Table.Columns.Count;i++)
			{
				
						if(Convert.ToString(col[i])!=dr[i].ToString())
						{
							return 1;
						}
			}
			return 0;
		}
		public static string loginfail
		{
			get
			{
				return _loginfail;
			}
			set
			{
				_loginfail=value;
			}
		}
		public string path
		{
			get
			{
				return _path;
			}
			set
			{
				_path=value;
			}
		}
		public string classpath
		{
			get
			{
				return _classpath;
			}
			set
			{
				_classpath=value;
			}
		}
		public static string GetOK
		{ 
			get {return m_OK;} 
		} 
		/// <summary>
		/// 数据库名
		/// </summary>
		public static string DBName
		{ 
			get {return m_DBName;} 
			set { m_DBName=value;} 
		} 
		public static string Trusted_Connection
		{ 
			get {return m_Trusted_Connection;} 
			set { m_Trusted_Connection=value;} 
		} 
		/// <summary>
		/// 登陆用户名
		/// </summary>
		public static string DBUserID
		{ 
			get {return m_DBUserID;} 
			set { m_DBUserID=value;} 
		} 
		/// <summary>
		/// 数据服务器名
		/// </summary>
	
		public static string DBServer
		{ 
			get {return m_DBServer;} 
			set { m_DBServer=value;} 
		} 
		/// <summary>
		/// 操作员
		/// </summary>
		public static string Operator
		{ 
			get {return m_Operator;} 
			set { m_Operator=value;} 
		} 
		public static string OperatorChinese
		{ 
			get {return m_OperatorChinese;} 
			set { m_OperatorChinese=value;} 
		} 
		/// <summary>
		/// 操作员
		/// </summary>
		public static string LoginDate
		{ 
			get {return m_Date;} 
			set { m_Date=value;} 
		} 
		/// <summary>
		/// 数据库登陆密码
		/// </summary>
		public static string DBPassword
		{ 
			get {return m_DBPWD;} 
			set { m_DBPWD=value;} 
		} 
	}
}

⌨️ 快捷键说明

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