Esempio n. 1
0
 public bool PrintItems(List <PrintItem> listPrintItem, int qty)
 {
     for (int i = 0; i < listPrintItem.Count; i++)
     {
         //for (int j = 0; j < qty; j++)
         //{
         TfPrint.printBarCodeNew(listPrintItem[i].Item_Number, listPrintItem[i].Item_Name, listPrintItem[i].SupplierName, listPrintItem[i].Invoice, listPrintItem[i].Delivery_Date.ToString("yyyy/MM/dd"), listPrintItem[i].Delivery_Qty.ToString(), listPrintItem[i].SupplierCD, listPrintItem[i].Remark, listPrintItem[i].isRec, qty);
         //}
     }
     return(true);
 }
Esempio n. 2
0
 public bool PrintAnItem(PrintItem inItem, bool printOneCoppy)
 {
     if (printOneCoppy)
     {
         TfPrint.printBarCodeNew(inItem.Item_Number, inItem.Item_Name, inItem.SupplierName, inItem.Invoice, inItem.Delivery_Date.ToString("yyyy/MM/dd"), inItem.Delivery_Qty.ToString(), inItem.SupplierCD, inItem.Remark, inItem.isRec);
     }
     else
     {
         for (int j = 0; j < inItem.Label_Qty; j++)
         {
             TfPrint.printBarCodeNew(inItem.Item_Number, inItem.Item_Name, inItem.SupplierName, inItem.Invoice, inItem.Delivery_Date.ToString("yyyy/MM/dd"), inItem.Delivery_Qty.ToString(), inItem.SupplierCD, inItem.Remark, inItem.isRec);
         }
     }
     return(true);
 }
Esempio n. 3
0
 /// <summary>
 /// Print pc stock items
 /// </summary>
 /// <param name="listPrintItem"></param>
 /// <param name="printOneCoppy">true: print 1 label</param>
 /// <returns></returns>
 public bool PrintItems(List <PrintItem> listPrintItem, bool printOneCoppy)
 {
     for (int i = 0; i < listPrintItem.Count; i++)
     {
         if (printOneCoppy)
         {
             TfPrint.printBarCodeNew(listPrintItem[i].Item_Number, listPrintItem[i].Item_Name, listPrintItem[i].SupplierName, listPrintItem[i].Invoice, listPrintItem[i].Delivery_Date.ToString("yyyy/MM/dd"), listPrintItem[i].Delivery_Qty.ToString(), listPrintItem[i].SupplierCD, listPrintItem[i].Remark, listPrintItem[i].isRec);
         }
         else
         {
             for (int j = 0; j < listPrintItem[i].Label_Qty; j++)
             {
                 TfPrint.printBarCodeNew(listPrintItem[i].Item_Number, listPrintItem[i].Item_Name, listPrintItem[i].SupplierName, listPrintItem[i].Invoice, listPrintItem[i].Delivery_Date.ToString("yyyy/MM/dd"), listPrintItem[i].Delivery_Qty.ToString(), listPrintItem[i].SupplierCD, listPrintItem[i].Remark, listPrintItem[i].isRec);
             }
         }
     }
     return(true);
 }