private void btn_newlayout_Click(object sender, EventArgs e)
        {
            Form f = new Form();

            f.FormBorderStyle = FormBorderStyle.None;
            uctlAddNewXMLLayout anxl = new uctlAddNewXMLLayout();

            if (cmb_pt.SelectedItem == null)
            {
                return;
            }
            anxl.pt_id = cmb_pt.SelectedValue.ToString();
            f.Size     = new Size(528, 71);
            CommonFunction.AddForm(f, anxl);
            getLayoutData();

            //try
            //{
            //    string sql = "";
            //    //if (publicProperty.DATABASETYPE =="ORACLE")
            //    //{
            //    //Guid g = new Guid();
            //        sql = string.Format("insert into pt_xml_config(ID,FIELD_NAME,pt_id,field) values('{1}','根节点','{0}','MYROOT')", cmb_pt.SelectedValue.ToString(),Guid.NewGuid());
            //    //}
            //    //else if (publicProperty.DATABASETYPE=="SQLSERVER")
            //    //{
            //    //    sql = string.Format("insert into pt_xml_config(FIELD_NAME,pt_id) values('根节点',{0})", cmb_pt.SelectedValue.ToString());
            //    //}
            //    DALUse.ExecuteSql(sql);
            //    //this.FindForm().Close();
            //    uctlMessageBox.frmDisappearShow("添加成功!");
            //}
            //catch (Exception ex)
            //{

            //    MessageBox.Show(ex.ToString());
            //}
            //InitTreeListData();
            //Initgc_nodeData();
            //tl_node.ExpandAll();
        }
        private void btn_newlayout_Click(object sender, EventArgs e)
        {
            Form f = new Form();
            f.FormBorderStyle = FormBorderStyle.None;
            uctlAddNewXMLLayout anxl = new uctlAddNewXMLLayout();
            if (cmb_pt.SelectedItem==null)
            {
                return;
            }
            anxl.pt_id = cmb_pt.SelectedValue.ToString();
            f.Size = new Size(528, 71);
            CommonFunction.AddForm(f, anxl);
            getLayoutData();

            //try
            //{
            //    string sql = "";
            //    //if (publicProperty.DATABASETYPE =="ORACLE")
            //    //{
            //    //Guid g = new Guid();
            //        sql = string.Format("insert into pt_xml_config(ID,FIELD_NAME,pt_id,field) values('{1}','���ڵ�','{0}','MYROOT')", cmb_pt.SelectedValue.ToString(),Guid.NewGuid());
            //    //}
            //    //else if (publicProperty.DATABASETYPE=="SQLSERVER")
            //    //{
            //    //    sql = string.Format("insert into pt_xml_config(FIELD_NAME,pt_id) values('���ڵ�',{0})", cmb_pt.SelectedValue.ToString());
            //    //}
            //    DALUse.ExecuteSql(sql);
            //    //this.FindForm().Close();
            //    uctlMessageBox.frmDisappearShow("��ӳɹ���");
            //}
            //catch (Exception ex)
            //{

            //    MessageBox.Show(ex.ToString());
            //}
            //InitTreeListData();
            //Initgc_nodeData();
            //tl_node.ExpandAll();
        }