public MemoObjectCollection GetMemosByMaterialID(MaterialObject material) { MemoObjectCollection memos; try { memos = new MemoDataService().GetMemosByMaintenanceID(material); } catch (System.Exception exception1) { System.Exception innerException = exception1; throw new System.Exception(MethodBase.GetCurrentMethod().Name, innerException); } return(memos); }
public MemoObjectCollection GetAll() { MemoObjectCollection memos; try { memos = new MemoDataService().GetAll(); } catch (System.Exception exception1) { System.Exception innerException = exception1; throw new System.Exception(MethodBase.GetCurrentMethod().Name, innerException); } return(memos); }
public short DeleteRemoveMemo(string userId, int memoId) { // 編集中ユーザではない if (EditUserService.CheckEditUser(userId) != 1) { return(-1); } if (memoId > 0 && MemoDataService.CheckContainMemoId(memoId)) { return((short)(MemoDataService.RemoveMemoData(memoId) ? 1 : 0));; } return(0); }
public short PutAddMemo(string userId, int memoId, string memoData) { // 編集中ユーザではない if (EditUserService.CheckEditUser(userId) != 1) { return(-1); } if (memoId > 0 && MemoDataService.CheckContainMemoId(memoId)) { // データ更新 return((short)(MemoDataService.UpdateMemoData(memoId, memoData) ? 1 : 0)); } else { // 新規作成 return((short)(MemoDataService.AddMemoData(memoData) ? 1 : 0)); } }
public List <Memo> GetMemo() { return(MemoDataService.GetMemoData()); }