Exemple #1
0
        public override void OnPageLoad(object sender, EventArgs e)
        {
            facade            = new ProductKeywordsQueryFacade(this);
            filter            = new ProductKeywordsQueryFilter();
            model             = new ProductKeywordsQueryVM();
            model.ChannelID   = "1";
            model.CompanyCode = Newegg.Oversea.Silverlight.ControlPanel.Core.CPApplication.Current.CompanyCode;

            comProductStatus.ItemsSource = EnumConverter.GetKeyValuePairs <ECCentral.BizEntity.IM.ProductStatus>(EnumConverter.EnumAppendItemType.All);
            this.DataContext             = model;

            facade.GetProductKeywordsEditUserList(Newegg.Oversea.Silverlight.ControlPanel.Core.CPApplication.Current.CompanyCode, (s, args) =>
            {
                if (args.FaultsHandle())
                {
                    return;
                }
                List <UserInfo> userList = args.Result;
                userList.Insert(0, new UserInfo {
                    SysNo = null, UserName = ResCommonEnum.Enum_All
                });
                comEditUser.ItemsSource = userList;
            });

            base.OnPageLoad(sender, e);
        }
Exemple #2
0
        /// <summary>
        /// 编辑
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void hlEdit_Click(object sender, RoutedEventArgs e)
        {
            ProductKeywordsQueryVM item = this.QueryResultGrid.SelectedItem as ProductKeywordsQueryVM;

            UCEditProductKeywords usercontrol = new UCEditProductKeywords();

            usercontrol.VM     = item;
            usercontrol.Dialog = Window.ShowDialog(ResKeywords.Title_EditProductPageKeywords, usercontrol, (obj, args) =>
            {
                QueryResultGrid.Bind();
            });
        }