private void Hyperlink_EditData_Click(object sender, RoutedEventArgs e) { if (!AuthMgr.HasFunctionPoint(AuthKeyConst.Common_FreeShippingChargeRule_Edit)) { Window.Alert("您没有此功能的操作权限!"); return; } dynamic rows = QueryResult.SelectedItem; if (rows == null) { return; } var sysno = rows.SysNo; UCFreeShippingChargeRule dialog = new UCFreeShippingChargeRule(sysno); dialog.CurrentDialog = CPApplication.Current.CurrentPage.Context.Window.ShowDialog("编辑免运费规则", dialog, (obj, args) => { if (args.DialogResult == Newegg.Oversea.Silverlight.Controls.Components.DialogResultType.OK) { QueryResult.Bind(); } }); }
private void btnNewArea_Click(object sender, RoutedEventArgs e) { if (!AuthMgr.HasFunctionPoint(AuthKeyConst.Common_FreeShippingChargeRule_Edit)) { Window.Alert("您没有此功能的操作权限!"); return; } UCFreeShippingChargeRule dialog = new UCFreeShippingChargeRule(null); dialog.CurrentDialog = CPApplication.Current.CurrentPage.Context.Window.ShowDialog("新建免运费规则", dialog, (obj, args) => { if (args.DialogResult == Newegg.Oversea.Silverlight.Controls.Components.DialogResultType.OK) { QueryResult.Bind(); } }); }