public int SaveSystemKeyWord(SphinxKeywordQuery query) { ///返回的状态 int state = 0; try { dao = new SystemKeyWordDao(connectionstring); //新增 if (query.operateType == 1) { query.kuser = query.user_name; query.moduser = query.user_name; query.kdate = DateTime.Now; query.mddate = DateTime.Now; state = dao.AddSystemKeyWord(query); } //編輯 if (query.operateType == 2) { query.moduser = query.user_name; query.mddate = DateTime.Now; state = dao.UpdateSystemKeyWord(query); } return state; } catch (Exception ex) { throw new Exception("SystemKeyWordMgr->SaveSystemKeyWord():" + ex.Message); } }
public List<SphinxKeywordQuery> GetSystemKeyWord(SphinxKeywordQuery query, out int totalCount) { try { dao = new SystemKeyWordDao(connectionstring); return dao.GetSystemKeyWord(query, out totalCount); } catch (Exception ex) { throw new Exception("SystemKeyWordMgr->GetSystemKeyWord():" + ex.Message); } }
public int DelSystemKeyWord(SphinxKeywordQuery query) { ///返回的状态 int state = 0; try { dao = new SystemKeyWordDao(connectionstring); state = dao.DelSystemKeyWord(query); return state; } catch (Exception ex) { throw new Exception("SystemKeyWordMgr->DelSystemKeyWord():" + ex.Message); } }
public int CheckKeyWordExsit(string key_word) { try { dao = new SystemKeyWordDao(connectionstring); return dao.CheckKeyWordExsit(key_word); } catch (Exception ex) { throw new Exception("SystemKeyWordMgr-->YesOrNokeyWordExsit-->" + ex.Message, ex); } }
public List<SphinxKeywordQuery> GetKeyWordExportList(SphinxKeywordQuery query) { try { dao = new SystemKeyWordDao(connectionstring); return dao.GetKeyWordExportList(query); } catch (Exception ex) { throw new Exception("SystemKeyWordMgr->GetKeyWordExportList():" + ex.Message); } }