Example #1
0
 public int AddEmpSurveysSubject(T_OA_REQUIREDETAIL2 obj)
 {
     using (EmployeeSurveySubjectBll empSurveysSubjectBll = new EmployeeSurveySubjectBll())
     {
         int n = empSurveysSubjectBll.Add(obj) ? 1 : 0;
         return(n);
     }
 }
Example #2
0
 public int AddEmpSurveysSubjectList(List <T_OA_REQUIREDETAIL2> objList)
 {
     using (EmployeeSurveySubjectBll empSurveysSubjectBll = new EmployeeSurveySubjectBll())
     {
         //事物
         int n = 0;
         foreach (T_OA_REQUIREDETAIL2 obj in objList)
         {
             n += empSurveysSubjectBll.Add(obj) ? 1 : 0;
         }
         return(n);
     }
 }
Example #3
0
 public int Save_SubjectAnswer(List <V_EmployeeSurveySubject> lstAdd, List <V_EmployeeSurveySubject> lstUpd)
 {
     using (EmployeeSurveySubjectBll empSurveysSubjectBll = new EmployeeSurveySubjectBll())
     {
         //事物
         int n = 0;
         foreach (V_EmployeeSurveySubject i in lstAdd)
         {
             n += empSurveysSubjectBll.Add(i.SubjectInfo) ? 1 : 0;
         }
         foreach (V_EmployeeSurveySubject i in lstAdd)
         {
             n += empSurveysSubjectBll.UpdateEmployeeSurveySubject(i.SubjectInfo);
         }
         return(n);
     }
 }
 public int Save_SubjectAnswer(List<V_EmployeeSurveySubject> lstAdd,List<V_EmployeeSurveySubject> lstUpd)
 {
     using (EmployeeSurveySubjectBll empSurveysSubjectBll = new EmployeeSurveySubjectBll())
     {
         //事物
         int n = 0;
         foreach (V_EmployeeSurveySubject i in lstAdd)
             n += empSurveysSubjectBll.Add(i.SubjectInfo) ? 1 : 0;
         foreach (V_EmployeeSurveySubject i in lstAdd)
             n += empSurveysSubjectBll.UpdateEmployeeSurveySubject(i.SubjectInfo);
         return n;
     }
 }
 public int AddEmpSurveysSubjectList(List<T_OA_REQUIREDETAIL2> objList)
 {
     using (EmployeeSurveySubjectBll empSurveysSubjectBll = new EmployeeSurveySubjectBll())
     {
         //事物
         int n = 0;
         foreach (T_OA_REQUIREDETAIL2 obj in objList)
             n += empSurveysSubjectBll.Add(obj) ? 1 : 0;
         return n;
     }
 }
 public int AddEmpSurveysSubject(T_OA_REQUIREDETAIL2 obj)
 {
     using (EmployeeSurveySubjectBll empSurveysSubjectBll = new EmployeeSurveySubjectBll())
     {
         int n = empSurveysSubjectBll.Add(obj) ? 1 : 0;
         return n;
     }
 }