コード例 #1
0
        public static CBE.VehicleClassMappingCBE GetVehicleClassMappingById(CBE.VehicleClassMappingCBE vehicle) // what user ???? CJS
        {
            try
            {
                CBE.VehicleClassMappingCollection vehicles = new CBE.VehicleClassMappingCollection();

                string    spName  = Constants.oraclePackagePrefix + "VEHICLE_CLASS_MAPPING_GETBYID";
                DbCommand command = VaaaN.MLFF.Libraries.CommonLibrary.DBA.DBAccessor.GetStoredProcCommand(spName);
                command.Parameters.Add(VaaaN.MLFF.Libraries.CommonLibrary.DBA.DBAccessor.CreateDbParameter(ref command, "P_MAPPING_VEHICLE_CLASS_ID", DbType.Int32, vehicle.MappingVehicleClassId, ParameterDirection.Input));

                vehicles = ConvertDataTableToCollection(VaaaN.MLFF.Libraries.CommonLibrary.DBA.DBAccessor.LoadDataSet(command, tableName).Tables[tableName]);

                return(vehicles[0]);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
コード例 #2
0
 public static VaaaN.MLFF.Libraries.CommonLibrary.CBE.VehicleClassMappingCollection GetVehicleClassByANPRNameCollection(CBE.VehicleClassMappingCBE vehicleClassCBE)
 {
     return(VaaaN.MLFF.Libraries.CommonLibrary.DAL.VehicleClassMappingDAL.GetVehicleClassByANPRNameCollection(vehicleClassCBE));
 }
コード例 #3
0
 public static VaaaN.MLFF.Libraries.CommonLibrary.CBE.VehicleClassMappingCBE GetVehicleClassMappingById(CBE.VehicleClassMappingCBE vehicleClassCBE)
 {
     return(VaaaN.MLFF.Libraries.CommonLibrary.DAL.VehicleClassMappingDAL.GetVehicleClassMappingById(vehicleClassCBE));
 }