Example #1
0
 public override void process()
 {
     using (WebCBEntities entity = WebCBEntitiesFactory.CreateWebEntitie()) {
         NLog.LogManager.GetCurrentClassLogger().Error("sasdasdasd");
         Console.WriteLine("asdfasdf2");
     }
 }
Example #2
0
 int GetPaperId(WebCBEntities cbEntity, int userId)
 {
     //v_user_info v_user_info = cbEntity.v_user_info.SingleOrDefault(p => p.userid == userId);
     //if (v_user_info == null || !v_user_info.departmentId.HasValue)
     //    return 0;
     //var depId = cbEntity.sys_department.SingleOrDefault(p => p.departmentId == v_user_info.departmentId.Value).parentId;
     //if (string.IsNullOrEmpty(ConfigurationManager.AppSettings[depId.ToString()]))
     //    return 0;
     //return int.Parse(ConfigurationManager.AppSettings[depId.ToString()]);
     return(1);
 }