예제 #1
0
 public UCMayIn(Data.Transit transit)
 {
     InitializeComponent();
     mTransit = transit;
     BOMayIn = new Data.BOMayIn(mTransit);
     PhanQuyen();
 }
예제 #2
0
        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 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);
        }