//临时
 public void update()
 {
     var f = new FunctionService();
     var role = new RoleTypeService();
     if (f.FindAll().Count > 21) return;
     var ro = new RoleAuthorityService();
     f.Insert(new function()
     {
         Meno = "淘汰任务",
         Name = "EliminateTask"
     });
     f.Insert(new function()
     {
         Name = "DeadTask",
         Meno = "死亡任务"
     });
     f.Insert(new function()
     {
         Name = "EliminateInfo",
         Meno = "淘汰信息管理"
     });
     f.Insert(new function()
     {
         Name = "DeadInfo",
         Meno = "死亡信息管理"
     });
     var roletype = new RoleTypeService();
     roletype.Insert(new role_type() {
      Name="淘汰生猪负责员"
     });
     roletype.Insert(new role_type()
     {
         Name = "死亡生猪处理员"
     });
     foreach (var a in role.FindAll())
     {
         for (int i = 20; i < 24; i++)
             ro.Insert(new role_authority()
             {
                 FunctionId = i,
                 RoleTypeId = a.Id,
                 Check = true
             });
     }
 }