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