资源简介
一套功能强大的OA系统,包含强大的流程可视化设计及OA全部功能
代码片段和文件信息
#region 引用程序集
using System;
using System.Collections.Generic;
using System.Collections;
using System.Text;
using System.Data;
using System.Configuration;
using System.Reflection;
using System.Web.UI.WebControls;
using System.Web;
using System.xml.XPath;
using System.xml;
using System.Text.Regularexpressions;
using AllPower.IDAL;
using AllPower.Model;
using AllPower.BLL.Template;
using AllPower.Template.ParamType;
#endregion
#region 版权注释
/*----------------------------------------------------------------------------------------
// Copyright (C) 2010 华强北在线
// 作者:吴岸标
// 创建日期:2011-1-11
// 功能描述:DW中调用接口
----------------------------------------------------------------------------------------*/
#endregion
namespace AllPower.BLL
{
public class DWAPI
{
#region 变量成员
private static string path = ConfigurationManager.AppSettings[“WebDAL“];
private IDAL.IDWAPI dal = (IDAL.IDWAPI)Assembly.Load(path).CreateInstance(path + “.DWAPI“);
#endregion
#region 获取站点栏目
public string GetMenuList(string siteID)
{
StringBuilder sbResult;
DataTable dt;
sbResult = new StringBuilder();
if (!string.IsNullOrEmpty(siteID))
{
dt = dal.GetMenuList(siteID);
if (dt != null && dt.Rows.Count > 0)
{
sbResult.Append(“[“);
TreeBind(ref sbResult dt dt.Rows[0][“ParentID“].ToString() string.Empty);
sbResult.Append(“]“);
}
}
if (sbResult.Length < 1)
{
sbResult.Append(“(null)“);
}
return sbResult.ToString();
}
#region 添加项
private void TreeBind(ref StringBuilder sbResult DataTable dataSource string parentID string parentPrevStr)
{
DataRow[] drNode;
DataRow[] drChildNode;
string currentPrevStr;
string nodetitle;
string nodeValue;
drNode = null;
drChildNode = null;
nodetitle = string.Empty;
nodeValue = string.Empty;
drNode = dataSource.Select(“ParentID=‘“ + parentID + “‘“);
currentPrevStr = parentPrevStr;
if (drNode != null)
{
foreach (DataRow dr in drNode)
{
nodeValue = dr[“ID“].ToString();
drChildNode = dataSource.Select(“ParentID=‘“ + dr[“ID“].ToString() + “‘“);
if (drChildNode.Length > 0)
{
nodetitle = currentPrevStr + “|-“ + dr[“Name“].ToString();
}
else
{
nodetitle = currentPrevStr + “∟“ + dr[“Name“].ToString();
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
....... 17903 2015-05-06 21:36 AllPower.BLL\AllPower.BLL.csproj
....... 478 2015-05-06 21:36 AllPower.BLL\AllPower.BLL.csproj.user
....... 79 2015-05-06 21:36 AllPower.BLL\app.config
....... 453120 2015-05-06 21:36 AllPower.BLL\bin\Debug\AllPower.BLL.dll
....... 79 2015-05-06 21:36 AllPower.BLL\bin\Debug\AllPower.BLL.dll.config
....... 1191424 2015-05-06 21:36 AllPower.BLL\bin\Debug\AllPower.BLL.pdb
....... 107520 2015-05-06 21:36 AllPower.BLL\bin\Debug\AllPower.Common.dll
....... 314880 2015-05-06 21:36 AllPower.BLL\bin\Debug\AllPower.Common.pdb
....... 26624 2015-05-06 21:36 AllPower.BLL\bin\Debug\AllPower.Config.dll
....... 138752 2015-05-06 21:36 AllPower.BLL\bin\Debug\AllPower.Config.pdb
....... 37376 2015-05-06 21:36 AllPower.BLL\bin\Debug\AllPower.IDAL.dll
....... 7680 2015-05-06 21:36 AllPower.BLL\bin\Debug\AllPower.IDAL.pdb
....... 205824 2015-05-06 21:36 AllPower.BLL\bin\Debug\AllPower.Model.dll
....... 1302016 2015-05-06 21:36 AllPower.BLL\bin\Debug\AllPower.Model.pdb
....... 370176 2015-05-06 21:36 AllPower.BLL\bin\Debug\AllPower.SQLServer.dll
....... 849408 2015-05-06 21:36 AllPower.BLL\bin\Debug\AllPower.SQLServer.pdb
....... 136192 2015-05-06 21:36 AllPower.BLL\bin\Debug\AllPower.Template.dll
....... 372224 2015-05-06 21:36 AllPower.BLL\bin\Debug\AllPower.Template.pdb
....... 114688 2015-05-06 21:36 AllPower.BLL\bin\Debug\AspNetPager.dll
....... 36864 2015-05-06 21:36 AllPower.BLL\bin\Debug\Interop.ADOX.dll
....... 950272 2015-05-06 21:36 AllPower.BLL\bin\Debug\Interop.SQLDMO.dll
....... 453120 2015-05-06 21:36 AllPower.BLL\bin\Debug\KingTop.BLL.dll
....... 79 2015-05-06 21:36 AllPower.BLL\bin\Debug\KingTop.BLL.dll.config
....... 111616 2015-05-06 21:36 AllPower.BLL\bin\Debug\KingTop.Common.dll
....... 26624 2015-05-06 21:36 AllPower.BLL\bin\Debug\KingTop.Config.dll
....... 37376 2015-05-06 21:36 AllPower.BLL\bin\Debug\KingTop.IDAL.dll
....... 7680 2015-05-06 21:36 AllPower.BLL\bin\Debug\KingTop.IDAL.pdb
....... 205824 2015-05-06 21:36 AllPower.BLL\bin\Debug\KingTop.Model.dll
....... 370176 2015-05-06 21:36 AllPower.BLL\bin\Debug\KingTop.SQLServer.dll
....... 136192 2015-05-06 21:36 AllPower.BLL\bin\Debug\KingTop.Template.dll
............此处省略6741个文件信息
- 上一篇:小型企业网站源码
- 下一篇:tdm-gcc-64位
相关资源
- 数字信号处理-原理、算法与应用 中文
- 京瓷4125维修手册
- .net(EF+MVC+Bootchart)通用后台管理系统
- 致远OA A8 2017最新教程800页
- 基于ssh的购物网站和后台管理系统
- 基于can总线的bootloader
- 通达OA本地PDF插件
- dddddddddddddddddddDownloads.zip
- stm32的bootloader及移植的rtthread
- 计算机网络自顶向下方法第七版 Com
- 10套精美的后台管理系统网站模版
- EasyRoads3D Pro v3.1.9.f1.unitypackage
- 根据wsdl使用gsoap生成的服务器和客户
- jboa.rar
- OA管理系统SSH框架---北大青鸟学士后第
- computer architecture a quantitative approach
- LoadRunner12.50中文使用手册
- gsoap_2.8.22
- 精品OA(包括完整的源程序、文档及数
- 12套 Axure 模板,非常漂亮的中后台原
- ssm框架整合spring、spring mvc、mybatis开发
- SoapUI破解版
- WINCC OA中文手册
- 广东飞企互联OA操作手册题及
- 商城后台管理系统源码
- 通信系统原理_英文版及课后答案,
- SSH_OA.rar
- DownloadFile.zip
- Static timing analysis for nanometer designs_
- 汤阳光oa源码2014
评论
共有 条评论