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

📄 netofficeie_gwy.cs

📁 一个用vs2003编写的客户工资管理系统客户端程序/一个用vs2003编写的客户工资管理系统客户端程序
💻 CS
字号:
using System;
using System.Collections;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Windows.Forms;

using GzglClient.Froms;
using GzglClient.BLL;
using Jinrm.FileSystem;
using Jinrm.Data;

namespace GzglClient.Views
{
	/// <summary>
	/// NetOfficeIE_GWY 的摘要说明。
	/// </summary>
	public class NetOfficeIE_GWY : System.Windows.Forms.UserControl , IView
	{
		private System.Windows.Forms.Panel panel1;
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.Button btnPrint;
		private AxSHDocVw.AxWebBrowser axWebBrowser1;
		private System.Windows.Forms.Splitter splitter1;
		private System.Windows.Forms.Panel panel2;
		private System.Windows.Forms.Label label2;
		/// <summary> 
		/// 必需的设计器变量。
		/// </summary>
		private System.ComponentModel.Container components = null;

		public NetOfficeIE_GWY()
		{
			// 该调用是 Windows.Forms 窗体设计器所必需的。
			InitializeComponent();

			// TODO: 在 InitializeComponent 调用后添加任何初始化

		}

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

		#region 组件设计器生成的代码
		/// <summary> 
		/// 设计器支持所需的方法 - 不要使用代码编辑器 
		/// 修改此方法的内容。
		/// </summary>
		private void InitializeComponent()
		{
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(NetOfficeIE_GWY));
			this.axWebBrowser1 = new AxSHDocVw.AxWebBrowser();
			this.panel1 = new System.Windows.Forms.Panel();
			this.label2 = new System.Windows.Forms.Label();
			this.label1 = new System.Windows.Forms.Label();
			this.btnPrint = new System.Windows.Forms.Button();
			this.panel2 = new System.Windows.Forms.Panel();
			this.splitter1 = new System.Windows.Forms.Splitter();
			((System.ComponentModel.ISupportInitialize)(this.axWebBrowser1)).BeginInit();
			this.panel1.SuspendLayout();
			this.panel2.SuspendLayout();
			this.SuspendLayout();
			// 
			// 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(560, 246);
			this.axWebBrowser1.TabIndex = 7;
			// 
			// panel1
			// 
			this.panel1.Controls.Add(this.label2);
			this.panel1.Controls.Add(this.label1);
			this.panel1.Controls.Add(this.btnPrint);
			this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
			this.panel1.Location = new System.Drawing.Point(0, 0);
			this.panel1.Name = "panel1";
			this.panel1.Size = new System.Drawing.Size(560, 26);
			this.panel1.TabIndex = 8;
			// 
			// label2
			// 
			this.label2.Dock = System.Windows.Forms.DockStyle.Left;
			this.label2.ForeColor = System.Drawing.Color.Red;
			this.label2.Location = new System.Drawing.Point(0, 0);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(120, 26);
			this.label2.TabIndex = 3;
			this.label2.Text = "公务员处业务打印";
			this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			// 
			// label1
			// 
			this.label1.Anchor = System.Windows.Forms.AnchorStyles.Right;
			this.label1.ForeColor = System.Drawing.Color.Red;
			this.label1.Location = new System.Drawing.Point(312, 8);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(144, 15);
			this.label1.TabIndex = 1;
			this.label1.Text = "点击此处选择打印==>";
			this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
			// 
			// btnPrint
			// 
			this.btnPrint.Anchor = System.Windows.Forms.AnchorStyles.Right;
			this.btnPrint.BackColor = System.Drawing.SystemColors.InactiveCaptionText;
			this.btnPrint.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.btnPrint.Location = new System.Drawing.Point(472, 1);
			this.btnPrint.Name = "btnPrint";
			this.btnPrint.Size = new System.Drawing.Size(75, 24);
			this.btnPrint.TabIndex = 0;
			this.btnPrint.Text = "选择打印";
			this.btnPrint.Click += new System.EventHandler(this.btnPrint_Click);
			// 
			// panel2
			// 
			this.panel2.Controls.Add(this.axWebBrowser1);
			this.panel2.Dock = System.Windows.Forms.DockStyle.Fill;
			this.panel2.Location = new System.Drawing.Point(0, 26);
			this.panel2.Name = "panel2";
			this.panel2.Size = new System.Drawing.Size(560, 246);
			this.panel2.TabIndex = 9;
			// 
			// splitter1
			// 
			this.splitter1.BackColor = System.Drawing.SystemColors.Desktop;
			this.splitter1.Dock = System.Windows.Forms.DockStyle.Top;
			this.splitter1.Enabled = false;
			this.splitter1.Location = new System.Drawing.Point(0, 26);
			this.splitter1.Name = "splitter1";
			this.splitter1.Size = new System.Drawing.Size(560, 3);
			this.splitter1.TabIndex = 10;
			this.splitter1.TabStop = false;
			// 
			// NetOfficeIE_GWY
			// 
			this.Controls.Add(this.splitter1);
			this.Controls.Add(this.panel2);
			this.Controls.Add(this.panel1);
			this.Name = "NetOfficeIE_GWY";
			this.Size = new System.Drawing.Size(560, 272);
			((System.ComponentModel.ISupportInitialize)(this.axWebBrowser1)).EndInit();
			this.panel1.ResumeLayout(false);
			this.panel2.ResumeLayout(false);
			this.ResumeLayout(false);

		}
		#endregion

		/// <summary>
		/// 跳转Url
		/// </summary>
		/// <param name="Url"></param>
		/// <param name="YWItemType"></param>
		public void GoUrl(string Url,string YWItemType)
		{
			string _Url = "";
			if(AllStr.IsDebug)
			{
				_Url = "http://localhost:8055/GWY/NetOffice/YWItem/WorkArea.aspx?YWItemType=" + YWItemType + "&RegUserKey=" + AllStr.Key;
			}
			else
			{
				_Url = "http://218.92.102.27:8020/NetOffice/YWItem/WorkArea.aspx?YWItemType=" + YWItemType + "&RegUserKey=" + AllStr.Key;
			}

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

		private void btnPrint_Click(object sender, System.EventArgs e)
		{
			frmPrintYW_GWY fpw = new frmPrintYW_GWY();
			fpw.ShowDialog();
		}

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

		private void axWebBrowser1_Enter(object sender, System.EventArgs e)
		{
		
		}

		private void label1_Click(object sender, System.EventArgs e)
		{
		
		}

		private void panel1_Paint(object sender, System.Windows.Forms.PaintEventArgs e)
		{
		
		}

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

⌨️ 快捷键说明

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