public Int64 Insert(NameValueCollection parameters, out ErrorEntity ErrInfo) { PortalPositionDA da = new PortalPositionDA(); Int64 result = da.InsertAndReturnId64(parameters); if (result > 0) { ErrInfo = new ErrorEntity(RespCode.Success); } else { ErrInfo = new ErrorEntity(RespCode.SysError); } return result; }
public Int32 Delete(NameValueCollection where, out ErrorEntity ErrInfo) { PortalPositionDA da = new PortalPositionDA(); Int32 result = da.Delete(where); if (result >= 0) { ErrInfo = new ErrorEntity(RespCode.Success); } else { ErrInfo = new ErrorEntity(RespCode.SysError); } return result; }
public Int32 Delete(string idList, out ErrorEntity ErrInfo) { PortalPositionDA da = new PortalPositionDA(); NameValueCollection where = new NameValueCollection(); where.Add("condition", "FPositionId in (" + idList + ")"); Int32 result = da.Delete(where); if (result >= 0) { ErrInfo = new ErrorEntity(RespCode.Success); } else { ErrInfo = new ErrorEntity(RespCode.SysError); } return result; }
public List<PortalPosition> Select(NameValueCollection where, NameValueCollection orderby, int _pageIndex, int _pageSize, out int _totalCount) { PortalPositionDA da = new PortalPositionDA(); return da.Select(where, orderby, _pageIndex, _pageSize, out _totalCount).DataTableToList<PortalPosition>(); }
public List<PortalPosition> Select(NameValueCollection where, NameValueCollection orderby) { PortalPositionDA da = new PortalPositionDA(); return da.Select(where, orderby).DataTableToList<PortalPosition>(); }