/// <summary> /// 创建RMA跟进日志 /// </summary> /// <param name="data"></param> /// <param name="callback"></param> public void Create(RMATrackingVM vm, EventHandler <RestClientEventArgs <InternalMemoInfo> > callback) { InternalMemoInfo data = vm.ConvertVM <RMATrackingVM, InternalMemoInfo>(); data.CompanyCode = CPApplication.Current.CompanyCode; string relativeUrl = "/RMAService/RMATracking/Create"; restClient.Update <InternalMemoInfo>(relativeUrl, data, (obj, args) => { if (args.FaultsHandle()) { return; } callback(obj, args); }); }
/// <summary> /// 关闭RMA跟进日志 /// </summary> /// <param name="data"></param> /// <param name="callback"></param> public void Close(RMATrackingVM vm, EventHandler <RestClientEventArgs <string> > callback) { InternalMemoInfo data = vm.ConvertVM <RMATrackingVM, InternalMemoInfo>(); data.Status = InternalMemoStatus.Close; string relativeUrl = "/RMAService/RMATracking/Close"; restClient.Update <string>(relativeUrl, data, (obj, args) => { if (args.FaultsHandle()) { return; } callback(obj, args); }); }