Ejemplo n.º 1
0
        /// <summary>
        /// 提交CS处理
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnCSHandle_Click(object sender, RoutedEventArgs e)
        {
            if (vm.SOSysno == null)
            {
                CPApplication.Current.CurrentPage.Context.Window.Alert(ResComment.Information_NotExistsSOSysNo, Newegg.Oversea.Silverlight.Controls.Components.MessageType.Information);
            }
            else
            {
                ECCentral.BizEntity.SO.SOComplaintCotentInfo info = new BizEntity.SO.SOComplaintCotentInfo();
                info.ComplainTime       = DateTime.Now;
                info.ComplainType       = ResComment.Content_Other;
                info.ComplainSourceType = ResComment.Content_ProductReview;
                info.SOSysNo            = vm.SOSysno.Value;
                info.ComplainContent    = string.Format(ResComment.Content_ComplainContent, vm.Prons, vm.Cons, vm.Service); //"优点:" + vm.Prons + "\r\n缺点:" + vm.Cons + "\r\n其他:" + vm.Service;
                info.Subject            = vm.Title;
                info.CustomerSysNo      = int.Parse(vm.CustomerSysNo);
                info.CustomerEmail      = string.Empty;//到service端去获取
                info.CustomerPhone      = string.Empty;
                info.CustomerName       = string.Empty;
                info.CompanyCode        = Newegg.Oversea.Silverlight.ControlPanel.Core.CPApplication.Current.CompanyCode;
                facade.SubmitReplyToCSProcess(info, (obj, args) =>
                {
                    if (args.FaultsHandle())
                    {
                        return;
                    }

                    CPApplication.Current.CurrentPage.Context.Window.Alert(ResComment.Information_OperateSuccessful, Newegg.Oversea.Silverlight.Controls.Components.MessageType.Information);
                    if (Dialog != null)
                    {
                        Dialog.ResultArgs.Data         = null;
                        Dialog.ResultArgs.DialogResult = DialogResultType.OK;
                        Dialog.Close();
                    }
                });
            }
        }
Ejemplo n.º 2
0
 public virtual void CallingToComplaint(BizEntity.SO.SOComplaintCotentInfo request)
 {
     //用SOComplaintCotentInfo 做DTO,借用字段 sysno
     ObjectFactory <CallsEventsProcessor> .Instance.TransComplaint(request.SysNo.Value, request);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// 添加订单投诉
 /// </summary>
 /// <param name="complaintInfo"></param>
 /// <returns></returns>
 public static BizEntity.SO.SOComplaintCotentInfo AddComplain(BizEntity.SO.SOComplaintCotentInfo complaintInfo)
 {
     return(ObjectFactory <ISOBizInteract> .Instance.AddComplain(complaintInfo));
 }