Exemple #1
0
 //-------------------------------------------
 // выбор в дереве разделов настроек
 private void radTreeView1_SelectedNodeChanged(object sender, RadTreeViewEventArgs e)
 {
     switch (radTreeView1.SelectedNode.Text)
     {
         case "Настройки":
             break;
         case "Основные":
             break;
         case "Каталоги":
             Main = new PrefMainFolders();
             radPanel1.Controls.Clear();
             radPanel1.Controls.Add(Main);
             break;
         case "Вид":
             Main = new PrefMainView();
             radPanel1.Controls.Clear();
             radPanel1.Controls.Add(Main);
             break;
         case "БД":
             Main = new PrefDB();
             radPanel1.Controls.Clear();
             radPanel1.Controls.Add(Main);
             break;
     }
 }
Exemple #2
0
 private void radTreeView1_SelectedNodeChanged(object sender, RadTreeViewEventArgs e)
 {
     for (int w = 0; w < radTreeView1.SelectedNode.Nodes.Count; w++)
     {
         radTreeView1.SelectedNode.Nodes[w].Selected = true;
     }
 }
        /// <summary>
        /// Handler for matrix code ports selected node changed event.
        /// </summary>
        /// <param name="sender">The sender.</param>
        /// <param name="e">The <see cref="Telerik.WinControls.UI.RadTreeViewEventArgs"/> instance containing the event data.</param>
        private void TvMatrixCodePortsSelectedNodeChanged(object sender, RadTreeViewEventArgs e)
        {
            // clear real value (read from scanner) textbox contents
            this.txtScanPublicKeyReal.Text = string.Empty;
            this.txtScanServerIdReal.Text = string.Empty;
            this.txtScanSerialNoReal.Text = string.Empty;
            this.txtScanEigentumsnrReal.Text = string.Empty;
            this.txtScanTypCodeReal.Text = string.Empty;

            // get the port instance

            if (e.Node == null)
            {
                return;
            }

            this.activePort = this.PortList.Find(p => p.PortName == e.Node.Name);
            if (this.activePort == null)
            {
                return;
            }

            this.lblActiveScanPort.Text = string.Format("{0}", this.activePort.TestStationId);

            // set target value textbox contents to parameterized values
            var param = this.activePort.ParameterList.Find(prt => prt.Id == ParameterId.PublicKey);
            this.txtScanPublicKeyTarget.Text = param.RealValue == null ? "???" : param.RealValue.Replace("-", string.Empty);

            param = this.activePort.ParameterList.Find(prt => prt.Id == ParameterId.ServerId);
            this.txtScanServerIdTarget.Text = param.RealValue == null ? "???" : param.RealValue.Replace("-", string.Empty);

            param = this.activePort.ParameterList.Find(prt => prt.Id == ParameterId.ManufacturerSerialNumber);
            this.txtScanSerialNoTarget.Text = param.RealValue ?? "???";

            param = this.activePort.ParameterList.Find(prt => prt.Id == ParameterId.Eigentumsnummer);
            this.txtScanEigentumsnrTarget.Text = param.TargetValue ?? "???";

            param = this.activePort.ParameterList.Find(prt => prt.Id == ParameterId.Typ);
            this.txtScanTypCodeTarget.Text = param.TargetValue ?? "???";
        }
 /// <summary>
 /// Handler for ports selected node changed event.
 /// </summary>
 /// <param name="sender">The sender.</param>
 /// <param name="e">The <see cref="Telerik.WinControls.UI.RadTreeViewEventArgs"/> instance containing the event data.</param>
 private void TvParameterizationPortsSelectedNodeChanged(object sender, RadTreeViewEventArgs e)
 {
     this.activePort = this.PortList.Find(p => p.PortName == e.Node.Name);
     Task.Run(
         () => this.InvokeEx(f => f.LoadPortStatus()));
 }
 void radTreeView1_SelectedNodeChanged(object sender, RadTreeViewEventArgs e)
 {
     Category selectedCategory = this.dataSource.Current as Category;
     //int currentId = selectedCategory.Id;
     //MessageBox.Show("Current Id is:" + currentId);
 }
 private void treeViewCommands_NodeAdded(object sender, RadTreeViewEventArgs e)
 {
     e.Node.Tag = new GrammarTreeViewTag(false, "", false);
 }
Exemple #7
0
        private void radTreeViewAdmin_NodeMouseClick(object sender, RadTreeViewEventArgs e)
        {
            switch (e.Node.Name)
            {
                case "AddsysUse":
                    this.AddsysUse();
                    break;
                default: break;

            }
            switch (e.Node.Name)
            {
                case "AddEmpl":
                    this.AddEmpl();
                    break;
                default: break;
            }
            switch (e.Node.Name)
            {
                case "AddAuthen":
                    this.AddAuthen();
                    break;
                default: break;
            }
        }
Exemple #8
0
        private void radTreeViewHR_Approve_NodeMouseClick(object sender, RadTreeViewEventArgs e)
        {
            switch (e.Node.Name)
            {
                case "HrApproveOut":
                    this.HrApproveOut();
                    break;
                case "HrApproveIn":
                    this.HrApproveIn();
                    break;
                case "HrEmplFood":
                    this.HrEmplFood();
                    break;
                case "HrReportOutType":
                    this.ReportHrOutType();
                    break;
                case "ReportOutOverTime":
                    this.ReportOutOverTime();
                    break;
                case "ReportWeekedOver":
                    this.ReportWeekedOver();
                    break;
                case "ShiftHRApprove":
                    this.Shift_HrApprove();
                    break;
                case "HRShiftReport":
                    this.Shift_ReportApprove();
                    break;
                case "HRShiftStatusReport":
                    this.Shift_ReportStatus();
                    break;
                case "HRShiftReportOT":
                    this.Shift_ReportOT();
                    break;
                case "Leave_HRApprove":
                    this.Leave_HRApprove();
                    break;
                case "HRLeaveReport":
                    this.HRLeaveReport();
                    break;
                case "HRLeaveStatusReport":
                    this.HRLeaveStatusReport();
                    break;
                case "HRAllLeaveStatusReport":
                    this.HRAllLeaveStatusReport();
                    break;
                case "ChdHRApprove":
                    this.Chd_HRApprove();
                    break;
                case "HRChdReport":
                    this.Chd_HRReport();
                    break;
                case "HRChdStatusReport":
                    this.Chd_HRStatusReport();
                    break;
                case "CNHRApprove":
                    this.CN_HRApprove();
                    break;
                case "HRCNReport":
                    this.HRCNReport();
                    break;
                case "HRCNStatusReport":
                    this.HRCNStatusReport();
                    break;

                default: break;
            }
        }
Exemple #9
0
 private void radTreeViewMN_Approve_NodeMouseClick(object sender, RadTreeViewEventArgs e)
 {
     switch (e.Node.Name)
     {
         case "MN_ApproveOut":
             this.MN_ApproveOut();
             break;
         case "MN_ApproveIn":
             this.MN_ApproveIn();
             break;
         case "Shift_MNApprove":
             this.Shift_MN_Approve();
             break;
         case "Leave_MNApprove":
             this.Leave_MNApprove();
             break;
         case "Chd_ApproveMN":
             this.Chd_MN_Approve();
             break;
         case "CN_ApproveMN":
             this.CN_MN_Approve();
             break;
         default: break;
     }
 }
Exemple #10
0
 private void radTreeView1_SelectedNodeChanged(object sender, RadTreeViewEventArgs e)
 {
     if (e.Node != null)
     {
         if (e.Node.Tag is File)
         {
             var n = e.Node.Parent;
             Workspace.SelectedProject = n?.Tag as Project;
         }
         else
         {
             Workspace.SelectedProject = radTreeView1.SelectedNode?.Tag as Project;
         }
     }
 }
 private void trvCategories_NodeCheckedChanged(object sender, RadTreeViewEventArgs e)
 {
     Service service = srcItem.DataSource as Service;
     ServiceCategory sc = e.Node.DataBoundItem as ServiceCategory;
     if (e.Node.Checked)
     {
         if (service.ServiceCategoryRelations.FirstOrDefault(item => item.ServiceCategoryId == sc.Id) == null)
         {
             ServiceCategoryRelation relation = new ServiceCategoryRelation();
             relation.Service = service;
             relation.ServiceCategoryId = sc.Id;
         }
     }
     else
     {
         service.ServiceCategoryRelations.Remove
             (service.ServiceCategoryRelations.Where(item => item.Service == service && item.ServiceCategoryId == sc.Id).First());
     }
 }
Exemple #12
0
        private void explorerTreeView_NodeMouseDoubleClick(object sender, RadTreeViewEventArgs e)
        {
            var p = e.Node.Tag as PropertiesView;
            var f = e.Node.Tag as Core.ProjectSystem.File;

            if (p != null)
            {
                var v = new PropertiesView();

                var doc = new DocumentWindow(e.Node.Text);
                doc.Controls.Add(v.GetView());

                dock.AddDocument(doc);
            }
            if(f != null)
            {
                ItemTemplate np = null;
                Plugin nn = null;

                foreach (var item in Workspace.PluginManager.Plugins)
                {
                    foreach (var it in item.ItemTemplates)
                    {
                        if(it.ID == f.ID)
                        {
                            np = it;
                            nn = item;
                        }
                    }
                }

                byte[] raw = null;

                if (Workspace.SelectedProject != null) {
                    raw = System.IO.File.ReadAllBytes(new FileInfo(Workspace.SolutionPath).Directory.FullName + "\\" + f.Src);
                }
                else
                {
                    raw = System.IO.File.ReadAllBytes(f.Src);
                }

                nn.Events.Fire("OnCreateItem", f, raw);

                var doc = new DocumentWindow(f.Name);
                doc.Controls.Add(ViewSelector.Select(np, raw).GetView());

                dock.AddDocument(doc);
            }
        }
Exemple #13
0
 private void explorerTreeView_NodeExpandedChanged(object sender, RadTreeViewEventArgs e)
 {
     var proj = e.Node.Tag as Project;
     if(proj != null)
     {
         proj.Expandet = e.Node.Expanded;
         Workspace.Solution.Save(Workspace.SolutionPath);
     }
 }
        private void trvAccounts_SelectedNodeChanged(object sender, RadTreeViewEventArgs e)
        {
            if(trvAccounts.SelectedNode==null)
            {
                cmbAccountType.Enabled = true;
                txtCode.Enabled = true;
                txtName.Enabled = true;;
                txtPrefixCode.Enabled = true;
                return;
            }

            AccountantEntity entity = e.Node.Tag as AccountantEntity;
            entity.Context = DataLayer.GetContext();
            srcAccountantEntity.DataSource = entity;

            if (entity.IsReadOnly)
            {
                txtCode.ReadOnly = true;
                txtName.ReadOnly = true;
                txtPrefixCode.ReadOnly = true;
            }
            else
            {
                txtCode.ReadOnly = false;
                txtName.ReadOnly = false;
                txtPrefixCode.ReadOnly = false;
            }

            if (entity.Type == 3)
            {
                cmbAccountType.Enabled = false;
                btnNew.Enabled = false;
            }
            else
            {
                cmbAccountType.Enabled = false;
                btnNew.Enabled = true;
            }

            btnAdd.Enabled = false;
        }
Exemple #15
0
 //节点选择更改
 /// <summary>
 /// 节点选择更改
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void treeRight_NodeCheckedChanged(object sender, RadTreeViewEventArgs e)
 {
     CurrentOperationStatus = OperationStatus.Edit;
 }
Exemple #16
0
        private void radTreeViewGournal_NodeMouseClick(object sender, RadTreeViewEventArgs e)
        {
            switch (e.Node.Name)
            {
                case "CreatDoc":
                    this.CreatedNewDoc();
                    break;
                case "EditDoc":
                    this.EditDoc();
                    break;
                case "DeleteDoc":
                    this.DeleteDoc();
                    break;
                case "StatusDoc":
                    this.ReportStatusDoc();
                    break;
                case "Shift_CreateDoc":
                    this.Shift_CreateNewDoc();
                    break;
                case "Shift_EditDoc":
                    this.Shift_EditNewDoc();
                    break;
                case "Shift_StatusDoc":
                    this.Shift_StatusNewDoc();
                    break;
                case "Leave_CreateDoc":
                    this.Leave_CreateNewDoc();
                    break;
                case "Leave_EditDoc":
                    this.Leave_EditDoc();
                    break;
                case "Leave_StatusDoc":
                    this.Leave_StatusDoc();
                    break;

                case "CHD_CreateDoc":
                    this.CHD_CreateDoc();
                    break;
                case "CHD_Edit":
                    this.CHD_Edit();
                    break;
                case "CHD_DocStatust":
                    this.CHD_DocStatust();
                    break;
                case "CN_CreateDoc":
                    this.CN_CreateDoc();
                    break;
                case "CN_EditDoc":
                    this.CN_EditDoc();
                    break;
                case "CN_DocStatust":
                    this.CN_DocStatust();
                    break;
                default: break;
            }
        }
Exemple #17
0
        private void radTreeViewHD_Approve_NodeMouseClick(object sender, RadTreeViewEventArgs e)
        {
            switch (e.Node.Name)
            {
                case "HeadApprove":
                    this.HeadApprove();
                    break;
                case "ShiftHeadApprove":
                    this.Shift_HeadApprove();
                    break;
                case "LeaveHeadApprove":
                    this.Leave_HeadApprove();
                    break;
                case "ChdHeadApprove":
                    this.Chd_HeadApprove();
                    break;
                case "CNHeadApprove":
                    this.CN_HeadApprove();
                    break;
                default: break;

            }
        }
Exemple #18
0
        private void projectsTreeView_SelectedNodeChanged(object sender, RadTreeViewEventArgs e)
        {
            if (proyectsTV.SelectedNode.Text== "Importacion de Sellout")
                    {
                        tabImportSellout.Enabled = true;
                        tabImportCliente.Enabled = false;
                        tabKAM.Enabled = false;
                        tabMasterP.Enabled = false;
                        tabNuevosSegmentos.Enabled = false;
                        tabPais.Enabled = false;
                        tabProductosE.Enabled = false;
                        tabSegmento.Enabled = false;
                        tabDistribuidor.Enabled = false;
                        tabCuentasGlobales.Enabled = false;
                        tabConglomerados.Enabled = false;
                        tabClientes.Enabled = false;
                        tabCalculoOP.Enabled = false;
                        tabCalculoKPI.Enabled = false;
                        tabCalculoABC.Enabled = false;
                        tabAgruparP.Enabled = false;
                        tabAgruparC.Enabled = false;
                        tabImportSellout.Show();

                    } if (proyectsTV.SelectedNode.Text == "Importacion de Clientes")
                    {
                        tabImportCliente.Enabled = true;
                        tabImportSellout.Enabled = false;
                        tabKAM.Enabled = false;
                        tabMasterP.Enabled = false;
                        tabNuevosSegmentos.Enabled = false;
                        tabPais.Enabled = false;
                        tabProductosE.Enabled = false;
                        tabSegmento.Enabled = false;
                        tabDistribuidor.Enabled = false;
                        tabCuentasGlobales.Enabled = false;
                        tabConglomerados.Enabled = false;
                        tabClientes.Enabled = false;
                        tabCalculoOP.Enabled = false;
                        tabCalculoKPI.Enabled = false;
                        tabCalculoABC.Enabled = false;
                        tabAgruparP.Enabled = false;
                        tabAgruparC.Enabled = false;
                        tabImportCliente.Show();

                    } if (proyectsTV.SelectedNode.Text == "Calculos de ABC")
                    {
                        tabImportCliente.Enabled = false;
                        tabImportSellout.Enabled = false;
                        tabKAM.Enabled = false;
                        tabMasterP.Enabled = false;
                        tabNuevosSegmentos.Enabled = false;
                        tabPais.Enabled = false;
                        tabProductosE.Enabled = false;
                        tabSegmento.Enabled = false;
                        tabDistribuidor.Enabled = false;
                        tabCuentasGlobales.Enabled = false;
                        tabConglomerados.Enabled = false;
                        tabClientes.Enabled = false;
                        tabCalculoOP.Enabled = false;
                        tabCalculoKPI.Enabled = false;
                        tabCalculoABC.Enabled = true;
                        tabAgruparP.Enabled = false;
                        tabAgruparC.Enabled = false;
                       tabCalculoABC.Show();

                    } if (proyectsTV.SelectedNode.Text == "Calculos de Oportunidades")
                    {
                        tabImportCliente.Enabled = false;
                        tabImportSellout.Enabled = false;
                        tabKAM.Enabled = false;
                        tabMasterP.Enabled = false;
                        tabNuevosSegmentos.Enabled = false;
                        tabPais.Enabled = false;
                        tabProductosE.Enabled = false;
                        tabSegmento.Enabled = false;
                        tabDistribuidor.Enabled = false;
                        tabCuentasGlobales.Enabled = false;
                        tabConglomerados.Enabled = false;
                        tabClientes.Enabled = false;
                        tabCalculoOP.Enabled = true;
                        tabCalculoKPI.Enabled = false;
                        tabCalculoABC.Enabled = false;
                        tabAgruparP.Enabled = false;
                        tabAgruparC.Enabled = false;
                        tabCalculoOP.Show();

                    } if (proyectsTV.SelectedNode.Text == "Calculos de KPIs")
                    {
                        tabImportCliente.Enabled = false;
                        tabImportSellout.Enabled = false;
                        tabKAM.Enabled = false;
                        tabMasterP.Enabled = false;
                        tabNuevosSegmentos.Enabled = false;
                        tabPais.Enabled = false;
                        tabProductosE.Enabled = false;
                        tabSegmento.Enabled = false;
                        tabDistribuidor.Enabled = false;
                        tabCuentasGlobales.Enabled = false;
                        tabConglomerados.Enabled = false;
                        tabClientes.Enabled = false;
                        tabCalculoOP.Enabled = false;
                        tabCalculoKPI.Enabled = true;
                        tabCalculoABC.Enabled = false;
                        tabAgruparP.Enabled = false;
                        tabAgruparC.Enabled = false;
                        tabCalculoKPI.Show();

                    } if (proyectsTV.SelectedNode.Text == "Clientes")
                    {
                        tabImportCliente.Enabled = false;
                        tabImportSellout.Enabled = false;
                        tabKAM.Enabled = false;
                        tabMasterP.Enabled = false;
                        tabNuevosSegmentos.Enabled = false;
                        tabPais.Enabled = false;
                        tabProductosE.Enabled = false;
                        tabSegmento.Enabled = false;
                        tabDistribuidor.Enabled = false;
                        tabCuentasGlobales.Enabled = false;
                        tabConglomerados.Enabled = false;
                        tabClientes.Enabled = true;
                        tabCalculoOP.Enabled = false;
                        tabCalculoKPI.Enabled = false;
                        tabCalculoABC.Enabled = false;
                        tabAgruparP.Enabled = false;
                        tabAgruparC.Enabled = false;
                        tabClientes.Show();

                    }
                    if (proyectsTV.SelectedNode.Text == "Agrupacion de Clientes")
                    {
                        tabImportCliente.Enabled = false;
                        tabImportSellout.Enabled = false;
                        tabKAM.Enabled = false;
                        tabMasterP.Enabled = false;
                        tabNuevosSegmentos.Enabled = false;
                        tabPais.Enabled = false;
                        tabProductosE.Enabled = false;
                        tabSegmento.Enabled = false;
                        tabDistribuidor.Enabled = false;
                        tabCuentasGlobales.Enabled = false;
                        tabConglomerados.Enabled = false;
                        tabClientes.Enabled = false;
                        tabCalculoOP.Enabled = false;
                        tabCalculoKPI.Enabled = false;
                        tabCalculoABC.Enabled = false;
                        tabAgruparP.Enabled = false;
                        tabAgruparC.Enabled = true;
                        tabAgruparC.Show();
                    } if (proyectsTV.SelectedNode.Text == "Master de Productos KC")
                    {
                        tabImportCliente.Enabled = false;
                        tabImportSellout.Enabled = false;
                        tabKAM.Enabled = false;
                        tabMasterP.Enabled = true;
                        tabNuevosSegmentos.Enabled = false;
                        tabPais.Enabled = false;
                        tabProductosE.Enabled = false;
                        tabSegmento.Enabled = false;
                        tabDistribuidor.Enabled = false;
                        tabCuentasGlobales.Enabled = false;
                        tabConglomerados.Enabled = false;
                        tabClientes.Enabled = false;
                        tabCalculoOP.Enabled = false;
                        tabCalculoKPI.Enabled = false;
                        tabCalculoABC.Enabled = false;
                        tabAgruparP.Enabled = false;
                        tabAgruparC.Enabled = false;
                        tabMasterP.Show();

                    } if (proyectsTV.SelectedNode.Text == "Productos Equivalentes")
                    {
                        tabImportCliente.Enabled = false;
                        tabImportSellout.Enabled = false;
                        tabKAM.Enabled = false;
                        tabMasterP.Enabled = false;
                        tabNuevosSegmentos.Enabled = false;
                        tabPais.Enabled = false;
                        tabProductosE.Enabled = true;
                        tabSegmento.Enabled = false;
                        tabDistribuidor.Enabled = false;
                        tabCuentasGlobales.Enabled = false;
                        tabConglomerados.Enabled = false;
                        tabClientes.Enabled = false;
                        tabCalculoOP.Enabled = false;
                        tabCalculoKPI.Enabled = false;
                        tabCalculoABC.Enabled = false;
                        tabAgruparP.Enabled = false;
                        tabAgruparC.Enabled = false;
                        tabProductosE.Show();

                    } if (proyectsTV.SelectedNode.Text == "Agrupacion de Productos")
                    {
                        tabImportCliente.Enabled = false;
                        tabImportSellout.Enabled = false;
                        tabKAM.Enabled = false;
                        tabMasterP.Enabled = false;
                        tabNuevosSegmentos.Enabled = false;
                        tabPais.Enabled = false;
                        tabProductosE.Enabled = false;
                        tabSegmento.Enabled = false;
                        tabDistribuidor.Enabled = false;
                        tabCuentasGlobales.Enabled = false;
                        tabConglomerados.Enabled = false;
                        tabClientes.Enabled = false;
                        tabCalculoOP.Enabled = false;
                        tabCalculoKPI.Enabled = false;
                        tabCalculoABC.Enabled = false;
                        tabAgruparP.Enabled = true;
                        tabAgruparC.Enabled = false;
                        tabAgruparP.Show();

                    } if (proyectsTV.SelectedNode.Text == "Distribuidores")
                    {
                        tabImportCliente.Enabled = false;
                        tabImportSellout.Enabled = false;
                        tabKAM.Enabled = false;
                        tabMasterP.Enabled = false;
                        tabNuevosSegmentos.Enabled = false;
                        tabPais.Enabled = false;
                        tabProductosE.Enabled = false;
                        tabSegmento.Enabled = false;
                        tabDistribuidor.Enabled = true;
                        tabCuentasGlobales.Enabled = false;
                        tabConglomerados.Enabled = false;
                        tabClientes.Enabled = false;
                        tabCalculoOP.Enabled = false;
                        tabCalculoKPI.Enabled = false;
                        tabCalculoABC.Enabled = false;
                        tabAgruparP.Enabled = false;
                        tabAgruparC.Enabled = false;
                        tabDistribuidor.Show();

                    }
                    if (proyectsTV.SelectedNode.Text == "KAMs")
                    {
                        tabImportCliente.Enabled = false;
                        tabImportSellout.Enabled = false;
                        tabKAM.Enabled = true;
                        tabMasterP.Enabled = false;
                        tabNuevosSegmentos.Enabled = false;
                        tabPais.Enabled = false;
                        tabProductosE.Enabled = false;
                        tabSegmento.Enabled = false;
                        tabDistribuidor.Enabled = false;
                        tabCuentasGlobales.Enabled = false;
                        tabConglomerados.Enabled = false;
                        tabClientes.Enabled = false;
                        tabCalculoOP.Enabled = false;
                        tabCalculoKPI.Enabled = false;
                        tabCalculoABC.Enabled = false;
                        tabAgruparP.Enabled = false;
                        tabAgruparC.Enabled = false;
                        tabKAM.Show();

                    } if (proyectsTV.SelectedNode.Text == "Pais")
                    {
                        tabImportCliente.Enabled = false;
                        tabImportSellout.Enabled = false;
                        tabKAM.Enabled = false;
                        tabMasterP.Enabled = false;
                        tabNuevosSegmentos.Enabled = false;
                        tabPais.Enabled = true;
                        tabProductosE.Enabled = false;
                        tabSegmento.Enabled = false;
                        tabDistribuidor.Enabled = false;
                        tabCuentasGlobales.Enabled = false;
                        tabConglomerados.Enabled = false;
                        tabClientes.Enabled = false;
                        tabCalculoOP.Enabled = false;
                        tabCalculoKPI.Enabled = false;
                        tabCalculoABC.Enabled = false;
                        tabAgruparP.Enabled = false;
                        tabAgruparC.Enabled = false;
                        tabPais.Show();

                    } if (proyectsTV.SelectedNode.Text == "Segmentos")
                    {
                        tabImportCliente.Enabled = false;
                        tabImportSellout.Enabled = false;
                        tabKAM.Enabled = false;
                        tabMasterP.Enabled = false;
                        tabNuevosSegmentos.Enabled = false;
                        tabPais.Enabled = false;
                        tabProductosE.Enabled = false;
                        tabSegmento.Enabled = true;
                        tabDistribuidor.Enabled = false;
                        tabCuentasGlobales.Enabled = false;
                        tabConglomerados.Enabled = false;
                        tabClientes.Enabled = false;
                        tabCalculoOP.Enabled = false;
                        tabCalculoKPI.Enabled = false;
                        tabCalculoABC.Enabled = false;
                        tabAgruparP.Enabled = false;
                        tabAgruparC.Enabled = false;
                        tabSegmento.Show();

                    } if (proyectsTV.SelectedNode.Text == "Nuevos Segmentos")
                    {
                        tabImportCliente.Enabled = false;
                        tabImportSellout.Enabled = false;
                        tabKAM.Enabled = false;
                        tabMasterP.Enabled = false;
                        tabNuevosSegmentos.Enabled = true;
                        tabPais.Enabled = false;
                        tabProductosE.Enabled = false;
                        tabSegmento.Enabled = false;
                        tabDistribuidor.Enabled = false;
                        tabCuentasGlobales.Enabled = false;
                        tabConglomerados.Enabled = false;
                        tabClientes.Enabled = false;
                        tabCalculoOP.Enabled = false;
                        tabCalculoKPI.Enabled = false;
                        tabCalculoABC.Enabled = false;
                        tabAgruparP.Enabled = false;
                        tabAgruparC.Enabled = false;
                        tabNuevosSegmentos.Show();

                    }
                    if (proyectsTV.SelectedNode.Text == "Conglomerados")
                    {
                        tabImportCliente.Enabled = false;
                        tabImportSellout.Enabled = false;
                        tabKAM.Enabled = false;
                        tabMasterP.Enabled = false;
                        tabNuevosSegmentos.Enabled = false;
                        tabPais.Enabled = false;
                        tabProductosE.Enabled = false;
                        tabSegmento.Enabled = false;
                        tabDistribuidor.Enabled = false;
                        tabCuentasGlobales.Enabled = false;
                        tabConglomerados.Enabled = true;
                        tabClientes.Enabled = false;
                        tabCalculoOP.Enabled = false;
                        tabCalculoKPI.Enabled = false;
                        tabCalculoABC.Enabled = false;
                        tabAgruparP.Enabled = false;
                        tabAgruparC.Enabled = false;
                        tabConglomerados.Show();

                    }
                    if (proyectsTV.SelectedNode.Text == "Cuentas Globales")
                    {
                        tabImportCliente.Enabled = false;
                        tabImportSellout.Enabled = false;
                        tabKAM.Enabled = false;
                        tabMasterP.Enabled = false;
                        tabNuevosSegmentos.Enabled = false;
                        tabPais.Enabled = false;
                        tabProductosE.Enabled = false;
                        tabSegmento.Enabled = false;
                        tabDistribuidor.Enabled = false;
                        tabCuentasGlobales.Enabled = true;
                        tabConglomerados.Enabled = false;
                        tabClientes.Enabled = false;
                        tabCalculoOP.Enabled = false;
                        tabCalculoKPI.Enabled = false;
                        tabCalculoABC.Enabled = false;
                        tabAgruparP.Enabled = false;
                        tabAgruparC.Enabled = false;
                        tabCuentasGlobales.Show();

                    }
        }
Exemple #19
0
        private void radTreeViewMN_Approve_SelectedNodeChanged(object sender, RadTreeViewEventArgs e)
        {

        }
Exemple #20
0
        private void projectsTreeView_SelectedNodeChanged(object sender, RadTreeViewEventArgs e)
        {
            if (bugsGrid.FilterDescriptors.Count > 1)
            {
                for (int i = 0; i < bugsGrid.FilterDescriptors.Count; i++)
                {
                    if (bugsGrid.FilterDescriptors[i].PropertyName == "ProjectId")
                    {
                        bugsGrid.FilterDescriptors.RemoveAt(i);
                    }
                    if (featuresGrid.FilterDescriptors[i].PropertyName == "ProjectId")
                    {
                        featuresGrid.FilterDescriptors.RemoveAt(i);
                    }
                }
            }

            if ((int)e.Node.Value == 0)
            {
                return;
            }
            else
            {
                FilterDescriptor filter = new FilterDescriptor();
                filter.PropertyName = "ProjectId";
                filter.Operator = FilterOperator.IsEqualTo;
                filter.Value = e.Node.Value;
                this.bugsGrid.FilterDescriptors.Add(filter);
                this.featuresGrid.FilterDescriptors.Add(filter);
            }
        }
Exemple #21
0
        private void radTreeViewSecur_NodeMouseClick(object sender, RadTreeViewEventArgs e)
        {
            switch (e.Node.Name)
            {
                case "PayCreat":
                    this.PayCreat();
                    break;
                default: break;

            }
            switch (e.Node.Name)
            {
                case "PayCheck":
                    this.PayCheck();
                    break;
                default: break;
            }
            switch (e.Node.Name)
            {
                case "PayCheckImportBill":
                    this.PayCheckImportBill();
                    break;
                default: break;
            }
            switch (e.Node.Name)
            {
                case "PayReport":
                    this.PayReport();
                    break;
                default: break;
            }
            switch (e.Node.Name)
            {
                case "PayDelete":
                    this.PayDelete();
                    break;
                default: break;  
            }


        }
Exemple #22
0
 /// <summary>
 /// Decode Mp3's
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void tvwDecodeMp3s_NodeMouseClick(object sender, RadTreeViewEventArgs e)
 {
     lblDecodeMp3Status.Text = e.Node.Text;
     try {
         if (e.Node.Nodes.Count() == 0) {
             var fullPath = e.Node.FullPath;
             var di = new DirectoryInfo(fullPath);
             var attr = File.GetAttributes(fullPath);
             if ((attr & FileAttributes.Directory) == FileAttributes.Directory) {
                 var dirs = Directory.GetDirectories(fullPath);
                 if (System.IO.Directory.Exists(fullPath)) {
                     foreach (var dir in dirs) {
                         var di2 = new DirectoryInfo(dir);
                         var node = new RadTreeNode(dir);
                         e.Node.Nodes.Add(di2.Name);
                     }
                 }
                 var files = Directory.GetFiles(fullPath, "*.mp3");
                 foreach (var file in files) {
                     var di3 = new DirectoryInfo(file);
                     var node = new RadTreeNode(di3.Name);
                     e.Node.Nodes.Add(node);
                 }
                 e.Node.ExpandAll();
             } else {
                 // File
                 if (e.Node.Text.ToLower().Contains(".mp3")) {
                     cmdDecodeNow.Enabled = true;
                 } else {
                     cmdDecodeNow.Enabled = false;
                 }
             }
         }
     } catch {
         // I don't care, all kinds of things can happen
     }
 }
Exemple #23
0
 private void treeView1_NodeMouseDoubleClick(object sender, RadTreeViewEventArgs e)
 {
     var node = treeView1.SelectedNode;
     if (node != null && node.Tag != null)
     {
         var personTest = node.Tag as Personv2;
         if (personTest != null)
         {
             var frm = new FormPerson(personTest);
             frm.Show();
         }
         else
         {
             var guidTest = (System.Guid)node.Tag;
             var p0 = (Personv2)node.Parent.Tag;
             var p1 = Repository.FindPerson(guidTest);
             var frm = new FormMatch(p0, p1);
             frm.Show();
         }
     }
 }
        private void tvOrders_SelectedNodeChanged(object sender, RadTreeViewEventArgs e)
        {
            if (e.Node != null)
            {
                var statusSelected = e.Node.DataBoundItem as OrderStatus;

                if (statusSelected != null)
                {
                    LoadOrdersByStatus(statusSelected.Id);
                }
            }
        }
        void treeViewCommands_SelectedNodeChanged(object s, RadTreeViewEventArgs args)
        {
            checkBoxIsTheNodeDictation.Visible = true;
            checkBoxItemOptional.Visible = true;
            if ((treeViewCommands.SelectedNode.Tag as GrammarTreeViewTag).IsDictation)
            {
                textBoxContext.Text = (treeViewCommands.SelectedNode.Tag as GrammarTreeViewTag).DictationContext;
                checkBoxIsTheNodeDictation.Checked = true;
                textBoxContext.Visible = true;
                labelContext.Visible = true;
            }
            else
            {
                checkBoxIsTheNodeDictation.Checked = false;
                textBoxContext.Text = "";
                textBoxContext.Visible = false;
                labelContext.Visible = false;
            }

            if ((treeViewCommands.SelectedNode.Tag as GrammarTreeViewTag).Optional)
            {
                checkBoxItemOptional.Checked = true;
            }
            else
            {
                checkBoxItemOptional.Checked = false;
            }
        }
Exemple #26
0
        private void radTreeView1_SelectedNodeChanged(object sender, RadTreeViewEventArgs e)
        {
            if (e.Node != null)
            {
                if (e.Node.Tag is Core.ProjectSystem.File)
                {
                    var n = e.Node.Parent;
                    Workspace.SelectedProject = n?.Tag as Project;

                    var f = e.Node.Tag as Core.ProjectSystem.File;

                    radPropertyGrid1.SelectedObject = f;
                }
                else
                {
                    Workspace.SelectedProject = explorerTreeView.SelectedNode?.Tag as Project;
                }
            }
        }