Exemple #1
0
        public void load_Car_carId()
        {
            BLL.Entity.GasStation.Car entity;
            BLL.Logic.GasStation.Car  logic;

            entity = new BLL.Entity.GasStation.Car()
            {
                id = carId
            };
            logic = new BLL.Logic.GasStation.Car(Common.Enum.EDatabase.GasStation);
            logic.read(entity);

            _Car_carId = entity;
        }
Exemple #2
0
        public void load_Car_carId()
        {
            BLL.Entity.GasStation.Car entity;
            BLL.Logic.GasStation.Car  logic;

            entity = new BLL.Entity.GasStation.Car()
            {
                id = carId
            };
            logic = new BLL.Logic.GasStation.Car("GasStation");
            logic.read(entity);

            _Car_carId = entity;
        }
Exemple #3
0
        public void loadCar_carTypeId(int pageIndex = -1, int pageSize = 100)
        {
            CommandResult opResult;

            BLL.Logic.GasStation.Car logic = new BLL.Logic.GasStation.Car(Common.Enum.EDatabase.GasStation);
            if (pageIndex == -1)
            {
                opResult = logic.allData("carTypeId = @carTypeId", "", false, true, new KeyValuePair("@carTypeId", id));
            }
            else
            {
                opResult = logic.allByPaging(pageIndex, pageSize, "carTypeId = @carTypeId", "", false, true, new KeyValuePair("@carTypeId", id));
            }

            if (opResult.status == BaseDAL.Base.EnumCommandStatus.success)
            {
                _get_Car_carTypeId = opResult.model as System.Data.DataTable;
            }
        }