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

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

?? orgchart.cs

?? r r
?? CS
?? 第 1 頁 / 共 2 頁
字號:
using System;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using System.Web.UI.Design;
using System.ComponentModel;
using System.Drawing;
using System.Collections;
using System.IO;
using System.Text;

namespace wssmax
{
	/// <summary>
	/// OrgChart 的摘要說明。
	/// </summary>
	[Designer(typeof(OrgChartDesigner)), ParseChildren(true), ToolboxData("<{0}:OrgChart runat=server  ChartStyle=Horizontal></{0}:OrgChart>")]
	public class OrgChart : WebControl
	{
		private OrgNode OrgNodeDemo;
		private Color OrgNodeColor;
		private Unit OrgNodeUnit;
		private OrgNodeCollection OrgNodeCollectionDemo;
		private Orientation OrgNodeOrientation;
		private string OrgNodestring;
		private string HttpContent;
		private string ImgFolder;

		public OrgChart()
		{

		}

		public enum Orientation
		{
			Horizontal = 1,
			Vertical = 0
		}

		public enum ExpandableValue
		{
			Always = 0,
			Auto = 1,
			CheckOnce = 2
		}

		/// <summary>
		/// 創建圖形
		/// </summary>
		private void CreatGraphic(OrgNode node1)
		{
			this.HttpContent = this.HttpContent + "<table cellspacing=0 cellpadding=0 border=0 Width=100%>";
			if (node1.Nodes.Count > 1)
			{
				this.HttpContent = this.HttpContent + "<tr>";
				this.HttpContent = this.HttpContent + "<td height=1 align=Right>" + this.CreatTableStyleRight("50%", 1) + "</td>";
				for (int num1 = 1; num1 < (node1.Nodes.Count - 1); num1++)
				{
					this.HttpContent = this.HttpContent + "<td height=1 align=Right>" + this.CreatTableStyleRight("100%", 1) + "</td>";
				}
				this.HttpContent = this.HttpContent + "<td height=1 align=Left>" + this.CreatTableStyleRight("50%", 1) + "</td>";
				this.HttpContent = this.HttpContent + "</tr>";
				this.HttpContent = this.HttpContent + "<tr>";
				for (int num2 = 0; num2 < node1.Nodes.Count; num2++)
				{
					this.HttpContent = this.HttpContent + "<td align=Center>" + this.CreatTableStyleCenter(1, 20) + "</td>";
				}
				this.HttpContent = this.HttpContent + "</tr>";
			}
			this.HttpContent = this.HttpContent + "<tr>";
			for (int num3 = 0; num3 < node1.Nodes.Count; num3++)
			{
				this.HttpContent = this.HttpContent + "<td valign=top >";
				this.HttpContent = this.HttpContent + this.OrgNodeHtmlImg(node1.Nodes[num3]);
				if (node1.Nodes[num3].Nodes.Count > 0)
				{
					this.HttpContent = this.HttpContent + "<table cellspacing=0 cellpadding=0 align=center>";
					this.HttpContent = this.HttpContent + "<tr>";
					this.HttpContent = this.HttpContent + "<td colspan=0 valign=top align=Center width=100% class=OrgChartCellPadding>";
					this.HttpContent = this.HttpContent + this.CreatTableStyleCenter(1, 20);
					this.OrgNodeHtmlImg(node1.Nodes[num3]);
					this.HttpContent = this.HttpContent + "</td>";
					this.HttpContent = this.HttpContent + "</tr>";
					this.HttpContent = this.HttpContent + "</table>";
				}
				this.HttpContent = this.HttpContent + "</td>";
			}
			this.HttpContent = this.HttpContent + "</tr>";
			this.HttpContent = this.HttpContent + "</table>";
		}
    	/// <summary>
		/// 創建有顏色的風格
		/// </summary>
		private string CreatTableStyleColor(string text3, string text4)
		{
			string text1 = this.LineColor.Name;
			StringBuilder builder1 = new StringBuilder();
			string text2 = "<table cellspacing=0 cellpadding=0 border=0 width={0} height={1} ><tr><td height=50%></td></tr><tr><td width=1 height=50% bgcolor={2}></td></tr></Table>";
			builder1.AppendFormat(text2, text3, text4, text1);
			return builder1.ToString();
		}
 
		/// <summary>
		/// 創建節點的風格
		/// </summary>
		private void CreatNodeStyle(OrgNode node1, Orientation orientation1)
		{
			this.HttpContent = "";
			try
			{
				object obj1;
				object[] objArray1;
				if (orientation1 == Orientation.Horizontal)
				{
					this.HttpContent = this.HttpContent + "<table cellspacing=0 cellpadding=0 border=0 Width=100% height=>";
					this.HttpContent = this.HttpContent + "<tr>";
					if (node1.Nodes.Count > 0)
					{
						obj1 = this.HttpContent;
						objArray1 = new object[4] { obj1, "<td rowspan=", node1.Nodes.Count, " valign=middle align=Center width=1 class=OrgChartCellPadding>" } ;
						this.HttpContent = string.Concat(objArray1);
					}
					else
					{
						this.HttpContent = this.HttpContent + "<td valign=middle align=Center width=1 class=OrgChartCellPadding>";
					}
					this.HttpContent = this.HttpContent + this.OrgNodeHtmlImg(node1);
					this.HttpContent = this.HttpContent + "</td>\n";
					if (node1.Nodes.Count > 0)
					{
						if (node1.Nodes.Count == 1)
						{
							obj1 = this.HttpContent;
							objArray1 = new object[6] { obj1, "\t <td rowspan=", node1.Nodes.Count, " align=right width=2>", this.CreatTableStyleCenter(0x29, 1), "</td>" } ;
							this.HttpContent = string.Concat(objArray1);
							obj1 = this.HttpContent;
							objArray1 = new object[4] { obj1, "\t <td rowspan=", node1.Nodes.Count, " align=left width=>\n" } ;
							this.HttpContent = string.Concat(objArray1);
						}
						else
						{
							obj1 = this.HttpContent;
							objArray1 = new object[6] { obj1, "\t <td rowspan=", node1.Nodes.Count, " align=right width=2>", this.CreatTableStyleCenter(20, 1), "</td>" } ;
							this.HttpContent = string.Concat(objArray1);
							obj1 = this.HttpContent;
							objArray1 = new object[4] { obj1, "\t <td rowspan=", node1.Nodes.Count, " align=left width=>\n" } ;
							this.HttpContent = string.Concat(objArray1);
						}
						this.StyleSelectStyle(node1, orientation1);
						this.HttpContent = this.HttpContent + "\t </td>\n";
					}
					this.HttpContent = this.HttpContent + "</tr>";
					this.HttpContent = this.HttpContent + "</table>";
				}
				else
				{
					this.HttpContent = this.HttpContent + "<table cellspacing=0 cellpadding=0 border=0 Width=100%>";
					if (node1.Nodes.Count > 0)
					{
						obj1 = this.HttpContent;
						objArray1 = new object[4] { obj1, "<tr><td colspan=", node1.Nodes.Count, " valign=top align=Center width= class=orgChartCellPadding>" } ;
						this.HttpContent = string.Concat(objArray1);
					}
					else
					{
						this.HttpContent = this.HttpContent + "<tr><td valign=top align=Center width= class=orgChartCellPadding>";
					}
					this.HttpContent = this.HttpContent + this.OrgNodeHtmlImg(node1);
					this.HttpContent = this.HttpContent + "</td></tr>\n";
					if (node1.Nodes.Count > 0)
					{
						obj1 = this.HttpContent;
						objArray1 = new object[4] { obj1, "\t<tr><td colspan=", node1.Nodes.Count, " align=Center>" } ;
						this.HttpContent = string.Concat(objArray1);
						this.HttpContent = this.HttpContent + this.CreatTableStyleCenter(1, 20);
						this.HttpContent = this.HttpContent + "</td>";
						this.HttpContent = this.HttpContent + "</tr>";
						this.StyleSelectStyle(node1, orientation1);
					}
					this.HttpContent = this.HttpContent + "</table>";
				}
			}
			catch (Exception exception1)
			{
				string text1 = exception1.Message;
			}
		}
 
		/// <summary>
		/// 默認樣式
		/// </summary>
		private void DefaultStyle(out OrgNode nodeRef1)
		{
			nodeRef1 = new OrgNode();
			nodeRef1.Text = "公司總部";
			nodeRef1.Type = "Root";
			OrgNode node1 = new OrgNode();
			node1.Text = "西城營業廳";
			node1.Type = "LOGIN";
			nodeRef1.Nodes.Add(node1);
			OrgNode node2 = new OrgNode();
			node2.Text = "東城營業廳";
			node2.Type = "ROLES";
			nodeRef1.Nodes.Add(node2);
		}

		/// <summary>
		/// 顯示風格需要javascript支持
		/// </summary>
		private string JSupport(string text2)
		{
			string text1;
			this.HttpContent = "<table cellspacing=0 cellpadding=0 border=0 Width=100%>";
			this.HttpContent = this.HttpContent + "<tr>";
			this.HttpContent = this.HttpContent + "<td height=1 align=Right><img src=../images/OrgChartLine.gif border=0 style=\"height:1px;width:50%;\" /></td>";
			if ((text1 = text2) != null)
			{
				text1 = string.IsInterned(text1);
				if (text1 != "A")
				{
					if (text1 == "B")
					{
						return this.JSupport(text2);
					}
					if (text1 == "D")
					{
						return null;
					}
					if (text1 == "F")
					{
						return (this.HttpContent + "F");
					}
				}
				else
				{
					foreach (OrgNode node1 in this.OrgNodeCollectionDemo)
					{
						this.HttpContent = this.HttpContent + node1.Text;
						if ((node1.Type != null) && (node1.Type != ""))
						{
							continue;
						}
						if (node1.Type == "none")
						{
							continue;
						}
						if ((text1 = node1.Type) == null)
						{
							goto Label_012B;
						}
						text1 = string.IsInterned(text1);
						if (text1 != "NODE")
						{
							if (text1 == "LOGN")
							{
								goto Label_0122;
							}
							goto Label_012B;
						}
						text2 = "客戶支持JAVA、C#,";
						continue;
					Label_0122:
						text2 = "支持JS、VBS客覽器,";
						continue;
					Label_012B:
						text2 = "A";
					}
					return this.JSupport(this.HttpContent.Trim());
				}
			}
			return this.HttpContent;
		}
		
 		/// <summary>
		/// 節點圖片樣式庫
		/// </summary>
		private string OrgNodeHtmlImg(OrgNode node1)
		{
			node1.ImageFolder = this.ImageFolder;
			return node1.OrgNodeHtml();
		}
 
		/// <summary>
		/// 節點創建
		/// </summary>
		private void CreatNode(OrgNode node1)
		{
			object obj1;
			object[] objArray1;
			this.HttpContent = this.HttpContent + "<table cellspacing=0 cellpadding=0 border=0 Width=100%>";
			if (node1.Nodes.Count > 0)
			{
				obj1 = this.HttpContent;
				objArray1 = new object[4] { obj1, "<tr><td colspan=", node1.Nodes.Count, " valign=top align=Center width= class=orgChartCellPadding>" } ;
				this.HttpContent = string.Concat(objArray1);
			}
			else
			{
				this.HttpContent = this.HttpContent + "<tr><td valign=top align=Center width= class=orgChartCellPadding>";
			}
			this.HttpContent = this.HttpContent + this.OrgNodeHtmlImg(node1);
			this.HttpContent = this.HttpContent + "</td></tr>\n";
			if (node1.Nodes.Count > 0)
			{
				obj1 = this.HttpContent;
				objArray1 = new object[4] { obj1, "\t<tr><td colspan=", node1.Nodes.Count, " align=Center>" } ;
				this.HttpContent = string.Concat(objArray1);
				this.HttpContent = this.HttpContent + this.CreatTableStyleCenter(1, 20);
				this.HttpContent = this.HttpContent + "</td>";
				this.HttpContent = this.HttpContent + "</tr>";
				this.CreatGraphic(node1);
			}
			this.HttpContent = this.HttpContent + "</table>";
		}
 
		/// <summary>
		/// 創建不同風格的表格
		/// </summary>
		private string CreatTableStyleCenter(int num1, int num2)
		{
			return this.CreatTable(num1.ToString(), num2.ToString());
		}
 
		private string CreatTableStyleLeft(int num1, string text1)
		{

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人高清在线视频| 日本一区二区电影| 欧美日韩国产系列| 色94色欧美sute亚洲线路一ni | 亚洲一级在线观看| 亚洲欧美电影一区二区| 久久免费美女视频| 久久九九久久九九| 中文字幕乱码一区二区免费| 久久久久久久一区| 国产精品美女久久福利网站| 国产精品二区一区二区aⅴ污介绍| 亚洲国产精品成人综合色在线婷婷| 欧美激情一区二区三区在线| 国产精品福利av| 一区二区三区四区在线| 一区二区三区中文字幕在线观看| 一区二区成人在线视频| 亚洲国产精品一区二区久久恐怖片 | 久久激五月天综合精品| 久久国产精品露脸对白| 激情六月婷婷久久| 国产精品亚洲人在线观看| 国产91高潮流白浆在线麻豆| 成人性生交大合| 色哟哟一区二区在线观看| 欧美日韩精品免费观看视频| 日韩欧美在线123| 久久久久久久久久久久久女国产乱 | av一区二区三区黑人| 91日韩精品一区| 欧美裸体bbwbbwbbw| 日韩欧美不卡在线观看视频| 久久综合资源网| 中文文精品字幕一区二区| 亚洲男同性视频| 日本午夜一本久久久综合| 国产成人午夜片在线观看高清观看| av亚洲精华国产精华| 欧美日韩中文精品| 久久男人中文字幕资源站| 亚洲欧洲精品一区二区三区不卡| 亚洲一区二区三区影院| 国产伦精品一区二区三区视频青涩 | 成人自拍视频在线| 精品视频一区 二区 三区| 26uuu亚洲综合色欧美| 国产精品久久久久久久久免费樱桃 | 91老司机福利 在线| 欧美美女黄视频| 中文子幕无线码一区tr| 亚洲午夜精品网| 国产高清亚洲一区| 精品视频免费在线| 国产欧美中文在线| 亚洲国产一区二区三区| 岛国精品在线观看| 欧美二区三区的天堂| 欧美国产一区视频在线观看| 亚洲高清中文字幕| 成人app网站| 日韩一区二区在线观看视频 | 精品一区二区在线视频| 91麻豆精品在线观看| 欧美精品一区二区久久婷婷| 亚洲精品日韩专区silk| 国产精品一二三四五| 欧美日韩成人在线一区| 亚洲欧洲精品天堂一级| 麻豆成人在线观看| 欧美日韩一区小说| 中文字幕一区二区三区在线播放| 蜜桃精品视频在线| 色偷偷成人一区二区三区91| 久久久久久久久一| 六月丁香婷婷色狠狠久久| 欧洲视频一区二区| 国产精品久久久久永久免费观看 | 成人动漫一区二区| 精品久久久久久久人人人人传媒| 夜夜亚洲天天久久| av动漫一区二区| 国产亚洲精品aa| 另类欧美日韩国产在线| 9191精品国产综合久久久久久| 亚洲欧美福利一区二区| 99re热视频这里只精品| 久久―日本道色综合久久| 麻豆精品视频在线观看视频| 欧美日韩精品久久久| 亚洲精品乱码久久久久| caoporn国产精品| 国产精品色噜噜| 国产成人亚洲综合a∨婷婷| 精品日本一线二线三线不卡| 免费成人性网站| 日韩一区二区三区在线| 日韩极品在线观看| 精品1区2区3区| 一区二区日韩电影| 91官网在线观看| 一区二区三区四区亚洲| 在线免费不卡电影| 亚洲一区国产视频| 欧美三级中文字| 亚洲3atv精品一区二区三区| 欧美三日本三级三级在线播放| 亚洲综合图片区| 欧洲av一区二区嗯嗯嗯啊| 亚洲精选在线视频| 精品视频999| 青椒成人免费视频| 精品99999| 国产精品一区二区在线观看不卡| 精品sm在线观看| 国产成人午夜99999| 国产欧美日韩精品一区| 99久久精品久久久久久清纯| 综合激情网...| 在线免费不卡视频| 秋霞午夜av一区二区三区 | 免费观看在线综合色| 欧美成人精品福利| 国产成人av电影在线播放| 亚洲国产高清aⅴ视频| 99re66热这里只有精品3直播| 亚洲精品国产一区二区三区四区在线| 色综合久久88色综合天天| 午夜av一区二区| 欧美成人免费网站| 成人av网站在线观看免费| 亚洲在线视频网站| 日韩小视频在线观看专区| 国产高清不卡二三区| 亚洲日本va午夜在线影院| 欧美日韩国产中文| 国内国产精品久久| 国产精品白丝在线| 欧美精品在线观看播放| 国产一区二区久久| 亚洲狼人国产精品| 欧美成人国产一区二区| hitomi一区二区三区精品| 性欧美疯狂xxxxbbbb| 久久女同精品一区二区| 日本高清视频一区二区| 久久福利资源站| **网站欧美大片在线观看| 欧美日韩日日骚| 国产成人综合网| 亚洲成a人片在线观看中文| 欧美成人精品1314www| 色综合中文字幕国产| 午夜精品久久久| 亚洲国产精品v| 欧美日本一区二区三区四区| 日韩三区在线观看| 国产精品亚洲人在线观看| 亚洲最快最全在线视频| 久久午夜国产精品| 在线免费观看成人短视频| 狠狠色丁香久久婷婷综合丁香| 亚洲人一二三区| 久久综合九色综合97婷婷| 欧美在线一二三四区| 国产精品一区二区在线播放 | 一区二区日韩电影| 国产午夜精品一区二区三区视频 | 亚洲欧美一区二区三区国产精品 | 久久久国产精品麻豆| 欧美日韩中字一区| 丁香另类激情小说| 成人性生交大片免费看中文| 日韩欧美亚洲另类制服综合在线 | 国产一区二区三区观看| 樱花影视一区二区| 国产农村妇女毛片精品久久麻豆 | 国产精品一区二区在线观看不卡 | 午夜精品久久一牛影视| 国产精品―色哟哟| 精品国产91九色蝌蚪| 在线不卡欧美精品一区二区三区| 99久久久久免费精品国产| 国产一区二区三区黄视频| 欧美aa在线视频| 亚洲福利一区二区三区| 亚洲精品第1页| 亚洲欧洲日产国码二区| 久久免费偷拍视频| 精品久久人人做人人爰| 欧美日韩国产精品自在自线| 色悠久久久久综合欧美99| av爱爱亚洲一区| 成人av资源下载| 国产成人av电影在线观看| 国内精品自线一区二区三区视频| 香蕉久久夜色精品国产使用方法| 1区2区3区国产精品| 中文字幕亚洲区| 国产精品无人区|