亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? frmlogin.cs

?? 汽車銷售公司ERP進銷存系統 汽車銷售公司ERP進銷存系統
?? CS
字號:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using CallCenter.BusinessLayer;
using CallCenter.DALFactory;
using CallCenter.IDAL;
using CallCenter.Modules;
using CallCenter.OracleDAL;
using System.Data;
using System.IO;
using System.Xml;
using CallCenter.BusinessInterfaces.MainForms;

namespace CallCenter.BusinessInterfaces.MainForms
{
	/// <summary>
	/// frmLogIn 的摘要說明。
	/// </summary>
	public class frmLogIn : BaseFormGradient
	{
		private System.Windows.Forms.PictureBox pictureBox1;
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.Label label2;
		private System.Windows.Forms.Label label3;
		private System.Windows.Forms.Label lblSplit;
		private int i=0;
		private DevExpress.XtraEditors.PanelControl panelControl1;
		private DevExpress.XtraEditors.DateEdit dtp_LogInDate;
		private DevExpress.XtraEditors.ComboBoxEdit cbo_Operator;
		private DevExpress.XtraEditors.TextEdit txt_PassWord;
		private DevExpress.XtraEditors.SimpleButton cmd_OK;
		private DevExpress.XtraEditors.SimpleButton cmd_Cancel;
		private DevExpress.LookAndFeel.DefaultLookAndFeel defaultLookAndFeel1;
		private System.ComponentModel.IContainer components;

		public frmLogIn()
		{
			//
			// Windows 窗體設計器支持所必需的
			//
			InitializeComponent();
			
			//
			// TODO: 在 InitializeComponent 調用后添加任何構造函數代碼
			//
		}

		/// <summary>
		/// 清理所有正在使用的資源。
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows 窗體設計器生成的代碼
		/// <summary>
		/// 設計器支持所需的方法 - 不要使用代碼編輯器修改
		/// 此方法的內容。
		/// </summary>
		private void InitializeComponent()
		{
			this.components = new System.ComponentModel.Container();
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(frmLogIn));
			this.pictureBox1 = new System.Windows.Forms.PictureBox();
			this.label1 = new System.Windows.Forms.Label();
			this.label2 = new System.Windows.Forms.Label();
			this.label3 = new System.Windows.Forms.Label();
			this.lblSplit = new System.Windows.Forms.Label();
			this.panelControl1 = new DevExpress.XtraEditors.PanelControl();
			this.cmd_Cancel = new DevExpress.XtraEditors.SimpleButton();
			this.cmd_OK = new DevExpress.XtraEditors.SimpleButton();
			this.txt_PassWord = new DevExpress.XtraEditors.TextEdit();
			this.cbo_Operator = new DevExpress.XtraEditors.ComboBoxEdit();
			this.dtp_LogInDate = new DevExpress.XtraEditors.DateEdit();
			this.defaultLookAndFeel1 = new DevExpress.LookAndFeel.DefaultLookAndFeel(this.components);
			((System.ComponentModel.ISupportInitialize)(this.panelControl1)).BeginInit();
			this.panelControl1.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)(this.txt_PassWord.Properties)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.cbo_Operator.Properties)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.dtp_LogInDate.Properties)).BeginInit();
			this.SuspendLayout();
			// 
			// pictureBox1
			// 
			this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
			this.pictureBox1.Location = new System.Drawing.Point(7, 15);
			this.pictureBox1.Name = "pictureBox1";
			this.pictureBox1.Size = new System.Drawing.Size(81, 79);
			this.pictureBox1.TabIndex = 0;
			this.pictureBox1.TabStop = false;
			// 
			// label1
			// 
			this.label1.AutoSize = true;
			this.label1.BackColor = System.Drawing.Color.Transparent;
			this.label1.Location = new System.Drawing.Point(130, 24);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(54, 17);
			this.label1.TabIndex = 6;
			this.label1.Text = "日  期:";
			this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// label2
			// 
			this.label2.AutoSize = true;
			this.label2.BackColor = System.Drawing.Color.Transparent;
			this.label2.Location = new System.Drawing.Point(130, 48);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(54, 17);
			this.label2.TabIndex = 7;
			this.label2.Text = "操作員:";
			this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// label3
			// 
			this.label3.AutoSize = true;
			this.label3.BackColor = System.Drawing.Color.Transparent;
			this.label3.Location = new System.Drawing.Point(130, 70);
			this.label3.Name = "label3";
			this.label3.Size = new System.Drawing.Size(54, 17);
			this.label3.TabIndex = 8;
			this.label3.Text = "密  碼:";
			this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// lblSplit
			// 
			this.lblSplit.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
			this.lblSplit.ForeColor = System.Drawing.SystemColors.ControlLightLight;
			this.lblSplit.Location = new System.Drawing.Point(-77, 134);
			this.lblSplit.Name = "lblSplit";
			this.lblSplit.Size = new System.Drawing.Size(523, 3);
			this.lblSplit.TabIndex = 9;
			this.lblSplit.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			// 
			// panelControl1
			// 
			this.panelControl1.Appearance.BackColor = System.Drawing.Color.Transparent;
			this.panelControl1.Appearance.Options.UseBackColor = true;
			this.panelControl1.Controls.Add(this.cmd_Cancel);
			this.panelControl1.Controls.Add(this.cmd_OK);
			this.panelControl1.Controls.Add(this.txt_PassWord);
			this.panelControl1.Controls.Add(this.cbo_Operator);
			this.panelControl1.Controls.Add(this.dtp_LogInDate);
			this.panelControl1.Controls.Add(this.lblSplit);
			this.panelControl1.Controls.Add(this.label3);
			this.panelControl1.Controls.Add(this.label2);
			this.panelControl1.Controls.Add(this.label1);
			this.panelControl1.Controls.Add(this.pictureBox1);
			this.panelControl1.Dock = System.Windows.Forms.DockStyle.Fill;
			this.panelControl1.Location = new System.Drawing.Point(0, 0);
			this.panelControl1.Name = "panelControl1";
			this.panelControl1.Size = new System.Drawing.Size(350, 144);
			this.panelControl1.TabIndex = 10;
			this.panelControl1.Text = "panelControl1";
			// 
			// cmd_Cancel
			// 
			this.cmd_Cancel.Location = new System.Drawing.Point(236, 98);
			this.cmd_Cancel.Name = "cmd_Cancel";
			this.cmd_Cancel.TabIndex = 14;
			this.cmd_Cancel.Text = "取消(&C)";
			this.cmd_Cancel.Click += new System.EventHandler(this.cmd_Cancel_Click);
			// 
			// cmd_OK
			// 
			this.cmd_OK.Location = new System.Drawing.Point(132, 98);
			this.cmd_OK.Name = "cmd_OK";
			this.cmd_OK.TabIndex = 13;
			this.cmd_OK.Text = "確定(&O)";
			this.cmd_OK.Click += new System.EventHandler(this.cmd_OK_Click);
			// 
			// txt_PassWord
			// 
			this.txt_PassWord.EditValue = "";
			this.txt_PassWord.Location = new System.Drawing.Point(196, 68);
			this.txt_PassWord.Name = "txt_PassWord";
			// 
			// txt_PassWord.Properties
			// 
			this.txt_PassWord.Properties.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Default;
			this.txt_PassWord.Properties.PasswordChar = '*';
			this.txt_PassWord.Size = new System.Drawing.Size(136, 21);
			this.txt_PassWord.TabIndex = 12;
			// 
			// cbo_Operator
			// 
			this.cbo_Operator.EditValue = "";
			this.cbo_Operator.Location = new System.Drawing.Point(196, 44);
			this.cbo_Operator.Name = "cbo_Operator";
			// 
			// cbo_Operator.Properties
			// 
			this.cbo_Operator.Properties.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Default;
			this.cbo_Operator.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
																												 new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
			this.cbo_Operator.Size = new System.Drawing.Size(136, 21);
			this.cbo_Operator.TabIndex = 11;
			// 
			// dtp_LogInDate
			// 
			this.dtp_LogInDate.EditValue = new System.DateTime(2006, 6, 29, 0, 0, 0, 0);
			this.dtp_LogInDate.Location = new System.Drawing.Point(196, 20);
			this.dtp_LogInDate.Name = "dtp_LogInDate";
			// 
			// dtp_LogInDate.Properties
			// 
			this.dtp_LogInDate.Properties.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Default;
			this.dtp_LogInDate.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
																												  new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
			this.dtp_LogInDate.Size = new System.Drawing.Size(136, 21);
			this.dtp_LogInDate.TabIndex = 10;
			// 
			// defaultLookAndFeel1
			// 
			this.defaultLookAndFeel1.LookAndFeel.SkinName = "Liquid Sky";
			this.defaultLookAndFeel1.LookAndFeel.Style = DevExpress.LookAndFeel.LookAndFeelStyle.Skin;
			this.defaultLookAndFeel1.LookAndFeel.UseWindowsXPTheme = false;
			// 
			// frmLogIn
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
			this.BackColor = System.Drawing.SystemColors.Menu;
			this.ClientSize = new System.Drawing.Size(350, 144);
			this.Color1 = System.Drawing.Color.FromArgb(((System.Byte)(214)), ((System.Byte)(223)), ((System.Byte)(247)));
			this.Color2 = System.Drawing.Color.GhostWhite;
			this.ControlBox = false;
			this.Controls.Add(this.panelControl1);
			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
			this.Name = "frmLogIn";
			this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
			this.Text = "登錄";
			this.TopMost = true;
			this.Load += new System.EventHandler(this.frmLogIn_Load);
			((System.ComponentModel.ISupportInitialize)(this.panelControl1)).EndInit();
			this.panelControl1.ResumeLayout(false);
			((System.ComponentModel.ISupportInitialize)(this.txt_PassWord.Properties)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.cbo_Operator.Properties)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.dtp_LogInDate.Properties)).EndInit();
			this.ResumeLayout(false);

		}
		#endregion
		private void setSkin()
		{
			string username="";
			string loginskin="";
			XmlDocument xmlDoc=new XmlDocument();
			xmlDoc.Load("system.xml");
			XmlNode xn=xmlDoc.SelectSingleNode("system");
			XmlNodeList xnl=xn.ChildNodes;
			foreach(XmlNode xnf in xnl)
			{
				XmlElement xe=(XmlElement)xnf;
				loginskin=xe.GetAttribute("login");
				this.defaultLookAndFeel1.LookAndFeel.SkinName = loginskin;
				this.defaultLookAndFeel1.LookAndFeel.Style=DevExpress.LookAndFeel.LookAndFeelStyle.Skin;
				
				username=xe.GetAttribute("name");//顯示屬性值

				if(username==ShareClass.Operator)
				{
					XmlNodeList xnf1=xe.ChildNodes;
					
					foreach(XmlNode xn2 in xnf1)
					{
//						string p_Item=xn2.InnerText;//顯示子節點文本
//						MessageBox.Show(p_Item);
						if(xn2.Name=="skin")
						{
							ShareClass.skin=xn2.InnerText;
						}
						else if(xn2.Name=="rcolor")
						{
							ShareClass.Rcolor=Convert.ToInt32(xn2.InnerText);
						}
						else if(xn2.Name=="gcolor")
						{
							ShareClass.Gcolor=Convert.ToInt32(xn2.InnerText);
						}
						else if(xn2.Name=="bcolor")
						{
							ShareClass.Bcolor=Convert.ToInt32(xn2.InnerText);
						}

					}
				}
			}

		}
		private void frmLogIn_Load(object sender, System.EventArgs e)
		{
			setSkin();
			dtp_LogInDate.Text=DateTime.Now.ToString() ;
			this.cbo_Operator.Focus();
		}
	
		private void ReadIniFile()
		{
			SysoperatorBLL sysbll=new SysoperatorBLL();
			SysoperatorInfo sysinfo=new SysoperatorInfo();
			sysinfo=sysbll.getSysoperatorByLname(cbo_Operator.Text );
			
			ShareClass.sysinfo=sysinfo;
			ShareClass.Operator =cbo_Operator.Text;
			ShareClass.OperatorChinese=sysinfo.oname;
			ShareClass.LoginDate=dtp_LogInDate.Text ;
		}


		private void cmd_OK_Click(object sender, System.EventArgs e)
		{
			if (RightCheck(cbo_Operator.Text,txt_PassWord.Text)==false)
			{
				i++;
				if(i==3)
				{
					DialogResult=DialogResult.Cancel;
//					ShareClass.loginfail="exit";
				}
//				else
//				{
//					ShareClass.loginfail="fail";
//					
//					txt_PassWord.Focus(); 
//					return ;
//				}
			}
			else
			{
				
				ReadIniFile();
				setSkin();
				DialogResult=DialogResult.OK;			
				this.Close();
				
			}
		}
	

		private void cmd_Cancel_Click(object sender, System.EventArgs e)
		{
			this.Close();
			Application.Exit();
		}
           /// <summary>
           /// 操作員登錄驗證
           /// </summary>
           /// <param name="p_Operator"></param>
           /// <param name="p_Pws"></param>
           /// <returns></returns>
		private bool RightCheck(string p_Operator,string p_Pws)
		{
			try
			{
				SysoperatorBLL sysbll=new SysoperatorBLL();
				SysoperatorInfo sysinfo=new SysoperatorInfo();
				sysinfo=sysbll.login(p_Operator,p_Pws);
				if(sysinfo.lname!=cbo_Operator.Text || cbo_Operator.Text=="")
				{
					MessageBox.Show("用戶名輸入錯誤,請重新輸入!","警告",MessageBoxButtons.OK,MessageBoxIcon.Warning);
					cbo_Operator.Focus();
					return false;
				}
			}
			catch(Exception ex)
			{
				MessageBox.Show(ex.Message);
			}
			return true;
			
		}




	}
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
一区二区日韩av| 91在线观看免费视频| 韩国av一区二区三区四区| 91丨porny丨国产入口| 日韩视频一区在线观看| 18欧美亚洲精品| 国产精品羞羞答答xxdd| 欧美一级片免费看| 亚洲午夜电影网| 91亚洲精品久久久蜜桃网站| 精品久久一二三区| 午夜精品久久久久久久 | 国产91综合一区在线观看| 欧美人伦禁忌dvd放荡欲情| 中文字幕在线观看不卡| 久久99精品久久久久久动态图| 欧洲一区在线观看| 一级日本不卡的影视| 成人亚洲精品久久久久软件| 欧美videos中文字幕| 水野朝阳av一区二区三区| 91久久精品一区二区三| 国产精品国产精品国产专区不片| 久久精品国产在热久久| 日韩欧美综合在线| 麻豆精品新av中文字幕| 欧美一级免费观看| 蜜桃视频一区二区| 精品蜜桃在线看| 精品一区二区综合| 久久伊99综合婷婷久久伊| 精油按摩中文字幕久久| 欧美精品一区二区久久久| 久久99深爱久久99精品| 日韩免费电影网站| 国内精品写真在线观看| 久久免费国产精品| 处破女av一区二区| 亚洲精品成a人| 欧美日韩一区二区三区视频| 亚洲h在线观看| 欧美成人性战久久| 成人免费视频免费观看| 中文字幕在线观看一区二区| 色天使色偷偷av一区二区| 亚洲激情六月丁香| 在线播放国产精品二区一二区四区| 午夜电影一区二区三区| 亚洲欧美综合网| 欧美在线短视频| 日韩电影一区二区三区四区| 欧美成人在线直播| 成人国产视频在线观看| 亚洲大片在线观看| 精品久久久久久最新网址| 国产成人啪午夜精品网站男同| 中文字幕乱码日本亚洲一区二区| 色综合中文字幕| 日产国产欧美视频一区精品| 国产日韩在线不卡| 欧美网站大全在线观看| 久久国产精品第一页| 亚洲色图在线视频| 欧美成人国产一区二区| 99re热这里只有精品视频| 天天综合色天天综合| 欧美国产在线观看| 8x8x8国产精品| 成人av在线网站| 麻豆91免费观看| 综合久久一区二区三区| 日韩亚洲欧美中文三级| 成人18视频日本| 免费精品视频在线| 中文字幕综合网| 欧美草草影院在线视频| 色婷婷精品久久二区二区蜜臀av | 亚洲欧美日韩在线| 日韩欧美不卡一区| 色偷偷成人一区二区三区91| 蜜臀av在线播放一区二区三区 | 91视频在线看| 国产美女视频一区| 丝袜国产日韩另类美女| 亚洲欧美成人一区二区三区| 久久久久久亚洲综合影院红桃| 色婷婷av一区二区三区软件| 国产99一区视频免费| 日韩—二三区免费观看av| 一区二区三区91| 国产精品久久久久婷婷二区次 | 色视频一区二区| 粉嫩蜜臀av国产精品网站| 日本视频中文字幕一区二区三区| 中文字幕一区二区三| 欧美国产一区在线| 国产亚洲一区二区三区| 欧美精品一区二区三区蜜桃| 欧美一区二区三区喷汁尤物| 欧美在线播放高清精品| 成人av电影在线播放| 国产成人亚洲综合a∨婷婷图片 | 欧美精品一区二区三区四区| 制服丝袜亚洲网站| 欧美一区三区四区| 日韩亚洲欧美综合| 日韩三级在线观看| 日韩视频在线观看一区二区| 欧美一区二区视频免费观看| 欧美高清www午色夜在线视频| 欧美性感一类影片在线播放| 欧美日韩综合一区| 欧美日韩一区高清| 欧美一区二区三区免费在线看| 欧美日韩日本视频| 欧美男生操女生| 日韩三级视频在线观看| 精品久久久久久无| 国产日韩欧美精品在线| 国产三级精品三级| 亚洲色欲色欲www| 亚洲一区二区三区国产| 午夜精品视频在线观看| 久久超碰97人人做人人爱| 精品一区二区三区久久久| 国产高清久久久久| 99这里都是精品| 欧美日韩精品欧美日韩精品一综合| 欧美日韩精品系列| 亚洲精品一区二区三区99| 国产女人aaa级久久久级| 18欧美乱大交hd1984| 亚洲成人动漫在线免费观看| 蜜臀av性久久久久蜜臀aⅴ| 精品无人码麻豆乱码1区2区| 国产成人日日夜夜| 91国偷自产一区二区开放时间| 欧美日韩国产123区| 精品国产露脸精彩对白| 亚洲欧洲精品成人久久奇米网| 一区二区激情小说| 极品瑜伽女神91| 色综合久久六月婷婷中文字幕| 欧美日韩亚洲另类| 久久久久国产精品免费免费搜索| 亚洲女同ⅹxx女同tv| 免费在线成人网| 成人影视亚洲图片在线| 欧美猛男超大videosgay| 精品久久久久久无| 夜夜精品浪潮av一区二区三区| 麻豆国产精品视频| 色综合视频在线观看| www国产成人| 亚洲高清中文字幕| 成人免费视频视频| 日韩免费高清视频| 亚洲青青青在线视频| 久久精品国产亚洲5555| 在线一区二区三区四区五区| 久久噜噜亚洲综合| 日本美女视频一区二区| 91麻豆免费观看| 久久久亚洲精品石原莉奈| 亚洲国产综合人成综合网站| 国产成人av一区二区三区在线 | 在线亚洲欧美专区二区| 久久麻豆一区二区| 男女男精品视频网| 欧美亚洲国产一区二区三区 | av电影在线不卡| 精品国产成人系列| 日韩国产欧美视频| 在线观看日韩电影| 成人欧美一区二区三区小说| 国产一区二区91| 制服丝袜av成人在线看| 亚洲综合男人的天堂| 成人国产电影网| 久久免费的精品国产v∧| 日韩电影在线一区二区| 日本高清不卡视频| √…a在线天堂一区| 成人自拍视频在线观看| 久久久三级国产网站| 狠狠色2019综合网| 日韩美女在线视频| 日本在线不卡一区| 91精品国产综合久久婷婷香蕉| 一区二区视频在线看| 色综合天天综合在线视频| 国产精品成人免费| 不卡一区中文字幕| 亚洲天堂久久久久久久| 成人免费三级在线| 日韩美女精品在线| 色婷婷综合激情| 亚洲一区二区三区三| 欧美日韩在线观看一区二区| 午夜视频一区在线观看|