/// <summary> /// Get RegistrationNo ,Vehicle Id /// </summary> /// <returns></returns> public static TeamBooking_Allot GetRegistrationNo(int bookinid) { DataTable dt = new DataTable(); TeamBooking_Allot team = new TeamBooking_Allot(); TMSDataLibrary.TransporterBooking_Allot _team = new TMSDataLibrary.TransporterBooking_Allot(); dt = _team.GetRequirementDetails(bookinid); if (dt.Rows.Count > 0) { team.RegistrationNo = dt.Rows[0][CONSTS.TransporterBooking_AllotMethodsColumnIndex.RegistrationNo].ToString(); team.VehicleId = Convert.ToInt32(dt.Rows[0][CONSTS.TransporterBooking_AllotMethodsColumnIndex.VehicleTypeId]); } return team; }
/// <summary> /// Get Requirement Details /// </summary> /// <param name="bookingId"></param> /// <returns></returns> public static DataTable GetRequirementDetails(int bookingId) { TMSDataLibrary.TransporterBooking_Allot transportbooking = new TMSDataLibrary.TransporterBooking_Allot(); return transportbooking.GetRequirementDetails(bookingId); }