Exemplo n.º 1
0
 private void tlEquipments_FocusedNodeChanged(object sender, DevExpress.XtraTreeList.FocusedNodeChangedEventArgs e)
 {
     if (e.Node != null && e.Node.Tag is AndonCallObject)
     {
         GetFailureModesFromAndonCallObject((AndonCallObject)e.Node.Tag);
     }
 }
Exemplo n.º 2
0
        private void DirTreeList_FocusedNodeChanged(object sender, DevExpress.XtraTreeList.FocusedNodeChangedEventArgs e)
        {
            var focused_tree_node = DirTreeList.GetDataRecordByNode(e.Node) as CatalogTreeList;

            switch (focused_tree_node.Id)
            {
            case 1:
            case 3:
                UserTreeAccessBS.DataSource          = _db.GetUserAccessTree(_user_id).ToList();
                xtraTabControl2.SelectedTabPageIndex = 0;
                break;

            case 4:
                UserAccessWhGridControl.DataSource   = _db.GetUserAccessWh(_user_id).ToList();
                xtraTabControl2.SelectedTabPageIndex = 1;
                break;

            case 5:
                xtraTabControl2.SelectedTabPageIndex = 2;
                break;

            case 6:
                RefreshUserAccessCashDesks();
                xtraTabControl2.SelectedTabPageIndex = 3;
                break;
            }

            xtraTabControl1.SelectedTabPageIndex = focused_tree_node.TabIdx;
        }
Exemplo n.º 3
0
        void treDoorAll_FocusedNodeChanged(object sender, DevExpress.XtraTreeList.FocusedNodeChangedEventArgs e)
        {
            TreeListNode trv = e.Node;

            if (trv == null || e.Node.TreeList.Nodes.Count == 0)
            {
                return;
            }
            NotRight(this.treDeptUser);
            DataTable dtDor = DorRight(this.ds.Tables["用户门权限"]);
            string    tag   = basefun.valtag(Convert.ToString(e.Node.Tag), "ID");

            this.doorAll = string.Empty;
            string[] dor = GetDor(trv, this.doorAll).Split(',');
            if (dor == null)
            {
                return;
            }
            foreach (string s in dor)
            {
                foreach (TreeListNode tn in this.treDeptUser.Nodes)
                {
                    GetDorUsers(tn, s, dtDor);
                }
            }
        }
Exemplo n.º 4
0
        private void treeList1_FocusedNodeChanged(object sender, DevExpress.XtraTreeList.FocusedNodeChangedEventArgs e)
        {
            try
            {
                if (e.Node == null)
                {
                    return;
                }

                e.Node.ExpandAll();

                if (!this._firstFocused)
                {
                    _industryId = int.Parse(e.Node.GetValue(tcId).ToString());

                    BindSubjectInfo(_industryId);
                    BindAccountInfo(_industryId);
                }
                this._firstFocused = false;
            }
            catch (Exception ex)
            {
                DXMessage.ShowError(ex.Message);
            }
        }
Exemplo n.º 5
0
        private async void trlUser_FocusedNodeChanged(object sender, DevExpress.XtraTreeList.FocusedNodeChangedEventArgs e)
        {
            try
            {
                trlPermission.ClearNodes();
                TreeListNode node = trlUser.FocusedNode;
                //CommonEngine.ShowWaitForm(this);
                await LoadPermission(node.GetDisplayText(tlcCode) + "", rootNode, node.Level == 0?false : true);

                string result = "", tmpGroup = "", tmpUser = "";
                if (node.Level.Equals(0))
                {
                    tmpGroup = string.Format(@"  {0}: {1}", ConfigEngine.Language.Equals("vi") ? "Nhóm" : "Group", node.GetDisplayText(tlcName));
                    tmpUser  = "";
                }
                else
                {
                    tmpGroup = string.Format(@"  {0}: {1}", ConfigEngine.Language.Equals("vi") ? "Nhóm" : "Group", node.ParentNode.GetDisplayText(tlcName));
                    tmpUser  = string.Format(@"<br>  {0}: {1}", ConfigEngine.Language.Equals("vi") ? "Người dùng" : "User", node.GetDisplayText(tlcName));
                }
                result = string.Format(@"{0}{1}", tmpGroup, tmpUser);
                lblUserInfo.Caption = result;
            }
            catch (Exception ex)
            {
                CommonEngine.ShowExceptionMessage(ex);
                return;
            }
            finally
            {
                //CommonEngine.CloseWaitForm();
            }
        }
Exemplo n.º 6
0
 private void treeList1_FocusedNodeChanged(object sender, DevExpress.XtraTreeList.FocusedNodeChangedEventArgs e)
 {
     if (treeList1.GetFocusedRow() is Dropdowns item)
     {
         this.btnAdd.Enabled = true;
         if (item.Category == "Programs")
         {
             btnEdit.Text  = @"Edit Program";
             btnAdd.Text   = @"Add New Project";
             this.category = "Program";
         }
         else if (item.Category == "Projects")
         {
             btnEdit.Text  = @"Edit Project";
             btnAdd.Text   = @"Add New Activity";
             this.category = "Project";
         }
         else if (item.Category == "Activity")
         {
             btnEdit.Text  = @"Edit Activity";
             btnAdd.Text   = @"Add New Sub Activity";
             this.category = "Activity";
         }
         else if (item.Category == "SubActivity")
         {
             btnEdit.Text        = @"Edit Sub Activity";
             this.category       = "Sub Activity";
             this.btnAdd.Enabled = false;
         }
     }
 }
        private void lstTree_FocusedNodeChanged(object sender, DevExpress.XtraTreeList.FocusedNodeChangedEventArgs e)
        {
            var dtDate = new DateTimePickerEx
            {
                CustomFormat = "MM/dd/yyyy",
                Value        = DateTime.Now
            };
            DateTime dtCurrent = ConvertDate.DateConverter(dtDate.Text);
            var      dr        = (DataRowView)lstTree.GetDataRecordByNode(lstTree.FocusedNode);

            if (dr == null)
            {
                return;
            }

            var       adj = new Disposal();
            DataTable dtRec;

            if (dr["ParentID"] == DBNull.Value)
            {
                int      yr  = ((dtCurrent.Month > 10) ? dtCurrent.Year : dtCurrent.Year - 1);
                DateTime dt1 = new DateTime(Convert.ToInt32(dr["ID"]) - 1, 11, 1);
                DateTime dt2 = new DateTime(Convert.ToInt32(dr["ID"]), 11, 1);
                dtRec           = adj.GetTransactionByDateRange(Convert.ToInt32(cboStores.EditValue), dt1, dt2);
                lblAdjDate.Text = dr["RefNo"].ToString();
            }
            else
            {
                dtRec           = adj.GetDocumentByRefNo(dr["RefNo"].ToString(), Convert.ToInt32(cboStores.EditValue), dr["Date"].ToString());
                lblAdjDate.Text = Convert.ToDateTime(dr["Date"]).ToString("MM dd,yyyy");
            }

            gridAdjustments.DataSource = dtRec;
        }
Exemplo n.º 8
0
        /// <summary>
        /// 节点选择改变事件
        /// edit 王冀 2012 10 31
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void treeList_Medicine_FocusedNodeChanged_1(object sender, DevExpress.XtraTreeList.FocusedNodeChangedEventArgs e)
        {
            try
            {
                if (e.Node == null)
                {
                    txtName.Text = txtSpecification.Text = txtApplyTo.Text = txtReferenceUsage.Text = txtMemo.Text = "";
                    return;
                }
                if (e.Node.Tag == null || e.Node.Tag.ToString() == "")
                {
                    txtName.Text = txtSpecification.Text = txtApplyTo.Text = txtReferenceUsage.Text = txtMemo.Text = "";
                    return;
                }
                DataTable dt = m_SqlManger.GetMedicaineByID(e.Node.Tag.ToString());

                txtName.Text           = dt.Rows[0]["NAME"].ToString();
                txtSpecification.Text  = dt.Rows[0]["Specification"].ToString();
                txtApplyTo.Text        = dt.Rows[0]["ApplyTo"].ToString();
                txtReferenceUsage.Text = dt.Rows[0]["ReferenceUsage"].ToString();
                txtMemo.Text           = dt.Rows[0]["Meno"].ToString();
            }
            catch (Exception ex)
            {
                MyMessageBox.Show(1, ex);
                //throw;
            }
        }
Exemplo n.º 9
0
        private void treeCtl1_FocusedNodeChanged(object sender, DevExpress.XtraTreeList.FocusedNodeChangedEventArgs e)
        {
            if (e.Node == null)
            {
                return;
            }
            var pnd = e.Node.ParentNode;

            btnSaveMnuItem.Enabled = pnd != null;
            btnSaveMnuGrp.Enabled  = pnd == null;
            txtmnuGrp.Text         = pnd == null?e.Node.GetValue(0).ToString() : pnd.GetValue(0).ToString();

            var tg = e.Node.Tag as MenuItemData;

            if (pnd != null)//菜单项
            {
                txtmnuName.Text = e.Node.GetValue(0).ToString();
                if (null != tg)
                {
                    txtmnuAsmName.Text   = tg.MenuAsmName;
                    txtmnuClassName.Text = tg.MenuClsName;
                    chkUsing.Checked     = tg.IsUsing;
                }
            }
            else
            {
                txtmnuName.Text      = string.Empty;
                txtmnuAsmName.Text   = string.Empty;
                txtmnuClassName.Text = string.Empty;
                chkUsing.Checked     = null == tg ? chkUsing.Checked : tg.IsUsing;
            }
        }
Exemplo n.º 10
0
 /// <summary>
 /// 选中节点改变事件
 /// edit by 王冀 2012-10-30
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void treeList_Medicine_FocusedNodeChanged(object sender, DevExpress.XtraTreeList.FocusedNodeChangedEventArgs e)
 {
     //xll 2012-10-29
     try
     {
         if (e.Node == null)
         {
             txtDirectTitle.Text = txtDirectTitle2.Text = txtDoseform.Text = txtDirectContent.Text = "";
             return;
         }
         if (e.Node.Tag == null || e.Node.Tag.ToString() == "")
         {
             txtDirectTitle.Text = txtDirectTitle2.Text = txtDoseform.Text = txtDirectContent.Text = "";
             return;
         }
         DataTable dt = m_SqlManger.GetMedicaineDirectByID(e.Node.Tag.ToString());
         txtDirectTitle.Text   = dt.Rows[0]["DirectTitle"].ToString();
         txtDirectTitle2.Text  = dt.Rows[0]["DirectTitle2"].ToString();
         txtDoseform.Text      = dt.Rows[0]["Doseform"].ToString();
         txtDirectContent.Text = dt.Rows[0]["DirectContent"].ToString();
     }
     catch (Exception ex)
     {
         MyMessageBox.Show(1, ex);
     }
 }
Exemplo n.º 11
0
        void treDept_FocusedNodeChanged(object sender, DevExpress.XtraTreeList.FocusedNodeChangedEventArgs e)
        {
            ///部门班制
            string    deptNo      = basefun.valtag(Convert.ToString(this.treDept.FocusedNode.Tag), "代码");
            DataTable dtDeptClass = this.ds.Tables["部门班制"].Clone();

            dtDeptClass = FunShare.GetTable(dtDeptClass, this.ds.Tables["部门班制"].Select("部门='" + deptNo + "'"));
            this.grdClass.DataSource = dtDeptClass;
            //部门休息日
            DataTable deptHolidaysState = this.ds.Tables["部门休息日"].Clone();

            deptHolidaysState          = FunShare.GetTable(deptHolidaysState, this.ds.Tables["部门休息日"].Select("部门='" + deptNo + "'"));
            this.dbRestDept.DataSource = deptHolidaysState;
            //部门排班明细
            if (this.gridViewClass.RowCount == 0)
            {
                return;
            }
            string    classNo     = this.gridViewClass.GetDataRow(this.gridViewClass.FocusedRowHandle)["班制id"].ToString();
            string    tag         = basefun.valtag(Convert.ToString(this.treDept.FocusedNode.Tag), "ID");
            DataTable dtClassList = this.ds.Tables["排班明细"].Clone();

            dtClassList = FunShare.GetTable(dtClassList, this.ds.Tables["排班明细"].Select("部门='" + tag + "' and 班制='" + classNo + "'", " 日期 asc"));
            this.grdClassList.DataSource = dtClassList;
        }
Exemplo n.º 12
0
 private void treeList1_FocusedNodeChanged(object sender, DevExpress.XtraTreeList.FocusedNodeChangedEventArgs e)
 {
     _IsDefault = false;
     if (treeList1.FocusedNode != null)
     {
         if (!treeList1.FocusedNode.HasChildren)
         {
             gridControl1.DataSource = null;
             MaterielID            = int.Parse(treeList1.FocusedNode.GetValue(_trID).ToString());
             lookUpEdit1.EditValue = MaterielID * -1;
             //  if(lookUpEdit1.Text==string.Empty)
             InData(MaterielID);
             // gridView1.OptionsBehavior.Editable = true;
         }
         else
         {
             gridView1.OptionsBehavior.Editable = false;
         }
         if (treeList1.FocusedNode.Level == 1)
         {
             if (Convert.ToInt32(treeList1.FocusedNode.GetValue(_trID)) > 0 && Convert.ToInt32(treeList1.FocusedNode.GetValue(_trAttributeID)) == 4)
             {
                 _IsDefault = true;
                 gridControl1.DataSource = null;
                 MaterielID = int.Parse(treeList1.FocusedNode.GetValue(_trID).ToString());
                 ShowDefault(MaterielID);
                 // gridView1.OptionsBehavior.Editable = true;
             }
             //modMSM.MaterielID = MaterielID = 0;
             //dtMain = bllMSM.GetIDList(0).Tables[0];
             //dtMain.Rows.Add(dtMain.NewRow());
             //ShowInfo(0);
             //splitContainerControl1.Panel2.Enabled = false;
             //if (!treeList1.FocusedNode.HasChildren)
             //{
             //    int i = int.Parse(treeList1.FocusedNode.GetValue(_trID).ToString());
             //    DataTable dt = bllMat.GetLaftTree(i, isEnd).Tables[0];
             //    for (int j = 0; j < dt.Rows.Count; j++)
             //    {
             //        treeList1.AppendNode(new object[] { dt.DefaultView[j]["MaterielID"], dt.DefaultView[j]["MaterielName"], i }, treeList1.Nodes[i - 1]);
             //    }
             //    treeList1.FocusedNode.ExpandAll();
             //}
         }
         //  string bb=treeList1.FocusedNode.GetDisplayText(tree
         //if (treeList1.FocusedNode.Level == 1)
         //{
         //    modMSM.MaterielID = MaterielID = int.Parse(treeList1.FocusedNode.GetValue(_trID).ToString());
         //    //_reMateriel.DataSource = bllMat.GetList("(AttributeID>1) and (MaterielID<>" + modMSM.MaterielID + ")").Tables[0];
         //    string attribName = treeList1.FocusedNode.ParentNode.GetValue(_trMaterielName).ToString();
         //    splitContainerControl1.Panel2.Text = attribName + ":" + treeList1.FocusedNode.GetValue(_trMaterielName).ToString();
         //    InData(MaterielID);
         //    splitContainerControl1.Panel2.Enabled = true;
         //    bool zzz = (treeList1.FocusedNode.ParentNode.GetValue(_trAttributeID).ToString() == "1");
         //    _coIsTogethers.OptionsColumn.AllowEdit = zzz;
         //}
         //_laNum.Visible = _laTaskNum.Visible = _laCompany.Visible = true;
     }
 }
Exemplo n.º 13
0
 // запоминаем активный элемент
 public void tlClassification_FocusedNodeChanged(object sender, DevExpress.XtraTreeList.FocusedNodeChangedEventArgs e)
 {
     if (ReferenceEquals(e.Node, null) || mdVariables.EventChangedControl == false)
     {
         return;
     }
     SelectedItemId = System.Convert.ToInt32(e.Node["Id"]);
 }
Exemplo n.º 14
0
        virtual protected void treeList1_FocusedNodeChanged(object sender, DevExpress.XtraTreeList.FocusedNodeChangedEventArgs e)
        {
            TreeListNode _node = e.Node;
            SinoOrganize _org  = _node.Tag as SinoOrganize;
            OrgEventArgs _ev   = new OrgEventArgs(_node, _org);

            RaiseFocusChanged(_ev);
        }
Exemplo n.º 15
0
        private void TreeListFocusedNodeChanged(object sender, DevExpress.XtraTreeList.FocusedNodeChangedEventArgs e)
        {
            INode inode = e.Node.GetValue(GUIConstants.TreeListOriginalNoteColumnName) as INode;

            if (inode != null)
            {
                OnFocusedNodeChanged(inode);
            }
        }
Exemplo n.º 16
0
        private void TreeListFocusedNodeChanged(object sender, DevExpress.XtraTreeList.FocusedNodeChangedEventArgs e)
        {
            System.Diagnostics.Debug.WriteLine("TreeListFocusedNodeChanged");

            TableWithHierarchy
                oldRecord = treeList.GetDataRecordByNode(e.OldNode) as TableWithHierarchy,
                record    = treeList.GetDataRecordByNode(e.Node) as TableWithHierarchy;

            System.Diagnostics.Debug.WriteLine($"oldId = {oldRecord?.Id.ToString() ?? "NULL"} -> Id = {record?.Id.ToString() ?? "NULL"}");
        }
Exemplo n.º 17
0
 private void treeList1_FocusedNodeChanged(object sender, DevExpress.XtraTreeList.FocusedNodeChangedEventArgs e)
 {
     if (treeList1.FocusedNode.Level == 0)
     {
         return;
     }
     videoplay = VideoData.GetIndexVideoInfo(int.Parse(treeList1.FocusedNode.GetValue(0).ToString()));
     SetFocusInfo();
     SetLabel(int.Parse(treeList1.FocusedNode.Tag.ToString()));
     PlayVideo();
 }
Exemplo n.º 18
0
 /// <summary>
 /// Seta o foco na ultima linha focada anteriormente no grid.
 /// </summary>
 /// <param name="sender"></param>object
 /// <param name="e"></param>FocusedRowChangedEventArgs
 private void FocusedRowChanged(object sender,
                                DevExpress.XtraTreeList.FocusedNodeChangedEventArgs e)
 {
     if (e.Node != null)
     {
         if (e.Node.Id != 0)
         {
             //salva o foco da linha anterior
             this.prevFocusedRowHandle = e.Node;
         }
     }
 }
Exemplo n.º 19
0
        private void tlCategory_FocusedNodeChanged(object sender, DevExpress.XtraTreeList.FocusedNodeChangedEventArgs e)
        {
            if (e.Node == null)
            {
                return;
            }

            e.Node.ExpandAll();
            var categoryId = Convert.ToInt32(e.Node.GetValue(tcId));

            BindContent(categoryId);
        }
 private void trvDonVi_FocusedNodeChanged(object sender, DevExpress.XtraTreeList.FocusedNodeChangedEventArgs e)
 {
     if (Loaded == true)
     {
         if (trvDonVi.Nodes.Count > 0)
         {
             dtCongViec = oBGGCongViecGiaoVien.GetByIDDM_LoaiCongViec(cmbNhiemVu.EditValue == null ? 0 : int.Parse(cmbNhiemVu.EditValue.ToString()),
                                                                      int.Parse(trvDonVi.FocusedNode["NS_DonViID"].ToString()), Program.IDNamHoc, Program.HocKy);
             grdCongViec.DataSource = dtCongViec;
         }
     }
 }
Exemplo n.º 21
0
        //点击节点展开子节点
        private void treeList_FocusedNodeChanged(object sender, DevExpress.XtraTreeList.FocusedNodeChangedEventArgs e)
        {
            if (e.Node == null ||
                e.Node.Tag == null ||
                e.Node.Nodes.Count > 0 ||
                e.Node.ImageIndex == FORMICON)
            {
                return;
            }

            queryChildNodes(e.Node);
        }
Exemplo n.º 22
0
        private void treeListCategorias_FocusedNodeChanged(object sender, DevExpress.XtraTreeList.FocusedNodeChangedEventArgs e)
        {
            try
            {
                TreeListNode childNode = (TreeListNode)e.Node;

                _iCategoria      = (in_categorias_Info)treeListCategorias.GetDataRecordByNode(childNode);
                _iCategoriaPadre = _listCategoria.Find(delegate(in_categorias_Info ca) { return(ca.IdCategoria == _iCategoria.IdCategoriaPadre && ca.IdEmpresa == _iCategoria.IdEmpresa); });
            }
            catch (Exception)
            {
            }
        }
Exemplo n.º 23
0
        private void treeList1_FocusedNodeChanged(object sender, DevExpress.XtraTreeList.FocusedNodeChangedEventArgs e)
        {
            string value = e.Node.GetValue("Rate").ToString();

            if (!string.IsNullOrEmpty(value))
            {
                this.simpleButton1.Enabled = true;
                this.m_ReturnValue         = value;
            }
            else
            {
                this.simpleButton1.Enabled = false;
            }
        }
Exemplo n.º 24
0
 private void treeListDonVi_FocusedNodeChanged(object sender, DevExpress.XtraTreeList.FocusedNodeChangedEventArgs e)
 {
     try
     {
         if (focusedNodeChanged != null)
         {
             focusedNodeChanged();
         }
     }
     catch (Exception ex)
     {
         Debug.WriteLine(this.Name + "->treeListPhong_FocusedNodeChanged: " + ex.Message);
     }
 }
Exemplo n.º 25
0
        private void comment_list_FocusedNodeChanged(object sender, DevExpress.XtraTreeList.FocusedNodeChangedEventArgs e)
        {
            if (Comment.OptionsColumn.AllowEdit)
            {
                int rowHandle = comment_list.FocusedNode.Id;

                Comment.OptionsColumn.AllowEdit   = false;; //셀위치 변경 시 수정 불가능
                btn_img_c.Buttons[0].Visible      = false;
                img_c_img.OptionsColumn.AllowEdit = false;  //첨부파일 수정불가능
                SelectionData();

                comment_list.FocusedNode = comment_list.FindNodeByID(rowHandle);
            }
        }
Exemplo n.º 26
0
        private void treeListLinGruSub_FocusedNodeChanged(object sender, DevExpress.XtraTreeList.FocusedNodeChangedEventArgs e)
        {
            try
            {
                TreeListNode childNode = (TreeListNode)e.Node;

                _iCategoria = (vwin_categoria_lin_gr_subgr_Info)treeListLinGruSub.GetDataRecordByNode(childNode);
            }
            catch (Exception ex)
            {
                Log_Error_bus.Log_Error(ex.ToString());
                MessageBox.Show(ex.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Exemplo n.º 27
0
 private void treeList2_FocusedNodeChanged(object sender, DevExpress.XtraTreeList.FocusedNodeChangedEventArgs e)
 {
     if (e.Node == null)
     {
         return;
     }
     Fwk.UI.Controls.Menu.Tree.MenuItem item = (Fwk.UI.Controls.Menu.Tree.MenuItem)treeList2.GetDataRecordByNode(e.Node);
     if (!String.IsNullOrEmpty(item.AssemblyInfo))
     {
         if (FormBase.CheckRule(item.AuthRule))
         {
             AddContronToPannel(item, null);
         }
     }
 }
Exemplo n.º 28
0
        void treeBinding_FocusedNodeChanged(object sender, DevExpress.XtraTreeList.FocusedNodeChangedEventArgs e)
        {
            ABCCommonTreeListNode obj = (ABCCommonTreeListNode)treeBinding.GetDataRecordByNode(e.Node);

            if (obj == null || (ABCScreen.ABCBindingConfig)obj.InnerData == null)
            {
                PropertyGrid.SelectedObject = null;
                FieldFilterGrid.DataSource  = null;
                FieldFilterGrid.RefreshDataSource();
                return;
            }
            PropertyGrid.SelectedObject = (ABCScreen.ABCBindingConfig)obj.InnerData;
            FieldFilterGrid.DataSource  = ((ABCScreen.ABCBindingConfig)obj.InnerData).FieldFilterConditions;
            FieldFilterGrid.RefreshDataSource();
        }
Exemplo n.º 29
0
 private void tvFunction_FocusedNodeChanged(object sender, DevExpress.XtraTreeList.FocusedNodeChangedEventArgs e)
 {
     if (e.Node != null)
     {
         if (e.Node.Level == 0)
         {
             BDictSystem system = e.Node.Tag as BDictSystem;
             this.FreshSystem(system);
         }
         else
         {
             BDictMenu menu = e.Node.Tag as BDictMenu;
             this.FreshMenu(menu);
         }
     }
 }
Exemplo n.º 30
0
        private void treeList1_FocusedNodeChanged(object sender, DevExpress.XtraTreeList.FocusedNodeChangedEventArgs e)
        {
            int selectedNodeId = (sender as TreeList).FocusedNode.Id;

            Reports.Accountbooks.BalanceSheet frmPL;

            switch (selectedNodeId)
            {
            case 1:
                frmPL = new BalanceSheet("Month", "Horizontal");
                frmPL.ShowDialog();
                break;

            case 2:
                frmPL = new BalanceSheet("Date", "Horizontal");
                frmPL.ShowDialog();
                break;

            case 4:
                frmPL = new BalanceSheet("Month", "Vertical");
                frmPL.ShowDialog();
                break;

            case 5:
                frmPL = new BalanceSheet("Date", "Vertical");
                frmPL.ShowDialog();
                break;

            case 7:
                //Reports.AccountSummary.DailySummary frmDaily = new AccountSummary.DailySummary();
                //frmDaily.ShowDialog();
                break;

            case 8:
                //Reports.AccountSummary.DailySummary frmDaily = new AccountSummary.DailySummary();
                //frmDaily.ShowDialog();
                break;

            case 9:
                frmPL = new BalanceSheet("", "Summary");
                frmPL.ShowDialog();
                break;

            default:
                break;
            }
        }