|
|
|
|
|
|
404
|
List<EventLog> LogEvents = new List<EventLog>();
|
404
|
List<EventLog> LogEvents = new List<EventLog>();
|
|
405
|
|
405
|
|
|
406
|
IList<PrintVoucher> VoucherRow = new List<PrintVoucher>();
|
406
|
IList<PrintVoucher> VoucherRow = new List<PrintVoucher>();
|
|
407
|
- using (var Command = db.CreateCommand("SELECT DISTINCT v.Id,v.SequenceNumber,v.Serial,v.EncryptedPIN,v.BatchId,b.ProductDescription,l.VoucherId From Voucher v LEFT JOIN Batch b on v.BatchId = b.Id LEFT JOIN Logs l ON v.Id = l.VoucherId AND l.EventType = @eventtype WHERE v.BatchId=@batch_id AND v.SequenceNumber BETWEEN @seqstartno AND @seqendno ORDER BY v.SequenceNumber",
|
|
|
|
|
|
407
|
+ using (var Command = db.CreateCommand("SELECT DISTINCT v.Id,v.SequenceNumber,v.Serial,v.EncryptedPIN,v.BatchId,b.ProductDescription From Voucher v LEFT JOIN Batch b on v.BatchId = b.Id WHERE v.BatchId=@batch_id AND v.SequenceNumber BETWEEN @seqstartno AND @seqendno ORDER BY v.BatchId, v.SequenceNumber",
|
|
408
|
new SQLiteParameter("@batch_id", BatchId),
|
408
|
new SQLiteParameter("@batch_id", BatchId),
|
|
409
|
- new SQLiteParameter("@eventtype", VendorEvent.VendorEventType.PrintVoucher),
|
|
|
|
410
|
new SQLiteParameter("@seqstartno", StartSeqNo),
|
409
|
new SQLiteParameter("@seqstartno", StartSeqNo),
|
|
411
|
new SQLiteParameter("@seqendno", EndSeqNo)))
|
410
|
new SQLiteParameter("@seqendno", EndSeqNo)))
|
|
412
|
{
|
411
|
{
|