Beispiel #1
0
        public static int[] TransposeTeeInfoes(this TeeCommonInfoes tci)
        {
            int[] arr = new int[18];

            if (tci == null)
            {
                return(arr);
            }

            arr[0] = tci.H01 ?? 0;
            arr[1] = tci.H02 ?? 0;
            arr[2] = tci.H03 ?? 0;
            arr[3] = tci.H04 ?? 0;
            arr[4] = tci.H05 ?? 0;
            arr[5] = tci.H06 ?? 0;

            arr[6]  = tci.H07 ?? 0;
            arr[7]  = tci.H08 ?? 0;
            arr[8]  = tci.H09 ?? 0;
            arr[9]  = tci.H10 ?? 0;
            arr[10] = tci.H11 ?? 0;
            arr[11] = tci.H12 ?? 0;

            arr[12] = tci.H13 ?? 0;
            arr[13] = tci.H14 ?? 0;
            arr[14] = tci.H15 ?? 0;
            arr[15] = tci.H16 ?? 0;
            arr[16] = tci.H17 ?? 0;
            arr[17] = tci.H18 ?? 0;

            return(arr);
        }
Beispiel #2
0
 public Task <int> SaveTeeInfoAsync(TeeCommonInfoes teeInfo)
 {
     if (teeInfo.TCID != 0)
     {
         return(database.UpdateAsync(teeInfo));
     }
     else
     {
         return(database.InsertAsync(teeInfo));
     }
 }
Beispiel #3
0
 public Task <int> DeleteTeeInfoAsync(TeeCommonInfoes teeInfo)
 {
     return(database.DeleteAsync(teeInfo));
 }