本文整理汇总了C#中Wilson类的典型用法代码示例。如果您正苦于以下问题:C# Wilson类的具体用法?C# Wilson怎么用?C# Wilson使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Wilson类属于命名空间,在下文中一共展示了Wilson类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: wdTab_Info_DataRowDataBuilding
protected void wdTab_Info_DataRowDataBuilding(object sender, Wilson.WebClassLibrary.WTable.EventArg.EventArgsTableDataBuilder e)
{
switch (e.RowType)
{
case Wilson.WebClassLibrary.WTable.Enum.EnumRowType.Header:
e.CurrentHeadRow.Cells[0].Text = "目录名称";
e.CurrentHeadRow.Cells[1].Text = "编号";
e.CurrentHeadRow.Cells[2].Text = "操作";
e.CurrentHeadRow.Cells[0].ColSpan = 2;
e.CurrentHeadRow.Cells[2].ColSpan = 3;
break;
case Wilson.WebClassLibrary.WTable.Enum.EnumRowType.Body:
e.CurrentBodyRow.Cells[0].ColSpan = 2;
e.CurrentBodyRow.Cells[2].Text = "重命名";
e.CurrentBodyRow.Cells[2].CellType = Wilson.WebClassLibrary.WTable.Enum.EnumCellType.HyperLink;
e.CurrentBodyRow.Cells[2].Url = "../New.aspx?opt=update&SortType=5&Sort_ID=" + e.CurrentBodyRow.Cells[1].Text + "&url=Public/Admin_Index.aspx";
e.CurrentBodyRow.Cells[3].Text = "删除";
e.CurrentBodyRow.Cells[3].CellType = Wilson.WebClassLibrary.WTable.Enum.EnumCellType.HyperLink;
e.CurrentBodyRow.Cells[3].Url = "../Delete.aspx?Sort_ID=" + e.CurrentBodyRow.Cells[1].Text + "&url=Public/Admin_Index.aspx";
e.CurrentBodyRow.Cells[4].Text = "权限设置";
e.CurrentBodyRow.Cells[4].CellType = Wilson.WebClassLibrary.WTable.Enum.EnumCellType.HyperLink;
e.CurrentBodyRow.Cells[4].Url = "frm_SetUser.aspx?Sort_ID=" + e.CurrentBodyRow.Cells[1].Text;
break;
case Wilson.WebClassLibrary.WTable.Enum.EnumRowType.BodyBuilderEnd:
break;
}
}
示例2: GenerateLevel
public GenerateLevel(int width, int height)
{
offsets = new Dictionary<Directions, Vector3>()
{
{ Directions.NorthWest, new Vector3(-1, 1, 0) },
{ Directions.NorthEast, new Vector3(1, 1, 0) },
{ Directions.SouthWest, new Vector3(-1, -1, 0) },
{ Directions.SouthEast, new Vector3(1, -1, 0) },
{ Directions.North, new Vector3(0, 1, 0) },
{ Directions.South, new Vector3(0, -1, 0) },
{ Directions.West, new Vector3(-1, 0, 0) },
{ Directions.East, new Vector3(1, 0, 0) }
};
topFaceVectors = new Vector3[] { new Vector3(-0.5f, -0.5f, -0.5f), new Vector3(0.5f, -0.5f, -0.5f), new Vector3(-0.5f, 0.5f, -0.5f), new Vector3(0.5f, 0.5f, -0.5f) };
faceVectors = new Dictionary<Directions, Vector3[]>()
{
{ Directions.North, new Vector3[]{new Vector3(0.5f,0.5f,0.5f),new Vector3(-0.5f,0.5f,0.5f),new Vector3(0.5f,0.5f,-0.5f),new Vector3(-0.5f,0.5f,-0.5f)} },
{ Directions.South, new Vector3[]{new Vector3(-0.5f,-0.5f,0.5f),new Vector3(0.5f,-0.5f,0.5f),new Vector3(-0.5f,-0.5f,-0.5f),new Vector3(0.5f,-0.5f,-0.5f)} },
{ Directions.West, new Vector3[]{new Vector3(-0.5f,-0.5f,0.5f),new Vector3(-0.5f,-0.5f,-0.5f),new Vector3(-0.5f,0.5f,0.5f),new Vector3(-0.5f,0.5f,-0.5f)} },
{ Directions.East, new Vector3[]{new Vector3(0.5f,-0.5f,-0.5f),new Vector3(0.5f,-0.5f,0.5f),new Vector3(0.5f,0.5f,-0.5f),new Vector3(0.5f,0.5f,0.5f)} }
};
atlasMap = (Material)Resources.Load("Environment/Terrain", typeof(Material));
Wilson maze = new Wilson(width, height);
CreateTreeFromMaze(maze.start);
GameObject plane = GameObject.CreatePrimitive(PrimitiveType.Plane);
plane.transform.localScale = new Vector3(height * .3f, 1, width * .3f);
plane.transform.position = new Vector3(height * 1.5f-1.5f, width * -1.5f+1.5f, 0.5f);
plane.transform.rotation = Quaternion.Euler(270, 0, 0);
plane.renderer.material = (Material)Resources.Load("Environment/Floor", typeof(Material));
}
示例3: wdTab_Info_DataExporter
protected void wdTab_Info_DataExporter(object sender, Wilson.WebClassLibrary.WTable.EventArg.EventArgsExporter e)
{
BindGridView(1, wdTab_Info.VirtualItemCount);
e.Set_Worksheet_Caption.Caption = "按区域统计矿井信息";
e.Set_Worksheet_Caption.CaptionFontSize = 24;
e.Set_WorksheetName = "按区域统计矿井信息";
}
示例4: wdTab_Info_PageIndexChanged
protected void wdTab_Info_PageIndexChanged(object sender, Wilson.WebClassLibrary.WTable.EventArg.EventArgsPage e)
{
if (e.PageIndex > int.Parse(HFPageIndex.Value))
{
fillDgv("BlockAddress", e.PageSize, e.PageIndex, "", "");
HFPageIndex.Value = e.PageIndex.ToString();
}
}
示例5: wdTab_Info_DataRowDataBuilding
protected void wdTab_Info_DataRowDataBuilding(object sender, Wilson.WebClassLibrary.WTable.EventArg.EventArgsTableDataBuilder e)
{
switch (e.RowType)
{
case Wilson.WebClassLibrary.WTable.Enum.EnumRowType.Header:
e.CurrentHeadRow.Cells[0].Text = "编号";
e.CurrentHeadRow.Cells[1].Text = "标识卡编号";
e.CurrentHeadRow.Cells[2].Text = "姓名";
e.CurrentHeadRow.Cells[3].Text = "分站编号";
e.CurrentHeadRow.Cells[4].Text = "所在区域";
e.CurrentHeadRow.Cells[5].Text = "求救时间";
e.CurrentHeadRow.Cells[6].Text = "所在部门";
e.CurrentHeadRow.Cells[7].Text = "职务";
e.CurrentHeadRow.Cells[8].Text = "时长";
break;
}
}
示例6: wdTab_Info_DataRowDataBuilding
protected void wdTab_Info_DataRowDataBuilding(object sender, Wilson.WebClassLibrary.WTable.EventArg.EventArgsTableDataBuilder e)
{
switch (e.RowType)
{
case Wilson.WebClassLibrary.WTable.Enum.EnumRowType.Header:
e.CurrentHeadRow.Cells[0].Text = "标识卡编号";
e.CurrentHeadRow.Cells[1].Text = "姓名";
e.CurrentHeadRow.Cells[2].Text = "部门";
e.CurrentHeadRow.Cells[3].Text = "电话";
e.CurrentHeadRow.Cells[4].Text = "检测时间";
e.CurrentHeadRow.Cells[5].Text = "井下位置";
break;
case Wilson.WebClassLibrary.WTable.Enum.EnumRowType.Body:
break;
}
}
示例7: wdTab_Info_DataRowDataBuilding
protected void wdTab_Info_DataRowDataBuilding(object sender, Wilson.WebClassLibrary.WTable.EventArg.EventArgsTableDataBuilder e)
{
switch (e.RowType)
{
case Wilson.WebClassLibrary.WTable.Enum.EnumRowType.Header:
e.CurrentHeadRow.Cells[0].Text = "排序号";
e.CurrentHeadRow.Cells[1].Text = "编号";
e.CurrentHeadRow.Cells[2].Text = "目录名称";
e.CurrentHeadRow.Cells[3].Text = "目录路径";
e.CurrentHeadRow.Cells[4].Text = "限制文件容量";
e.CurrentHeadRow.Cells[5].Text = "默认排序";
e.CurrentHeadRow.Cells[0].ColSpan = 2;
e.CurrentHeadRow.Cells[6].Text = "操作";
e.CurrentHeadRow.Cells[6].ColSpan = 3;
break;
case Wilson.WebClassLibrary.WTable.Enum.EnumRowType.Body:
e.CurrentBodyRow.Cells[0].ColSpan = 2;
if (e.CurrentBodyRow.Cells[4].Text.ToString().Equals("0"))
e.CurrentBodyRow.Cells[4].Text = "大小不限";
e.CurrentBodyRow.Cells[6].Text = "编辑";
e.CurrentBodyRow.Cells[6].CellType = Wilson.WebClassLibrary.WTable.Enum.EnumCellType.HyperLink;
e.CurrentBodyRow.Cells[6].Url = "New.aspx?opt=1&Disk_ID=" + e.CurrentBodyRow.Cells[1].Text;
e.CurrentBodyRow.Cells[7].Text = "删除";
e.CurrentBodyRow.Cells[7].CellType = Wilson.WebClassLibrary.WTable.Enum.EnumCellType.HyperLink;
e.CurrentBodyRow.Cells[7].Url = "Delete.aspx?Disk_ID=" + e.CurrentBodyRow.Cells[1].Text;
e.CurrentBodyRow.Cells[8].Text = "权限设置";
e.CurrentBodyRow.Cells[8].CellType = Wilson.WebClassLibrary.WTable.Enum.EnumCellType.HyperLink;
e.CurrentBodyRow.Cells[8].Url = "SetUser_Index.aspx?Disk_ID=" + e.CurrentBodyRow.Cells[1].Text;
break;
case Wilson.WebClassLibrary.WTable.Enum.EnumRowType.BodyBuilderEnd:
break;
}
}
示例8: wdTab_Info_PageSizeChanged
protected void wdTab_Info_PageSizeChanged(object sender, Wilson.WebClassLibrary.WTable.EventArg.EventArgsPage e)
{
BindGridView("BlockAddress", e.PageIndex, e.PageSize, SelectWhere());
hidSize.Value = e.PageSize.ToString();
hidOrder.Value = "BlockAddress";
hidIndex.Value = e.PageIndex.ToString();
}
示例9: wdTab_Info_DataRowDataBuilding
protected void wdTab_Info_DataRowDataBuilding(object sender, Wilson.WebClassLibrary.WTable.EventArg.EventArgsTableDataBuilder e)
{
switch (e.RowType)
{
case Wilson.WebClassLibrary.WTable.Enum.EnumRowType.Header:
e.CurrentHeadRow.Cells[0].Text = "编号";
e.CurrentHeadRow.Cells[1].Text = "名称";
e.CurrentHeadRow.Cells[2].Text = "一级电机状态";
e.CurrentHeadRow.Cells[3].Text = "一级电机电压(V)";
e.CurrentHeadRow.Cells[4].Text = "一级电机电流(A)";
e.CurrentHeadRow.Cells[5].Text = "一级电机功率(KW)";
e.CurrentHeadRow.Cells[6].Text = "二级电机状态";
e.CurrentHeadRow.Cells[7].Text = "二级电机电压(V)";
e.CurrentHeadRow.Cells[8].Text = "二级电机电流(A)";
e.CurrentHeadRow.Cells[9].Text = "二级电机功率(KW)";
e.CurrentHeadRow.Cells[10].Text = "监测时刻";
break;
case Wilson.WebClassLibrary.WTable.Enum.EnumRowType.Body:
if (e.CurrentBodyRow.Cells[2].Text.Equals("1"))
{
e.CurrentBodyRow.Cells[2].Text = "开";
}
else if (e.CurrentBodyRow.Cells[2].Text.Equals("0"))
{
e.CurrentBodyRow.Cells[2].Text = "关";
}
else
{
e.CurrentBodyRow.Cells[2].Text = "故障";
}
if (e.CurrentBodyRow.Cells[6].Text.Equals("1"))
{
e.CurrentBodyRow.Cells[6].Text = "开";
}
else if (e.CurrentBodyRow.Cells[6].Text.Equals("0"))
{
e.CurrentBodyRow.Cells[6].Text = "关";
}
else
{
e.CurrentBodyRow.Cells[6].Text = "故障";
}
break;
}
}
示例10: wdTab_Info_DataRowDataBuilding
protected void wdTab_Info_DataRowDataBuilding(object sender, Wilson.WebClassLibrary.WTable.EventArg.EventArgsTableDataBuilder e)
{
switch (e.RowType)
{
case Wilson.WebClassLibrary.WTable.Enum.EnumRowType.Header:
e.CurrentHeadRow.Cells[0].Text = "序号";
e.CurrentHeadRow.Cells[1].Text = "标识卡编号";
e.CurrentHeadRow.Cells[2].Text = "姓名";
e.CurrentHeadRow.Cells[3].Text = "部门";
e.CurrentHeadRow.Cells[4].Text = "职务";
e.CurrentHeadRow.Cells[5].Text = "工种";
e.CurrentHeadRow.Cells[6].Text = "下井时刻";
e.CurrentHeadRow.Cells[7].Text = "下井位置";
e.CurrentHeadRow.Cells[8].Text = "下井时长";
break;
case Wilson.WebClassLibrary.WTable.Enum.EnumRowType.Body:
e.CurrentBodyRow.Cells[6].Text = DateTime.Parse(e.CurrentBodyRow.Cells[6].Text).ToString("yyyy-MM-dd HH:mm:ss");
if (!e.CurrentBodyRow.Cells[6].Text.Equals(""))
{
TimeSpan ts = DateTime.Now.Subtract(Convert.ToDateTime(e.CurrentBodyRow.Cells[6].Text.ToString()));
e.CurrentBodyRow.Cells[8].Text = ts.Days.ToString() + "天" + ts.Hours.ToString() + "小时" + ts.Minutes.ToString() + "分" + ts.Seconds.ToString() + "秒";
}
if (e.CurrentBodyRow.Cells[3].Text.Equals("矿领导"))
{
e.CurrentBodyRow.Cells[0].CssClass = "tdred";
e.CurrentBodyRow.Cells[1].CssClass = "tdred";
e.CurrentBodyRow.Cells[2].CssClass = "tdred";
e.CurrentBodyRow.Cells[3].CssClass = "tdred";
e.CurrentBodyRow.Cells[4].CssClass = "tdred";
e.CurrentBodyRow.Cells[5].CssClass = "tdred";
e.CurrentBodyRow.Cells[6].CssClass = "tdred";
e.CurrentBodyRow.Cells[7].CssClass = "tdred";
}
break;
if (e.CurrentBodyRow.Cells[5].Text.Equals("无"))
{
e.CurrentBodyRow.Cells[5].Text = "";
}
break;
}
}
示例11: wdTab_Info_PageOrderChanged
protected void wdTab_Info_PageOrderChanged(object sender, Wilson.WebClassLibrary.WTable.EventArg.EventArgsFieldsOrder e)
{
string strOrderMode = "";
if (e.OrderField.Equals("列8"))
{
strOrderMode = "STime";
}
else
{
strOrderMode = e.OrderMode == Wilson.WebClassLibrary.WTable.Enum.EnumOrderMode.Default ? "" : e.OrderMode.ToString();
}
BindGridView(e.OrderField + " " + strOrderMode, e.PageIndex, e.PageSize, SelectWhere());
hidOrder.Value = e.OrderField + " " + strOrderMode;
}
示例12: wdTab_Info_PageOrderChanged
protected void wdTab_Info_PageOrderChanged(object sender, Wilson.WebClassLibrary.WTable.EventArg.EventArgsFieldsOrder e)
{
if (e.OrderField.Equals("列10"))
{
Page.ClientScript.RegisterStartupScript(this.GetType(), "error", "<script>window.history.back();</script>");
return;
}
string strOrderMode = e.OrderMode == Wilson.WebClassLibrary.WTable.Enum.EnumOrderMode.Default ? "" : e.OrderMode.ToString();
BindGridView(e.OrderField + " " + strOrderMode, e.PageIndex, e.PageSize, SelectWhere());
}
示例13: wdTab_Info_DataRowDataBuilding
protected void wdTab_Info_DataRowDataBuilding(object sender, Wilson.WebClassLibrary.WTable.EventArg.EventArgsTableDataBuilder e)
{
switch (e.RowType)
{
case Wilson.WebClassLibrary.WTable.Enum.EnumRowType.Header:
e.CurrentHeadRow.Cells[0].Text = "标识卡编号";
e.CurrentHeadRow.Cells[1].Text = "姓名";
e.CurrentHeadRow.Cells[2].Text = "部门";
e.CurrentHeadRow.Cells[3].Text = "职务";
e.CurrentHeadRow.Cells[4].Text = "工种";
e.CurrentHeadRow.Cells[5].Text = "下井时刻";
e.CurrentHeadRow.Cells[6].Text = "下井位置";
e.CurrentHeadRow.Cells[7].Text = "下井时长";
//if (e.CurrentHeadRow.Cells.Length > 8)
// e.CurrentHeadRow.Cells[8].Text = "操作";
break;
case Wilson.WebClassLibrary.WTable.Enum.EnumRowType.Body:
if (!e.CurrentBodyRow.Cells[5].Text.Equals(""))
{
TimeSpan ts = DateTime.Now.Subtract(Convert.ToDateTime(e.CurrentBodyRow.Cells[5].Text.ToString()));
e.CurrentBodyRow.Cells[7].Text = ts.Days.ToString() + "天" + ts.Hours.ToString() + "小时" + ts.Minutes.ToString() + "分" + ts.Seconds.ToString() + "秒";
}
//if (e.CurrentBodyRow.Cells.Length > 8)
//{
// e.CurrentBodyRow.Cells[8].Text = "查看";
// e.CurrentBodyRow.Cells[8].CellType = Wilson.WebClassLibrary.WTable.Enum.EnumCellType.HyperLink;
// e.CurrentBodyRow.Cells[8].Url = "../History/KJ128_HisDistribution.aspx?BlockAddress=" + e.CurrentBodyRow.Cells[0].Text;
//}
break;
}
}
示例14: wdTab_Info_PageOrderChanged
protected void wdTab_Info_PageOrderChanged(object sender, Wilson.WebClassLibrary.WTable.EventArg.EventArgsFieldsOrder e)
{
string strOrderMode = "";
if (!e.OrderField.Equals("列5"))
{
strOrderMode = e.OrderMode == Wilson.WebClassLibrary.WTable.Enum.EnumOrderMode.Default ? "" : e.OrderMode.ToString();
}
else
{
e.OrderField = "BlockAddress";
}
BindGridView(e.OrderField + " " + strOrderMode, e.PageIndex, e.PageSize);
}
示例15: wdTab_Info_DataRowDataBuilding
protected void wdTab_Info_DataRowDataBuilding(object sender, Wilson.WebClassLibrary.WTable.EventArg.EventArgsTableDataBuilder e)
{
switch (e.RowType)
{
case Wilson.WebClassLibrary.WTable.Enum.EnumRowType.Header:
e.CurrentHeadRow.Cells[0].Text = "发布人";
e.CurrentHeadRow.Cells[0].ColSpan = 2;
e.CurrentHeadRow.Cells[2].Text = "类型";
e.CurrentHeadRow.Cells[3].Text = "发布范围";
e.CurrentHeadRow.Cells[4].Text = "标题";
e.CurrentHeadRow.Cells[5].Text = "发布时间";
e.CurrentHeadRow.Cells[6].Text = "点击次数";
e.CurrentHeadRow.Cells[7].Text = "评论(条)";
e.CurrentHeadRow.Cells[8].Text = "状态";
//如果是具有管理权限
//if (strIsManage == "true")
//{
if (e.CurrentHeadRow.Cells.Length > 9)
{
e.CurrentHeadRow.Cells[9].Text = "评论";
e.CurrentHeadRow.Cells[10].Text = "删除";
e.CurrentHeadRow.Cells[11].Text = "修改";
}
//}
//else
//{
// e.CurrentHeadRow.Cells[8].ColSpan = 4;
//}
break;
case Wilson.WebClassLibrary.WTable.Enum.EnumRowType.Body:
e.CurrentBodyRow.Cells[0].ColSpan = 2;
if (e.CurrentBodyRow.Cells[3].Text != string.Empty)
{
string strUserID = e.CurrentBodyRow.Cells[3].Text;
e.CurrentBodyRow.Cells[3].Text = GetTureName(strUserID);
}
if (e.CurrentBodyRow.Cells[8].Text != string.Empty)
{
e.CurrentBodyRow.Cells[8].Text = e.CurrentBodyRow.Cells[8].Text == "True" ? "发布" : "<font color=red>未发布</font>";
}
if (e.CurrentBodyRow.Cells[6].Text.ToString().Equals(""))
{
e.CurrentBodyRow.Cells[6].Text = "0";
}
if (e.CurrentBodyRow.Cells[7].Text.ToString().Equals(""))
{
e.CurrentBodyRow.Cells[7].Text = "0";
}
string strName = e.CurrentBodyRow.Cells[3].Text;
if (strName != string.Empty)
{
string strTrueName =strName;
if (strTrueName.Length > 10)
{
e.CurrentBodyRow.Cells[3].Text = strName.Substring(0, 10) + "...";
}
else
{
e.CurrentBodyRow.Cells[3].Text = strTrueName;
}
}
//if (e.CurrentBodyRow.Cells[2].Text != string.Empty)
//{
// e.CurrentBodyRow.Cells[2].Text = GetTureName(e.CurrentBodyRow.Cells[2].Text);
//}
string strComm = e.CurrentBodyRow.Cells[9].Text;
//如果是具有管理功能
//if (strIsManage == "true")
//{
if (e.CurrentBodyRow.Cells.Length > 9)
{
if (!e.CurrentBodyRow.Cells[9].Text.Equals("2"))
{
//评论类型:0,实名评论;1,匿名评论;2,禁止评论
e.CurrentBodyRow.Cells[9].Text = "管理评论";
e.CurrentBodyRow.Cells[9].CellType = Wilson.WebClassLibrary.WTable.Enum.EnumCellType.HyperLink;
e.CurrentBodyRow.Cells[9].Url = "OA_News_Comment.aspx?Info=comm&NewsID=" + e.CurrentBodyRow.Cells[1].Text + "&commtype=" + strComm + "&IsManage=" + strIsManage;
}
else
{
e.CurrentBodyRow.Cells[9].Text = "";
}
e.CurrentBodyRow.Cells[10].Text = "删除";
e.CurrentBodyRow.Cells[10].CellType = Wilson.WebClassLibrary.WTable.Enum.EnumCellType.HyperLink;
e.CurrentBodyRow.Cells[10].Url = "OA_News_View.aspx?Info=del&NewsID=" + e.CurrentBodyRow.Cells[1].Text+"&IsManage="+strIsManage;
e.CurrentBodyRow.Cells[11].Text = "修改";
e.CurrentBodyRow.Cells[11].CellType = Wilson.WebClassLibrary.WTable.Enum.EnumCellType.HyperLink;
//.........这里部分代码省略.........