public bool UpdRequireMaster(V_EmployeeSurveyMaster updMaterKey) { try { if (updMaterKey != null&&updMaterKey.answerList.Count() > 0 &&!string.IsNullOrEmpty(updMaterKey.RequireMasterId)) { using (EmployeeSurveyBll updBll = new EmployeeSurveyBll()) { return updBll.UpdRequireMaster(updMaterKey); } } return false; } catch (Exception ex) { Tracer.Debug("员工调查方案EmployeeSurveyService-UpdRequireMaster" + System.DateTime.Now.ToString() + " " + ex.ToString()); return false; } }
public bool UpdRequireMaster(V_EmployeeSurveyMaster updMaterKey) { try { if (updMaterKey != null && updMaterKey.answerList.Count() > 0 && !string.IsNullOrEmpty(updMaterKey.RequireMasterId)) { using (EmployeeSurveyBll updBll = new EmployeeSurveyBll()) { return(updBll.UpdRequireMaster(updMaterKey)); } } return(false); } catch (Exception ex) { Tracer.Debug("员工调查方案EmployeeSurveyService-UpdRequireMaster" + System.DateTime.Now.ToString() + " " + ex.ToString()); return(false); } }
public bool AddRequireMaster(V_EmployeeSurveyMaster addMasterKey) { try { if (addMasterKey != null&&addMasterKey.answerList.Count() > 0 ) { using (EmployeeSurveyBll addBll = new EmployeeSurveyBll()) { bool add= addBll.AddRequireMaster(addMasterKey); return add; } } return false; } catch (Exception ex) { Tracer.Debug("员工调查方案EmployeeSurveyService-AddRequireMaster" + System.DateTime.Now.ToString() + " " + ex.ToString()); return false; } }
public bool AddRequireMaster(V_EmployeeSurveyMaster addMasterKey) { try { if (addMasterKey != null && addMasterKey.answerList.Count() > 0) { using (EmployeeSurveyBll addBll = new EmployeeSurveyBll()) { bool add = addBll.AddRequireMaster(addMasterKey); return(add); } } return(false); } catch (Exception ex) { Tracer.Debug("员工调查方案EmployeeSurveyService-AddRequireMaster" + System.DateTime.Now.ToString() + " " + ex.ToString()); return(false); } }
public V_EmployeeSurveyMaster GetMasterDataByLoading(string masterKey) { try { if (!string.IsNullOrEmpty(masterKey)) { V_EmployeeSurveyMaster loadList=null; using (EmployeeSurveyBll loadBll = new EmployeeSurveyBll()) { loadList = loadBll.GetMasterDataByLoading(masterKey); return loadList != null ? loadList : null; } } return null; } catch (Exception ex) { Tracer.Debug("员工调查方案EmployeeSurveyService-GetMasterDataByLoading" + System.DateTime.Now.ToString() + " " + ex.ToString()); return null; } }
public V_EmployeeSurveyMaster GetMasterDataByLoading(string masterKey) { try { if (!string.IsNullOrEmpty(masterKey)) { V_EmployeeSurveyMaster loadList = null; using (EmployeeSurveyBll loadBll = new EmployeeSurveyBll()) { loadList = loadBll.GetMasterDataByLoading(masterKey); return(loadList != null ? loadList : null); } } return(null); } catch (Exception ex) { Tracer.Debug("员工调查方案EmployeeSurveyService-GetMasterDataByLoading" + System.DateTime.Now.ToString() + " " + ex.ToString()); return(null); } }
public List<V_EmployeeSurveyMaster> GetEmployeeSurveyByCheckstateAndDate(int pageCount, int pageIndex, int pageSize, string checkstate, DateTime[] datetimes) { if (datetimes.Count() >1) { IQueryable<V_EmployeeSurveyMaster> returnList; using (EmployeeSurveyBll getBll = new EmployeeSurveyBll()) { returnList=getBll.GetEmployeeSurveyByCheckstateAndDate(pageCount, pageIndex, pageSize,checkstate, datetimes); return returnList.Count() > 0 ? returnList.ToList() : null; } } return null; }
public List<T_OA_REQUIRERESULT> GetResultByCultivateForID(string requireID,string onwerID) { if (!(string.IsNullOrEmpty(requireID)&&(string.IsNullOrEmpty(onwerID)))) { using (EmployeeSurveyBll getBll = new EmployeeSurveyBll()) { IQueryable<T_OA_REQUIRERESULT> handerList = null; handerList = getBll.GetResultByCultivateForID(requireID, onwerID); return handerList.Count()>0 ? handerList.ToList() : null; } } return null; }
public List<T_OA_REQUIREMASTER> GetSurveyDataByCultivateForCheckState(string checkState) { if (!string.IsNullOrEmpty(checkState)) { using (EmployeeSurveyBll getBll = new EmployeeSurveyBll()) { return getBll.GetSurveyDataByCultivateForCheckState(checkState) != null ? getBll.GetSurveyDataByCultivateForCheckState(checkState).ToList() : null; } } return null; }