public PR_Other_AdjustmentVO GetByID(int id) { PR_Other_AdjustmentVO vo = new PR_Other_AdjustmentVO(); DataTable dt = Select("ID=" + id + ""); if (dt.Rows.Count > 0) { vo = b.ConvertObj(dt.Rows[0], new PR_Other_AdjustmentVO()) as PR_Other_AdjustmentVO; } return(vo); }
public int Insert(PR_Other_AdjustmentVO vo) { int lastInsertedId = 0; try { lastInsertedId = b.Insert("PR_Other_Adjustment", b.ConvertColName(vo), b.ConvertValueList(vo)); } catch (SqlException ex) { throw ex; } return(lastInsertedId); }