Exemplo n.º 1
0
 private void DdsSaved(object sender, DdsEventArgs e)
 {
     if (!e.IsSaved)
     {
         DddDelete(sender, e);
     }
     else
     {
         if (e.Kind == 1)
         {
             IsDds       = true;
             IsPurchases = true;
             CurrItemDdsDnevPurchases = ItemsDdsDnevPurchases.FirstOrDefault(e1 => e1.Code == e.Selestitem);
             if (CurrentWraperConto != null)
             {
                 CurrentWraperConto.IsPurchases = true;
             }
         }
         else
         {
             IsDds   = true;
             IsSales = true;
             CurrItemDdsDnevSales = ItemsDdsDnevSales.FirstOrDefault(e1 => e1.Code == e.Selestitem);
             if (CurrentWraperConto != null)
             {
                 CurrentWraperConto.IsSales = true;
             }
         }
         KindDoc = KindDocLookup.FirstOrDefault(e1 => e1.CodetId == e.CodeDoc);
         UpdateConto();
     }
 }
Exemplo n.º 2
0
 private void DdsDelayUpdate(object sender, DdsEventArgs e)
 {
     if (e.Kind == 1)
     {
         IsDdsNew       = true;
         IsPurchasesNew = true;
         CurrItemDdsDnevPurchasesNew = ItemsDdsDnevPurchases.FirstOrDefault(e1 => e1.Code == e.Selestitem);
     }
     else
     {
         IsDdsNew   = true;
         IsSalesNew = true;
         CurrItemDdsDnevSalesNew = ItemsDdsDnevSales.FirstOrDefault(e1 => e1.Code == e.Selestitem);
     }
     KindDocNew = KindDocLookup.FirstOrDefault(e1 => e1.CodetId == e.CodeDoc);
 }