📄 orgbaseie.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>
/// OrgBaseIE 的摘要说明。
/// </summary>
public class OrgBaseIE : System.Windows.Forms.UserControl , IView
{
private AxSHDocVw.AxWebBrowser axWebBrowser1;
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.Container components = null;
public OrgBaseIE()
{
// 该调用是 Windows.Forms 窗体设计器所必需的。
InitializeComponent();
// TODO: 在 InitializeComponent 调用后添加任何初始化
}
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
/// <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/Gzgl/NetOffice/OrgBase/WorkArea.aspx?RegUserKey=" + AllStr.Key;
}
else
{
_Url = AllStr.NetOfficeUrl + "OrgBase/WorkArea.aspx?RegUserKey=" + AllStr.Key;
}
object o = null;
axWebBrowser1.Navigate(_Url, ref o, ref o, ref o, ref o);
}
#region IView 成员
public void Release()
{
Dispose();
}
public ViewType TheType
{
get {return ViewType.OrgBaseIE;}
}
#endregion
#region 组件设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要使用代码编辑器
/// 修改此方法的内容。
/// </summary>
private void InitializeComponent()
{
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(OrgBaseIE));
this.axWebBrowser1 = new AxSHDocVw.AxWebBrowser();
((System.ComponentModel.ISupportInitialize)(this.axWebBrowser1)).BeginInit();
this.SuspendLayout();
//
// axWebBrowser1
//
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(656, 408);
this.axWebBrowser1.TabIndex = 8;
//
// OrgBaseIE
//
this.Controls.Add(this.axWebBrowser1);
this.Name = "OrgBaseIE";
this.Size = new System.Drawing.Size(656, 408);
((System.ComponentModel.ISupportInitialize)(this.axWebBrowser1)).EndInit();
this.ResumeLayout(false);
}
#endregion
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -