예제 #1
0
파일: Receipt.cs 프로젝트: wichomr/zeus-pos
 public Receipt(Pos posData, Transaction transaction, SalesDataStruct salesData)
 {
     _receiptType = salesData.ReceiptType;
     Pos          = posData;
     Transaction  = transaction;
     _products    = salesData.Products;
     SalesData    = salesData;
 }
예제 #2
0
        internal void Execute_DocumentPreviewCommand(object parameter)
        {
            ////Create new document
            //string fileName = @"G:\wibsar-pos-solution\ticket.oxps";
            //var doc = new System.Windows.Xps.Packaging.XpsDocument(fileName, FileAccess.Read);
            //FixedDocumentSequence fds = doc.GetFixedDocumentSequence();
            //Document = fds;
            //Generate receipt
            var transaction = new Transaction(null);
            var salesData   = new SalesDataStruct();


            var receipt = new Receipt(MainWindowViewModel.PosInstance, transaction, salesData);

            //save receipt

            //open receipt
        }