Exemplo n.º 1
0
        //***************************************************************************************************
        public TRT_LocEntity getLocationsDetails_BAL(string LocId_BAL)
        {
            try
            {
                logger.Debug("TaxiRequest_BAL: getLocationsDetails_BAL() called");
                logger.DebugFormat("Input parameter Location ID : {0} ", LocId_BAL);

                if(!string.IsNullOrEmpty(LocId_BAL))
                {
                    TRT_DAL getLD_BAL = new TRT_DAL();
                    return (getLD_BAL.getLocationsDetails_DAL(LocId_BAL));
                }
                else
                {
                    TRT_LocEntity Error = new TRT_LocEntity();
                    Error.TRT_header.statusFlag = 1;
                    Error.TRT_header.statusMsg = "Location ID is Null/Empty";

                    return Error;
                }

            }

            catch (Exception ex)
            {
                logger.Error("Exception  At BAL - getLocationsDetails_BAL  : " + ex.Message.ToString());
                logger.Error("TaxiRequest_BAL: getLocationsDetails_BAL() Stop");

                throw ex;
            }
        }
Exemplo n.º 2
0
        //***************************************************************************************************
        public TRT_OutputEntity updateTaxiRequestDetails_BAL(TRT_InputEntity TRT_EntryBAL)
        {
            try
            {
                logger.Debug("TaxiRequest_BAL: updateTaxiRequestDetails_BAL() called");
                logger.DebugFormat("Input parameter Employee ID : {0} ", TRT_EntryBAL);

                int validate_trtParamFlag = 0;
                validate_trtParamFlag = validate_trtParam(TRT_EntryBAL);

                if (validate_trtParamFlag == 1)
                {
                    TRT_OutputEntity Error = new TRT_OutputEntity();
                    Error.statusFlag = 1;
                    Error.statusMsg = TRT_Constants.Invalid;

                    logger.Error("Error in input parameter values");
                    logger.Error("ErrorCode = " + Error.statusFlag.ToString());
                    logger.Error("ErrorMessage = " + Error.statusMsg);
                    logger.Error("TaxiRequest_BAL: authenticateUser_SI() Stop");

                    return Error;
                }
                else
                {
                    TRT_DAL getLD_BAL = new TRT_DAL();
                    return (getLD_BAL.updateTaxiRequestDetails_DAL_New(TRT_EntryBAL));
                }

            }
            catch (SqlException dbEx)
            {
                logger.Error("Exception  At BAL - updateTaxiRequestDetails_BAL  : " + dbEx.Message.ToString());
                logger.Error("Method - updateTaxiRequestDetails_BAL Stop");

                throw dbEx;
            }
            catch (Exception ex)
            {
                logger.Error("Exception  At BAL - updateTaxiRequestDetails_BAL  : " + ex.Message.ToString());
                logger.Error("Method : updateTaxiRequestDetails_BAL Stop");
                throw ex;
            }
        }
Exemplo n.º 3
0
        //***************************************************************************************************
        public TRT_ChargeCodes getAllChargeCodes_BAL(string SearchCriteria_BAL)
        {
            try
            {
                logger.Debug("TaxiRequest_BAL: getAllChargeCodes_BAL() called");
                logger.DebugFormat("Input parameter Search String : {0} ", SearchCriteria_BAL);

                TRT_DAL getCC_BAL = new TRT_DAL();
                return (getCC_BAL.getAllChargeCodes_DAL(SearchCriteria_BAL));

            }

            catch (Exception ex)
            {
                logger.Error("Exception  At BAL - getAllChargeCodes_BAL  : " + ex.Message.ToString());
                logger.Error("TaxiRequest_BAL: getAllChargeCodes_BAL() Stop");

                throw ex;
            }
        }