Exemple #1
0
        private void show_Sales5()
        {
            ACMSLogic.User oUser = new User();

            ReportPanel.Controls.Clear();
            rptFitnessDailyBranch = new ACMS.ACMSManager.Reports.RPFitnessDailyBranchSales();
            rptFitnessDailyBranch.TopLevel = false;
            rptFitnessDailyBranch.Dock = DockStyle.Fill;
            rptFitnessDailyBranch.Parent = ReportPanel;
            rptFitnessDailyBranch.SetEmployeeRecord(employee);
            rptFitnessDailyBranch.SetTerminalUser(terminalUser);
            rptFitnessDailyBranch.initData(oUser);
            rptFitnessDailyBranch.Show();
            ReportPanel.Refresh();
        }
Exemple #2
0
        private void show_Sales5()
        {
            if (employee.CanAccess("AM_VIEW_FITNESS_DAILY_BRANCH_SALES", terminalUser.Branch.Id))
            {
                try
                {
                    ACMSLogic.User oUser = new User();

                    ReportPanel.Controls.Clear();
                    rptFitnessDailyBranch = new ACMS.ACMSManager.Reports.RPFitnessDailyBranchSales();
                    rptFitnessDailyBranch.TopLevel = false;
                    rptFitnessDailyBranch.Dock = DockStyle.Fill;
                    rptFitnessDailyBranch.Parent = ReportPanel;
                    rptFitnessDailyBranch.SetEmployeeRecord(employee);
                    rptFitnessDailyBranch.SetTerminalUser(terminalUser);
                    rptFitnessDailyBranch.initData(oUser);
                    rptFitnessDailyBranch.Show();
                    ReportPanel.Refresh();
                }
                catch (Exception ex)
                {
                    MessageBox.Show(ex.Message);
                }
            }
             else
             {
                 MessageBox.Show("You don't have sufficient right to view all income listing report.");
             }
        }