private void OperateData(ProductChannelPeriodPriceOperate operate)
        {
            var vm = DataContext as ProductChannelPeriodPriceVM;

            if (vm == null)
            {
                return;
            }

            if (!ValidationManager.Validate(this))
            {
                return;
            }
            _facade    = new ProductChannelInfoFacade();
            vm.SysNo   = _sysNo;
            vm.Operate = operate;

            if (!(vm.BeginDate.HasValue && vm.EndDate.HasValue))
            {
                CPApplication.Current.CurrentPage.Context.Window.Alert("改价时间不能为空.");
                return;
            }

            if (vm.Operate == ProductChannelPeriodPriceOperate.Submit && vm.Note.Equals(string.Empty))
            {
                CPApplication.Current.CurrentPage.Context.Window.Alert("活动说明不能为空.");
                return;
            }

            if (_sysNo == 0)
            {
                _facade.CreateProductChannelPeriodPrice(vm, (obj, args) =>
                {
                    if (args.FaultsHandle())
                    {
                        return;
                    }
                    CPApplication.Current.CurrentPage.Context.Window.Alert(ResBrandMaintain.Info_SaveSuccessfully);

                    CloseDialog(DialogResultType.OK);
                });
            }
            else
            {
                _facade.UpdateProductChannelPeriodPrice(vm, (obj, args) =>
                {
                    if (args.FaultsHandle())
                    {
                        return;
                    }
                    CPApplication.Current.CurrentPage.Context.Window.Alert(ResBrandMaintain.Info_SaveSuccessfully);

                    CloseDialog(DialogResultType.OK);
                });
            }
        }