internal async Task <ModelsShared.Models.Colly> RemoveItem(ModelsShared.Models.Colly selectedItem)
 {
     using (var client = new Client("Collies"))
     {
         return(await client.Delete <ModelsShared.Models.Colly>("", selectedItem.Id));
     }
 }
Exemple #2
0
        public void Dispose()
        {
            details.Clear();
            int number = 1;

            foreach (var item in Source)
            {
                if (item.Jumlah > 1)
                {
                    for (var i = 0; i < item.Jumlah; i++)
                    {
                        var it = new ModelsShared.Models.Colly
                        {
                            CollyNumber  = number++,
                            Hight        = item.Hight,
                            Id           = item.Id,
                            IsSended     = item.IsSended,
                            Longer       = item.Longer,
                            PenjualanId  = item.Id, STT = item.STT,
                            TypeOfWeight = item.TypeOfWeight,
                            Weight       = item.Weight,
                            Wide         = item.Wide
                        };

                        details.Add(it);
                    }
                }
                else
                {
                    item.CollyNumber = number++;
                    details.Add(item);
                }
            }
        }
Exemple #3
0
 public void SetTotal()
 {
     if (Colly != null && Colly.Count > 0)
     {
         double berat = 0;
         berat  = Colly.Sum(O => O.Weight);
         Weight = berat;
         Pcs    = Colly.Count;
         var biaya = (berat * this.Price) + this.PackingCosts + this.Etc;
         var tax   = biaya * (this.Tax / 100);
         Total = biaya + tax;
     }
 }