Ejemplo n.º 1
0
        private void alertControl1_AlertClick(object sender, AlertClickEventArgs e)
        {
            //Process Alert Window click
            var msg = e.Info.Tag as Message;

            XtraMessageBox.Show(msg.Text, msg.Caption);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Çıkan alarm a tıklandığında ilgili ekrana gönderir.
        /// </summary>
        private void alertControl_AlertClick(object sender, AlertClickEventArgs e)
        {
            // : Tıklanan alarm
            var caption = e.Info.Caption;

            if (caption.Contains("Gelen"))
            {
                var child = new GelenEvraklar(true)
                {
                    MdiParent = this
                };
                child.Show();
            }
            else if (caption.Contains("Giden"))
            {
                var child = new GidenEvraklar(true)
                {
                    MdiParent = this
                };
                child.Show();
            }
            else if (caption.Contains("Daimi Arama"))
            {
                var child = new OlayListesi(true)
                {
                    MdiParent = this
                };
                child.Show();
            }
        }
Ejemplo n.º 3
0
 private void AlertControl_AlertClick(object sender,
                                      AlertClickEventArgs e)
 {
     if(!string.IsNullOrEmpty(fileName) && openFile)
     {
         Process.Start(fileName);
     }
 }
Ejemplo n.º 4
0
        private void _alertControl_AlertClick(object sender,
                                              AlertClickEventArgs e)
        {
            _logger.Info(
                $"Start _alertControl_AlertClick. Alert Text - {e.AlertForm.Text}. State - {_progressState}");

            GetVisaRegistration(sender).StartWork(null);
            e.AlertForm.Close();
            _logger.Trace(
                $"End _alertControl_AlertClick. e.AlertForm.IsAccessible = {e.AlertForm.IsAccessible}.");
        }
Ejemplo n.º 5
0
 private void _alertControl_AlertClick(object sender,
                                       AlertClickEventArgs e)
 {
     _logger.Info(
         $"Start _alertControl_AlertClick. Alert Text - {e.AlertForm.Text}. State - {_progressState}");
     e.AlertForm.Close();
     GetVisaRegistration(sender).StartWork(null);
     //e.AlertForm.Close();
     //todo this do not close Alert in time,
     //but after second fillcaptcha is shown/ So you can't press on it
     //need test
     _logger.Trace(
         $"End _alertControl_AlertClick. e.AlertForm.IsAccessible = {e.AlertForm.IsAccessible}.");
 }
Ejemplo n.º 6
0
        private void alertControl2_AlertClick(object sender, AlertClickEventArgs e)
        {
            switch (m_iCongViecTH)
            {
            case 0:
                break;

            case 1:
                var ID_CongViec = m_iID_CongViecDH;
                var frm         = new frmCongViec(ID_CongViec, true);
                frm.ShowDialog();
                break;

            default:
                break;
            }
        }
Ejemplo n.º 7
0
        void alertControl1_AlertClick(object sender, AlertClickEventArgs e)
        {
            var expireMaintains = (List <EqptMaintain>)e.Info.Tag;
            var layerEqpts      = new Dictionary <string, List <int> >();

            foreach (var eqptMaintain in expireMaintains)
            {
                if (layerEqpts.ContainsKey(eqptMaintain.LayerName))
                {
                    layerEqpts[eqptMaintain.LayerName].Add(eqptMaintain.SmId);
                }
                else
                {
                    layerEqpts.Add(eqptMaintain.LayerName, new List <int>()
                    {
                        eqptMaintain.SmId
                    });
                }
            }

            if (layerEqpts.Count < 0)
            {
                return;
            }
            this.ShowQueryResult();
            foreach (var layerEqpt in layerEqpts)
            {
                var layerinfo = LayerService.INSTANCE.GetStationLayerInfos().Any(l => l.LayerName == layerEqpt.Key) ? LayerService.INSTANCE.GetStationLayerInfos().First(l => l.LayerName == layerEqpt.Key) : LayerService.INSTANCE.GetSiteLayerInfos().First(l => l.LayerName == layerEqpt.Key);

                if (layerinfo != null)
                {
                    var dt = WorkspaceService.Instance.GetDataset(ConfigHelper.GetConfig("StationDatasourceName"), layerEqpt.Key) as DatasetVector;
                    if (dt != null)
                    {
                        var rs        = dt.Query(layerEqpt.Value.ToArray(), CursorType.Static);
                        var datatable = GISUtility.RecordsetToDataTable(rs, layerinfo);
                        rs.Close();
                        rs.Dispose();
                        dt.Close();

                        this.CreateQueryResultGrid(datatable, layerinfo);
                    }
                }
            }
        }
Ejemplo n.º 8
0
        private void alertControl1_AlertClick(object sender, AlertClickEventArgs e)
        {
            switch (m_iCongViecTH)
            {
            case 0:
                break;

            case 1:
                var ID_CongViec = m_iID_CongViecTH;
                var frm         = new frmCongViec(ID_CongViec, true);
                frm.ShowDialog();
                break;

            default:
                //var frmDsCongViec = new frmDS_CongViec(GlobalVariables.GetID_NhanSu(), 1);
                //tabForms.OpenForm(frmDsCongViec, "Danh sách công việc");
                break;
            }
        }
Ejemplo n.º 9
0
 private void alertControl1_AlertClick(object sender, AlertClickEventArgs e)
 {
     timer2.Start();
     if (SplashScreenManager.Default != null && SplashScreenManager.Default.IsSplashFormVisible)
     {
         SplashScreenManager.CloseForm();
     }
     SplashScreenManager.ShowForm(typeof(WaitForm1));
     if (formnotif == null)
     {
         formnotif = new Notification();
     }
     else
     {
         wait = 1;
     }
     formnotif.MdiParent = Form1.ActiveForm;
     formnotif.Show();
     formnotif.BringToFront();
 }
Ejemplo n.º 10
0
        /// <summary>
        /// 查看消息的具体明细
        /// </summary>
        private void alertControlMessage_AlertClick(object sender, AlertClickEventArgs e)
        {
            try
            {
                switch (DataTypeConvert.GetString(e.Info.Tag))
                {
                case "EnableWorkFlowMessage":
                    ViewHandler.ShowRightWindow("FrmWorkFlowsUserQuery");
                    e.AlertForm.Close();
                    break;

                case "PrListDistributionMessage":
                    ViewHandler.ShowRightWindow("FrmPrReqListDistributionQuery");
                    e.AlertForm.Close();
                    break;
                }
            }
            catch (Exception ex)
            {
                ExceptionHandler.HandleException(this.Text + "--查看消息的具体明细错误。", ex);
            }
        }
Ejemplo n.º 11
0
 private void alertControl1_AlertClick(object sender, AlertClickEventArgs e)
 {
 }
        private void alrtPedidos_AlertClick(object sender, AlertClickEventArgs e)
        {
            var url = Properties.Settings.Default.UrlPedidos;

            Process.Start(url);
        }
Ejemplo n.º 13
0
 void alertControl_AlertClick(object sender, AlertClickEventArgs e)
 {
     CheckUpdate();
 }
Ejemplo n.º 14
0
        void alertControl1_AlertClick(object sender, AlertClickEventArgs e)
        {
            var expireMaintains = (List<EqptMaintain>) e.Info.Tag;
            var layerEqpts = new Dictionary<string, List<int>>();

            foreach (var eqptMaintain in expireMaintains)
            {
                if (layerEqpts.ContainsKey(eqptMaintain.LayerName))
                {
                    layerEqpts[eqptMaintain.LayerName].Add(eqptMaintain.SmId);
                }
                else
                {
                    layerEqpts.Add(eqptMaintain.LayerName, new List<int>() { eqptMaintain.SmId });
                }
            }

            if (layerEqpts.Count < 0) return;
            this.ShowQueryResult();
            foreach (var layerEqpt in layerEqpts)
            {
                var layerinfo = LayerService.INSTANCE.GetStationLayerInfos().Any(l => l.LayerName == layerEqpt.Key) ? LayerService.INSTANCE.GetStationLayerInfos().First(l => l.LayerName == layerEqpt.Key) : LayerService.INSTANCE.GetSiteLayerInfos().First(l => l.LayerName == layerEqpt.Key);

                if (layerinfo != null)
                {
                    var dt = WorkspaceService.Instance.GetDataset(ConfigHelper.GetConfig("StationDatasourceName"), layerEqpt.Key) as DatasetVector;
                    if (dt != null)
                    {
                        var rs = dt.Query(layerEqpt.Value.ToArray(), CursorType.Static);
                        var datatable = GISUtility.RecordsetToDataTable(rs, layerinfo);
                        rs.Close();
                        rs.Dispose();
                        dt.Close();

                        this.CreateQueryResultGrid(datatable, layerinfo);
                    }
                }
            }
        }
Ejemplo n.º 15
0
        private static void mAlertControl_AlertClick(object sender, AlertClickEventArgs e)
        {
            var alertInfo = (CustomAlertInfo)e.Info;

            alertInfo.ClickAction?.Invoke();
        }
 private void AlertControlCore_AlertClick(object sender, AlertClickEventArgs e)
 {
     System.Diagnostics.Process.Start(ProcessedfileNameAddress);
 }