async Task CancelAsync()
        {
            //client.BaseAddress = new Uri("http://tamasdeep1624-eval-test.apigee.net/proxyfleetapi");
            //client.DefaultRequestHeaders.Accept.Clear();
            //client.DefaultRequestHeaders.Add("apikey", "NbqYQDjspLDvorREUZAnyHZyCC3GoPGs");

            //HttpContent content;
            HttpResponseMessage response;
            ShipmentOrder       shipmentorder = carriershipmentOrderdataGrid.SelectedItem as ShipmentOrder;

            Debug.WriteLine(client.DefaultRequestHeaders);
            Debug.WriteLine("shipment " + shipmentorder.ShipmentId);
            shipmentorder.CarrierId = null;
            string json = JsonConvert.SerializeObject(shipmentorder.Shipment);

            Debug.WriteLine(json);
            HttpContent content;

            content  = new StringContent(json, Encoding.UTF8, "application/json");
            response = await client.PutAsync("http://fleetapi-dev.us-east-1.elasticbeanstalk.com/api/Shipments/" + shipmentorder.ShipmentId, content);

            Debug.WriteLine(response);
            if (response.IsSuccessStatusCode)
            {
                Windows.Storage.ApplicationDataContainer localSettings = Windows.Storage.ApplicationData.Current.LocalSettings;
                int CarrierID = (int)localSettings.Values["CarrierID"];
                InitcarriershipmentOrdergrid(CarrierID).GetAwaiter();
                success.Text       = "Successfully Canceled Shipment Order";
                success.Visibility = Visibility.Visible;
            }
        }
Exemplo n.º 2
0
        public async Task <JsonResult> Create(ShipmentOrderViewModel shipmentOrderViewModel)
        {
            var shipmentOrder = new ShipmentOrder();

            shipmentOrder = Mapper.Map <ShipmentOrderViewModel, ShipmentOrder>(shipmentOrderViewModel);

            var usermanager = new UserManager();
            var customer    = usermanager.FindByIdByCache(shipmentOrder.CustomerId);

            shipmentOrder.CustomerName = customer.Name;

            var serialNumberManager = new SerialNumberManager(User);

            shipmentOrder.Id = SaleManagentConstants.Misc.ShipmentOrderPrefix + await serialNumberManager.NextSNAsync(SaleManagentConstants.SerialNames.ShipmentOrder);

            shipmentOrder.CompanyId = User.CompanyId;
            shipmentOrder.ShipmentOrderInfos.Each(r => r.ShipmentOrderId = shipmentOrder.Id);
            var shipmentManager = new ShipmentManager(User);
            var result          = await shipmentManager.CreateAsync(shipmentOrder);

            if (result.Succeeded)
            {
                var orderIds = shipmentOrder.ShipmentOrderInfos.Select(r => r.Id);
                await new OrderManager(User).UpdateOrderStatusAsync(OrderStatus.Shipmenting, orderIds);
                await new OrderOperationLogManager(User).AddLogAsync(OrderStatus.Shipmenting, orderIds);
            }
            return(Json(result.Succeeded, "", result.Data));
        }
Exemplo n.º 3
0
        public ShipmentOrder LoadShipmentOrderTransaction(string billno)
        {
            ShipmentOrder e1 = new ShipmentOrder();

            con                  = new SqlConnection();
            cmd                  = new SqlCommand();
            cmd.CommandText      = string.Format("select * from ShipmentOrder where dealeruserid='{0}' and [BillNo.]='{1}'", dealer.UserId, billno);
            con.ConnectionString = Connection;
            con.Open();
            cmd.Connection = con;
            cmd.ExecuteNonQuery();
            reader = cmd.ExecuteReader();
            if (reader.Read())
            {
                e1 = new ShipmentOrder(reader[3].ToString(), reader[0].ToString(), reader[1].ToString(), double.Parse(reader[2].ToString()));

                reader.Close();
                con.Close();
                return(e1);
            }
            else
            {
                reader.Close();
                con.Close();
                return(null);
            }
        }
Exemplo n.º 4
0
        async Task SaveAsync()
        {
            //selectedshipment.Broker = selectedbroker;
            selectedshipment.BrokerId = selectedbroker.Id;
            ShipmentOrder shipmentOrder = new ShipmentOrder {
                ShipmentId = selectedshipment.Id, Notes = "this is note for shipment order"
            };

            client.DefaultRequestHeaders.Accept.Clear();
            client.DefaultRequestHeaders.Add("apikey", "NbqYQDjspLDvorREUZAnyHZyCC3GoPGs");
            string json = JsonConvert.SerializeObject(shipmentOrder);

            Debug.WriteLine(json);
            HttpContent         content;
            HttpResponseMessage response;

            content = new StringContent(json, Encoding.UTF8, "application/json");
            Debug.WriteLine(client.DefaultRequestHeaders);
            response = await client.PostAsync("http://tamasdeep1624-eval-test.apigee.net/proxyfleetapi/api/ShipmentOrders", content);

            if (response.IsSuccessStatusCode)
            {
                success.Text = "Successfully Created Shipment Order";
            }
            else
            {
                success.Text = "failed to save";
            }
            Debug.WriteLine(response);
        }
Exemplo n.º 5
0
        public async Task <IRestResponse <T> > SendAsync <T>(ShipmentOrder shipmentOrder, MgTechnoCompanyInfo companyInfo)
        {
            var payload = _shipmentOrderFactory.CreatePayload(shipmentOrder, companyInfo);

            return(await RetryingHelper
                   .CreateDefaultPolicy <Exception>()
                   .ExecuteWithPolicy(() => _dhlHttpClientFactory
                                      .CreateShipmentOrderRequestAsync <T>(payload))
                   .ConfigureAwait(false));
        }
        public async Task <IActionResult> PostShipmentOrder([FromBody] ShipmentOrder shipmentOrder)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            _context.ShipmentOrder.Add(shipmentOrder);
            await _context.SaveChangesAsync();

            return(CreatedAtAction("GetShipmentOrder", new { id = shipmentOrder.Id }, shipmentOrder));
        }
Exemplo n.º 7
0
 public ShipmentOrder VDelivery(ShipmentOrder shipmentorder, IShipmentOrderService _shipmentorderService, IContactService _contactService)
 {
     if (shipmentorder.DeliveryId == null)
     {
         shipmentorder.Errors.Add("Generic", "Invalid Delivery");
     }
     else if (_contactService.GetObjectById(shipmentorder.DeliveryId.Value) == null)
     {
         shipmentorder.Errors.Add("Generic", "Invalid Delivery");
     }
     return(shipmentorder);
 }
        private void Report()
        {
            ParameterField paramField1 = new ParameterField();


            //creating an object of ParameterFields class
            ParameterFields paramFields1 = new ParameterFields();

            //creating an object of ParameterDiscreteValue class
            ParameterDiscreteValue paramDiscreteValue1 = new ParameterDiscreteValue();

            //set the parameter field name
            paramField1.Name = "id";

            //set the parameter value
            paramDiscreteValue1.Value = ShID;

            //add the parameter value in the ParameterField object
            paramField1.CurrentValues.Add(paramDiscreteValue1);

            //add the parameter in the ParameterFields object
            paramFields1.Add(paramField1);
            ReportViewer    f2 = new ReportViewer();
            TableLogOnInfos reportLogonInfos = new TableLogOnInfos();
            TableLogOnInfo  reportLogonInfo  = new TableLogOnInfo();
            ConnectionInfo  reportConInfo    = new ConnectionInfo();
            Tables          tables           = default(Tables);
            //	Table table = default(Table);
            var with1 = reportConInfo;

            with1.ServerName   = "tcp:KyotoServer,49172";
            with1.DatabaseName = "ProductNRelatedDB_newforSpecialPrice";
            with1.UserID       = "sa";
            with1.Password     = "******";

            ShipmentOrder cr = new ShipmentOrder();

            tables = cr.Database.Tables;
            foreach (Table table in tables)
            {
                reportLogonInfo = table.LogOnInfo;
                reportLogonInfo.ConnectionInfo = reportConInfo;
                table.ApplyLogOnInfo(reportLogonInfo);
            }
            f2.crystalReportViewer1.ParameterFieldInfo = paramFields1;
            f2.crystalReportViewer1.ReportSource       = cr;

            this.Visible = false;

            f2.ShowDialog();
            this.Visible = true;
        }
Exemplo n.º 9
0
        public SeaContainer UpdateContainerInfo(SeaContainer seacontainer, IShipmentOrderService _shipmentorderService)
        {
            ShipmentOrder shipment = _shipmentorderService.GetObjectById(seacontainer.ShipmentOrderId);

            if (shipment != null)
            {
                if (shipment.SubJobNumber > 0)
                {
                    IList <ShipmentOrder> shipmentList = _shipmentorderService.GetQueryable().Where(x => x.JobId == shipment.JobId &&
                                                                                                    x.OfficeId == shipment.OfficeId && x.JobNumber == shipment.JobNumber).ToList();
                    ShipmentOrder        mainshipment = shipmentList.Where(x => x.SubJobNumber == 0).FirstOrDefault();
                    IList <SeaContainer> containerListMainShipment = GetQueryable().Where(x => x.ShipmentOrderId == mainshipment.Id).ToList();

                    foreach (var clms in containerListMainShipment)
                    {
                        decimal cbm         = 0;
                        decimal grossWeight = 0;
                        decimal netWeight   = 0;

                        // Get Total CBM, GrossWeight, NetWeight
                        foreach (var item in shipmentList)
                        {
                            if (item.SubJobNumber > 0)
                            {
                                var container = GetQueryable().Where(x => x.ShipmentOrderId == item.Id && x.ContainerNo == clms.ContainerNo).FirstOrDefault();
                                if (container != null)
                                {
                                    var subContainer = GetObjectById(container.Id);
                                    cbm         += subContainer.CBM.HasValue ? subContainer.CBM.Value : 0;
                                    netWeight   += subContainer.NetWeight.HasValue ? subContainer.NetWeight.Value : 0;
                                    grossWeight += subContainer.GrossWeight.HasValue ? subContainer.GrossWeight.Value : 0;
                                }
                            }
                        }

                        // Update Main Container
                        var mainContainer = GetObjectById(clms.Id);
                        if (mainContainer != null)
                        {
                            mainContainer.CBM         = cbm;
                            mainContainer.NetWeight   = netWeight;
                            mainContainer.GrossWeight = grossWeight;

                            UpdateObject(mainContainer);
                        }
                    }
                }
            }
            return(seacontainer);
        }
Exemplo n.º 10
0
 public ShipmentOrder VOBL(ShipmentOrder shipmentorder, IShipmentOrderService _shipmentorderService, IContactService _contactService, ICityLocationService _cityService)
 {
     if (shipmentorder.OBLStatus != "P")
     {
         if (shipmentorder.OBLCollectId == null)
         {
             shipmentorder.Errors.Add("Generic", "Invalid Freight Collect At");
         }
         else if (_cityService.GetObjectById(shipmentorder.OBLCollectId.Value) == null)
         {
             shipmentorder.Errors.Add("Generic", "Invalid Freight Collect At");
         }
     }
     return(shipmentorder);
 }
Exemplo n.º 11
0
        public async Task <InvokedResult <string> > CreateAsync(ShipmentOrder shipmentOrder)
        {
            shipmentOrder.CreatorId   = User.Id;
            shipmentOrder.CreatorName = User.Name;
            shipmentOrder.Created     = DateTime.Now;
            DbContext.Set <ShipmentOrder>().AddOrUpdate(shipmentOrder);
            await DbContext.SaveChangesAsync();

            var result = new InvokedResult <string>();

            result.Data      = shipmentOrder.Id;
            result.Succeeded = true;

            return(result);
        }
Exemplo n.º 12
0
        public async Task <JsonResult> Edit(ShipmentOrderViewModel shipmentOrderViewModel)
        {
            var shipmentOrder = new ShipmentOrder();

            var shipmentManager = new ShipmentManager(User);

            shipmentOrder = await shipmentManager.GetShipmentOrderAsync(shipmentOrderViewModel.Id);

            shipmentOrder = Mapper.Map <ShipmentOrderViewModel, ShipmentOrder>(shipmentOrderViewModel);
            shipmentOrder.ShipmentOrderInfos.Each(r => r.ShipmentOrderId = shipmentOrder.Id);

            var result = await shipmentManager.UpdateAsync(shipmentOrder);

            return(Json(result.Succeeded, "", result.Data));
        }
Exemplo n.º 13
0
        public ShipmentOrder[] LoadPrevoiusShipmentDealerTransactions()
        {
            LinkedList <ShipmentOrder> e1 = new LinkedList <ShipmentOrder>();

            con                  = new SqlConnection();
            cmd                  = new SqlCommand();
            cmd.CommandText      = string.Format("select [BillNo.] from ShipmentOrder where dealeruserid='{0}'", dealer.UserId);
            con.ConnectionString = Connection;
            con.Open();
            cmd.Connection = con;
            cmd.ExecuteNonQuery();
            reader = cmd.ExecuteReader();
            while (reader.Read())
            {
                ShipmentOrder e2 = new ShipmentOrder();
                e2.BillNo = reader[0].ToString();
                e1.AddLast(e2);
            }

            con.Close();
            return(e1.ToArray <ShipmentOrder>());
        }
Exemplo n.º 14
0
        async Task ShipmentOrderdeleteAsync()
        {
            //client.BaseAddress = new Uri("http://tamasdeep1624-eval-test.apigee.net/proxyfleetapi");
            //client.DefaultRequestHeaders.Accept.Clear();
            //client.DefaultRequestHeaders.Add("apikey", "NbqYQDjspLDvorREUZAnyHZyCC3GoPGs");

            Debug.WriteLine("deleting shipment order....");
            Shipment selectshipment = (Shipment)inprogrssshipmentdataGrid.SelectedItem;

            Debug.WriteLine("selected shipment id " + selectshipment.Id);
            HttpResponseMessage         response;
            IEnumerable <ShipmentOrder> ShipmentOrders = null;

            response = await client.GetAsync("http://fleetapi-dev.us-east-1.elasticbeanstalk.com/api/ShipmentOrders/");

            if (response.IsSuccessStatusCode)
            {
                string json = await response.Content.ReadAsStringAsync();

                ShipmentOrders = JsonConvert.DeserializeObject <IEnumerable <ShipmentOrder> >(json);
            }

            ShipmentOrder deleteshipmentOrder = ShipmentOrders.Where(x => x.ShipmentId == selectshipment.Id).FirstOrDefault();

            Debug.WriteLine("deleted shipent id " + deleteshipmentOrder.Id);
            response = await client.DeleteAsync("http://fleetapi-dev.us-east-1.elasticbeanstalk.com/api/ShipmentOrders/" + deleteshipmentOrder.Id);

            Debug.WriteLine(response);
            if (response.IsSuccessStatusCode)
            {
                Windows.Storage.ApplicationDataContainer localSettings = Windows.Storage.ApplicationData.Current.LocalSettings;
                int customerid = (int)localSettings.Values["customerID"];
                await RunAsync(customerid);

                success.Text       = "Successfully Deleted";
                success.Visibility = Visibility.Visible;
            }
        }
        public void CompleteOrderRecord(DataGridView d1, string bilno, string billissuedate, string dealerid, string imagepath)
        {
            OrderLineItem = new LinkedList <ShipmentOrderLineItem>();
            for (int i = 0; i < d1.RowCount - 1; i++)
            {
                bool x;
                if (d1.Rows[i].Cells[6].Value.ToString() == "Yes")
                {
                    x = true;
                }
                else
                {
                    x = false;
                }
                string date = d1.Rows[i].Cells[7].Value.ToString();

                OrderLineItem.AddLast(new ShipmentOrderLineItem(bilno, int.Parse(d1.Rows[i].Cells[0].Value.ToString()), d1.Rows[i].Cells[1].Value.ToString(), d1.Rows[i].Cells[2].Value.ToString(), int.Parse(d1.Rows[i].Cells[3].Value.ToString()), double.Parse(d1.Rows[i].Cells[4].Value.ToString()), Double.Parse(d1.Rows[i].Cells[5].Value.ToString()), x, date, SaveImage(imagepath)));
            }
            OrderTransaction = new ShipmentOrder(dealer.UserId, bilno, billissuedate, totalamt);
            WriteOrder();
            UpdateNewRemainingPayment();
            totalamt = 0;
        }
Exemplo n.º 16
0
        async Task ShipmentOrderdeleteAsync()
        {
            //client.BaseAddress = new Uri("http://tamasdeep1624-eval-test.apigee.net/proxyfleetapi");
            //client.DefaultRequestHeaders.Accept.Clear();
            //client.DefaultRequestHeaders.Add("apikey", "NbqYQDjspLDvorREUZAnyHZyCC3GoPGs");

            //HttpContent content;
            HttpResponseMessage response;
            ShipmentOrder       shipmentorder = shipmentOrderdataGrid.SelectedItem as ShipmentOrder;

            Debug.WriteLine("deleted shipment order id " + shipmentorder.Id);
            response = await client.DeleteAsync("http://fleetapi-dev.us-east-1.elasticbeanstalk.com/api/ShipmentOrders/" + shipmentorder.Id);

            Debug.WriteLine(response);
            if (response.IsSuccessStatusCode)
            {
                Windows.Storage.ApplicationDataContainer localSettings = Windows.Storage.ApplicationData.Current.LocalSettings;
                int brokerID = (int)localSettings.Values["brokerID"];
                await InitshipmentOrdergrid(brokerID);

                success.Text       = "Successfully Deleted Shipment Order";
                success.Visibility = Visibility.Visible;
            }
        }
Exemplo n.º 17
0
 public string CreatePayload(ShipmentOrder shipmentOrder, MgTechnoCompanyInfo companyInfo)
 {
     return($@"<?xml version=""1.0"" encoding=""utf-8""?>
     <soapenv:Envelope xmlns:soapenv=""http://schemas.xmlsoap.org/soap/envelope/"" xmlns:cis=""http://dhl.de/webservice/cisbase"" xmlns:bus=""http://dhl.de/webservices/businesscustomershipping"">
        <soapenv:Header>
           <cis:Authentification>
              <cis:user>{_authConfig.User}</cis:user>
              <cis:signature>{_authConfig.Signature}</cis:signature>
              <cis:apiUser>{_authConfig.ApiUser}</cis:apiUser>
              <cis:apiPassword>{_authConfig.ApiPassword}</cis:apiPassword>
           </cis:Authentification>
        </soapenv:Header>
        <soapenv:Body>
           <bus:CreateShipmentOrderRequest>
              <bus:Version>
                 <majorRelease>3</majorRelease>
                 <minorRelease>0</minorRelease>
              </bus:Version>
              <ShipmentOrder>
                 <sequenceNumber>{SequenceNumber}</sequenceNumber>
                 <Shipment>
                    <ShipmentDetails>
                       <product>{Product}</product>
                       <cis:accountNumber>{AccountNumber}</cis:accountNumber>
                       <customerReference>{shipmentOrder.CustomerReference}</customerReference>
                       <shipmentDate>{DateTime.Now:yyyy-MM-dd}</shipmentDate>
                       <ShipmentItem>
                          <weightInKG>{shipmentOrder.Weight}</weightInKG>
                       </ShipmentItem>
                    </ShipmentDetails>
                    <Shipper>
                       <Name>
                          <cis:name1>{companyInfo.Brand}</cis:name1>
                       </Name>
                       <Address>
                          <cis:streetName>{companyInfo.Address.Street.GetName()}</cis:streetName>
                          <cis:streetNumber>{companyInfo.Address.Street.GetNumber()}</cis:streetNumber>
                          <cis:zip>{companyInfo.Address.ZipCode}</cis:zip>
                          <cis:city>{companyInfo.Address.City}</cis:city>
                          <cis:Origin>
                             <cis:countryISOCode>{companyInfo.CountryId}</cis:countryISOCode>
                          </cis:Origin>
                       </Address>
                    </Shipper>
                    <Receiver>
                       <cis:name1>{shipmentOrder.FirstName}</cis:name1>
                       <Address>
                          <cis:streetName>{shipmentOrder.StreetName}</cis:streetName>
                          <cis:streetNumber>{shipmentOrder.StreetNumber}</cis:streetNumber>
                          <cis:zip>{shipmentOrder.Zip}</cis:zip>
                          <cis:city>{shipmentOrder.City}</cis:city>
                          <cis:Origin>
                             <cis:country>{Country}</cis:country>
                          </cis:Origin>
                       </Address>
                       <Communication>
                         <cis:contactPerson>{shipmentOrder.FirstName} {shipmentOrder.LastName}</cis:contactPerson>
                       </Communication>
                    </Receiver>
                 </Shipment>
              </ShipmentOrder>
           </bus:CreateShipmentOrderRequest>
        </soapenv:Body>
     </soapenv:Envelope>");
 }
        async Task RunAsync()
        {
            //client.BaseAddress = new Uri("http://tamasdeep1624-eval-test.apigee.net/proxyfleetapi");
            Address customerAddress = new Address {
                Name = cName.Text, Streetname = cAddress.Text, City = cCity.Text, Email = cEmail.Text, Postalcode = cZipCode.Text, Province = cProvince.SelectedValue.ToString(), Phone = cPhoneNumber.Text
            };
            Address originAddress = new Address {
                Name = oName.Text, Streetname = oAddress.Text, City = oCity.Text, Email = oEmail.Text, Postalcode = oZipCode.Text, Province = oProvince.SelectedValue.ToString(), Phone = oPhoneNumber.Text
            };
            Address destinationAddress = new Address {
                Name = destName.Text, Streetname = destAddress.Text, City = destCity.Text, Email = destEmail.Text, Postalcode = destZipCode.Text, Province = destProvince.SelectedValue.ToString(), Phone = destPhoneNumber.Text
            };

            Address driverAddress = new Address {
                Name = dName.Text, Streetname = dAddress.Text, City = dCity.Text, Email = dEmail.Text, Postalcode = dZipCode.Text, Province = dZipCode.Text, Phone = dPhoneNumber.Text
            };
            Customer customer = new Customer {
                Address = customerAddress
            };
            Broker broker = new Broker {
                Address = customerAddress, Mc = "9652365"
            };
            Origin origin = new Origin {
                Address = originAddress
            };
            Destination destination = new Destination {
                Address = destinationAddress
            };
            Address carrierAddress = new Address {
                Name = "ABC trucking", Streetname = "162 West Point", City = "Scarborough", Email = "*****@*****.**", Postalcode = "h0h0h0", Province = "ON", Phone = "6476081234"
            };
            Carrier carrier = new Carrier {
                Address = carrierAddress, Ctpat = "5784878", Mc = "787878", Cvor = "784512478", Usdot = "784521"
            };
            Driver driver = new Driver {
                Address = driverAddress, LicenseNumber = "7874-78478", LicenseType = "AZ", LicenseState = "Ontario", Carrier = carrier
            };
            DateTime odatetime    = new DateTime(oDate.Date.Year, oDate.Date.Month, oDate.Date.Day, oTime.Time.Hours, oTime.Time.Minutes, oTime.Time.Seconds);
            DateTime destdatetime = new DateTime(destDate.Date.Year, destDate.Date.Month, destDate.Date.Day, destTime.Time.Hours, destTime.Time.Minutes, destTime.Time.Seconds);

            Shipment shipment = new Shipment
            {
                Broker                = broker,
                Customer              = customer,
                Origin                = origin,
                Destination           = destination,
                Commodity             = commodity.Text,
                BrokerRate            = decimal.Parse(shipmentRate.Text),
                EquipmentType         = "43\" Trailer",
                FreightType           = Freighttype.SelectedValue.ToString(),
                Weight                = double.Parse(weight.Text),
                DestinationApptNumber = DestinationReferenceNumber.Text,
                OriginApptNumber      = OriginReferenceNumber.Text,
                Notes = "note for shipment",
                DestinationApptDatetime = destdatetime,
                OriginApptDatetime      = odatetime
            };
            ShipmentOrder shipmentOrder = new ShipmentOrder {
                Driver = driver, Carrier = carrier, Shipment = shipment, TrailerId = int.Parse(trailerid.SelectedValue.ToString()), TruckId = int.Parse(trailerid.SelectedValue.ToString()), CarrierRate = decimal.Parse(shipmentRate.Text), Notes = "this is note"
            };

            client.DefaultRequestHeaders.Accept.Clear();
            client.DefaultRequestHeaders.Add("apikey", "NbqYQDjspLDvorREUZAnyHZyCC3GoPGs");
            string json = JsonConvert.SerializeObject(shipmentOrder);

            Debug.WriteLine(json);
            HttpContent         content;
            HttpResponseMessage response;

            content = new StringContent(json, Encoding.UTF8, "application/json");
            Debug.WriteLine(client.DefaultRequestHeaders);
            response = await client.PostAsync("http://tamasdeep1624-eval-test.apigee.net/proxyfleetapi/api/ShipmentOrders", content);

            if (response.IsSuccessStatusCode)
            {
                success.Text = "Successfully Created Shipment";
            }
            Debug.WriteLine(response);
        }
Exemplo n.º 19
0
 public ShipmentOrder VCreateObject(ShipmentOrder shipmentorder, IShipmentOrderService _shipmentorderService)
 {
     return(shipmentorder);
 }
Exemplo n.º 20
0
        public bool isValid(ShipmentOrder obj)
        {
            bool isValid = !obj.Errors.Any();

            return(isValid);
        }