private void Load(Int64 recNo)
        {
            List <BinFormulaItem> formulaList = new List <BinFormulaItem>();

            formulaSet.Select(recNo, EWorkType.Full);
            for (int i = 0; i < formulaSet.RowCount; i++)
            {
                formulaSet.Fetch(i);

                BinFormulaItem item = new BinFormulaItem(formulaSet.Formula);
                item.RecNo = formulaSet.RecNo;
                item.BinNo = formulaSet.BinNo;
                item.Logic = formulaSet.Logic;
                formulaList.Add(item);
            }
            Formulas.Add(EWorkType.Full, formulaList);

            formulaSet.Select(recNo, EWorkType.Sampling);
            for (int i = 0; i < formulaSet.RowCount; i++)
            {
                formulaSet.Fetch(i);

                BinFormulaItem item = new BinFormulaItem(formulaSet.Formula);
                item.RecNo = formulaSet.RecNo;
                item.BinNo = formulaSet.BinNo;
                item.Logic = formulaSet.Logic;
                formulaList.Add(item);
            }
            Formulas.Add(EWorkType.Sampling, formulaList);
        }
예제 #2
0
        private void SetBinValueFromDataSet()
        {
            binSet.Select(recipeNo);

            for (int i = 0; i < binSet.RowCount; i++)
            {
                binSet.Fetch(i);

                binRows[i].RecNo = binSet.RecNo;
                binRows[i].Type  = binSet.Type;
                binRows[i].Index = binSet.Index;
                binRows[i].Name  = binSet.Name;
                binRows[i].Mark  = binSet.Mark;
                binRows[i].Clear();

                binFormulaSet.Select(binSet.RecNo);

                for (int j = 0; j < binFormulaSet.RowCount; j++)
                {
                    binFormulaSet.Fetch(j);

                    binRows[i].Formulas[j].RecNo   = binFormulaSet.RecNo;
                    binRows[i].Formulas[j].Logic   = binFormulaSet.Logic;
                    binRows[i].Formulas[j].Formula = binFormulaSet.Formula;
                }
            }

            binGrid.RefreshData();
        }
예제 #3
0
        private void Load(Int64 recNo)
        {
            Formulas.Clear();

            formulaSet.Select(recNo);
            for (int i = 0; i < formulaSet.RowCount; i++)
            {
                formulaSet.Fetch(i);

                BinFormulaObject item = new BinFormulaObject(formulaSet.Formula);
                item.RecNo = formulaSet.RecNo;
                item.BinNo = formulaSet.BinNo;
                item.Logic = formulaSet.Logic;
                item.Type  = ETestItemType.Both;
                Formulas.Add(item);
            }
        }