Ejemplo n.º 1
0
 public int Upd_ESurvey(T_OA_REQUIREMASTER survey, List <V_EmployeeSurveySubject> addLst, List <V_EmployeeSurveySubject> updLst)
 {
     using (EmployeeSurveyViewBll employeeSurveyViewBll = new EmployeeSurveyViewBll())
     {
         return(employeeSurveyViewBll.Upd_ESurvey(survey, addLst, updLst));
     }
 }
Ejemplo n.º 2
0
 public List <T_OA_REQUIRERESULT> GetResultByUserID(string userID, string masterID)
 {
     using (EmployeeSurveyViewBll employeeSurveyViewBll = new EmployeeSurveyViewBll())
     {
         return(employeeSurveyViewBll.GetSubjectResultByUserID(userID, masterID));
     }
 }
Ejemplo n.º 3
0
 private T_OA_REQUIRE Get_ESurveyApp(string id)
 {
     using (EmployeeSurveyViewBll employeeSurveyViewBll = new EmployeeSurveyViewBll())
     {
         return(employeeSurveyViewBll.Get_ESurveyApp(id));
     }
 }
Ejemplo n.º 4
0
 public List <V_EmployeeID> GetEmployeeList(string resqId)
 {
     using (EmployeeSurveyViewBll employeeSurveyViewBll = new EmployeeSurveyViewBll())
     {
         return(employeeSurveyViewBll.GetEmployeeList(resqId));
     }
 }
Ejemplo n.º 5
0
 public int Del_ESurveyApp(List <T_OA_REQUIRE> lst)
 {
     using (EmployeeSurveyViewBll employeeSurveyViewBll = new EmployeeSurveyViewBll())
     {
         return(employeeSurveyViewBll.Del_ESurveyApp(lst));
     }
 }
Ejemplo n.º 6
0
 public int Upd_ESurveyApp(T_OA_REQUIRE info)
 {
     using (EmployeeSurveyViewBll employeeSurveyViewBll = new EmployeeSurveyViewBll())
     {
         return(employeeSurveyViewBll.Upd_ESurveyApp(info));
     }
 }
Ejemplo n.º 7
0
 public int Add_ESurveyResult(T_OA_REQUIREDISTRIBUTE info)
 {
     using (EmployeeSurveyViewBll employeeSurveyViewBll = new EmployeeSurveyViewBll())
     {
         return(employeeSurveyViewBll.Add_ESurveyResult(info));
     }
 }
Ejemplo n.º 8
0
 private T_OA_REQUIREDISTRIBUTE Get_ESurveyResult(string id)
 {
     using (EmployeeSurveyViewBll employeeSurveyViewBll = new EmployeeSurveyViewBll())
     {
         return(employeeSurveyViewBll.Get_ESurveyResult(id));
     }
 }
Ejemplo n.º 9
0
 public int Del_ESurveyResult(List <T_OA_REQUIREDISTRIBUTE> lst)
 {
     using (EmployeeSurveyViewBll employeeSurveyViewBll = new EmployeeSurveyViewBll())
     {
         return(employeeSurveyViewBll.Del_ESurveyResult(lst));
     }
 }
Ejemplo n.º 10
0
 public List <V_SatisfactionResult> Result_ESurveyByRequireID(string id)
 {
     using (EmployeeSurveyViewBll employeeSurveyViewBll = new EmployeeSurveyViewBll())
     {
         return(employeeSurveyViewBll.Result_SurveyByRequireID(id));
     }
 }
Ejemplo n.º 11
0
 ///返回员工调查发布和满意度调查发布
 ///2010-09-20 liujin
 public List <V_SystemNotice> GetStaffSurveyInfos(string userID, string postID, string companyID, string departmentID)
 {
     using (EmployeeSurveyViewBll employeeSurveyViewBll = new EmployeeSurveyViewBll())
     {
         IQueryable <V_SystemNotice> ent = employeeSurveyViewBll.GetStaffSurveyInfo(userID, postID, companyID, departmentID);
         return(ent != null?ent.ToList() : null);
     }
 }
Ejemplo n.º 12
0
 public int UpdateEmployeeSurveyView(V_EmployeeSurvey infoView)
 {
     using (EmployeeSurveyViewBll employeeSurveyViewBll = new EmployeeSurveyViewBll())
     {
         if (employeeSurveyViewBll.UpdateEmployeeSurveyView(infoView) == 1)
         {
             return(1);
         }
         return(-1);
     }
 }
Ejemplo n.º 13
0
 public V_EmployeeSurvey Get_ESurvey(string requireMasterID)
 {
     using (EmployeeSurveyViewBll employeeSurveyViewBll = new EmployeeSurveyViewBll())
     {
         IQueryable<V_EmployeeSurvey> lst = employeeSurveyViewBll.Get_ESurvey(requireMasterID);
         if (lst != null)
             return lst.ToList()[0];
         else
             return null;
     }
 }
Ejemplo n.º 14
0
 public int DeleteEmployeeSurveyViewList(List <V_EmployeeSurvey> infoViewList)
 {
     using (EmployeeSurveyViewBll employeeSurveyViewBll = new EmployeeSurveyViewBll())
     {
         if (employeeSurveyViewBll.DeleteEmployeeSurveyViewList(infoViewList) == 1)
         {
             return(1);
         }
         return(-1);
     }
 }
Ejemplo n.º 15
0
 public List <V_EmployeeSurvey> Get_ESurveyChecked(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount, string companyId, string userId, string checkState)
 {
     using (EmployeeSurveyViewBll employeeSurveyViewBll = new EmployeeSurveyViewBll())
     {
         IQueryable <V_EmployeeSurvey> infoViewList = employeeSurveyViewBll.Get_ESurveyChecked(pageIndex, pageSize, sort, filterString, paras, ref pageCount, userId, null, "2");
         if (infoViewList != null)
         {
             return(infoViewList.ToList());
         }
         return(null);
     }
 }
Ejemplo n.º 16
0
 public List <V_MyEusurvey> Get_MyVisistedSurvey(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount, string companyId, string userId, string checkState, string postID, string companyID, string departmentID)
 {
     using (EmployeeSurveyViewBll employeeSurveyViewBll = new EmployeeSurveyViewBll())
     {
         IQueryable <V_MyEusurvey> infoViewList = employeeSurveyViewBll.Get_MyVisistedSurvey(pageIndex, pageSize, sort, filterString, paras, ref pageCount, userId, null, "2", postID, companyID, departmentID);
         if (infoViewList != null && infoViewList.Count() > 0)
         {
             return(infoViewList.ToList());
         }
         return(null);
     }
 }
Ejemplo n.º 17
0
 public int SubmitResult(List <T_OA_REQUIRERESULT> resultInfoList)
 {
     using (EmployeeSurveyViewBll employeeSurveyViewBll = new EmployeeSurveyViewBll())
     {
         if (employeeSurveyViewBll.AddResultInfoList(resultInfoList) == 1)
         {
             return(1);
         }
         else
         {
             return(-1);
         }
     }
 }
Ejemplo n.º 18
0
 public int GetResultCount(T_OA_REQUIREDETAIL answerInfo)
 {
     using (EmployeeSurveyViewBll employeeSurveyViewBll = new EmployeeSurveyViewBll())
     {
         int resultCount = employeeSurveyViewBll.GetResultCount(answerInfo);
         if (resultCount > 0)
         {
             return(resultCount);
         }
         else
         {
             return(0);
         }
     }
 }
Ejemplo n.º 19
0
 public V_EmployeeSurvey Get_ESurvey(string requireMasterID)
 {
     using (EmployeeSurveyViewBll employeeSurveyViewBll = new EmployeeSurveyViewBll())
     {
         IQueryable <V_EmployeeSurvey> lst = employeeSurveyViewBll.Get_ESurvey(requireMasterID);
         if (lst != null)
         {
             return(lst.ToList()[0]);
         }
         else
         {
             return(null);
         }
     }
 }
Ejemplo n.º 20
0
 public List<V_EmployeeSurvey> GetEmployeeSurveyViewList(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount, string companyId, string userId, string checkState)
 {
     using (EmployeeSurveyViewBll employeeSurveyViewBll = new EmployeeSurveyViewBll())
     {
         IQueryable<V_EmployeeSurvey> infoViewList = null;
         if (checkState != "4")//草稿,审核完成(已过,未过)   建立人操作
         {
             infoViewList = employeeSurveyViewBll.GetEmployeeSurveyViewListByFlag(pageIndex, pageSize, sort, filterString, paras, ref  pageCount, userId, null, checkState);
         }
         else
         {
             string isView = "1";
             if (checkState == "4")
             {
                 isView = "0";
             }
             ServiceClient workFlowWS = new ServiceClient();
             SMT.SaaS.BLLCommonServices.FlowWFService.FLOW_FLOWRECORDDETAIL_T[] flowList = workFlowWS.GetFlowInfo("", "", "", isView, "T_OA_REQUIREMASTER", companyId, userId);
             if (flowList == null)
             {
                 return null;
             }
             List<string> guidStringList = new List<string>();
             foreach (SMT.SaaS.BLLCommonServices.FlowWFService.FLOW_FLOWRECORDDETAIL_T f in flowList)
             {
                 guidStringList.Add(f.FLOW_FLOWRECORDMASTER_T.FORMID);
             }
             if (guidStringList.Count < 1)
             {
                 return null;
             }
             infoViewList = employeeSurveyViewBll.GetEmployeeSurveyViewListByFlag(pageIndex, pageSize, sort, filterString, paras, ref  pageCount, userId, guidStringList, checkState);
         }
         if (infoViewList != null)
         {
             return infoViewList.ToList();
         }
         return null;
     }
 }
Ejemplo n.º 21
0
 public List <T_OA_REQUIREDISTRIBUTE> Get_ESurveyResults(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount, string companyId, string userId, string checkState)
 {
     using (EmployeeSurveyViewBll employeeSurveyViewBll = new EmployeeSurveyViewBll())
     {
         IQueryable <T_OA_REQUIREDISTRIBUTE> infoViewList = null;
         if (checkState != "4")//草稿,审核完成(已过,未过)   建立人操作
         {
             infoViewList = employeeSurveyViewBll.Get_ESurveyResults(pageIndex, pageSize, sort, filterString, paras, ref pageCount, userId, null, checkState);
         }
         else
         {
             string isView = "1";
             if (checkState == "4")
             {
                 isView = "0";
             }
             ServiceClient             workFlowWS = new ServiceClient();
             FLOW_FLOWRECORDDETAIL_T[] flowList   = workFlowWS.GetFlowInfo("", "", "", isView, "T_OA_REQUIREDISTRIBUTE", companyId, userId);
             if (flowList == null)
             {
                 return(null);
             }
             List <string> guidStringList = new List <string>();
             foreach (FLOW_FLOWRECORDDETAIL_T f in flowList)
             {
                 guidStringList.Add(f.FLOW_FLOWRECORDMASTER_T.FORMID);
             }
             if (guidStringList.Count < 1)
             {
                 return(null);
             }
             infoViewList = employeeSurveyViewBll.Get_ESurveyResults(pageIndex, pageSize, sort, filterString, paras, ref pageCount, userId, guidStringList, checkState);
         }
         if (infoViewList != null)
         {
             return(infoViewList.ToList());
         }
         return(null);
     }
 }
Ejemplo n.º 22
0
 public int SubmitResult(List<T_OA_REQUIRERESULT> resultInfoList)
 {
     using (EmployeeSurveyViewBll employeeSurveyViewBll = new EmployeeSurveyViewBll())
     {
         if (employeeSurveyViewBll.AddResultInfoList(resultInfoList) == 1)
         {
             return 1;
         }
         else
         {
             return -1;
         }
     }
 }
Ejemplo n.º 23
0
 public List<V_EmployeeID> GetEmployeeList(string resqId)
 {
     using (EmployeeSurveyViewBll employeeSurveyViewBll = new EmployeeSurveyViewBll())
     {
         return employeeSurveyViewBll.GetEmployeeList(resqId);
     }
 }
Ejemplo n.º 24
0
 private T_OA_REQUIRE Get_ESurveyApp(string id)
 {
     using (EmployeeSurveyViewBll employeeSurveyViewBll = new EmployeeSurveyViewBll())
     {
         return employeeSurveyViewBll.Get_ESurveyApp(id);
     }
 }
Ejemplo n.º 25
0
 public List<V_MyEusurvey> Get_MyVisistedSurvey(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount, string companyId, string userId, string checkState, string postID, string companyID, string departmentID)
 {
     using (EmployeeSurveyViewBll employeeSurveyViewBll = new EmployeeSurveyViewBll())
     {
         IQueryable<V_MyEusurvey> infoViewList = employeeSurveyViewBll.Get_MyVisistedSurvey(pageIndex, pageSize, sort, filterString, paras, ref  pageCount, userId, null, "2", postID, companyID, departmentID);
         if (infoViewList != null && infoViewList.Count() > 0)
         {
             return infoViewList.ToList();
         }
         return null;
     }
 }
Ejemplo n.º 26
0
 public int Del_ESurveyApp( List<T_OA_REQUIRE> lst)
 {
     using (EmployeeSurveyViewBll employeeSurveyViewBll = new EmployeeSurveyViewBll())
     {
         return employeeSurveyViewBll.Del_ESurveyApp(lst);
     }
 }
Ejemplo n.º 27
0
 public int Upd_ESurveyApp(T_OA_REQUIRE info)
 {
     using (EmployeeSurveyViewBll employeeSurveyViewBll = new EmployeeSurveyViewBll())
     {
         return employeeSurveyViewBll.Upd_ESurveyApp(info);
     }
 }
Ejemplo n.º 28
0
 public List<V_EmployeeSurvey> Get_ESurveyChecked(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount, string companyId, string userId, string checkState)
 {
     using (EmployeeSurveyViewBll employeeSurveyViewBll = new EmployeeSurveyViewBll())
     {
         IQueryable<V_EmployeeSurvey> infoViewList = employeeSurveyViewBll.Get_ESurveyChecked(pageIndex, pageSize, sort, filterString, paras, ref  pageCount, userId, null, "2");
         if (infoViewList != null)
             return infoViewList.ToList();
         return null;
     }
 }
Ejemplo n.º 29
0
 public int GetResultCount(T_OA_REQUIREDETAIL answerInfo)
 {
     using (EmployeeSurveyViewBll employeeSurveyViewBll = new EmployeeSurveyViewBll())
     {
         int resultCount = employeeSurveyViewBll.GetResultCount(answerInfo);
         if (resultCount > 0)
         {
             return resultCount;
         }
         else
         {
             return 0;
         }
     }
 }
Ejemplo n.º 30
0
 public int DeleteEmployeeSurveyViewList(List<V_EmployeeSurvey> infoViewList)
 {
     using (EmployeeSurveyViewBll employeeSurveyViewBll = new EmployeeSurveyViewBll())
     {
         if (employeeSurveyViewBll.DeleteEmployeeSurveyViewList(infoViewList) == 1)
         {
             return 1;
         }
         return -1;
     }
 }
Ejemplo n.º 31
0
 public int UpdateEmployeeSurveyView(V_EmployeeSurvey infoView)
 {
     using (EmployeeSurveyViewBll employeeSurveyViewBll = new EmployeeSurveyViewBll())
     {
         if (employeeSurveyViewBll.UpdateEmployeeSurveyView(infoView) == 1)
         {
             return 1;
         }
         return -1;
     }
 }
Ejemplo n.º 32
0
 public int Add_ESurveyResult(T_OA_REQUIREDISTRIBUTE info)
 {
     using (EmployeeSurveyViewBll employeeSurveyViewBll = new EmployeeSurveyViewBll())
     {
         return employeeSurveyViewBll.Add_ESurveyResult(info);
     }
 }        
Ejemplo n.º 33
0
 public int Del_ESurveyResult(List<T_OA_REQUIREDISTRIBUTE> lst)
 {
     using (EmployeeSurveyViewBll employeeSurveyViewBll = new EmployeeSurveyViewBll())
     {
         return employeeSurveyViewBll.Del_ESurveyResult(lst);
     }
 }
Ejemplo n.º 34
0
 ///返回员工调查发布和满意度调查发布
 ///2010-09-20 liujin
 public List<V_SystemNotice> GetStaffSurveyInfos(string userID, string postID, string companyID, string departmentID)
 {
     using (EmployeeSurveyViewBll employeeSurveyViewBll = new EmployeeSurveyViewBll())
     {
         IQueryable<V_SystemNotice> ent = employeeSurveyViewBll.GetStaffSurveyInfo(userID, postID, companyID, departmentID);
         return ent != null ? ent.ToList() : null;
     }
 }
Ejemplo n.º 35
0
 public List<T_OA_REQUIRERESULT> GetResultByUserID(string userID, string masterID)
 {
     using (EmployeeSurveyViewBll employeeSurveyViewBll = new EmployeeSurveyViewBll())
     {
         return employeeSurveyViewBll.GetSubjectResultByUserID(userID, masterID);
     }
 }
Ejemplo n.º 36
0
 private T_OA_REQUIREDISTRIBUTE Get_ESurveyResult(string id)
 {
     using (EmployeeSurveyViewBll employeeSurveyViewBll = new EmployeeSurveyViewBll())
     {
         return employeeSurveyViewBll.Get_ESurveyResult(id);
     }
 }
Ejemplo n.º 37
0
 public int Upd_ESurvey(T_OA_REQUIREMASTER survey,List<V_EmployeeSurveySubject> addLst,List<V_EmployeeSurveySubject> updLst)
 {
     using (EmployeeSurveyViewBll employeeSurveyViewBll = new EmployeeSurveyViewBll())
     {
         return employeeSurveyViewBll.Upd_ESurvey(survey, addLst, updLst);
     }
 }
Ejemplo n.º 38
0
 public List<V_SatisfactionResult> Result_ESurveyByRequireID(string id)
 {
     using (EmployeeSurveyViewBll employeeSurveyViewBll = new EmployeeSurveyViewBll())
     {
         return employeeSurveyViewBll.Result_SurveyByRequireID(id);
     }
 }