Example #1
0
 private void show_Sales4()
 {
     ACMSLogic.User oUser = new User();
     ReportPanel.Controls.Clear();
     rptSpaDailyBranch = new ACMS.ACMSManager.Reports.RPSpaDailyBranchSales();
     rptSpaDailyBranch.TopLevel = false;
     rptSpaDailyBranch.Dock = DockStyle.Fill;
     rptSpaDailyBranch.Parent = ReportPanel;
     rptSpaDailyBranch.SetEmployeeRecord(employee);
     rptSpaDailyBranch.SetTerminalUser(terminalUser);
     rptSpaDailyBranch.initData(oUser);
     rptSpaDailyBranch.Show();
     ReportPanel.Refresh();
 }
Example #2
0
 private void show_Sales4()
 {
     if (employee.CanAccess("AM_VIEW_SPA_DAILY_BRANCH_SALES", terminalUser.Branch.Id))
     {
         try
         {
             ACMSLogic.User oUser = new User();
             ReportPanel.Controls.Clear();
             rptSpaDailyBranch = new ACMS.ACMSManager.Reports.RPSpaDailyBranchSales();
             rptSpaDailyBranch.TopLevel = false;
             rptSpaDailyBranch.Dock = DockStyle.Fill;
             rptSpaDailyBranch.Parent = ReportPanel;
             rptSpaDailyBranch.SetEmployeeRecord(employee);
             rptSpaDailyBranch.SetTerminalUser(terminalUser);
             rptSpaDailyBranch.initData(oUser);
             rptSpaDailyBranch.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.");
     }
 }