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

📄 homeview.cs

📁 一个用vs2003编写的客户工资管理系统客户端程序/一个用vs2003编写的客户工资管理系统客户端程序
💻 CS
📖 第 1 页 / 共 2 页
字号:
			// 
			// pictureBox8
			// 
			this.pictureBox8.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox8.Image")));
			this.pictureBox8.Location = new System.Drawing.Point(72, 258);
			this.pictureBox8.Name = "pictureBox8";
			this.pictureBox8.Size = new System.Drawing.Size(42, 43);
			this.pictureBox8.TabIndex = 41;
			this.pictureBox8.TabStop = false;
			// 
			// pictureBox12
			// 
			this.pictureBox12.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("pictureBox12.BackgroundImage")));
			this.pictureBox12.Location = new System.Drawing.Point(8, 400);
			this.pictureBox12.Name = "pictureBox12";
			this.pictureBox12.Size = new System.Drawing.Size(183, 48);
			this.pictureBox12.TabIndex = 39;
			this.pictureBox12.TabStop = false;
			// 
			// pictureBox13
			// 
			this.pictureBox13.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("pictureBox13.BackgroundImage")));
			this.pictureBox13.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox13.Image")));
			this.pictureBox13.Location = new System.Drawing.Point(8, 304);
			this.pictureBox13.Name = "pictureBox13";
			this.pictureBox13.Size = new System.Drawing.Size(183, 48);
			this.pictureBox13.TabIndex = 38;
			this.pictureBox13.TabStop = false;
			// 
			// pictureBox10
			// 
			this.pictureBox10.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("pictureBox10.BackgroundImage")));
			this.pictureBox10.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox10.Image")));
			this.pictureBox10.Location = new System.Drawing.Point(8, 209);
			this.pictureBox10.Name = "pictureBox10";
			this.pictureBox10.Size = new System.Drawing.Size(183, 48);
			this.pictureBox10.TabIndex = 35;
			this.pictureBox10.TabStop = false;
			// 
			// pictureBox7
			// 
			this.pictureBox7.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("pictureBox7.BackgroundImage")));
			this.pictureBox7.Location = new System.Drawing.Point(8, 24);
			this.pictureBox7.Name = "pictureBox7";
			this.pictureBox7.Size = new System.Drawing.Size(183, 48);
			this.pictureBox7.TabIndex = 32;
			this.pictureBox7.TabStop = false;
			// 
			// pictureBox6
			// 
			this.pictureBox6.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox6.Image")));
			this.pictureBox6.Location = new System.Drawing.Point(77, 73);
			this.pictureBox6.Name = "pictureBox6";
			this.pictureBox6.Size = new System.Drawing.Size(42, 43);
			this.pictureBox6.TabIndex = 31;
			this.pictureBox6.TabStop = false;
			// 
			// toolTip1
			// 
			this.toolTip1.AutoPopDelay = 5000;
			this.toolTip1.InitialDelay = 50;
			this.toolTip1.ReshowDelay = 100;
			// 
			// panel1
			// 
			this.panel1.Controls.Add(this.groupBox3);
			this.panel1.Controls.Add(this.groupBox2);
			this.panel1.Controls.Add(this.pboxHelp);
			this.panel1.Dock = System.Windows.Forms.DockStyle.Right;
			this.panel1.Location = new System.Drawing.Point(336, 0);
			this.panel1.Name = "panel1";
			this.panel1.Size = new System.Drawing.Size(448, 504);
			this.panel1.TabIndex = 30;
			// 
			// panel2
			// 
			this.panel2.Controls.Add(this.axWebBrowser1);
			this.panel2.Dock = System.Windows.Forms.DockStyle.Fill;
			this.panel2.Location = new System.Drawing.Point(0, 0);
			this.panel2.Name = "panel2";
			this.panel2.Size = new System.Drawing.Size(336, 504);
			this.panel2.TabIndex = 31;
			// 
			// axWebBrowser1
			// 
			this.axWebBrowser1.ContainingControl = this;
			this.axWebBrowser1.Dock = System.Windows.Forms.DockStyle.Fill;
			this.axWebBrowser1.Enabled = true;
			this.axWebBrowser1.Location = new System.Drawing.Point(0, 0);
			this.axWebBrowser1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axWebBrowser1.OcxState")));
			this.axWebBrowser1.Size = new System.Drawing.Size(336, 504);
			this.axWebBrowser1.TabIndex = 8;
			// 
			// splitter1
			// 
			this.splitter1.Dock = System.Windows.Forms.DockStyle.Right;
			this.splitter1.Location = new System.Drawing.Point(333, 0);
			this.splitter1.Name = "splitter1";
			this.splitter1.Size = new System.Drawing.Size(3, 504);
			this.splitter1.TabIndex = 32;
			this.splitter1.TabStop = false;
			// 
			// pboxHelp
			// 
			this.pboxHelp.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("pboxHelp.BackgroundImage")));
			this.pboxHelp.Cursor = System.Windows.Forms.Cursors.Hand;
			this.pboxHelp.Location = new System.Drawing.Point(240, 408);
			this.pboxHelp.Name = "pboxHelp";
			this.pboxHelp.Size = new System.Drawing.Size(183, 48);
			this.pboxHelp.TabIndex = 49;
			this.pboxHelp.TabStop = false;
			this.pboxHelp.Click += new System.EventHandler(this.pboxHelp_Click);
			// 
			// HomeView
			// 
			this.Controls.Add(this.splitter1);
			this.Controls.Add(this.panel2);
			this.Controls.Add(this.panel1);
			this.Name = "HomeView";
			this.Size = new System.Drawing.Size(784, 504);
			this.Load += new System.EventHandler(this.HomeView_Load);
			this.groupBox2.ResumeLayout(false);
			this.groupBox3.ResumeLayout(false);
			this.panel1.ResumeLayout(false);
			this.panel2.ResumeLayout(false);
			((System.ComponentModel.ISupportInitialize)(this.axWebBrowser1)).EndInit();
			this.ResumeLayout(false);

		}
		#endregion

		#region IView 成员
		public void Release()
		{
			Dispose();
		}

		public ViewType TheType
		{
			get {return ViewType.HomeView;}
		}
		#endregion

		#region 套改按钮
		private void pboxXY_Click(object sender, System.EventArgs e)
		{
			//声明一个程序信息类
			System.Diagnostics.ProcessStartInfo  Info  =  new  System.Diagnostics.ProcessStartInfo();
			//设置外部程序名
			Info.FileName  =  "CheckData.exe";
			//设置外部程序的启动参数(命令行参数)为test.txt
			Info.Arguments  =  "test.txt";
			//设置外部程序工作目录为  C:\
			Info.WorkingDirectory  =  Application.StartupPath + "\\";
			//声明一个程序类
			System.Diagnostics.Process  Proc  ;
			try
			{
				//启动外部程序
				Proc  =  System.Diagnostics.Process.Start(Info);
			}
			catch
			{
				MessageBox.Show("启动更新程序失败!");
			}
		}

		private void pboxGetData_Click(object sender, System.EventArgs e)
		{
			frmGetData fgd = new frmGetData();
			fgd.ShowDialog ();
			fgd.Dispose ();
		}

		private void pboxPrint_Click(object sender, System.EventArgs e)
		{
			OrgTreeList ol = new OrgTreeList();
			ol.ShowDialog ();
			ol.Dispose ();
		}
		#endregion

		private void HomeView_Load(object sender, System.EventArgs e)
		{
			string _Url = "";
			if(AllStr.IsDebug)
			{
				_Url = "http://localhost:8055/Gzgl/NetOffice/YWItem/Notice.aspx?RegUserKey=1480022";
			}
			else
			{
				_Url = AllStr.NetOfficeUrl + "YWItem/Notice.aspx?RegUserKey=" + AllStr.Key;
			}

			object o = null;
			axWebBrowser1.Navigate(_Url, ref o, ref o, ref o, ref o);
		}

		private void pboxHelp_Click(object sender, System.EventArgs e)
		{
			if(System.IO.File.Exists(Application.StartupPath + "//工资管理软件客户端帮助文件.doc"))
			{
				System.Diagnostics.ProcessStartInfo  Info  =  new  System.Diagnostics.ProcessStartInfo();//声明一个程序信息类
				Info.FileName  =  "工资管理软件客户端帮助文件.doc";//设置外部程序名
				Info.Arguments  =  "test.txt";//设置外部程序的启动参数(命令行参数)为test.txt
				Info.WorkingDirectory  =  Application.StartupPath + "\\";//设置外部程序工作目录为  C:\
				System.Diagnostics.Process  Proc;//声明一个程序类
				try
				{
					Proc  =  System.Diagnostics.Process.Start(Info);//启动外部程序
				}
				catch
				{
					MessageBox.Show("打开帮助文档失败!");
				}
			}
			else
			{
				
			}
		}
	}
}

⌨️ 快捷键说明

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