Exemplo n.º 1
0
        private void btnDrawerOpen_Click(object sender, EventArgs e)
        {
            Int64 startTime = 0;
            Int64 endTime = 0;

            CPrintMethods tempPrintMethods = new CPrintMethods();
            CCommonConstants oConstant = ConfigManager.GetConfig<CCommonConstants>();

            //Set Start of the day
            DateTime dtStart = new DateTime(dtpOrders.Value.Year, dtpOrders.Value.Month, dtpOrders.Value.Day, 0, 0, 0);

            //Set End of the day
            DateTime dtEnd = new DateTime(dtpOrders.Value.Year, dtpOrders.Value.Month, dtpOrders.Value.Day, 23, 59, 59);
            startTime = dtStart.Ticks;
            endTime = dtEnd.Ticks;

            CPaymentManager objPaymentManager = new CPaymentManager();
            CResult objResult = null;
            objResult = objPaymentManager.GetPaymentLogDetails(startTime, endTime);
            ViewDrawerLogForm objViewLog = ViewDrawerLogForm.CreateInstance();
            objViewLog.objResult = objResult;
            objViewLog.Show();
            CFormManager.Forms.Push(this);
            this.Hide();
        }