Ejemplo n.º 1
0
 public int AddEmpSurveysResultList(List <T_OA_REQUIRERESULT> objList)
 {
     using (EmployeeSurveysResultBll empSurveysResultBll = new EmployeeSurveysResultBll())
     {
         //事物
         bool sucess = true;
         foreach (T_OA_REQUIRERESULT obj in objList)
         {
             sucess = empSurveysResultBll.Add(obj);
         }
         if (sucess == false)
         {
             return(-1);
         }
         return(1);
     }
 }
 public int AddEmpSurveysResultList(List<T_OA_REQUIRERESULT> objList)
 {
     using (EmployeeSurveysResultBll empSurveysResultBll = new EmployeeSurveysResultBll())
     {
         //事物
         bool sucess = true;
         foreach (T_OA_REQUIRERESULT obj in objList)
         {
             sucess = empSurveysResultBll.Add(obj);
         }
         if (sucess == false)
         {
             return -1;
         }
         return 1;
     }
 }