示例#1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Ext.Net.X.IsAjaxRequest)
            {
                DateTimeLabel.Text = String.Format("{0} <b>{1}</b>", DateTime.Now.ToLongDateString(), DateTime.Now.ToLongTimeString());
                InsertFromBuffer.Visible = CopyToBufferPlaceHolder.Visible = !(ClassifiacationTypeView == ClassifiacationTypeView.Dictionary);
                DeleteFromClass.Visible = (ClassifiacationTypeView == ClassifiacationTypeView.Custom);

                #region classification_tree
                using (ITreeProvider provider = new ClassificationProvider())
                {
                    this.BindClassView(provider, Guid.Empty, null, RequestClassificationTreeID);
                }

                using (ITreeProvider provider = new CustomClassificationProvider())
                {
                    this.BindClassView(provider, Guid.Empty, null, RequestClassificationTreeID);
                }
                using (ITreeProvider provider = new Aspect.Model.DictionaryDomain.DictionaryProvider())
                {

                    this.BindClassView(provider, Guid.Empty, null, RequestClassificationTreeID);
                }
                #endregion

                this.BindGrid2Columns();
                InitialTopPageBar();

                UserName.Text = this.User.Name;
                this.Title += this.selectedNodeText;
            }
        }
示例#2
0
 protected void DeleteFromClass_Click(object sender, EventArgs e)
 {
     using (CustomClassificationProvider provider = new CustomClassificationProvider())
     {
         if ((this.MultiBuffer.Count > 0) && provider.GetTreeNode(this.RequestClassificationTreeID) != null)
         {
             provider.DeleteProducts(this.User.ID, this.RequestClassificationTreeID, hiddenSelectedProducts.Value.ToString().Split(',').Select(s => new Guid(s)).ToList());
             //provider.DeleteProducts(id, this.ProductsBuffer);
         }
     }
     //insert here
     //RefreshButton_Click(sender, e);
     GridPanel1.Reload();
 }