Example #1
0
 public DistributionsContracts()
 {
     DistributionModel = new Distribution();
     DistributionsServices = new DistributionsServices();
     PackagesContracts= new PackagesContracts();
     UserContracts = new UserContracts();
 }
Example #2
0
 public DistributionsContracts()
 {
     DistributionModel     = new Distribution();
     DistributionsServices = new DistributionsServices();
     PackagesContracts     = new PackagesContracts();
     UserContracts         = new UserContracts();
 }
Example #3
0
 public StockController()
 {
     packagesContracts = new PackagesContracts();
     medicineContracts = new MedicinesContracts();
     userContracts = new UserContracts();
     dcContracts= new DistributionCentersContracts();
     packageTransactionsContracts = new PackageTransactionsContracts();
     distributionsContracts = new DistributionsContracts();
 }
Example #4
0
        public static string GenerateBarCodeId()
        {
            string chars = "0123456789";
            var random = new Random();
            var package = new Package();
            string result;
            PackagesContracts packageContracts = new PackagesContracts();
            do
            {
                result = new string(
                    Enumerable.Repeat(chars, 10)
                        .Select(s => s[random.Next(s.Length)])
                        .ToArray());
            } while (packageContracts.GetAll().Where(x => x.BarcodeId == Convert.ToString(result)) == null);

            return result;
        }
Example #5
0
        public static string GenerateBarCodeId()
        {
            string            chars   = "0123456789";
            var               random  = new Random();
            var               package = new Package();
            string            result;
            PackagesContracts packageContracts = new PackagesContracts();

            do
            {
                result = new string(
                    Enumerable.Repeat(chars, 10)
                    .Select(s => s[random.Next(s.Length)])
                    .ToArray());
            } while (packageContracts.GetAll().Where(x => x.BarcodeId == Convert.ToString(result)) == null);


            return(result);
        }
Example #6
0
        public ReportsController()
        {
            PackagesContracts = new PackagesContracts();

            UserContracts = new UserContracts();
        }