コード例 #1
0
 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();
 }
コード例 #2
0
 public Editor(RepositortAbstracts.IInventory InventoryRepository, RepositortAbstracts.ICorporation CorporationRepository)
 {
     this.Invs  = InventoryRepository;
     this.Corps = CorporationRepository;
     if (Entity.InventoryId == 0)
     {
         ViewTitle = "تعریف انبار";
     }
     else
     {
         ViewTitle = "ویرایش انبار " + Entity.InventoryId;
     }
 }
コード例 #3
0
        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();
        }
コード例 #4
0
        public InventoryRepositoryTests()
        {
            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;

            inve  = new InventoryRepository();
            EInve = new Entities.Inventory()
            {
                CorporationId = 1,
                Title         = "Title",
                Address       = "Address",
                Telephone     = "Telephone",
                Description   = "Description",
            };
        }
コード例 #5
0
 public List(RepositortAbstracts.IInventory InventoryRepository)
 {
     this.Invs = InventoryRepository;
     ViewTitle = "تعریف شرکت";
 }
コード例 #6
0
 public Editor(RepositortAbstracts.IInventory invs, RepositortAbstracts.IInventoryInsType type)
 {
     this.invs = invs;
     this.type = type;
 }
コード例 #7
0
ファイル: Editor.cs プロジェクト: alirezaghadiri/InventoryApp
 public Editor(RepositortAbstracts.IInventory Inves)
 {
     this.Inves = Inves;
 }