public void SendPCEnrollmentResponse(PCEnrollmentParameterResponse pCEnrollmentParameterResponse, object requestId, int installationNo)
        {
            try
            {
                MonTgt_H2G_PC_EnrollmentParameterResponse monTgt = new MonTgt_H2G_PC_EnrollmentParameterResponse()
                {
                    Status                  = Convert.ToByte(pCEnrollmentParameterResponse.ErrorCode),
                    IsDayTimeBasis          = pCEnrollmentParameterResponse.IsDayTimeBasis,
                    DayDefaultTime          = TimeSpan.ParseExact(pCEnrollmentParameterResponse.DayDefaultTime, "HHMM", CultureInfo.InvariantCulture),
                    IsDayTimeBasisMandatory = pCEnrollmentParameterResponse.IsDayTimeMandatory,

                    IsWeekTimeBasis          = pCEnrollmentParameterResponse.IsWeekTimeBasis,
                    WeekDefaultTime          = Convert.ToByte(pCEnrollmentParameterResponse.WeekDefaultTime),
                    IsWeekTimeBasisMandatory = pCEnrollmentParameterResponse.IsWeekTimeMandatory,

                    IsMonthTimeBasis          = pCEnrollmentParameterResponse.IsMonthTimeBasis,
                    MonthDefaultTime          = Convert.ToByte(pCEnrollmentParameterResponse.MonthDefaultTime),
                    IsMonthTimeBasisMandatory = pCEnrollmentParameterResponse.IsMonthTimeMandatory,

                    IsDayLossBasis          = pCEnrollmentParameterResponse.IsDayLossBasis,
                    DayDefaultLossValue     = pCEnrollmentParameterResponse.DayDefaultLoss,
                    IsDayLossBasisMandatory = pCEnrollmentParameterResponse.IsMonthLossMandatory,

                    IsWeekLossBasis          = pCEnrollmentParameterResponse.IsWeekLossBasis,
                    WeekDefaultLossValue     = pCEnrollmentParameterResponse.WeekDefaultLoss,
                    IsWeekLossBasisMandatory = pCEnrollmentParameterResponse.IsWeekLossMandatory,

                    IsDayWagerBasis          = pCEnrollmentParameterResponse.IsDayWagerBasis,
                    DayDefaultWager          = pCEnrollmentParameterResponse.DayDefaultWager,
                    IsDayWagerBasisMandatory = pCEnrollmentParameterResponse.IsDayWagerMandatory,

                    IsWeekWagerBasis          = pCEnrollmentParameterResponse.IsWeekWagerBasis,
                    WeekDefaultWager          = pCEnrollmentParameterResponse.WeekDefaultWager,
                    IsWeekWagerBasisMandatory = pCEnrollmentParameterResponse.IsWeekWagerMandatory,

                    IsMonthWagerBasis          = pCEnrollmentParameterResponse.IsMonthWagerBasis,
                    MonthDefaultWager          = pCEnrollmentParameterResponse.MonthDefaultWager,
                    IsMonthWagerBasisMandatory = pCEnrollmentParameterResponse.IsWeekWagerMandatory,

                    DisplayMessageLength = Convert.ToByte(pCEnrollmentParameterResponse.DisplayMessage.Length),
                    DisplayMessage       = pCEnrollmentParameterResponse.DisplayMessage,
                };

                EPIMsgProcessor.Current.SendCommand(installationNo, monTgt);
            }
            catch (Exception ex)
            {
                ExceptionManager.Publish(ex);
            }
        }
        public void SendPCEnrollmentResponse(PCEnrollmentParameterResponse pCEnrollmentParameterResponse, object requestId, int installationNo)
        {
            try
            {
                MonTgt_H2G_PC_EnrollmentParameterResponse monTgt = new MonTgt_H2G_PC_EnrollmentParameterResponse()
                {
                    Status = Convert.ToByte(pCEnrollmentParameterResponse.ErrorCode),
                    IsDayTimeBasis = pCEnrollmentParameterResponse.IsDayTimeBasis,
                    DayDefaultTime = TimeSpan.ParseExact(pCEnrollmentParameterResponse.DayDefaultTime, "HHMM", CultureInfo.InvariantCulture),
                    IsDayTimeBasisMandatory = pCEnrollmentParameterResponse.IsDayTimeMandatory,

                    IsWeekTimeBasis = pCEnrollmentParameterResponse.IsWeekTimeBasis,
                    WeekDefaultTime = Convert.ToByte(pCEnrollmentParameterResponse.WeekDefaultTime),
                    IsWeekTimeBasisMandatory = pCEnrollmentParameterResponse.IsWeekTimeMandatory,

                    IsMonthTimeBasis = pCEnrollmentParameterResponse.IsMonthTimeBasis,
                    MonthDefaultTime = Convert.ToByte(pCEnrollmentParameterResponse.MonthDefaultTime),
                    IsMonthTimeBasisMandatory = pCEnrollmentParameterResponse.IsMonthTimeMandatory,

                    IsDayLossBasis = pCEnrollmentParameterResponse.IsDayLossBasis,
                    DayDefaultLossValue = pCEnrollmentParameterResponse.DayDefaultLoss,
                    IsDayLossBasisMandatory = pCEnrollmentParameterResponse.IsMonthLossMandatory,

                    IsWeekLossBasis = pCEnrollmentParameterResponse.IsWeekLossBasis,
                    WeekDefaultLossValue = pCEnrollmentParameterResponse.WeekDefaultLoss,
                    IsWeekLossBasisMandatory = pCEnrollmentParameterResponse.IsWeekLossMandatory,

                    IsDayWagerBasis = pCEnrollmentParameterResponse.IsDayWagerBasis,
                    DayDefaultWager = pCEnrollmentParameterResponse.DayDefaultWager,
                    IsDayWagerBasisMandatory = pCEnrollmentParameterResponse.IsDayWagerMandatory,

                    IsWeekWagerBasis = pCEnrollmentParameterResponse.IsWeekWagerBasis,
                    WeekDefaultWager = pCEnrollmentParameterResponse.WeekDefaultWager,
                    IsWeekWagerBasisMandatory = pCEnrollmentParameterResponse.IsWeekWagerMandatory,

                    IsMonthWagerBasis = pCEnrollmentParameterResponse.IsMonthWagerBasis,
                    MonthDefaultWager = pCEnrollmentParameterResponse.MonthDefaultWager,
                    IsMonthWagerBasisMandatory = pCEnrollmentParameterResponse.IsWeekWagerMandatory,

                    DisplayMessageLength = Convert.ToByte(pCEnrollmentParameterResponse.DisplayMessage.Length),
                    DisplayMessage = pCEnrollmentParameterResponse.DisplayMessage,
                };

                EPIMsgProcessor.Current.SendCommand(installationNo, monTgt);
            }
            catch (Exception ex)
            {
                ExceptionManager.Publish(ex);
            }
        }