示例#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));
     }
 }
示例#2
0
 public List <T_OA_REQUIRERESULT> GetResultByUserID(string userID, string masterID)
 {
     using (EmployeeSurveyViewBll employeeSurveyViewBll = new EmployeeSurveyViewBll())
     {
         return(employeeSurveyViewBll.GetSubjectResultByUserID(userID, masterID));
     }
 }
示例#3
0
 private T_OA_REQUIRE Get_ESurveyApp(string id)
 {
     using (EmployeeSurveyViewBll employeeSurveyViewBll = new EmployeeSurveyViewBll())
     {
         return(employeeSurveyViewBll.Get_ESurveyApp(id));
     }
 }
示例#4
0
 public List <V_EmployeeID> GetEmployeeList(string resqId)
 {
     using (EmployeeSurveyViewBll employeeSurveyViewBll = new EmployeeSurveyViewBll())
     {
         return(employeeSurveyViewBll.GetEmployeeList(resqId));
     }
 }
示例#5
0
 public int Del_ESurveyApp(List <T_OA_REQUIRE> lst)
 {
     using (EmployeeSurveyViewBll employeeSurveyViewBll = new EmployeeSurveyViewBll())
     {
         return(employeeSurveyViewBll.Del_ESurveyApp(lst));
     }
 }
示例#6
0
 public int Upd_ESurveyApp(T_OA_REQUIRE info)
 {
     using (EmployeeSurveyViewBll employeeSurveyViewBll = new EmployeeSurveyViewBll())
     {
         return(employeeSurveyViewBll.Upd_ESurveyApp(info));
     }
 }
示例#7
0
 public int Add_ESurveyResult(T_OA_REQUIREDISTRIBUTE info)
 {
     using (EmployeeSurveyViewBll employeeSurveyViewBll = new EmployeeSurveyViewBll())
     {
         return(employeeSurveyViewBll.Add_ESurveyResult(info));
     }
 }
示例#8
0
 private T_OA_REQUIREDISTRIBUTE Get_ESurveyResult(string id)
 {
     using (EmployeeSurveyViewBll employeeSurveyViewBll = new EmployeeSurveyViewBll())
     {
         return(employeeSurveyViewBll.Get_ESurveyResult(id));
     }
 }
示例#9
0
 public int Del_ESurveyResult(List <T_OA_REQUIREDISTRIBUTE> lst)
 {
     using (EmployeeSurveyViewBll employeeSurveyViewBll = new EmployeeSurveyViewBll())
     {
         return(employeeSurveyViewBll.Del_ESurveyResult(lst));
     }
 }
示例#10
0
 public List <V_SatisfactionResult> Result_ESurveyByRequireID(string id)
 {
     using (EmployeeSurveyViewBll employeeSurveyViewBll = new EmployeeSurveyViewBll())
     {
         return(employeeSurveyViewBll.Result_SurveyByRequireID(id));
     }
 }
示例#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);
     }
 }
示例#12
0
 public int UpdateEmployeeSurveyView(V_EmployeeSurvey infoView)
 {
     using (EmployeeSurveyViewBll employeeSurveyViewBll = new EmployeeSurveyViewBll())
     {
         if (employeeSurveyViewBll.UpdateEmployeeSurveyView(infoView) == 1)
         {
             return(1);
         }
         return(-1);
     }
 }
示例#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;
     }
 }
示例#14
0
 public int DeleteEmployeeSurveyViewList(List <V_EmployeeSurvey> infoViewList)
 {
     using (EmployeeSurveyViewBll employeeSurveyViewBll = new EmployeeSurveyViewBll())
     {
         if (employeeSurveyViewBll.DeleteEmployeeSurveyViewList(infoViewList) == 1)
         {
             return(1);
         }
         return(-1);
     }
 }
示例#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);
     }
 }
示例#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);
     }
 }
示例#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);
         }
     }
 }
示例#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);
         }
     }
 }
示例#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);
         }
     }
 }
示例#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;
     }
 }
示例#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);
     }
 }
示例#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;
         }
     }
 }
示例#23
0
 public List<V_EmployeeID> GetEmployeeList(string resqId)
 {
     using (EmployeeSurveyViewBll employeeSurveyViewBll = new EmployeeSurveyViewBll())
     {
         return employeeSurveyViewBll.GetEmployeeList(resqId);
     }
 }
示例#24
0
 private T_OA_REQUIRE Get_ESurveyApp(string id)
 {
     using (EmployeeSurveyViewBll employeeSurveyViewBll = new EmployeeSurveyViewBll())
     {
         return employeeSurveyViewBll.Get_ESurveyApp(id);
     }
 }
示例#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;
     }
 }
示例#26
0
 public int Del_ESurveyApp( List<T_OA_REQUIRE> lst)
 {
     using (EmployeeSurveyViewBll employeeSurveyViewBll = new EmployeeSurveyViewBll())
     {
         return employeeSurveyViewBll.Del_ESurveyApp(lst);
     }
 }
示例#27
0
 public int Upd_ESurveyApp(T_OA_REQUIRE info)
 {
     using (EmployeeSurveyViewBll employeeSurveyViewBll = new EmployeeSurveyViewBll())
     {
         return employeeSurveyViewBll.Upd_ESurveyApp(info);
     }
 }
示例#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;
     }
 }
示例#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;
         }
     }
 }
示例#30
0
 public int DeleteEmployeeSurveyViewList(List<V_EmployeeSurvey> infoViewList)
 {
     using (EmployeeSurveyViewBll employeeSurveyViewBll = new EmployeeSurveyViewBll())
     {
         if (employeeSurveyViewBll.DeleteEmployeeSurveyViewList(infoViewList) == 1)
         {
             return 1;
         }
         return -1;
     }
 }
示例#31
0
 public int UpdateEmployeeSurveyView(V_EmployeeSurvey infoView)
 {
     using (EmployeeSurveyViewBll employeeSurveyViewBll = new EmployeeSurveyViewBll())
     {
         if (employeeSurveyViewBll.UpdateEmployeeSurveyView(infoView) == 1)
         {
             return 1;
         }
         return -1;
     }
 }
示例#32
0
 public int Add_ESurveyResult(T_OA_REQUIREDISTRIBUTE info)
 {
     using (EmployeeSurveyViewBll employeeSurveyViewBll = new EmployeeSurveyViewBll())
     {
         return employeeSurveyViewBll.Add_ESurveyResult(info);
     }
 }        
示例#33
0
 public int Del_ESurveyResult(List<T_OA_REQUIREDISTRIBUTE> lst)
 {
     using (EmployeeSurveyViewBll employeeSurveyViewBll = new EmployeeSurveyViewBll())
     {
         return employeeSurveyViewBll.Del_ESurveyResult(lst);
     }
 }
示例#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;
     }
 }
示例#35
0
 public List<T_OA_REQUIRERESULT> GetResultByUserID(string userID, string masterID)
 {
     using (EmployeeSurveyViewBll employeeSurveyViewBll = new EmployeeSurveyViewBll())
     {
         return employeeSurveyViewBll.GetSubjectResultByUserID(userID, masterID);
     }
 }
示例#36
0
 private T_OA_REQUIREDISTRIBUTE Get_ESurveyResult(string id)
 {
     using (EmployeeSurveyViewBll employeeSurveyViewBll = new EmployeeSurveyViewBll())
     {
         return employeeSurveyViewBll.Get_ESurveyResult(id);
     }
 }
示例#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);
     }
 }
示例#38
0
 public List<V_SatisfactionResult> Result_ESurveyByRequireID(string id)
 {
     using (EmployeeSurveyViewBll employeeSurveyViewBll = new EmployeeSurveyViewBll())
     {
         return employeeSurveyViewBll.Result_SurveyByRequireID(id);
     }
 }