Exemplo n.º 1
0
		/// <summary>
		/// Saves the transport into the database
		/// </summary>
		private void SaveTransportVehicleStack( RecTransport transport, RecTransportVehicleStd recVeh, int seq )
		{
			// Prepare data
			TransportVehicleStackStdObject.Factory = transport.Factory;
			TransportVehicleStackStdObject.Project = transport.Project;
			TransportVehicleStackStdObject.TransportId = transport.TransportId;
			TransportVehicleStackStdObject.VehicleId = recVeh.VehicleId;

			// Save Stack object
			ProjectManager svc = new ProjectManager();
			// Use the new stack id
			TransportVehicleStackStdObject.StackId = svc.InsertTransportVehicleStack( TransportVehicleStackStdObject );
		}