Пример #1
0
        public BinObject(BinDataSet set)
        {
            RecNo    = set.RecNo;
            RecipeNo = set.RecipeNo;
            Type     = set.Type;
            Index    = set.Index;
            Name     = set.Name;
            Mark     = set.Mark;
            Formulas = new List <BinFormulaObject>();

            formulaSet = new BinFormulaDataSet(AppRes.DB.Connect, null, null);
            Load(RecNo);
        }
        public BinItem(BinDataSet set)
        {
            RecNo    = set.RecNo;
            RecipeNo = set.RecipeNo;
            Type     = set.Type;
            Index    = set.Index;
            Name     = set.Name;
            Mark     = set.Mark;
            Formulas = new Dictionary <EWorkType, List <BinFormulaItem> >();

            formulaSet = new BinFormulaDataSet(AppRes.DB.Connect, null, null);
            Load(RecNo);
        }
Пример #3
0
        private void Initialize()
        {
            recipeSet     = new RecipeDataSet(AppRes.DB.Connect, null, null);
            binSet        = new BinDataSet(AppRes.DB.Connect, null, null);
            binFormulaSet = new BinFormulaDataSet(AppRes.DB.Connect, null, null);

            mode     = EDataSetMode.View;
            bookmark = new GridBookmark(recipeGridView);

            binRows = new List <BinRow>();

            BinRow row;

            for (int i = 0; i < AppRes.Properties.BinCount; i++)
            {
                row = new BinRow();
                binRows.Add(row);
            }

            binGrid          = new CtrlBinGrid(binRows);
            binGrid.RecipeNo = 0;
            binGrid.Type     = EWorkType.Normal;
            binGridPanel.Controls.Add(binGrid);
        }