public void load_Owner_ownerId() { BLL.Entity.GasStation.Owner entity; BLL.Logic.GasStation.Owner logic; entity = new BLL.Entity.GasStation.Owner() { id = ownerId }; logic = new BLL.Logic.GasStation.Owner(Common.Enum.EDatabase.GasStation); logic.read(entity); _Owner_ownerId = entity; }
public void loadOwner_insertedById(int pageIndex = -1, int pageSize = 100) { CommandResult opResult; BLL.Logic.GasStation.Owner logic = new BLL.Logic.GasStation.Owner(Common.Enum.EDatabase.GasStation); if (pageIndex == -1) { opResult = logic.allData("insertedById = @insertedById", "", false, true, new KeyValuePair("@insertedById", id)); } else { opResult = logic.allByPaging(pageIndex, pageSize, "insertedById = @insertedById", "", false, true, new KeyValuePair("@insertedById", id)); } if (opResult.status == BaseDAL.Base.EnumCommandStatus.success) { _get_Owner_insertedById = opResult.model as System.Data.DataTable; } }