예제 #1
0
 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;
 }
예제 #2
0
 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;
 }
예제 #3
0
 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;
 }
예제 #4
0
 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>();
 }
예제 #5
0
 public List<PortalPosition> Select(NameValueCollection where, NameValueCollection orderby)
 {
     PortalPositionDA da = new PortalPositionDA();
     return da.Select(where, orderby).DataTableToList<PortalPosition>();
 }