/// <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; }
/// <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; }
/// <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; }
/// <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; }
/// <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); }
/// <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); }
/// <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); }
/// <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); }
/// <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; }