Example #1
0
        private void btnPMNew_Click(object sender, RoutedEventArgs e)
        {
            dynamic pm = this.dgPMQueryResult.SelectedItem as dynamic;
            ProductManagerMaintain detail = new ProductManagerMaintain()
            {
                IsUpdate = false
            };

            detail.Dialog = Window.ShowDialog("添加PM", detail, (s, args) =>
            {
                if (args.DialogResult == Newegg.Oversea.Silverlight.Controls.Components.DialogResultType.OK)
                {
                }
            }, new Size(800, 600));
        }
Example #2
0
        private void hyperlinkPMSysNo_Click(object sender, RoutedEventArgs e)
        {
            //dynamic pm = this.dgPMQueryResult.SelectedItem as dynamic;
            //if (pm != null)
            //{
            //    this.Window.Navigate(string.Format(ConstValue.IM_PMMaintainUrlFormat, pm.SysNo), null, true);
            //}
            //else
            //{
            //    Window.Alert(ResPMQuery.Msg_OnSelectPM, MessageType.Error);
            //}
            dynamic pm = this.dgPMQueryResult.SelectedItem as dynamic;
            ProductManagerMaintain detail = new ProductManagerMaintain()
            {
                IsUpdate = true, SysNo = pm.SysNo
            };

            detail.Dialog = Window.ShowDialog("更新PM", detail, (s, args) =>
            {
                if (args.DialogResult == Newegg.Oversea.Silverlight.Controls.Components.DialogResultType.OK)
                {
                }
            }, new Size(800, 600));
        }