Exemple #1
0
        }//-------------------------

        //###########################################END BUTTON btnShowResult EVENTS#####################################################

        //###########################################BUTTON btnPrint EVENTS#####################################################
        //event is raised when the control is clicked
        private void btnPrintClick(object sender, EventArgs e)
        {
            String dateStart, dateEnd = String.Empty;

            dateStart = this.dtpStart.Value.ToShortDateString() + " 12:00:00 AM";
            dateEnd   = this.dtpEnd.Value.ToShortDateString() + " 11:59:59 PM";

            if (_isForDetails)
            {
                this.Cursor = Cursors.WaitCursor;

                _cashieringManager.PrintCashReceiptDetailReport(_userInfo, dateStart, dateEnd, this.chkIsConsolidated.Checked);

                this.Cursor = Cursors.Arrow;
            }
            else if (_isForSummarized)
            {
                this.Cursor = Cursors.WaitCursor;

                _cashieringManager.PrintCashReceiptSummarizedReport(_userInfo, dateStart, dateEnd, this.chkIsConsolidated.Checked);

                this.Cursor = Cursors.Arrow;
            }
        }//------------------------