private void hyperlinkPropertyValueMultiLanguage_Click(object sender, RoutedEventArgs e)
        {
            if (!AuthMgr.HasFunctionPoint(AuthKeyConst.IM_ProductMaintain_ItemMultiLanguage))
            {
                CPApplication.Current.CurrentPage.Context.Window.Alert("你无此操作权限");
                return;
            }

            dynamic selectItem = this.dgProductPropertyInfo.SelectedItem as dynamic;

            if (selectItem.SysNo == null)
            {
                MessageBox.Show("还没有输入该属性的值,请输入值保存之后再刷新页面!");
                return;
            }

            UCMultiLanguageMaintain item = new UCMultiLanguageMaintain(selectItem.SysNo, "ProductHasProperty");

            item.Dialog = MyWindow.ShowDialog("设置属性多语言", item, (s, args) =>
            {
                if (args.DialogResult == Newegg.Oversea.Silverlight.Controls.Components.DialogResultType.OK)
                {
                    //this.dgProductPropertyInfo.Bind();
                }
            }, new Size(750, 600));
        }
Ejemplo n.º 2
0
        private void MultiLanguagelinkCategorySysNo_Click(object sender, RoutedEventArgs e)
        {
            dynamic d = this.dgCategoryQueryResult.SelectedItem as dynamic;
            string  BizEntityType;

            if (d.Category3SysNo != 0)
            {
                BizEntityType = "Category3";
            }
            else if (d.Category2SysNo != 0)
            {
                BizEntityType = "Category2";
            }
            else
            {
                BizEntityType = "Category1";
            }

            UCMultiLanguageMaintain item = new UCMultiLanguageMaintain(d.CategorySysNo, BizEntityType);

            item.Dialog = Window.ShowDialog("编辑类别多语言", item, (s, args) =>
            {
                if (args.DialogResult == Newegg.Oversea.Silverlight.Controls.Components.DialogResultType.OK)
                {
                    this.dgCategoryQueryResult.Bind();
                }
            }, new Size(750, 600));
        }
Ejemplo n.º 3
0
        //多语言编辑
        private void MultiLanguagehyperlinkAccessoryID_Click(object sender, RoutedEventArgs e)
        {
            dynamic manufacturer         = this.dgAccessoryQueryResult.SelectedItem as dynamic;
            UCMultiLanguageMaintain item = new UCMultiLanguageMaintain(manufacturer.SysNo, "Accessories");

            item.Dialog = Window.ShowDialog("编辑配件多语言", item, (s, args) =>
            {
            }, new Size(750, 600));
        }
Ejemplo n.º 4
0
        private void MultiLanguagelinkManufacturer_Click(object sender, RoutedEventArgs e)
        {
            dynamic manufacturer = this.dgManufacturerQueryResult.SelectedItem as dynamic;

            UCMultiLanguageMaintain item = new UCMultiLanguageMaintain(manufacturer.SysNo, "Manufacturer");

            item.Dialog = Window.ShowDialog("编辑制造商多语言", item, (s, args) =>
            {
            }, new Size(750, 600));
        }
Ejemplo n.º 5
0
        private void hyperlinkEditEditPropertyMultiLanguage_Click(object sender, RoutedEventArgs e)
        {
            dynamic property = this.dgPropertyQueryResult.SelectedItem as dynamic;

            UCMultiLanguageMaintain item = new UCMultiLanguageMaintain(property.SysNo, "PIM_Property");

            item.Dialog = Window.ShowDialog("更新属性多语言", item, (s, args) =>
            {
                if (args.DialogResult == Newegg.Oversea.Silverlight.Controls.Components.DialogResultType.OK)
                {
                    this.dgPropertyQueryResult.Bind();
                }
            }, new Size(750, 600));
        }
Ejemplo n.º 6
0
        /// <summary>
        /// 设置属性组多语言
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void hyperlinkMultiLanguageEdit_Click(object sender, RoutedEventArgs e)
        {
            dynamic selectItem = this.dgCategoryPropertyQueryResult.SelectedItem as dynamic;

            UCMultiLanguageMaintain item = new UCMultiLanguageMaintain(selectItem.PropertyGroupSysNo, "PIM_PropertyGroup");

            item.Dialog = Window.ShowDialog("设置属性组多语言", item, (s, args) =>
            {
                if (args.DialogResult == Newegg.Oversea.Silverlight.Controls.Components.DialogResultType.OK)
                {
                    //this.dgProductPropertyInfo.Bind();
                }
            }, new Size(750, 600));
        }
Ejemplo n.º 7
0
        private void hyperlinkAccessoryMultiLanguage_Click(object sender, RoutedEventArgs e)
        {
            dynamic selectItem = this.dgProductAccessoryList.SelectedItem as dynamic;

            UCMultiLanguageMaintain item = new UCMultiLanguageMaintain(selectItem.SysNo, "ProductHasAccessories");

            item.Dialog = MyWindow.ShowDialog("设置配件多语言", item, (s, args) =>
            {
                if (args.DialogResult == Newegg.Oversea.Silverlight.Controls.Components.DialogResultType.OK)
                {
                    //this.dgProductPropertyInfo.Bind();
                }
            }, new Size(750, 600));
        }
Ejemplo n.º 8
0
        //商品多语言编辑
        private void ucProductQueryCondition_GridView_HyperlinkMultiLanguageEdit_Click(object sender, RoutedEventArgs e)
        {
            if (!AuthMgr.HasFunctionPoint(AuthKeyConst.IM_ProductQuery_MultiLanguage))
            {
                CPApplication.Current.CurrentPage.Context.Window.Alert("你无此操作权限");
                return;
            }

            dynamic product = this.ucProductQueryResult.dgProductQueryResult.SelectedItem as dynamic;
            UCMultiLanguageMaintain item = new UCMultiLanguageMaintain(product.SysNo, "Product");

            item.Dialog = Window.ShowDialog("编辑商品多语言", item, (s, args) =>
            {
            }, new Size(750, 600));
        }
Ejemplo n.º 9
0
        //更新品牌多语言信息
        private void hyperlinkBrandIDLang_Click(object sender, RoutedEventArgs e)
        {
            dynamic manufacturer = this.dgBrandQueryResult.SelectedItem as dynamic;

            UCMultiLanguageMaintain item = new UCMultiLanguageMaintain(manufacturer.SysNo, "Brand");

            item.Dialog = Window.ShowDialog("更新品牌多语言", item, (s, args) =>
            {
                if (args.DialogResult == Newegg.Oversea.Silverlight.Controls.Components.DialogResultType.OK)
                {
                    this.dgBrandQueryResult.Bind();
                }
            }, new Size(750, 600));


            //if (manufacturer != null)
            //{
            //    this.Window.Navigate(string.Format(ConstValue.IM_BrandMaintainUrlFormat, manufacturer.SysNo), null, true);
            //}
        }