Exemplo n.º 1
0
        public Uom getUomByInternalCode(string Internal)
        {
            for (int n = 0; n < uomList.Count; n++)
            {
                Uom u = (Uom)uomList[n];
                if (u.intCode.ToUpper() == Internal.ToUpper())
                {
                    return(u);
                }
            }

            throw new Exception(Internal + " olcu birimi gecerli degil");
        }
Exemplo n.º 2
0
        public bool isInputValid(string External)
        {
            try
            {
                Uom u = getUomByExternalCode(External);

                for (int n = 0; n < enabledUomList.Count; n++)
                {
                    Uom u2 = (Uom)enabledUomList[n];
                    if (u.intCode == u2.intCode)
                    {
                        return(true);
                    }
                }

                return(false);
            }
            catch
            {
                return(false);
            }
        }
Exemplo n.º 3
0
        public void addEnabledUom(string Internal)
        {
            Uom u = getUomByInternalCode(Internal);

            enabledUomList.Add(u);
        }
Exemplo n.º 4
0
        public void add(string Internal, string External)
        {
            Uom u = new Uom(Internal, External);

            uomList.Add(u);
        }