?? shareclass.cs
字號(hào):
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 的摘要說(shuō)明。
/// </summary>
public class ShareClass
{
public ShareClass()
{
//
// TODO: 在此處添加構(gòu)造函數(shù)邏輯
//
}
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";//窗體狀態(tài)
static string _FaxOutMsg="";//傳真電話號(hào)碼
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;
}
}
//建立人:趙維
//建立時(shí)間:2006-6-6
//功能:校驗(yàn)數(shù)據(jù)長(zhǎng)度
public static int checkoutLength(int colLength,TextBox tb,string labelname)
{
if(tb.Text.Length>colLength)
{
MessageBox.Show(labelname+"輸入內(nèi)容超出范圍,請(qǐng)重新輸入!!","提示",MessageBoxButtons.OK,MessageBoxIcon.Information);
tb.Focus();
return 1;
}
return 0;
}
//參數(shù):val校驗(yàn)的字符串,labelname標(biāo)簽中文名
//功能:校驗(yàn)是否為數(shù)字
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+"請(qǐng)輸入數(shù)字!");
return 1;
}
}
return 0;
}
//參數(shù):dr選擇的當(dāng)前行,col文本框的數(shù)組
//功能:校驗(yàn)列表是否已修改,修改返回值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>
/// 數(shù)據(jù)庫(kù)名
/// </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>
/// 登陸用戶(hù)名
/// </summary>
public static string DBUserID
{
get {return m_DBUserID;}
set { m_DBUserID=value;}
}
/// <summary>
/// 數(shù)據(jù)服務(wù)器名
/// </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>
/// 數(shù)據(jù)庫(kù)登陸密碼
/// </summary>
public static string DBPassword
{
get {return m_DBPWD;}
set { m_DBPWD=value;}
}
}
}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -