Пример #1
0
        public override void OnPageLoad(object sender, EventArgs e)
        {
            base.OnPageLoad(sender, e);
            facade = new RMATrackingFacade(this);
            this.QueryFilter.DataContext = queryVM = new RMATrackingQueryVM();

            int    registerSysNo;
            string RegisterSysNo = this.Request.Param;

            if (!string.IsNullOrEmpty(RegisterSysNo) &&
                int.TryParse(RegisterSysNo, out registerSysNo))
            {
                TextBox_RegisterSysNo.Text = RegisterSysNo;
                queryVM.RegisterSysNo      = RegisterSysNo;
                lastQueryVM = Newegg.Oversea.Silverlight.Utilities.UtilityHelper.DeepClone <RMATrackingQueryVM>(queryVM);

                this.DataGrid_Query_ResultList.Bind();
            }
            else
            {
                if (RegisterSysNo != null)
                {
                    Window.Alert(ResRMATracking.Msg_RegisterSysNoError, ResRMATracking.Msg_RegisterSysNoError, MessageType.Warning, (obj, args) =>
                    {
                        Window.Close();
                    });
                }
            }
            BuildValidateCondition();
            SetAccessControl();
        }
Пример #2
0
 public override void OnPageLoad(object sender, EventArgs e)
 {
     base.OnPageLoad(sender, e);
     facade = new RMATrackingFacade(this);
     this.QueryFilter.DataContext = queryVM = new RMATrackingQueryVM();
     LoadComboBoxData();
     SetAccessControl();
 }
Пример #3
0
        private void LoadComboBoxData()
        {
            RMATrackingFacade facade = new RMATrackingFacade(CPApplication.Current.CurrentPage);

            facade.GetRMATrackingHandleUsers(true, (obj, args) =>
            {
                this.Combo_TrackingHandlers.ItemsSource = args.Result;
            });
        }
Пример #4
0
 private void Button_Save_Click(object sender, RoutedEventArgs e)
 {
     if (!ValidationHelper.Validation(this.TextBox_Note, Validation))
     {
         return;
     }
     RMATrackingFacade facade = new RMATrackingFacade(CPApplication.Current.CurrentPage);
     facade.Close(VM, (obj, args) =>
     {
         if (Dialog != null)
         {
             Dialog.ResultArgs.Data = args;
             Dialog.ResultArgs.DialogResult = DialogResultType.OK;
             Dialog.Close();
         }
     });
 }
Пример #5
0
        private void Button_Save_Click(object sender, RoutedEventArgs e)
        {
            if (!ValidationHelper.Validation(this.Combo_TrackingHandlers, Validation))
            {
                return;
            }
            RMATrackingBatchActionReq request = new RMATrackingBatchActionReq();

            request.HandlerSysNo = vm.HandlerSysNo;
            request.SysNoList    = vm.SysNoList;
            RMATrackingFacade facade = new RMATrackingFacade(CPApplication.Current.CurrentPage);

            facade.Dispatch(request, (obj, args) =>
            {
                if (Dialog != null)
                {
                    Dialog.ResultArgs.Data         = args;
                    Dialog.ResultArgs.DialogResult = DialogResultType.OK;
                    Dialog.Close();
                }
            });
        }