Advertisement
bogdanhu

Stocuri.cs

Feb 12th, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.11 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using DevExpress.Persistent.Base;
  4. using DevExpress.Persistent.BaseImpl;
  5. using DevExpress.Xpo;
  6. using DevExpress.ExpressApp.Security.Strategy;
  7.  
  8. namespace SituatieIsis.Module.BusinessObjects
  9. {
  10.     [NavigationItem("Produse")]
  11.     public class Stocuri : BaseObject
  12.     {
  13.         public Stocuri(Session session) : base(session) {
  14.             Stocks = new List<StockElement>();
  15.  
  16.         }
  17.         public DateTime Data { get; set; }
  18.          
  19.         private Magazine _magazin;
  20.  
  21.        [Association("Magazine-Stocuri")]
  22.         public Magazine Magazine
  23.         {
  24.             get { return _magazin; }
  25.             set
  26.             {
  27.                 SetPropertyValue("Magazine", ref _magazin, value);
  28.             }
  29.         }
  30.  
  31.         private SecuritySystemUser _utilizator; // TODO : de schimbat cu vanzatoare
  32.         public SecuritySystemUser User
  33.         {
  34.             get { return _utilizator; }
  35.             set { SetPropertyValue("User", ref _utilizator, value); }
  36.         }
  37.  
  38.  
  39.         public virtual IList<StockElement> Stocks { get; set; }
  40.  
  41.  
  42.  
  43.  
  44.     }
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement