示例#1
0
 /// <summary>
 /// Allot vehicle
 /// </summary>
 /// <param name="teambooking"></param>
 /// <returns></returns>
 public static int AllotVehicle(TeamBooking_Allot teambooking)
 {
     int result;
     TMSDataLibrary.TeamBooking_Allot _objteam = new TMSDataLibrary.TeamBooking_Allot();
     result = _objteam.AllotVehicle(teambooking.VehicleId,teambooking.BookingId,teambooking.DriverId);
     return result;
 }
示例#2
0
 /// <summary>
 ///  Add note
 /// </summary>
 /// <param name="teambooking"></param>
 /// <returns></returns>
 public static int AddNote(TeamBooking_Allot teambooking,int noteGroup)
 {
     int result;
     TMSDataLibrary.TeamBooking_Allot _objteam = new TMSDataLibrary.TeamBooking_Allot();
     result = _objteam.AddNote(teambooking.BookingId, teambooking.Note, teambooking.Sender, noteGroup);
     return result;
 }
示例#3
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="amount"></param>
 /// <param name="bookingId"></param>
 /// <returns></returns>
 public static int AddAmount(decimal amount, int bookingId)
 {
     int result;
     TMSDataLibrary.TeamBooking_Allot _objteam = new TMSDataLibrary.TeamBooking_Allot();
     result = _objteam.AddAmount(amount, bookingId);
     return result;
 }
示例#4
0
        /// <summary>
        /// Get  BookingId by BookingNo
        /// </summary>
        /// <returns>datatable for UserInfo</returns>
        public static TeamBooking_Allot GetBookingId(string bookinNo)
        {
            DataTable dt = new DataTable();
            TeamBooking_Allot team = new TeamBooking_Allot();
            TMSDataLibrary.TeamBooking_Allot _team = new TMSDataLibrary.TeamBooking_Allot();
            dt = _team.GetBookingId(bookinNo);
            if (dt.Rows.Count > 0)
            {
                team.BookingId = Convert.ToInt32(dt.Rows[0]["BookingId"]);

            }
            return team;
        }
示例#5
0
 /// <summary>
 /// Get Transporter List
 /// </summary>
 /// <returns>datatable of Transporter List</returns>
 public static DataTable GetTransporterList(int bookingid)
 {
     TMSDataLibrary.TeamBooking_Allot team = new TMSDataLibrary.TeamBooking_Allot();
     return team.GetTransporterList(bookingid);
 }
示例#6
0
 /// <summary>
 /// Get Previous Note
 /// </summary>
 /// <returns>datatable of Note List</returns>
 public static DataTable GetNote(int bookingid, int noteGroup)
 {
     TMSDataLibrary.TeamBooking_Allot team = new TMSDataLibrary.TeamBooking_Allot();
     return team.GetNote(bookingid, noteGroup);
 }
示例#7
0
 /// <summary>
 /// Get Booking Information
 /// </summary>
 /// <returns>datatable of BookingInfo</returns>
 public static DataTable GetBookingInfo(int bookingid)
 {
     TMSDataLibrary.TeamBooking_Allot team = new TMSDataLibrary.TeamBooking_Allot();
     return team.GetBookingInfo(bookingid);
 }
示例#8
0
 /// <summary>
 /// Get Vehicle List 
 /// </summary>
 /// <returns>datatable of Vehicle List</returns>
 public static DataTable GetVehicleList(int transporterid, int vehicletypeid)
 {
     TMSDataLibrary.TeamBooking_Allot team = new TMSDataLibrary.TeamBooking_Allot();
     return team.GetVehicleList(transporterid, vehicletypeid);
 }
示例#9
0
 /// <summary>
 /// Get UserInformation by BookingId
 /// </summary>
 /// <returns>datatable for UserInfo</returns>
 public static TeamBooking_Allot GetUserInfo(int bookinid)
 {
     DataTable dt = new DataTable();
     TeamBooking_Allot team = new TeamBooking_Allot();
     TMSDataLibrary.TeamBooking_Allot _team = new TMSDataLibrary.TeamBooking_Allot();
     dt = _team.GetUserInfo(bookinid);
     if (dt.Rows.Count > 0)
     {
         team.FirstName = dt.Rows[0][CONSTS.TeamBooking_AllotMethodsColumnIndex.FirstName].ToString();
         team.Mobile = dt.Rows[0][CONSTS.TeamBooking_AllotMethodsColumnIndex.Mobile].ToString();
         team.Email = dt.Rows[0][CONSTS.TeamBooking_AllotMethodsColumnIndex.Email].ToString();
     }
     return team;
 }