コード例 #1
0
ファイル: OutputStockRepo.cs プロジェクト: leonardo1994/ERP
        public OutputStockRepo(IFactoryConnection efc)
        {
            IFactoryRepository <OutputStock> efr = new DbContext <OutputStock>();

            _conn  = efc;
            _efcmd = efr.FactoryCommand(efc);
        }
コード例 #2
0
 public OsProductApp(IFactoryConnection efc)
 {
     _epr   = new OsProductRepo(efc);
     _osApp = new OrderOfServiceApp(efc);
     _integrationCapeStockApp  = new IntegrationCapeStockApp(efc);
     _integrationItemsStockApp = new IntegrationItemsStockApp(efc);
     _conn = efc;
 }
コード例 #3
0
 public IntegrationCapeStockApp(IFactoryConnection efc)
 {
     _epr            = new IntegrationCapeStockRepo(efc);
     _inputStockApp  = new InputStockApp(efc);
     _outputStockApp = new OutputStockApp(efc);
     _stockMapper    = new StockMapper();
     _conn           = efc;
 }
コード例 #4
0
 public UnitMeasureConversionApp(IFactoryConnection efc)
 {
     _epr            = new UnitMeasureConversionRepo(efc);
     _unitMeasureApp = new UnitMeasureApp(efc);
     _stockItemApp   = new StockItemApp(efc);
     _familyApp      = new FamilyApp(efc);
     Logs            = new List <Log>();
 }
コード例 #5
0
 public IntegrationItemsStockApp(IFactoryConnection efc)
 {
     _epr = new IntegrationItemsStockRepo(efc);
     _itemInputStockApp  = new ItemInputStockApp(efc);
     _itemOutputStockApp = new ItemOutputStockApp(efc);
     _stockMapper        = new StockMapper();
     _conn = efc;
 }
コード例 #6
0
 public ItemOutputStockApp(IFactoryConnection efc)
 {
     _epr                      = new ItemOutputStockRepo(efc);
     _stockManagement          = new StockManagement(efc);
     _stockItemApp             = new StockItemApp(efc);
     _unitMeasureConversionApp = new UnitMeasureConversionApp(efc);
     Logs                      = new List <Log>();
 }
コード例 #7
0
ファイル: FBase.cs プロジェクト: leonardo1994/ERP
        public FBase()
        {
            InitializeComponent();

            try
            {
                FactoryConnection     = new RepositoryInjection().GetClass <IFactoryConnection>();
                _tableApp             = new TableApp(FactoryConnection);
                AutomaticNumberingApp = new AutomaticNumberingApp(FactoryConnection);
            }
            catch (Exception)
            {
            }
        }
コード例 #8
0
        public FFilterCompany_001(int companyLeftId, int dbTableId, IFactoryConnection efc)
        {
            InitializeComponent();

            CheckListBoxCompanies.ObjetoApp = new InvokeMethod(typeof(CompanyController), TypeExecute.SearchAll, "ListCompany", typeof(Company));

            CheckListBoxCompanies.UpdateDataSource();
            CheckListBoxCompanies.DisplayMember = "PersonName";
            CheckListBoxCompanies.ValueMember   = "Id";

            _companyLeftId = companyLeftId;
            _dbTableId     = dbTableId;

            _filterCompanyApp = new FilterCompanyController(efc);

            SetValue();
        }
コード例 #9
0
        public Menu()
        {
            _conn = new RepositoryInjection().GetClass <IFactoryConnection>();

            InitializeComponent();
            //var catalog = new AggregateCatalog(new AssemblyCatalog(Assembly.GetExecutingAssembly()), new DirectoryCatalog("."));
            //var container = new CompositionContainer(catalog);
            //container.ComposeParts(this);

            //foreach (var plugin in Modules)
            //{
            //    //plugin.SetGrid(((FMain)Tag).GridSearch);
            //    foreach (var item in plugin.ItemsCollection())
            //    {
            //        this.Items().Add(item);
            //    }
            //}

            if (GlobalUser.User == null)
            {
                return;
            }

            MenuPaindelControle.Visibility = GlobalUser.User.IsAdministrator ? Visibility.Visible : Visibility.Collapsed;

            //ModuleEstacionamento.Visibility = Visibility.Collapsed;

            var companies = new CompanyApp(_conn).Search(c => GlobalUser.User.AccessAllCompanies || c.UsersCompanies.Any(d => d.UserId == GlobalUser.User.Id));

            foreach (var item in companies)
            {
                var itemMenu = new RibbonApplicationMenuItem()
                {
                    Header = string.Format("{0} - {1}", item.Id, item.CorporateName), Tag = item
                };
                itemMenu.Click += MenuItemCompanies_Click;
                ListCompanies.Items.Add(
                    itemMenu
                    );
            }
        }
コード例 #10
0
        public FFilterCompany()
        {
            StateForm = StateForm.Editing;

            InitializeComponent();

            sMenuProcess1.Visibility = System.Windows.Visibility.Hidden;
            elementHost1.Visible     = false;

            gridFilterCompany.SMenuComponent.Visible   = false;
            gridFilterCompany.Label.Visible            = false;
            gridFilterCompany.SComponent.SelectionMode = DataGridViewSelectionMode.CellSelect;

            var ri = new RepositoryInjection();

            _conn = ri.GetClass <IFactoryConnection>();

            _filterCompanyApp = new FilterCompanyApp(_conn);
            _companyApp       = new CompanyApp(_conn);
            _dbTableApp       = new DbTableApp(_conn);

            InitializeStrutureColumns();
            UpdateDataSource();
        }
コード例 #11
0
 public ParkingHoursVariationController(IFactoryConnection connection)
 {
     _connection = connection;
     _ParkingHoursVariationApp = new ParkingHoursVariationApp(connection);
 }
コード例 #12
0
 public DbContextCommand(IFactoryConnection connection)
 {
     _context = connection as DbContextConnection;
 }
コード例 #13
0
        public UnitMeasureConversionRepo(IFactoryConnection efc)
        {
            IFactoryRepository <UnitMeasureConversion> efr = new DbContext <UnitMeasureConversion>();

            _efcmd = efr.FactoryCommand(efc);
        }
コード例 #14
0
 public InstructorRepositorio(IFactoryConnection factoryConnection)
 {
     _factoryConnection = factoryConnection;
 }
コード例 #15
0
ファイル: UnitMeasureApp.cs プロジェクト: leonardo1994/ERP
 public UnitMeasureApp(IFactoryConnection efc)
 {
     _epr = new UnitMeasureRepo(efc);
 }
コード例 #16
0
 public TranslateApp(IFactoryConnection efc)
 {
     _epr = new TranslateRepo(efc);
 }
コード例 #17
0
ファイル: CboController.cs プロジェクト: leonardo1994/ERP
 public CboController(IFactoryConnection connection)
 {
     _connection = connection;
     _CboApp     = new CboApp(connection);
 }
コード例 #18
0
ファイル: OsProductRepo.cs プロジェクト: leonardo1994/ERP
        public OsProductRepo(IFactoryConnection efc)
        {
            IFactoryRepository <OsProduct> efr = new DbContext <OsProduct>();

            _efcmd = efr.FactoryCommand(efc);
        }
コード例 #19
0
        public ItemInputStockRepo(IFactoryConnection efc)
        {
            IFactoryRepository <ItemInputStock> efr = new DbContext <ItemInputStock>();

            _efcmd = efr.FactoryCommand(efc);
        }
コード例 #20
0
ファイル: LegalPersonRepo.cs プロジェクト: leonardo1994/ERP
        public LegalPersonRepo(IFactoryConnection efc)
        {
            IFactoryRepository <LegalPerson> efr = new DbContext <LegalPerson>();

            _efcmd = efr.FactoryCommand(efc);
        }
コード例 #21
0
 public ModelController(IFactoryConnection connection)
 {
     _connection = connection;
     _ModelApp   = new ModelApp(connection);
 }
コード例 #22
0
 public VehiclePlateController(IFactoryConnection connection)
 {
     _connection      = connection;
     _VehiclePlateApp = new VehiclePlateApp(connection);
 }
コード例 #23
0
 public OsVehicleController(IFactoryConnection connection)
 {
     _connection   = connection;
     _OsVehicleApp = new OsVehicleApp(connection);
 }
コード例 #24
0
 public CityController(IFactoryConnection connection)
 {
     _connection = connection;
     _CityApp    = new CityApp(connection);
 }
コード例 #25
0
ファイル: VehicleApp.cs プロジェクト: leonardo1994/ERP
 public VehicleApp(IFactoryConnection efc)
 {
     _epr = new VehicleRepo(efc);
 }
コード例 #26
0
 public FilterController(IFactoryConnection connection)
 {
     _connection = connection;
     _FilterApp  = new FilterApp(connection);
 }
コード例 #27
0
 public SpecialTaxController(IFactoryConnection connection)
 {
     _connection    = connection;
     _SpecialTaxApp = new SpecialTaxApp(connection);
 }
コード例 #28
0
ファイル: StateRepo.cs プロジェクト: leonardo1994/ERP
        public StateRepo(IFactoryConnection efc)
        {
            IFactoryRepository <State> efr = new DbContext <State>();

            _efcmd = efr.FactoryCommand(efc);
        }
コード例 #29
0
 public PaginacionRepositorio(IFactoryConnection factoryConnection)
 {
     _factoryConnection = factoryConnection;
 }
コード例 #30
0
 public ChargeLevelApp(IFactoryConnection efc)
 {
     _epr = new ChargeLevelRepo(efc);
 }