public FP_Manual_HistoryVO GetByID(int id) { FP_Manual_HistoryVO vo = new FP_Manual_HistoryVO(); DataTable dt = Select("ID=" + id + ""); if (dt.Rows.Count > 0) { vo = b.ConvertObj(dt.Rows[0], new FP_Manual_HistoryVO()) as FP_Manual_HistoryVO; } return(vo); }
public int Insert(FP_Manual_HistoryVO vo) { int lastInsertId = 0; try { lastInsertId = b.Insert("FP_Manual_History", b.ConvertColName(vo), b.ConvertValueList(vo)); } catch (Exception ex) { throw ex; } return(lastInsertId); }
public int Create(FP_Manual_HistoryVO vo) { int id; if (!dao.isExist(vo.Id.ToString())) { id = dao.Insert(vo); } else { id = dao.Update(vo); } return(id); }
public int Update(FP_Manual_HistoryVO vo) { int FP_Manual_HistoryID = 0; try { b.Update("FP_Manual_History", vo.Id.ToString(), b.ConvertColName(vo), b.ConvertValueList(vo)); FP_Manual_HistoryID = vo.Id; } catch (Exception ex) { throw ex; } return(FP_Manual_HistoryID); }