public virtual void AddInventoryService(IInventoryServices service)
 {
     lock (m_inventoryServices)
     {
         m_inventoryServices.Add(service);
     }
 }
Esempio n. 2
0
 public static IInventoryServices GetInventoryService()
 {
     if (singleton == null)
     {
         singleton = new InventoryServices();
     }
     return(singleton);
 }
Esempio n. 3
0
 public static PhysicalCountInfo GetPhysicalCountInformation(bool isPostBack)
 {
     if (!isPostBack)
     {
         PageDataTransfer   transferedData           = new PageDataTransfer(HttpContext.Current.Request.Path);
         Guid               physicalCountId          = (Guid)transferedData.GetTransferedData("PhysicalCountId");
         IInventoryServices invertoryServices        = InventoryServices.GetInventoryService();
         PhysicalCountInfo  physicalCountInformation = invertoryServices.OpenPhysicalCount(physicalCountId);
         HttpContext.Current.Session["Physical-Count-Information"] = physicalCountInformation;
         return(physicalCountInformation);
     }
     else
     {
         return((PhysicalCountInfo)HttpContext.Current.Session["Physical-Count-Information"]);
     }
 }
        public bool TryGetInventoryService(string host, out IInventoryServices inventoryService)
        {
            if ((host == string.Empty) || (host == "default"))
            {
                host = m_defaultInventoryHost;
            }

            lock (m_inventoryServices)
            {
                foreach (IInventoryServices service in m_inventoryServices)
                {
                    if (service.Host == host)
                    {
                        inventoryService = service;
                        return true;
                    }
                }
            }

            inventoryService = null;
            return false;
        }
Esempio n. 5
0
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);
            errorDisplayer = new ErrorMessageDisplayer(lblMessage);
            errorDisplayer.ClearErrorMessage();

            transferedData              = new PageDataTransfer(Request.Path);
            PhysicalCountEditor.Driver  = GINViewConfigurationReader.GetViewConfiguration("TakePhysicalCount", "PhysicalCount");
            InspectorDataEditor.Driver  = GINViewConfigurationReader.GetViewConfiguration("TakePhysicalCount", "Inspector");
            StackCountDataEditor.Driver = GINViewConfigurationReader.GetViewConfiguration("TakePhysicalCount", "StackCount");
            InspectorGridViewer.Driver  = GINViewConfigurationReader.GetViewConfiguration("TakePhysicalCount", "InspectorGrid");
            PhysicalCountEditor.IsNew   = false;

            InspectorDataEditor.Ok     += new EventHandler(InspectorDataEditor_Ok);
            InspectorDataEditor.Cancel += new EventHandler(InspectorDataEditor_Cancel);

            StackCountDataEditor.Ok     += new EventHandler(StackCountDataEditor_Ok);
            StackCountDataEditor.Cancel += new EventHandler(StackCountDataEditor_Cancel);
            try
            {
                inventoryService         = InventoryServices.GetInventoryService();
                physicalCountInformation = InventoryServiceWrapper.GetPhysicalCountInformation(IsPostBack);

                PhysicalCountEditor.Lookup  = inventoryService.LookupSource;
                InspectorDataEditor.Lookup  = inventoryService.LookupSource;
                StackCountDataEditor.Lookup = inventoryService.LookupSource;
                InspectorGridViewer.Lookup  = inventoryService.LookupSource;

                PhysicalCountEditor.Setup();
                InspectorDataEditor.Setup();
                StackCountDataEditor.Setup();
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
 public InventoryController(IProductCategoryServices productCategoryServices, IInventoryServices inventoryServices)
 {
     _productCategoryServices = productCategoryServices;
     _inventoryServices       = inventoryServices;
 }
 public InventoryController(IInventoryServices services, IJWTAuthenticationManager jwtAuthenticationManager)
 {
     _services = services;
     _jwtAuthenticationManager = jwtAuthenticationManager;
 }
 public InventoryController(IInventoryServices service)
 {
     _service = service;
 }
 public ValuesController(IInventoryServices inventoryServices)
 {
     _service = inventoryServices;
 }
 public InventoryController(IInventoryServices prmInventoryServices, ILogger <InventoryController> logger)
 {
     invenotryServices = prmInventoryServices;
     _logger           = logger;
 }
Esempio n. 11
0
 public InventoryController()
 {
     _services = new InventoryServices();
 }
 public InventoryBookController(IInventoryServices inventoryServices)
 {
     this._inventoryServices = inventoryServices;
 }
 public InventoryController(IInventoryServices services)
 {
     Console.WriteLine("CALLING SECONDARY CTOR");
     _services = services;
 }
Esempio n. 14
0
 public virtual void AddInventoryService(IInventoryServices service)
 {
     lock (m_inventoryServices)
     {
         m_inventoryServices.Add(service);
     }
 }
Esempio n. 15
0
        public bool TryGetInventoryService(string host, out IInventoryServices inventoryService)
        {
            if ((host == string.Empty) || (host == "default"))
            {
                host = m_defaultInventoryHost;
            }

            lock (m_inventoryServices)
            {
                foreach (IInventoryServices service in m_inventoryServices)
                {
                    if (service.Host == host)
                    {
                        inventoryService = service;
                        return true;
                    }
                }
            }

            inventoryService = null;
            return false;
        }
Esempio n. 16
0
 public InventoryPresenter(IInventoryServices inventoryServices)
 {
     _inventoryServices = inventoryServices;
 }
Esempio n. 17
0
 private InventoryController(IInventoryServices services)
 {
     _services = services;
 }
 public InventoryController(IInventoryServices services)
 {
     _services = services;
 }
Esempio n. 19
0
 public InventController(IInventoryServices inventoryServices)
 {
     this.inventoryServices = inventoryServices;
 }