private void barAddChildFloder_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     if(treeList1.FocusedNode==null)
     {
         return;
     }
     LP_Temple parentlp = treeList1.GetDataRecordByNode(treeList1.FocusedNode) as LP_Temple;
     //LP_Temple lp = MainHelper.PlatformSqlMap.GetOneByKey<LP_Temple>(treeList1.FocusedNode["lpid"]);
     frmTableMulu frm = new frmTableMulu();
     if (parentlp == null)
     {
         return;
     }
     if (parentlp.CtrlSize != "目录")
     {
         return;
     }
     string slqwhere = " where   ParentID='" + parentlp.LPID + "' and CtrlSize = '目录'";
     LP_Temple lp = new LP_Temple();
     lp.CtrlSize = "目录";
     lp.SortID = MainHelper.PlatformSqlMap.GetRowCount<LP_Temple>(slqwhere) + 1;
     lp.ParentID = parentlp.LPID;
     frm.RowData = lp;
     if (frm.ShowDialog() == DialogResult.OK)
     {
         MainHelper.PlatformSqlMap.Create<LP_Temple>(lp);
         InitData();
     }
 }
        private void barEditFloder_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {

            if (treeList1.FocusedNode == null)
            {
                return;
            }
            LP_Temple lp = treeList1.GetDataRecordByNode(treeList1.FocusedNode) as LP_Temple;
            //LP_Temple lp = MainHelper.PlatformSqlMap.GetOneByKey<LP_Temple>(treeList1.FocusedNode["lpid"]);
            frmTableMulu frm = new frmTableMulu();
            if (lp == null)
            {
                return;
            }
            if (lp.CtrlSize != "目录")
            {
                return;
            }
            frm.RowData = lp;
            lp.CtrlSize = "目录";
            if (frm.ShowDialog() == DialogResult.OK)
            {
                lp.SignImg = new byte[0];
                lp.ImageAttachment = new byte[0];
                lp.DocContent = new byte[0];
                MainHelper.PlatformSqlMap.Update<LP_Temple>(lp);
                InitData();
            }
        }
        private void barAddFloder_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            frmTableMulu frm = new frmTableMulu();
            LP_Temple lp = new LP_Temple();
            string slqwhere = " where CtrlSize='目录'  and ParentID not in (select LPID from LP_Temple where 1=1 )  ";

            lp.SortID = MainHelper.PlatformSqlMap.GetRowCount<LP_Temple>(slqwhere) + 1;
            lp.CtrlSize = "目录";
            frm.RowData = lp;
            if (frm.ShowDialog() == DialogResult.OK)
            {
                MainHelper.PlatformSqlMap.Create<LP_Temple>(lp);
                InitData();
            }
        }