Exemplo n.º 1
0
        public static T GetBal <T>() where T : BOBase
        {
            UserInfo user = new UserInfo();

            string baseName = typeof(T).Name;

            return((T)ReflectionUtil.GetNewEntity(ReflectionUtil.GetTypeByName(ConstantsHelper.GetHelper(user.SiteCode, user.BUCode).GetBLLInfo(baseName)), user));
        }
Exemplo n.º 2
0
 public BasicBO(UserInfo userInfo)
     : base(userInfo)
 {
     //
     // TODO: Add constructor logic here
     //
     //打印模版存放路徑
     tplPath = ConstantsHelper.GetHelper(this.UserSite, this.UserBU).S_LABEL_TPL_PATH + "\\" + this.UserSite + this.UserBU;
     if (!Directory.Exists(tplPath))
     {
         Directory.CreateDirectory(tplPath);
     }
 }