예제 #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));
        }
예제 #2
0
파일: BasicBO.cs 프로젝트: LiuDemin09/QzMes
 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);
     }
 }