コード例 #1
0
        /// <summary>
        /// 保存
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnSave_Click(object sender, RoutedEventArgs e)
        {
            if (string.IsNullOrEmpty(tbCSNote.Text))
            {
                CPApplication.Current.CurrentPage.Context.Window.Alert(ResComment.Information_BackupIsNotNull, Newegg.Oversea.Silverlight.Controls.Components.MessageType.Warning);
            }
            else
            {
                ProductReviewMailLog log = new ProductReviewMailLog();
                log.CompanyCode  = Newegg.Oversea.Silverlight.ControlPanel.Core.CPApplication.Current.CompanyCode;
                log.CSNote       = new BizEntity.LanguageContent(ECCentral.Portal.Basic.ConstValue.BizLanguageCode, tbCSNote.Text);
                log.RefSysNo     = this.SysNo;
                log.LanguageCode = ECCentral.Portal.Basic.ConstValue.BizLanguageCode;
                string mailContent = string.IsNullOrEmpty(tbTopicMailContent.Text) ? string.Empty : "--" + tbTopicMailContent.Text;
                log.TopicMailContent = new BizEntity.LanguageContent(ECCentral.Portal.Basic.ConstValue.BizLanguageCode, mailContent);
                log.Type             = "R";
                ProductReview productReview = vm.ConvertVM <ProductReviewQueryVM, ProductReview>();
                productReview.ProductReviewMailLog = log;
                facade.SaveProductReviewRemark(productReview, (s, args) =>
                {
                    if (args.FaultsHandle())
                    {
                        return;
                    }

                    CPApplication.Current.CurrentPage.Context.Window.Alert(ResComment.Information_OperateSuccessful, Newegg.Oversea.Silverlight.Controls.Components.MessageType.Information);
                });
            }
        }
コード例 #2
0
 private void Button_Search_Click(object sender, RoutedEventArgs e)
 {
     if (ValidationManager.Validate(this.QuerySection))
     {
         filter   = model.ConvertVM <ProductReviewQueryVM, ProductReviewQueryFilter>();
         filterVM = Newegg.Oversea.Silverlight.Utilities.UtilityHelper.DeepClone <ProductReviewQueryFilter>(filter);
         QueryResultGrid.QueryCriteria = this.filter;
         QueryResultGrid.Bind();
     }
 }