예제 #1
0
 /// <summary>
 /// 获取到经过排序的组织信息
 /// </summary>
 /// <returns></returns>
 public YouthOneDS.OrganizeDataTable GetDataOrder()
 {
     this.Adapter.SelectCommand = GetDataOrderSqlComand;
     YouthOneDS.OrganizeDataTable dataTable = new YouthOneDS.OrganizeDataTable();
     this.Adapter.Fill(dataTable);
     return(dataTable);
 }
예제 #2
0
        /// <summary>
        /// 对标准枚举进行缓存
        /// </summary>
        /// <returns></returns>
        public YouthOneDS.OrganizeDataTable GetDataCache()
        {
            YouthOneDS.OrganizeDataTable _DT = (YouthOneDS.OrganizeDataTable)HttpContext.Current.Cache[CacheUtil.CACHE_Organize];

            if (_DT == null)
            {
                _DT = GetData();
                HttpContext.Current.Cache.Insert(CacheUtil.CACHE_Organize, _DT, null, DateTime.Now.AddSeconds(CacheUtil.CONFIG_ExpireSecond), TimeSpan.Zero);
            }

            return(_DT);
        }
예제 #3
0
        public YouthOneDS.OrganizeDataTable GetWorkGroup(string PARENT_OID)
        {
            YouthOneDS.OrganizeDataTable dataTable = new YouthOneDS.OrganizeDataTable();

            if ((PARENT_OID == null))
            {
                throw new global::System.ArgumentNullException("PARENT_OID");
            }
            else
            {
                WorkGroupSelectSqlComand.Parameters[0].Value = PARENT_OID;
            }

            this.Adapter.SelectCommand = WorkGroupSelectSqlComand;
            this.Adapter.SelectCommand.Parameters[0].Value = PARENT_OID;
            this.Adapter.Fill(dataTable);

            return(dataTable);
        }