public createBulkVoucherResponse createBulkVoucher(createBulkVoucherRequest createBulkVoucher)
        {
            if (!CheckCageEnabled())
            {
                return(null);
            }
            this.SetUser(createBulkVoucher.createBulkVoucher.arg0.employeeId);
            createBulkVoucherResponse oResponse = new createBulkVoucherResponse();
            voucherDTO ticketFormDTO            = createBulkVoucher.createBulkVoucher.arg0;
            int        noOfTickets = createBulkVoucher.createBulkVoucher.arg1;
            long       lValue      = 0;

            try
            {
                lValue = ticketFormDTO.amount;
                oResponse.createBulkVoucherResponse1 = new voucherDTO[noOfTickets];
                for (int i = 0; i < noOfTickets; i++)
                {
                    issueTicketEntity.lnglValue = lValue;
                    issueTicketEntity.Type      = "1";
                    issueTicketEntity.lnglValue = ticketFormDTO.amount;
                    issueTicketEntity.dblValue  = ticketFormDTO.amount;
                    issueTicketEntity.Date      = DateTime.Today;
                    BMC.Transport.voucherDTO oVoucherDTCopy = ticketFormDTO.Clone();
                    if (!string.IsNullOrEmpty(Settings.IssueTicketMaxValue))
                    {
                        long lSettingValue = Convert.ToInt64(Settings.IssueTicketMaxValue.GetSingleFromString() * 100);
                        if (lValue > lSettingValue || (lValue < 0))
                        {
                            oVoucherDTCopy.errorCodeId = -1001;
                        }
                        else
                        {
                            oVoucherDTCopy = objCashDeskOperator.IssueTicketToCage(issueTicketEntity, oVoucherDTCopy);
                        }
                    }
                    else
                    {
                        oVoucherDTCopy = objCashDeskOperator.IssueTicketToCage(issueTicketEntity, oVoucherDTCopy);
                    }
                    oResponse.createBulkVoucherResponse1[i] = oVoucherDTCopy;
                }
            }
            catch (Exception ex)
            {
                ExceptionManager.Publish(ex);
            }
            return(oResponse);
        }
        public createBulkVoucherResponse createBulkVoucher(createBulkVoucherRequest createBulkVoucher)
        {
            if (!CheckCageEnabled())
                return null;
            this.SetUser(createBulkVoucher.createBulkVoucher.arg0.employeeId);
            createBulkVoucherResponse oResponse = new createBulkVoucherResponse();
            voucherDTO ticketFormDTO = createBulkVoucher.createBulkVoucher.arg0;
            int noOfTickets = createBulkVoucher.createBulkVoucher.arg1;
            long lValue = 0;

            try
            {
                lValue = ticketFormDTO.amount;
                oResponse.createBulkVoucherResponse1 = new voucherDTO[noOfTickets];
                for (int i = 0; i < noOfTickets; i++)
                {
                    issueTicketEntity.lnglValue = lValue;
                    issueTicketEntity.Type = "1";
                    issueTicketEntity.lnglValue = ticketFormDTO.amount;
                    issueTicketEntity.dblValue = ticketFormDTO.amount;
                    issueTicketEntity.Date = DateTime.Today;
                    BMC.Transport.voucherDTO oVoucherDTCopy = ticketFormDTO.Clone();
                    if (!string.IsNullOrEmpty(Settings.IssueTicketMaxValue))
                    {
                        long lSettingValue = Convert.ToInt64(Settings.IssueTicketMaxValue.GetSingleFromString() * 100);
                        if (lValue > lSettingValue || (lValue < 0))
                        {
                            oVoucherDTCopy.errorCodeId = -1001;
                        }
                        else
                        {
                            oVoucherDTCopy = objCashDeskOperator.IssueTicketToCage(issueTicketEntity, oVoucherDTCopy);
                        }
                    }
                    else
                    {
                        oVoucherDTCopy = objCashDeskOperator.IssueTicketToCage(issueTicketEntity, oVoucherDTCopy);
                    }
                    oResponse.createBulkVoucherResponse1[i] = oVoucherDTCopy;

                }

            }
            catch (Exception ex)
            {
                ExceptionManager.Publish(ex);
            }
            return oResponse;
        }