コード例 #1
0
        public void load_Plate_plateId()
        {
            BLL.Entity.GasStation.Plate entity;
            BLL.Logic.GasStation.Plate  logic;

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

            _Plate_plateId = entity;
        }
コード例 #2
0
ファイル: User.cs プロジェクト: afzarofogh/GasStation
        public void loadPlate_updatedById(int pageIndex = -1, int pageSize = 100)
        {
            CommandResult opResult;

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

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