Example #1
0
 public bool UpdSatisfactionMaster(T_OA_SATISFACTIONMASTER updMasterEntity)
 {
     using (SatisfactionSurveyBll updBll = new SatisfactionSurveyBll())
     {
         return updBll.UpdSatisfactionMaster(updMasterEntity);
     }
 }
Example #2
0
 public bool UpdSatisfactionMaster(T_OA_SATISFACTIONMASTER updMasterEntity)
 {
     using (SatisfactionSurveyBll updBll = new SatisfactionSurveyBll())
     {
         return(updBll.UpdSatisfactionMaster(updMasterEntity));
     }
 }
Example #3
0
 public bool AddSatisfactionMaster(T_OA_SATISFACTIONMASTER addMasterEntity)
 {
     using (SatisfactionSurveyBll addBll = new SatisfactionSurveyBll())
     {
         return addBll.AddSatisfactionMaster(addMasterEntity);
     }
 }
Example #4
0
 public bool AddSatisfactionMaster(T_OA_SATISFACTIONMASTER addMasterEntity)
 {
     using (SatisfactionSurveyBll addBll = new SatisfactionSurveyBll())
     {
         return(addBll.AddSatisfactionMaster(addMasterEntity));
     }
 }
Example #5
0
 public T_OA_SATISFACTIONMASTER GetSatisfactionMasterChild(string masterId)
 {
     if (!string.IsNullOrEmpty(masterId))
     {
         using (SatisfactionSurveyBll getBll = new SatisfactionSurveyBll())
         {
            T_OA_SATISFACTIONMASTER masterEntity=getBll.GetSatisfactionMasterChild(masterId);
         return  masterEntity != null ? masterEntity : null;
         }
     }
     return null;
 }
Example #6
0
 public List<V_Satisfactions> GetMasterByCheckstateAndDate(int pageCount, int pageIndex, int pageSize, string checkstate, DateTime[] dateTimes)
  {
      if(!string.IsNullOrEmpty(checkstate)&&dateTimes.Count()>=2)
      {
          using (SatisfactionSurveyBll masterBll = new SatisfactionSurveyBll())
          {
             IQueryable<V_Satisfactions> dataList=  masterBll.GetMasterByCheckstateAndDate(pageCount, pageIndex, pageSize, checkstate, dateTimes);
             return dataList != null && dataList.Count() > 0 ? dataList.ToList() : null;
          }
       } 
      return null;
  }
Example #7
0
 public T_OA_SATISFACTIONMASTER GetSatisfactionMasterChild(string masterId)
 {
     if (!string.IsNullOrEmpty(masterId))
     {
         using (SatisfactionSurveyBll getBll = new SatisfactionSurveyBll())
         {
             T_OA_SATISFACTIONMASTER masterEntity = getBll.GetSatisfactionMasterChild(masterId);
             return(masterEntity != null ? masterEntity : null);
         }
     }
     return(null);
 }
Example #8
0
 public List <V_Satisfactions> GetMasterByCheckstateAndDate(int pageCount, int pageIndex, int pageSize, string checkstate, DateTime[] dateTimes)
 {
     if (!string.IsNullOrEmpty(checkstate) && dateTimes.Count() >= 2)
     {
         using (SatisfactionSurveyBll masterBll = new SatisfactionSurveyBll())
         {
             IQueryable <V_Satisfactions> dataList = masterBll.GetMasterByCheckstateAndDate(pageCount, pageIndex, pageSize, checkstate, dateTimes);
             return(dataList != null && dataList.Count() > 0 ? dataList.ToList() : null);
         }
     }
     return(null);
 }
Example #9
0
 public bool AddSatisfactionMaster(T_OA_SATISFACTIONMASTER AddEntity)
 {
     bool flag = false;
     if (AddEntity != null)
     {
         using (SatisfactionSurveyBll bll = new SatisfactionSurveyBll())
         {
             flag = bll.AddSatisfactionMaster(AddEntity);
         }
     }
     else
     {
         flag = false;
     }
     return flag;
 }
Example #10
0
        public IQueryable <T_OA_SATISFACTIONMASTER> GetMasterInfo(string primaryKey)
        {
            IQueryable <T_OA_SATISFACTIONMASTER> masterInfo = null;

            if (!string.IsNullOrEmpty(primaryKey))
            {
                using (SatisfactionSurveyBll bll = new SatisfactionSurveyBll())
                {
                    masterInfo = bll.GetMasterInfo(primaryKey);
                }
            }
            else
            {
                masterInfo = null;
            }
            return(masterInfo = masterInfo != null && masterInfo.Count() > 0 ? masterInfo : null);
        }
Example #11
0
        public bool UpdSatisfactionMaster(T_OA_SATISFACTIONMASTER UpdEntity)
        {
            bool flag = false;

            if (UpdEntity != null)
            {
                using (SatisfactionSurveyBll bll = new SatisfactionSurveyBll())
                {
                    flag = bll.UpdSatisfactionMaster(UpdEntity);
                }
            }
            else
            {
                flag = false;
            }
            return(flag);
        }
Example #12
0
 public IQueryable<T_OA_SATISFACTIONMASTER> GetMasterInfo(string primaryKey)
 {
     IQueryable<T_OA_SATISFACTIONMASTER> masterInfo = null;
     if (!string.IsNullOrEmpty(primaryKey))
     {
         using (SatisfactionSurveyBll bll = new SatisfactionSurveyBll())
         {
             masterInfo = bll.GetMasterInfo(primaryKey);
         }
     }
     else
     {
         masterInfo = null;
     }
     return masterInfo = masterInfo != null && masterInfo.Count() > 0 ? masterInfo : null;
 }