Exemplo n.º 1
0
 public static int DeleteTransportVehicle(int vehicleId, int status)
 {
     int result;
     var _objtranVehicle = new TMSDataLibrary.TransporterVehicle();
     result = _objtranVehicle.DeleteTransportVehicle(vehicleId, status);
     return result;
 }
Exemplo n.º 2
0
 /// <summary>
 ///This Method is used to Remove Vehicle Type for Transporter 
 /// </summary>
 /// <param name="transporterVehicleTypeId">Transporter Vehicle Type Id</param>
 /// <returns></returns>
 public static int DeleteTransporterVehicleType(int transporterVehicleTypeId)
 {
     int result;
     var objTransporterVehicle = new TMSDataLibrary.TransporterVehicle();
     result = objTransporterVehicle.DeleteTransporterVehicleType(transporterVehicleTypeId);
     return result;
 }
Exemplo n.º 3
0
 /// <summary>
 /// This Method is used to Add Transporter Vehicle Type
 /// </summary>
 /// <param name="transporterId">Trnasporter ID</param>
 /// <param name="vehicleTypeId">Vehicle Type ID</param>
 /// <returns></returns>
 public static int AddTransporterVehicleType(int transporterId, int vehicleTypeId)
 {
     int result;
     var objTransporterVehicle = new TMSDataLibrary.TransporterVehicle();
     result = objTransporterVehicle.AddTransporterVehicleType(transporterId, vehicleTypeId);
     return result;
 }
Exemplo n.º 4
0
 /// <summary>
 /// This Method is used to Add Transporter Vehicle Type
 /// </summary>
 /// <param name="tranVehicle"> TransporterVehicle Class Object</param>
 /// <returns></returns>
 public static int AddTransportervehicle(TransporterVehicle tranVehicle)
 {
     int result;
     var _objtranVehicle = new TMSDataLibrary.TransporterVehicle();
     result = _objtranVehicle.AddTransporterVehicle(tranVehicle.TransporterId, tranVehicle.VehicleTypeId, tranVehicle.CompanyName,
               tranVehicle.ModelName, tranVehicle.ChesisNumber, tranVehicle.RegistrationNo, tranVehicle.InsuranceCompanyName,
               tranVehicle.InsurancePolicyNo, tranVehicle.InsuranceStartDate, tranVehicle.InsuranceEndDate, tranVehicle.Status);
     return result;
 }
Exemplo n.º 5
0
 /// <summary>
 /// Get All information of Vehicle of the transporter
 /// </summary>
 /// <param name="transporterId"></param>
 /// <returns></returns>
 public static DataTable GetTranVehicle(int transporterId)
 {
     var objTransporterVehicle = new TMSDataLibrary.TransporterVehicle();
     return objTransporterVehicle.GetTranVehicle(transporterId);
 }
Exemplo n.º 6
0
 /// <summary>
 /// Gets the vehicles on the basis of tranporter and the vehicle type.
 /// </summary>
 /// <param name="transporterId"></param>
 /// <param name="vehicleTypeId"></param>
 /// <returns></returns>
 public static object GetTransporterVehicles(int transporterId, int vehicleTypeId)
 {
     var oTransporterVehicle = new TMSDataLibrary.TransporterVehicle();
     return oTransporterVehicle.GetTransporterVehicles(transporterId, vehicleTypeId);
 }
Exemplo n.º 7
0
 /// <summary>
 /// Get Transporter Vehicle Types
 /// </summary>
 /// <param name="transporterId">Transporter ID</param>
 /// <returns></returns>
 public static DataTable TransporterVehicleTypeDdl(int transporterId)
 {
     var objTransporterVehicle = new TMSDataLibrary.TransporterVehicle();
     return objTransporterVehicle.TransporterVehicleTypeDdl(transporterId);
 }