Exemplo n.º 1
0
        private void OnDalshboardItemClick(object sender, EventArgs e)
        {
            DXMenuItem item = (DXMenuItem)sender;
            int        i    = int.Parse(item.Tag.ToString());

            AlertUtil.StartWait();
            XDashBoardForm dashboardFrom = new XDashBoardForm(cfgData.dashboards[i - 1]);

            dashboardFrom.Show();
            AlertUtil.StopWait();
        }
Exemplo n.º 2
0
        public String executeCmd(XCommand cmd)
        {
            this.executeState = "Executing...";
            String ans = "OK";

            AlertUtil.StartWait();
            Notify();
            if (cmd != null)
            {
                CommandTask task = new CommandTask(cmd, user);
                ans = task.doTask();
            }
            this.executeState = "OK";
            Notify();
            AlertUtil.StopWait();
            return(ans);
        }
Exemplo n.º 3
0
 //文档加载事件,用于初始化
 public void spreadsheetMain_DocumentLoaded(object sender, EventArgs e)
 {
     AlertUtil.StartWait();
     init();
     setdashboardButton();
     AlertUtil.StopWait();
     if ((int)app.statu > 0)
     {
         String right = GetUserPrivilege();
         if (right == null || right == "")
         {
             MessageBox.Show("你没有访问该应用初始Sheet的权利");
             spreadsheetMain.Document.CreateNewDocument();
         }
         else
         {
             executer.executeCmd(currentSheet, SysEvent.Sheet_Init);
         }
     }
     spreadsheetMain.Document.Calculate();
 }