private void HyperlinkButton_Click(object sender, RoutedEventArgs e)
        {
            dynamic d = this.ManufacturerRequestResult.SelectedItem as dynamic;
            ManufacturerRequestVM data = new ManufacturerRequestVM()
            {
                SysNo                 = d.SysNo,
                Status                = d.Status,
                Reasons               = d.Reasons,
                ManufacturerSysNo     = d.ManufacturerSysNo,
                ManufacturerStatus    = d.ManufacturerStatus,
                ManufacturerBriefName = d.ManufacturerBriefName,
                ManufacturerName      = d.ManufacturerName,
                OperationType         = d.OperationType,
                ProductLine           = d.ProductLine,
            };

            ManufacturerRequestMaintain item = new ManufacturerRequestMaintain();

            item.Action = ManufacturerAction.Audit;
            item.Data   = data;
            item.Dialog = Window.ShowDialog("生产商审核", item, (s, args) =>
            {
                if (args.DialogResult == Newegg.Oversea.Silverlight.Controls.Components.DialogResultType.OK)
                {
                    this.ManufacturerRequestResult.Bind();
                }
            }, new Size(600, 500));
        }
Esempio n. 2
0
        //新建生产商
        private void btnManufacturerNew_Click(object sender, RoutedEventArgs e)
        {
            ManufacturerRequestMaintain item = new ManufacturerRequestMaintain();

            item.Action = ManufacturerAction.Add;
            item.Dialog = Window.ShowDialog("添加生产商", item, (s, args) =>
            {
                if (args.DialogResult == Newegg.Oversea.Silverlight.Controls.Components.DialogResultType.OK)
                {
                    this.dgManufacturerQueryResult.Bind();
                }
            }, new Size(600, 500));

            //Window.Navigate(ConstValue.IM_ManufacturerMaintainCreateFormat, null, true);
        }
Esempio n. 3
0
        //编辑生产商
        private void hyperlinkManufacturerID_Click(object sender, RoutedEventArgs e)
        {
            dynamic manufacturer             = this.dgManufacturerQueryResult.SelectedItem as dynamic;
            ManufacturerRequestMaintain item = new ManufacturerRequestMaintain();

            item.ManufacturerSysNo = manufacturer.SysNo;
            item.Action            = ManufacturerAction.Edit;
            item.Dialog            = Window.ShowDialog("更新生产商", item, (s, args) =>
            {
                if (args.DialogResult == Newegg.Oversea.Silverlight.Controls.Components.DialogResultType.OK)
                {
                    this.dgManufacturerQueryResult.Bind();
                }
            }, new Size(600, 500));
            //if (manufacturer != null)
            //{
            //    this.Window.Navigate(string.Format(ConstValue.IM_ManufacturerMaintainUrlFormat, manufacturer.SysNo), null, true);
            //}
        }