public static bool SaveTrackingNumber(string salesOrderNumber, string trackingNumber)
        {
            //Send tracking number via save request
            var savReq = new PvxApi.SaveRequest();
            string dataLine = String.Format("{0},{1}\r\n{2},{3}",
                Properties.Settings.Default.SalesOrderTemplateHeader,
                Properties.Settings.Default.TrackingNumberTemplateHeader,
                salesOrderNumber, trackingNumber);
            savReq.CsvData = String.Format("\r\n{0}", dataLine);
            savReq.TemplateName = "Sales orders";

            if (IsServiceAvailable)
            {
                var res = serviceProxy.SaveData(savReq);
                LastError = res.Detail;
                return (res.ResponseId == 0);
            }
            return false;
        }
Beispiel #2
0
        public static bool SaveTrackingNumber(string salesOrderNumber, string trackingNumber)
        {
            //Send tracking number via save request
            var    savReq   = new PvxApi.SaveRequest();
            string dataLine = String.Format("{0},{1}\r\n{2},{3}",
                                            Properties.Settings.Default.SalesOrderTemplateHeader,
                                            Properties.Settings.Default.TrackingNumberTemplateHeader,
                                            salesOrderNumber, trackingNumber);

            savReq.CsvData      = String.Format("\r\n{0}", dataLine);
            savReq.TemplateName = "Sales orders";

            if (IsServiceAvailable)
            {
                var res = serviceProxy.SaveData(savReq);
                LastError = res.Detail;
                return(res.ResponseId == 0);
            }
            return(false);
        }
 /// <remarks/>
 public void SaveDataAsync(SaveRequest saveRequest, object userState) {
     if ((this.SaveDataOperationCompleted == null)) {
         this.SaveDataOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSaveDataOperationCompleted);
     }
     this.InvokeAsync("SaveData", new object[] {
                 saveRequest}, this.SaveDataOperationCompleted, userState);
 }
 /// <remarks/>
 public void SaveDataAsync(SaveRequest saveRequest) {
     this.SaveDataAsync(saveRequest, null);
 }
 public IntegrationResponse SaveData(SaveRequest saveRequest) {
     object[] results = this.Invoke("SaveData", new object[] {
                 saveRequest});
     return ((IntegrationResponse)(results[0]));
 }