public BaseBll() { //if (!string.IsNullOrEmpty(CommonUserInfo.EmployeeID)) //{ // //dal.CurrentUserID = CommonUserInfo.EmployeeID; //} if (MemCacheClient == null) { MemCacheClient = new MemcachedClient(); } if (personClient == null) { personClient = new PersonnelServiceClient(); } if (PermClient == null) { PermClient = new SMT.SaaS.BLLCommonServices.PermissionWS.PermissionServiceClient(); } if (BllPermClient == null) { BllPermClient = new SMT.SaaS.BLLCommonServices.BllCommonUserPermissionWS.BllCommonPermissionServicesClient(); } if (UtilityClass == null) { UtilityClass = new SMT.SaaS.BLLCommonServices.Utility(); } if (dal == null) { dal = new CommDaL <TEntity>(); //dal.LogNewDal(typeof(TEntity).Name); } }
public BaseBll() { string isForHuNanHangXingSalary = ConfigurationManager.AppSettings["isForHuNanHangXingSalary"]; if (isForHuNanHangXingSalary == "true") //试用期 { isForHuNanHangXing = true; } //if (!string.IsNullOrEmpty(CommonUserInfo.EmployeeID)) //{ // //dal.CurrentUserID = CommonUserInfo.EmployeeID; //} if (MemCacheClient == null) { MemCacheClient = new MemcachedClient(); } if (personClient == null) { personClient = new PersonnelServiceClient(); } if (PermClient == null) { PermClient = new SMT.SaaS.BLLCommonServices.PermissionWS.PermissionServiceClient(); } if (BllPermClient == null) { BllPermClient = new SMT.SaaS.BLLCommonServices.BllCommonUserPermissionWS.BllCommonPermissionServicesClient(); } if (UtilityClass == null) { UtilityClass = new SMT.SaaS.BLLCommonServices.Utility(); } if (dal == null) { dal = new CommDaL <TEntity>(); //dal.LogNewDal(typeof(TEntity).Name); } }