public void Load()
        {
            Storages.Clear();

            DAO.Recordset RS;
            string        SQL = "select * from tblStorage order by storRecNum";

            RS = mf.Dbase.DB.OpenRecordset(SQL);
            while (!RS.EOF)
            {
                clsStorage Stor = new clsStorage(mf);
                Stor.Load((short)RS.Fields["storID"].Value);
                Storages.Add(Stor);
                RS.MoveNext();
            }
            RS.Close();
        }
Exemple #2
0
        public string BinDescription(bool ShortDescription = false)
        {
            string result = "";

            if (ShortDescription)
            {
                result = BinNum.ToString();
            }
            else
            {
                clsStorage Bin = new clsStorage(mf);
                if (BinNum > 0)
                {
                    Bin.Load(StorNum: BinNum);
                    result = Bin.Number.ToString() + "  " + Bin.Description;
                }
            }
            return(result);
        }