public PrinterThuChi(int thuchiID, Data.BOMayIn mayin, Data.BOXuliMayIn xuli) { mThuChiID = thuchiID; mBOMayIn = mayin; mBOXuliMayIn = xuli; mPOSPrinter = new POSPrinter(); mPOSPrinter.POSSetPrinterName(mBOMayIn.TenMayIn); mPOSPrinter.PrintPage += new System.Drawing.Printing.PrintPageEventHandler(mPOSPrinter_PrintPage); mPrinterFont = new PrinterFont(mBOXuliMayIn); }
public PrinterReportDaily(DateTime dtFrom,DateTime dtTo,Data.BOMayIn mayin,Data.BOXuliMayIn xuli) { mDateTimeFrom = dtFrom; mDateTimeTo = dtTo; mBOMayIn = mayin; mBOXuliMayIn = xuli; mPOSPrinter = new POSPrinter(); mPOSPrinter.POSSetPrinterName(mBOMayIn.TenMayIn); mPOSPrinter.PrintPage += new System.Drawing.Printing.PrintPageEventHandler(mPOSPrinter_PrintPage); mPrinterFont = new PrinterFont(mBOXuliMayIn); }
public PrinterReportDaily(DateTime dtFrom, DateTime dtTo, Data.BOMayIn mayin, Data.BOXuliMayIn xuli) { mDateTimeFrom = dtFrom; mDateTimeTo = dtTo; mBOMayIn = mayin; mBOXuliMayIn = xuli; mPOSPrinter = new POSPrinter(); mPOSPrinter.POSSetPrinterName(mBOMayIn.TenMayIn); mPOSPrinter.PrintPage += new System.Drawing.Printing.PrintPageEventHandler(mPOSPrinter_PrintPage); mPrinterFont = new PrinterFont(mBOXuliMayIn); }
public PrinterSendOrder(int lichsu,Data.BOMayIn mayin,Data.BOXuliMayIn xuli) { mBOMayIn = mayin; mLichSuBanHangID = lichsu; mXuLiMayIn = xuli; mFontTitle = new System.Drawing.Font(FONT_NAME, (float)mXuLiMayIn._CAIDATMAYINBEP.TitleTextFontSize, (System.Drawing.FontStyle)mXuLiMayIn._CAIDATMAYINBEP.TitleTextFontStyle); mFontInfo = new System.Drawing.Font(FONT_NAME, (float)mXuLiMayIn._CAIDATMAYINBEP.InfoTextFontSize, (System.Drawing.FontStyle)mXuLiMayIn._CAIDATMAYINBEP.InfoTextFontStyle); mFontItem = new System.Drawing.Font(FONT_NAME, (float)mXuLiMayIn._CAIDATMAYINBEP.ItemTextFontSize, (System.Drawing.FontStyle)mXuLiMayIn._CAIDATMAYINBEP.ItemTextFontStyle); mFontFoot = new System.Drawing.Font(FONT_NAME, (float)mXuLiMayIn._CAIDATMAYINBEP.SumTextFontSize, (System.Drawing.FontStyle)mXuLiMayIn._CAIDATMAYINBEP.SumTextFontStyle); mColorBlack = System.Drawing.Color.Black; mPOSPrinter = new POSPrinter(); mPOSPrinter.POSSetPrinterName(mBOMayIn.TenMayIn); mPOSPrinter.PrintPage += new System.Drawing.Printing.PrintPageEventHandler(PrinterData_PrintPage); }
public PrinterSendOrder(int lichsu, Data.BOMayIn mayin, Data.BOXuliMayIn xuli) { mBOMayIn = mayin; mLichSuBanHangID = lichsu; mXuLiMayIn = xuli; mFontTitle = new System.Drawing.Font(FONT_NAME, (float)mXuLiMayIn._CAIDATMAYINBEP.TitleTextFontSize, (System.Drawing.FontStyle)mXuLiMayIn._CAIDATMAYINBEP.TitleTextFontStyle); mFontInfo = new System.Drawing.Font(FONT_NAME, (float)mXuLiMayIn._CAIDATMAYINBEP.InfoTextFontSize, (System.Drawing.FontStyle)mXuLiMayIn._CAIDATMAYINBEP.InfoTextFontStyle); mFontItem = new System.Drawing.Font(FONT_NAME, (float)mXuLiMayIn._CAIDATMAYINBEP.ItemTextFontSize, (System.Drawing.FontStyle)mXuLiMayIn._CAIDATMAYINBEP.ItemTextFontStyle); mFontFoot = new System.Drawing.Font(FONT_NAME, (float)mXuLiMayIn._CAIDATMAYINBEP.SumTextFontSize, (System.Drawing.FontStyle)mXuLiMayIn._CAIDATMAYINBEP.SumTextFontStyle); mColorBlack = System.Drawing.Color.Black; mPOSPrinter = new POSPrinter(); mPOSPrinter.POSSetPrinterName(mBOMayIn.TenMayIn); mPOSPrinter.PrintPage += new System.Drawing.Printing.PrintPageEventHandler(PrinterData_PrintPage); }
public PrinterBillOrder(PrinterBillOrderType type, int banHangID, Data.BOMayIn mayin, Data.BOXuliMayIn xuli) { mBOMayIn = mayin; mBOXuliMayIn = xuli; mBanHangID = banHangID; mPrinterBillOrderType = type; mPrinterFont = new PrinterFont(mBOXuliMayIn); mColorBlack = System.Drawing.Color.Black; mPOSPrinter = new POSPrinter(); mPOSPrinter.POSSetPrinterName(mBOMayIn.TenMayIn); mPOSPrinter.PrintPage += new System.Drawing.Printing.PrintPageEventHandler(PrinterData_PrintPage); }
public PrinterFont(Data.BOXuliMayIn xuli) { mBOXuliMayIn = xuli; FontHeader1 = new System.Drawing.Font(FONT_NAME, (float)mBOXuliMayIn._CAIDATMAYINHOADON.HeaderTextFontSize1, (System.Drawing.FontStyle)mBOXuliMayIn._CAIDATMAYINHOADON.HeaderTextFontStyle1); FontHeader2 = new System.Drawing.Font(FONT_NAME, (float)mBOXuliMayIn._CAIDATMAYINHOADON.HeaderTextFontSize2, (System.Drawing.FontStyle)mBOXuliMayIn._CAIDATMAYINHOADON.HeaderTextFontStyle2); FontHeader3 = new System.Drawing.Font(FONT_NAME, (float)mBOXuliMayIn._CAIDATMAYINHOADON.HeaderTextFontSize3, (System.Drawing.FontStyle)mBOXuliMayIn._CAIDATMAYINHOADON.HeaderTextFontStyle3); FontHeader4 = new System.Drawing.Font(FONT_NAME, (float)mBOXuliMayIn._CAIDATMAYINHOADON.HeaderTextFontSize4, (System.Drawing.FontStyle)mBOXuliMayIn._CAIDATMAYINHOADON.HeaderTextFontStyle4); FontTitle = new System.Drawing.Font(FONT_NAME, (float)mBOXuliMayIn._CAIDATMAYINHOADON.TitleTextFontSize, (System.Drawing.FontStyle)mBOXuliMayIn._CAIDATMAYINHOADON.TitleTextFontStyle); FontInfo = new System.Drawing.Font(FONT_NAME, (float)mBOXuliMayIn._CAIDATMAYINHOADON.InfoTextFontSize, (System.Drawing.FontStyle)mBOXuliMayIn._CAIDATMAYINHOADON.InfoTextFontStyle); FontItemHeader = new System.Drawing.Font(FONT_NAME, (float)mBOXuliMayIn._CAIDATMAYINHOADON.ItemFontSize, System.Drawing.FontStyle.Bold); FontItemBody = new System.Drawing.Font(FONT_NAME, (float)mBOXuliMayIn._CAIDATMAYINHOADON.ItemFontSize, System.Drawing.FontStyle.Regular); FontItemBodyNote = new System.Drawing.Font(FONT_NAME, (float)mBOXuliMayIn._CAIDATMAYINHOADON.ItemFontSize, System.Drawing.FontStyle.Italic); FontSum = new System.Drawing.Font(FONT_NAME, (float)mBOXuliMayIn._CAIDATMAYINHOADON.SumanyFontSize, (System.Drawing.FontStyle)mBOXuliMayIn._CAIDATMAYINHOADON.SumanyFontStyle); FontBig = new System.Drawing.Font(FONT_NAME, (float)mBOXuliMayIn._CAIDATMAYINHOADON.SumanyFontSizeBig, (System.Drawing.FontStyle)mBOXuliMayIn._CAIDATMAYINHOADON.SumanyFontStyleBig); FontFooter1 = new System.Drawing.Font(FONT_NAME, (float)mBOXuliMayIn._CAIDATMAYINHOADON.FooterTextFontSize1, (System.Drawing.FontStyle)mBOXuliMayIn._CAIDATMAYINHOADON.FooterTextFontStyle1); FontFooter2 = new System.Drawing.Font(FONT_NAME, (float)mBOXuliMayIn._CAIDATMAYINHOADON.FooterTextFontSize2, (System.Drawing.FontStyle)mBOXuliMayIn._CAIDATMAYINHOADON.FooterTextFontStyle2); FontFooter3 = new System.Drawing.Font(FONT_NAME, (float)mBOXuliMayIn._CAIDATMAYINHOADON.FooterTextFontSize3, (System.Drawing.FontStyle)mBOXuliMayIn._CAIDATMAYINHOADON.FooterTextFontStyle3); FontFooter4 = new System.Drawing.Font(FONT_NAME, (float)mBOXuliMayIn._CAIDATMAYINHOADON.FooterTextFontSize4, (System.Drawing.FontStyle)mBOXuliMayIn._CAIDATMAYINHOADON.FooterTextFontStyle4); }
public ProcessPrinter(Data.Transit tran) { mTransit = tran; mXuliMayIn = new Data.BOXuliMayIn(mTransit); }