• 大小: 42.68MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-07-10
  • 语言: 其他
  • 标签: asp.net  OA  CRM  ERP)  

资源简介

一套功能强大的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个文件信息

评论

共有 条评论