using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using SuperMap.RealEstate.CoreFrameWork.Modules; using System.Data; using SuperMap.RealEstate.Web.UI; using SuperMap.RealEstate.Web.UI.WebControls; using SuperMap.RealEstate.Web.Utility; using HighWayStorage = SuperMap.RealEstate.HighWay.Storage; namespace SuperMap.RealEstate.SendRec.Modules.SearchCommodity { public partial class ObjectTree : BasePage { private HighWayStorage.Business.COMMODITYTYPE _COMMODITYTYPE = null; protected void Page_Load(object sender, EventArgs e) { if (IsPostBack) return; try { this.FixTreeViewDoubleClick(MyTreeView, true); SetControlClientAction(ButtonSearch); TreeViewBinding(false); } catch (Exception ex) { throw ex; } finally { } } private void TreeViewBinding(bool withChildNodes) { _COMMODITYTYPE = new HighWayStorage.Business.COMMODITYTYPE(this.Transaction); MyTreeView.Nodes.Clear(); _COMMODITYTYPE.BindingTreeView_Ex("-1", this.MyTreeView.Nodes, this.TextBoxSearch.Text, withChildNodes, "1234", "ObjectPage.aspx", ""); } protected void MyTreeView_TreeNodePopulate(object sender, TreeNodeEventArgs e) { if (_COMMODITYTYPE == null) _COMMODITYTYPE = new HighWayStorage.Business.COMMODITYTYPE(this.Transaction); _COMMODITYTYPE.BindingTreeView_Ex(e.Node.Value, e.Node.ChildNodes, this.TextBoxSearch.Text, false, "1234", "ObjectPage.aspx", ""); } protected void ButtonSearch_Click(object sender, EventArgs e) { TreeViewBinding(false); } } }