Beispiel #1
0
 public static int GetConfirmationID(int userId, int tdxTermsId, int ratingModelTdxId, decimal rebateAmount)
 {
     try
     {
         sp_051_create_confirmationRecordTableAdapter taCreateConfirmation = new sp_051_create_confirmationRecordTableAdapter();
         Misc.sp_051_create_confirmationRecordDataTable dtConfirmation = taCreateConfirmation.InsertAndGetConfirmationID(userId, tdxTermsId, ratingModelTdxId, rebateAmount);
         if (dtConfirmation.Rows.Count > 0)
         {
             return Convert.ToInt32(dtConfirmation.Rows[0]["ConfirmationID"]);
         }
         return -1;
     }
     catch { return -1; }
 }
Beispiel #2
0
 public static int GetConfirmationID(int userId, int tdxTermsId, int ratingModelTdxId, decimal rebateAmount)
 {
     try
     {
         sp_051_create_confirmationRecordTableAdapter   taCreateConfirmation = new sp_051_create_confirmationRecordTableAdapter();
         Misc.sp_051_create_confirmationRecordDataTable dtConfirmation       = taCreateConfirmation.InsertAndGetConfirmationID(userId, tdxTermsId, ratingModelTdxId, rebateAmount);
         if (dtConfirmation.Rows.Count > 0)
         {
             return(Convert.ToInt32(dtConfirmation.Rows[0]["ConfirmationID"]));
         }
         return(-1);
     }
     catch { return(-1); }
 }