コード例 #1
0
        public void AuditRefused(RequestVM vm, EventHandler <RestClientEventArgs <RMARequestInfo> > callback)
        {
            string relativeUrl = "/RMAService/Request/Refused";
            var    msg         = vm.ConvertVM <RequestVM, RMARequestInfo>();

            restClient.Update <RMARequestInfo>(relativeUrl, msg, (obj, args) =>
            {
                if (args.FaultsHandle())
                {
                    return;
                }

                callback(obj, args);
            });
        }
コード例 #2
0
        public void Create(RequestVM vm, EventHandler <RestClientEventArgs <RMARequestInfo> > callback)
        {
            string relativeUrl = "/RMAService/Request/Create";
            var    msg         = vm.ConvertVM <RequestVM, RMARequestInfo>();

            msg.CompanyCode         = CPApplication.Current.CompanyCode;
            msg.NeedVerifyDuplicate = !vm.IsCancelVerifyDuplicate;

            restClient.Create <RMARequestInfo>(relativeUrl, msg, (obj, args) =>
            {
                if (args.FaultsHandle())
                {
                    return;
                }

                callback(obj, args);
            });
        }