示例#1
0
        //public static List<T> CommTreeWithNon;

        //public IEnumerable<T> GetChild(List<T> all,T root, Func<T, IEnumerable<T>> childrenProperty)
        //{
        //    var child = childrenProperty(root);
        //    if (child==null || child.Count()==0)
        //    {
        //        return;
        //    }

        //}



        /// <summary>
        /// 获取公司帐期
        /// </summary>
        /// <param name="Company"></param>
        /// <returns></returns>
        public static Bse_Period GetCurCompanyPeriod(string Company)
        {
            Bll_Bse_Period PeriodInstance = new Bll_Bse_Period();
            Bse_Period     model          = PeriodInstance.GetModel(" and BP_CompanyCode='" + Company + "' AND BP_IsCurrent='1' order by BP_ID DESC");

            return(model);
        }
示例#2
0
 //public static List<T> CommTreeWithNon;
 //public IEnumerable<T> GetChild(List<T> all,T root, Func<T, IEnumerable<T>> childrenProperty)
 //{
 //    var child = childrenProperty(root);
 //    if (child==null || child.Count()==0)
 //    {
 //        return;
 //    }
 //}
 /// <summary>
 /// 获取公司帐期
 /// </summary>
 /// <param name="Company"></param>
 /// <returns></returns>
 public static Bse_Period GetCurCompanyPeriod(string Company)
 {
     Bll_Bse_Period PeriodInstance = new Bll_Bse_Period();
     Bse_Period model = PeriodInstance.GetModel(" and BP_CompanyCode='" + Company + "' AND BP_IsCurrent='1' order by BP_ID DESC");
     return model;
 }