示例#1
0
 public int Del_SSurveyApp(List <T_OA_SATISFACTIONREQUIRE> lst)
 {
     using (SatisfactionBll satBll = new SatisfactionBll())
     {
         return(satBll.Del_SSurveyApp(lst));
     }
 }
示例#2
0
 public int Del_SSurveys(List <V_Satisfaction> infoViewList)
 {
     using (SatisfactionBll satBll = new SatisfactionBll())
     {
         return(satBll.Del_SSurveys(infoViewList));
     }
 }
示例#3
0
 public int Result_Save(List <T_OA_SATISFACTIONRESULT> resultInfoList)
 {
     using (SatisfactionBll satBll = new SatisfactionBll())
     {
         return(satBll.Result_Save(resultInfoList));
     }
 }
示例#4
0
 public List <T_OA_SATISFACTIONRESULT> Result_SubByUserID(string userID, string surveyID)
 {
     using (SatisfactionBll satBll = new SatisfactionBll())
     {
         return(satBll.Result_SubByUserID(userID, surveyID));
     }
 }
示例#5
0
 public int Add_SSurvey(V_Satisfaction v)
 {
     using (SatisfactionBll satBll = new SatisfactionBll())
     {
         return satBll.Add_SSurvey(v);
     }
 }
示例#6
0
        public List <T_OA_SATISFACTIONRESULT> GetStaticfactonVisistedByEmployID(string UserID)
        {
            SatisfactionBll bll = new SatisfactionBll();
            IQueryable <T_OA_SATISFACTIONRESULT> result = bll.GetStaticfactonVisistedByEmployID(UserID);

            return(result.Count() > 0 ? result.ToList() : null);
        }
示例#7
0
 public int Upd_SSurveyChecked(V_Satisfaction infoView)
 {
     using (SatisfactionBll satBll = new SatisfactionBll())
     {
         return(satBll.Upd_SSurveyChecked(infoView));
     }
 }
示例#8
0
 public int Upd_SSurveyApp(T_OA_SATISFACTIONREQUIRE info)
 {
     using (SatisfactionBll satBll = new SatisfactionBll())
     {
         return(satBll.Upd_SSurveyApp(info));
     }
 }
示例#9
0
 private T_OA_SATISFACTIONREQUIRE Get_SSurveyApp(string id)
 {
     using (SatisfactionBll satBll = new SatisfactionBll())
     {
         return(satBll.Get_SSurveyApp(id));
     }
 }
示例#10
0
 public int Add_SSurvey(V_Satisfaction v)
 {
     using (SatisfactionBll satBll = new SatisfactionBll())
     {
         return(satBll.Add_SSurvey(v));
     }
 }
示例#11
0
 public List <V_EmployeeID> Result_EmployeeByRequireID(string resqId)
 {
     using (SatisfactionBll satBll = new SatisfactionBll())
     {
         return(satBll.Result_EmployeeByRequireID(resqId));
     }
 }
示例#12
0
 private T_OA_SATISFACTIONDISTRIBUTE Get_SSurveyResult(string id)
 {
     using (SatisfactionBll satBll = new SatisfactionBll())
     {
         return(satBll.Get_SSurveyResult(id));
     }
 }
示例#13
0
 public int Upd_SSurveyResult(T_OA_SATISFACTIONDISTRIBUTE info)
 {
     using (SatisfactionBll satBll = new SatisfactionBll())
     {
         return(satBll.Upd_SSurveyResult(info));
     }
 }
示例#14
0
 public int Del_SSurveyResult(List <T_OA_SATISFACTIONDISTRIBUTE> lst)
 {
     using (SatisfactionBll satBll = new SatisfactionBll())
     {
         return(satBll.Del_SSurveyResult(lst));
     }
 }
示例#15
0
 public List <V_SatisfactionResult> Result_SurveyByRequireID(string surveyID)
 {
     using (SatisfactionBll satBll = new SatisfactionBll())
     {
         return(satBll.Result_SurveyByRequireID(surveyID));
     }
 }
示例#16
0
 public int Upd_SSurvey(V_Satisfaction infoView)
 {
     using (SatisfactionBll satBll = new SatisfactionBll())
     {
         if (satBll.Upd_SSurvey(infoView) == 1)
         {
             return(1);
         }
         return(-1);
     }
 }
示例#17
0
 public List <T_OA_SATISFACTIONREQUIRE> Get_SSurveyAppChecked(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount, string companyId, string userId, string checkState)
 {
     using (SatisfactionBll satBll = new SatisfactionBll())
     {
         IQueryable <T_OA_SATISFACTIONREQUIRE> infoViewList = satBll.Get_SSurveyAppChecked(pageIndex, pageSize, sort, filterString, paras, ref pageCount, userId, null, "2");
         if (infoViewList != null)
         {
             return(infoViewList.ToList());
         }
         return(null);
     }
 }
示例#18
0
 public List <V_MyStaticfaction> Get_StaticfactionSurveyAppChecked(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 (SatisfactionBll satBll = new SatisfactionBll())
     {
         IQueryable <V_MyStaticfaction> infoViewList = satBll.Get_SaticfactionSurveyAppChecked(pageIndex, pageSize, sort, filterString, paras, ref pageCount, userId, null, "2", postID, companyID, departmentID);
         if (infoViewList != null)
         {
             return(infoViewList.ToList());
         }
         return(null);
     }
 }
示例#19
0
 public int Del_SSurveySub(List <T_OA_SATISFACTIONDETAIL> lst)
 {
     using (SatisfactionBll satBll = new SatisfactionBll())
     {
         int n = 0;
         foreach (T_OA_SATISFACTIONDETAIL i in lst)
         {
             n += satBll.Del_SSurveySub(i.SATISFACTIONDETAILID);
         }
         return(n);
     }
 }
示例#20
0
 public bool AddSatisfactionsMaster(T_OA_SATISFACTIONMASTER key)
 {
     SatisfactionBll  masterBll=new SatisfactionBll();
     bool bl = masterBll.Add_SatisfactionMaster(key);
     if (bl == true)
     {
         return true;
     }
     else
     {
         return false;
     }
 }
示例#21
0
        public bool AddSatisfactionsMaster(T_OA_SATISFACTIONMASTER key)
        {
            SatisfactionBll masterBll = new SatisfactionBll();
            bool            bl        = masterBll.Add_SatisfactionMaster(key);

            if (bl == true)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
示例#22
0
 public int Result_SurveySubID(string surveyID, string subID, string resultValue)
 {
     using (SatisfactionBll satBll = new SatisfactionBll())
     {
         int resultCount = satBll.Result_SurveySubID(surveyID, subID, resultValue);
         if (resultCount > 0)
         {
             return(resultCount);
         }
         else
         {
             return(0);
         }
     }
 }
示例#23
0
 public IQueryable <V_Satisfaction> GetSurvey(string key)
 {
     using (SatisfactionBll satBll = new SatisfactionBll())
     {
         IQueryable <V_Satisfaction> satList = satBll.Get_SSurvey(key);
         if (satList == null)
         {
             return(null);
         }
         else
         {
             return(satList);
         }
     }
 }
示例#24
0
 public bool Add_SSurveyApp(T_OA_SATISFACTIONREQUIRE info)
 {
     using (SatisfactionBll satBll = new SatisfactionBll())
     {
         int bl = satBll.Add_SSurveyApp(info);
         if (bl == -1)
         {
             return(false);
         }
         else
         {
             return(true);
         }
     }
 }
示例#25
0
 public V_Satisfaction Get_SSurvey(string requireMasterID)
 {
     using (SatisfactionBll satBll = new SatisfactionBll())
     {
         IQueryable <V_Satisfaction> lst = satBll.Get_SSurvey(requireMasterID);
         if (lst != null)
         {
             return(lst.ToList()[0]);
         }
         else
         {
             return(null);
         }
     }
 }
示例#26
0
        public IQueryable<V_Satisfaction> GetSurvey(string key)
        {
            using (SatisfactionBll satBll = new SatisfactionBll())
            {
               IQueryable<V_Satisfaction> satList = satBll.Get_SSurvey(key);
               if (satList == null)
               {
                   return null;
               }
               else
               {
                   return satList;
 
               }
            }
        }
示例#27
0
 public List<V_Satisfaction> Get_SSurveys(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount, string companyId, string userId, string checkState)
 {
     using (SatisfactionBll satBll = new SatisfactionBll())
     {
         IQueryable<V_Satisfaction> infoViewList = null;
         if (checkState != "4")//草稿,审核完成(已过,未过)   建立人操作
         {
             infoViewList = satBll.Get_SSurveys(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_SATISFACTIONMASTER", 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 = satBll.Get_SSurveys(pageIndex, pageSize, sort, filterString, paras, ref  pageCount, userId, guidStringList, checkState);
         }
         if (infoViewList != null)
         {
             return infoViewList.ToList();
         }
         return null;
     }
 }
示例#28
0
 public List <V_Satisfaction> Get_SSurveys(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount, string companyId, string userId, string checkState)
 {
     using (SatisfactionBll satBll = new SatisfactionBll())
     {
         IQueryable <V_Satisfaction> infoViewList = null;
         if (checkState != "4")//草稿,审核完成(已过,未过)   建立人操作
         {
             infoViewList = satBll.Get_SSurveys(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_SATISFACTIONMASTER", 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 = satBll.Get_SSurveys(pageIndex, pageSize, sort, filterString, paras, ref pageCount, userId, guidStringList, checkState);
         }
         if (infoViewList != null)
         {
             return(infoViewList.ToList());
         }
         return(null);
     }
 }
示例#29
0
 private T_OA_SATISFACTIONREQUIRE Get_SSurveyApp(string id)
 {
     using (SatisfactionBll satBll = new SatisfactionBll())
     {
         return satBll.Get_SSurveyApp(id);
     }
 }
示例#30
0
 public List<V_MyStaticfaction> Get_StaticfactionSurveyAppChecked(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 (SatisfactionBll satBll = new SatisfactionBll())
     {
         IQueryable<V_MyStaticfaction> infoViewList = satBll.Get_SaticfactionSurveyAppChecked(pageIndex, pageSize, sort, filterString, paras, ref  pageCount, userId, null, "2", postID, companyID, departmentID);
         if (infoViewList != null)
             return infoViewList.ToList();
         return null;
     }
 }
示例#31
0
 public List<T_OA_SATISFACTIONREQUIRE> Get_SSurveyAppChecked(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount, string companyId, string userId, string checkState)
 {
     using (SatisfactionBll satBll = new SatisfactionBll())
     {
         IQueryable<T_OA_SATISFACTIONREQUIRE> infoViewList = satBll.Get_SSurveyAppChecked(pageIndex, pageSize, sort, filterString, paras, ref  pageCount, userId, null, "2");
         if (infoViewList != null)
             return infoViewList.ToList();
         return null;
     }
 }
示例#32
0
 public int Upd_SSurveyApp(T_OA_SATISFACTIONREQUIRE info)
 {
     using (SatisfactionBll satBll = new SatisfactionBll())
     {
         return satBll.Upd_SSurveyApp(info);
     }
 }
示例#33
0
 public bool Add_SSurveyApp(T_OA_SATISFACTIONREQUIRE info)
 {
     using (SatisfactionBll satBll = new SatisfactionBll())
     {
         int bl = satBll.Add_SSurveyApp(info);
         if (bl == -1)
         {
             return false;
         }
         else
         {
             return true;
         }
     }
 }
示例#34
0
 public int Del_SSurveySub(List<T_OA_SATISFACTIONDETAIL> lst)
 {
     using (SatisfactionBll satBll = new SatisfactionBll())
     {
         int n = 0;
         foreach (T_OA_SATISFACTIONDETAIL i in lst)
             n += satBll.Del_SSurveySub(i.SATISFACTIONDETAILID);
         return n;
     }
 }
示例#35
0
 public List<T_OA_SATISFACTIONRESULT> GetStaticfactonVisistedByEmployID(string UserID)
 { 
     SatisfactionBll bll = new SatisfactionBll();
     IQueryable<T_OA_SATISFACTIONRESULT> result = bll.GetStaticfactonVisistedByEmployID(UserID);
     return result.Count() > 0 ? result.ToList() : null;
 }
示例#36
0
 public int Del_SSurveyResult(List<T_OA_SATISFACTIONDISTRIBUTE> lst)
 {
     using (SatisfactionBll satBll = new SatisfactionBll())
     {
         return satBll.Del_SSurveyResult(lst);
     }
 }
示例#37
0
 public int Upd_SSurveyResult(T_OA_SATISFACTIONDISTRIBUTE info)
 {
     using (SatisfactionBll satBll = new SatisfactionBll())
     {
         return satBll.Upd_SSurveyResult(info);
     }
 }
示例#38
0
 public int Result_SurveySubID(string surveyID, string subID, string resultValue)
 {
     using (SatisfactionBll satBll = new SatisfactionBll())
     {
         int resultCount = satBll.Result_SurveySubID(surveyID, subID, resultValue);
         if (resultCount > 0)
         {
             return resultCount;
         }
         else
         {
             return 0;
         }
     }
 }       
示例#39
0
 public List<V_SatisfactionResult> Result_SurveyByRequireID(string surveyID)
 {
     using (SatisfactionBll satBll = new SatisfactionBll())
     {
         return satBll.Result_SurveyByRequireID(surveyID);
     }
 }       
示例#40
0
 public int Result_Save(List<T_OA_SATISFACTIONRESULT> resultInfoList)
 {
     using (SatisfactionBll satBll = new SatisfactionBll())
     {
         return satBll.Result_Save(resultInfoList);
     }
 }
示例#41
0
 public List<T_OA_SATISFACTIONRESULT> Result_SubByUserID(string userID, string surveyID)
 {
     using (SatisfactionBll satBll = new SatisfactionBll())
     {
         return satBll.Result_SubByUserID(userID, surveyID);
     }
 }
示例#42
0
 public List<V_EmployeeID> Result_EmployeeByRequireID(string resqId)
 {
     using (SatisfactionBll satBll = new SatisfactionBll())
     {
         return satBll.Result_EmployeeByRequireID(resqId);
     }
 }
示例#43
0
 public int Upd_SSurvey(V_Satisfaction infoView)
 {
     using (SatisfactionBll satBll = new SatisfactionBll())
     {
         if (satBll.Upd_SSurvey(infoView) == 1)
         {
             return 1;
         }
         return -1;
     }
 }
示例#44
0
 private T_OA_SATISFACTIONDISTRIBUTE Get_SSurveyResult(string id)
 {
     using (SatisfactionBll satBll = new SatisfactionBll())
     {
         return satBll.Get_SSurveyResult(id);
     }
 }
示例#45
0
 public int Upd_SSurveyChecked(V_Satisfaction infoView)
 {
     using (SatisfactionBll satBll = new SatisfactionBll())
     {
         return satBll.Upd_SSurveyChecked(infoView);
     }
 }
示例#46
0
 public int Del_SSurveyApp(List<T_OA_SATISFACTIONREQUIRE> lst)
 {
     using (SatisfactionBll satBll = new SatisfactionBll())
     {
         return satBll.Del_SSurveyApp(lst);
     }
 }
示例#47
0
 public V_Satisfaction Get_SSurvey(string requireMasterID)
 {
     using (SatisfactionBll satBll = new SatisfactionBll())
     {
         IQueryable<V_Satisfaction> lst = satBll.Get_SSurvey(requireMasterID);
         if (lst != null)
             return lst.ToList()[0];
         else
             return null;
     }
 }
示例#48
0
 public int Del_SSurveys(List<V_Satisfaction> infoViewList)
 {
     using (SatisfactionBll satBll = new SatisfactionBll())
     {
         return satBll.Del_SSurveys(infoViewList);
     }
 }