public string ValidateGasStationLogin(string stGasStationID, string stGasStationMacAddress) { GasStationDAL dalGasStation = new GasStationDAL(); DataTransfer response = dalGasStation.ValidateGasStationLogin(stGasStationID, stGasStationMacAddress); if (response.ResponseCode == DataTransfer.RESPONSE_CODE_SUCCESS) { SystemAdminDAL dalSystemAdmin = new SystemAdminDAL(); DataTransfer responseAdmin = dalSystemAdmin.GetCurrentPrice(SystemAdminDTO.GAS_TYPE_ALL); response.ResponseCurrentPriceGas92 = responseAdmin.ResponseCurrentPriceGas92; response.ResponseCurrentPriceGas95 = responseAdmin.ResponseCurrentPriceGas95; response.ResponseCurrentPriceGasDO = responseAdmin.ResponseCurrentPriceGasDO; response.ResponseDataSystemAdminDTO = responseAdmin.ResponseDataSystemAdminDTO; GasStoreDAL dalGasStore = new GasStoreDAL(); DataTransfer responseGasStore = dalGasStore.GetGasStoreFromGasStation(stGasStationID); response.ResponseDataGasStoreDTO = responseGasStore.ResponseDataGasStoreDTO; response.ResponseGasStoreGas92Total = responseGasStore.ResponseDataGasStoreDTO.GasStoreGas92Total; response.ResponseGasStoreGas95Total = responseGasStore.ResponseDataGasStoreDTO.GasStoreGas95Total; response.ResponseGasStoreGasDOTotal = responseGasStore.ResponseDataGasStoreDTO.GasStoreGasDOTotal; } return(JSonHelper.ConvertObjectToJSon(response)); }
public string GetGasStationList(string stGasStoreID) { GasStationDAL dalGasStation = new GasStationDAL(); DataTransfer response = new DataTransfer(); DataSet ds = dalGasStation.GetGasStationList(stGasStoreID); if (ds != null) { response.ResponseDataSet = ds; response.ResponseCode = DataTransfer.RESPONSE_CODE_SUCCESS; } else { response.ResponseCode = DataTransfer.RESPONSE_CODE_FAIL; } return(JSonHelper.ConvertObjectToJSon(response)); }
public GasStationServiceBLL() { m_dataRequest = null; m_dataResponse = null; m_dalGasStation = new GasStationDAL(); }