public InventoryInsHeader() { pro = new Repositories.ProductRepository(); invs = new Repositories.InventoryRepository(); type = new Repositories.InventoryInsTypeRepository(); invh = new Repositories.InventoryInsHeaderRepository(); invd = new Repositories.InventoryInsDeatilRepository(); ProCat = new Repositories.ProductCategoryRepository(); InitializeComponent(); }
public ListDeatil(int id, int IsOut) { InitializeComponent(); this.Id = id; this.IsOut = IsOut; pro = new Repositories.ProductRepository(); inv = new Repositories.InventoryRepository(); ind = new Repositories.InventoryInsDeatilRepository(); inh = new Repositories.InventoryInsHeaderRepository(); outd = new Repositories.InventoryOutsDeatilRepository(); outh = new Repositories.InventoryOutsHeaderRepository(); inT = new Repositories.InventoryInsTypeRepository(); outT = new Repositories.InventoryOutsTypeRepository(); }
public InventoryInsTypeRepositoryTests() { var contaxt = new DataLayer.InventoryDBContext(); var relateduser = contaxt.Users.FirstOrDefault(u => u.Username.Equals("admin")); var identity = new GenericIdentity(relateduser.Username); var roles = relateduser.Roles.Select(p => p.Title).ToArray(); var principal = new GenericPrincipal(identity, roles); System.Threading.Thread.CurrentPrincipal = principal; _InventoryInsType = new Repositories.InventoryInsTypeRepository(); EInventoryInsType = new Entities.InventoryInsType() { Title = "Title", Description = "Description", }; }
public Editor(RepositortAbstracts.IInventory invs, RepositortAbstracts.IInventoryInsType type) { this.invs = invs; this.type = type; }
public List(RepositortAbstracts.IInventoryInsType instype) { this.instype = instype; }