コード例 #1
0
        public void getResults(int cursor,
                               IFieldGetter rslt,
                               Object[] buf)
        {
            switch (cursor)
            {
            case 0:
                ((decimal[])buf[0])[0] = rslt.getDecimal(1);
                ((decimal[])buf[1])[0] = rslt.getDecimal(2);
                ((decimal[])buf[2])[0] = rslt.getDecimal(3);
                ((decimal[])buf[3])[0] = rslt.getDecimal(4);
                ((decimal[])buf[4])[0] = rslt.getDecimal(5);
                ((short[])buf[5])[0]   = rslt.getShort(6);
                break;

            case 1:
                ((decimal[])buf[0])[0] = rslt.getDecimal(1);
                ((decimal[])buf[1])[0] = rslt.getDecimal(2);
                ((decimal[])buf[2])[0] = rslt.getDecimal(3);
                ((decimal[])buf[3])[0] = rslt.getDecimal(4);
                ((decimal[])buf[4])[0] = rslt.getDecimal(5);
                ((short[])buf[5])[0]   = rslt.getShort(6);
                break;
            }
        }
コード例 #2
0
        public void getResults(int cursor,
                               IFieldGetter rslt,
                               Object[] buf)
        {
            switch (cursor)
            {
            case 0:
                ((String[])buf[0])[0] = rslt.getVarchar(1);
                ((bool[])buf[1])[0]   = rslt.wasNull(1);
                ((short[])buf[2])[0]  = rslt.getShort(2);
                ((bool[])buf[3])[0]   = rslt.wasNull(2);
                ((long[])buf[4])[0]   = rslt.getLong(3);
                return;

            case 2:
                ((short[])buf[0])[0]  = rslt.getShort(1);
                ((bool[])buf[1])[0]   = rslt.wasNull(1);
                ((long[])buf[2])[0]   = rslt.getLong(2);
                ((String[])buf[3])[0] = rslt.getVarchar(3);
                ((bool[])buf[4])[0]   = rslt.wasNull(3);
                ((String[])buf[5])[0] = rslt.getVarchar(4);
                ((bool[])buf[6])[0]   = rslt.wasNull(4);
                ((long[])buf[7])[0]   = rslt.getLong(5);
                return;
            }
        }
コード例 #3
0
 public void getResults(int cursor,
                        IFieldGetter rslt,
                        Object[] buf)
 {
     switch (cursor)
     {
     case 0:
         ((String[])buf[0])[0]    = rslt.getVarchar(1);
         ((bool[])buf[1])[0]      = rslt.wasNull(1);
         ((long[])buf[2])[0]      = rslt.getLong(2);
         ((bool[])buf[3])[0]      = rslt.wasNull(2);
         ((String[])buf[4])[0]    = rslt.getVarchar(3);
         ((bool[])buf[5])[0]      = rslt.wasNull(3);
         ((short[])buf[6])[0]     = rslt.getShort(4);
         ((bool[])buf[7])[0]      = rslt.wasNull(4);
         ((short[])buf[8])[0]     = rslt.getShort(5);
         ((bool[])buf[9])[0]      = rslt.wasNull(5);
         ((short[])buf[10])[0]    = rslt.getShort(6);
         ((bool[])buf[11])[0]     = rslt.wasNull(6);
         ((short[])buf[12])[0]    = rslt.getShort(7);
         ((bool[])buf[13])[0]     = rslt.wasNull(7);
         ((String[])buf[14])[0]   = rslt.getVarchar(8);
         ((bool[])buf[15])[0]     = rslt.wasNull(8);
         ((String[])buf[16])[0]   = rslt.getVarchar(9);
         ((bool[])buf[17])[0]     = rslt.wasNull(9);
         ((long[])buf[18])[0]     = rslt.getLong(10);
         ((DateTime[])buf[19])[0] = rslt.getGXDateTime(11);
         ((bool[])buf[20])[0]     = rslt.wasNull(11);
         return;
     }
 }
コード例 #4
0
ファイル: viewlng.cs プロジェクト: ailtonvivaz/peajes
        public void getResults(int cursor,
                               IFieldGetter rslt,
                               Object[] buf)
        {
            switch (cursor)
            {
            case 0:
                ((short[])buf[0])[0] = rslt.getShort(1);
                ((long[])buf[1])[0]  = rslt.getLong(2);
                break;

            case 1:
                ((short[])buf[0])[0] = rslt.getShort(1);
                ((long[])buf[1])[0]  = rslt.getLong(2);
                break;
            }
        }
コード例 #5
0
 public void getResults(int cursor,
                        IFieldGetter rslt,
                        Object[] buf)
 {
     switch (cursor)
     {
     case 0:
         ((short[])buf[0])[0]    = rslt.getShort(1);
         ((String[])buf[1])[0]   = rslt.getVarchar(2);
         ((decimal[])buf[2])[0]  = rslt.getDecimal(3);
         ((bool[])buf[3])[0]     = rslt.getBool(4);
         ((short[])buf[4])[0]    = rslt.getShort(5);
         ((String[])buf[5])[0]   = rslt.getVarchar(6);
         ((DateTime[])buf[6])[0] = rslt.getGXDate(7);
         ((DateTime[])buf[7])[0] = rslt.getGXDate(8);
         return;
     }
 }
コード例 #6
0
        public void getResults(int cursor,
                               IFieldGetter rslt,
                               Object[] buf)
        {
            switch (cursor)
            {
            case 0:
                ((short[])buf[0])[0]  = rslt.getShort(1);
                ((String[])buf[1])[0] = rslt.getVarchar(2);
                ((String[])buf[2])[0] = rslt.getVarchar(3);
                return;

            case 1:
                ((short[])buf[0])[0]  = rslt.getShort(1);
                ((String[])buf[1])[0] = rslt.getVarchar(2);
                ((String[])buf[2])[0] = rslt.getVarchar(3);
                return;

            case 2:
                ((short[])buf[0])[0]  = rslt.getShort(1);
                ((String[])buf[1])[0] = rslt.getVarchar(2);
                ((String[])buf[2])[0] = rslt.getVarchar(3);
                return;

            case 3:
                ((short[])buf[0])[0] = rslt.getShort(1);
                return;

            case 4:
                ((short[])buf[0])[0] = rslt.getShort(1);
                return;

            case 7:
                ((short[])buf[0])[0] = rslt.getShort(1);
                ((short[])buf[1])[0] = rslt.getShort(2);
                return;

            case 8:
                ((long[])buf[0])[0]  = rslt.getLong(1);
                ((short[])buf[1])[0] = rslt.getShort(2);
                return;

            case 9:
                ((short[])buf[0])[0]  = rslt.getShort(1);
                ((String[])buf[1])[0] = rslt.getVarchar(2);
                ((String[])buf[2])[0] = rslt.getVarchar(3);
                return;
            }
        }
コード例 #7
0
 public void getResults(int cursor,
                        IFieldGetter rslt,
                        Object[] buf)
 {
     switch (cursor)
     {
     case 0:
         ((short[])buf[0])[0]  = rslt.getShort(1);
         ((String[])buf[1])[0] = rslt.getVarchar(2);
         return;
     }
 }
コード例 #8
0
 public void getResults(int cursor,
                        IFieldGetter rslt,
                        Object[] buf)
 {
     switch (cursor)
     {
     case 0:
         ((short[])buf[0])[0] = rslt.getShort(1);
         ((bool[])buf[1])[0]  = rslt.wasNull(1);
         ((long[])buf[2])[0]  = rslt.getLong(2);
         return;
     }
 }
コード例 #9
0
 public void getResults(int cursor,
                        IFieldGetter rslt,
                        Object[] buf)
 {
     switch (cursor)
     {
     case 0:
         ((decimal[])buf[0])[0]  = rslt.getDecimal(1);
         ((DateTime[])buf[1])[0] = rslt.getGXDate(2);
         ((DateTime[])buf[2])[0] = rslt.getGXDate(3);
         ((decimal[])buf[3])[0]  = rslt.getDecimal(4);
         ((short[])buf[4])[0]    = rslt.getShort(5);
         return;
     }
 }
コード例 #10
0
 public void getResults(int cursor,
                        IFieldGetter rslt,
                        Object[] buf)
 {
     switch (cursor)
     {
     case 0:
         ((DateTime[])buf[0])[0] = rslt.getGXDate(1);
         ((DateTime[])buf[1])[0] = rslt.getGXDate(2);
         ((String[])buf[2])[0]   = rslt.getString(3, 1);
         ((String[])buf[3])[0]   = rslt.getString(4, 1);
         ((short[])buf[4])[0]    = rslt.getShort(5);
         return;
     }
 }
コード例 #11
0
        public void getResults(int cursor,
                               IFieldGetter rslt,
                               Object[] buf)
        {
            switch (cursor)
            {
            case 0:
                ((String[])buf[0])[0]  = rslt.getVarchar(1);
                ((String[])buf[1])[0]  = rslt.getVarchar(2);
                ((String[])buf[2])[0]  = rslt.getVarchar(3);
                ((decimal[])buf[3])[0] = rslt.getDecimal(4);
                ((short[])buf[4])[0]   = rslt.getShort(5);
                break;

            case 1:
                ((String[])buf[0])[0]  = rslt.getVarchar(1);
                ((String[])buf[1])[0]  = rslt.getVarchar(2);
                ((String[])buf[2])[0]  = rslt.getVarchar(3);
                ((decimal[])buf[3])[0] = rslt.getDecimal(4);
                ((short[])buf[4])[0]   = rslt.getShort(5);
                break;

            case 2:
                ((String[])buf[0])[0]  = rslt.getVarchar(1);
                ((String[])buf[1])[0]  = rslt.getVarchar(2);
                ((String[])buf[2])[0]  = rslt.getVarchar(3);
                ((decimal[])buf[3])[0] = rslt.getDecimal(4);
                ((short[])buf[4])[0]   = rslt.getShort(5);
                break;

            case 3:
                ((String[])buf[0])[0]  = rslt.getVarchar(1);
                ((String[])buf[1])[0]  = rslt.getVarchar(2);
                ((String[])buf[2])[0]  = rslt.getVarchar(3);
                ((decimal[])buf[3])[0] = rslt.getDecimal(4);
                ((short[])buf[4])[0]   = rslt.getShort(5);
                break;

            case 4:
                ((String[])buf[0])[0]  = rslt.getVarchar(1);
                ((String[])buf[1])[0]  = rslt.getVarchar(2);
                ((String[])buf[2])[0]  = rslt.getVarchar(3);
                ((long[])buf[3])[0]    = rslt.getLong(4);
                ((bool[])buf[4])[0]    = rslt.wasNull(4);
                ((decimal[])buf[5])[0] = rslt.getDecimal(5);
                ((short[])buf[6])[0]   = rslt.getShort(6);
                ((short[])buf[7])[0]   = rslt.getShort(7);
                break;

            case 5:
                ((String[])buf[0])[0]  = rslt.getVarchar(1);
                ((String[])buf[1])[0]  = rslt.getVarchar(2);
                ((String[])buf[2])[0]  = rslt.getVarchar(3);
                ((long[])buf[3])[0]    = rslt.getLong(4);
                ((bool[])buf[4])[0]    = rslt.wasNull(4);
                ((decimal[])buf[5])[0] = rslt.getDecimal(5);
                ((short[])buf[6])[0]   = rslt.getShort(6);
                ((short[])buf[7])[0]   = rslt.getShort(7);
                break;

            case 6:
                ((String[])buf[0])[0]  = rslt.getVarchar(1);
                ((String[])buf[1])[0]  = rslt.getVarchar(2);
                ((String[])buf[2])[0]  = rslt.getVarchar(3);
                ((long[])buf[3])[0]    = rslt.getLong(4);
                ((bool[])buf[4])[0]    = rslt.wasNull(4);
                ((decimal[])buf[5])[0] = rslt.getDecimal(5);
                ((short[])buf[6])[0]   = rslt.getShort(6);
                ((short[])buf[7])[0]   = rslt.getShort(7);
                break;

            case 7:
                ((String[])buf[0])[0]  = rslt.getVarchar(1);
                ((String[])buf[1])[0]  = rslt.getVarchar(2);
                ((String[])buf[2])[0]  = rslt.getVarchar(3);
                ((long[])buf[3])[0]    = rslt.getLong(4);
                ((bool[])buf[4])[0]    = rslt.wasNull(4);
                ((decimal[])buf[5])[0] = rslt.getDecimal(5);
                ((short[])buf[6])[0]   = rslt.getShort(6);
                ((short[])buf[7])[0]   = rslt.getShort(7);
                break;
            }
        }