コード例 #1
0
 /// <summary>
 /// Gửi lệnh hoãn xe đến server G5
 /// </summary>
 /// <param name="bookId">BookId</param>
 public static void SendOperatorCancel(Guid bookId, LoaiCuocKhach loaiCK, string msg = "", Taxi.Services.ServiceG5.SourceCancelType type = Taxi.Services.ServiceG5.SourceCancelType.Unknown)
 {
     if (bookId != Guid.Empty)
     {
         if (loaiCK == LoaiCuocKhach.ChoKhachHopDong)
         {
             Task.Factory.StartNew(() =>
             {
                 return(WCFServicesAppXHD.SendOperatorCancel(bookId, msg, (Taxi.Services.ServiceApp_XHD.SourceCancelType)type));
             });
         }
         else
         {
             WCFServicesApp.SendOperatorCancel(bookId, msg, (Taxi.Services.ServiceApp.SourceCancelType)type);
         }
     }
 }
コード例 #2
0
 public bool SendOperatorCancel(System.Guid bookId, string msg, Taxi.Services.ServiceG5.SourceCancelType cancelType)
 {
     return(base.Channel.SendOperatorCancel(bookId, msg, cancelType));
 }