Exemplo n.º 1
0
        private void Initialize()
        {
            recipeNo = 0;

            recipeSet    = new RecipeDataSet(AppRes.DB.Connect, null, null);
            masterSet    = new MasterPatternDataSet(AppRes.DB.Connect, null, null);
            masterLedSet = new MasterPatternLedDataSet(AppRes.DB.Connect, null, null);
            slaveSet     = new SlavePatternDataSet(AppRes.DB.Connect, null, null);
            slaveLedSet  = new SlavePatternLedDataSet(AppRes.DB.Connect, null, null);
            smuSet       = new SmuDataSet(AppRes.DB.Connect, null, null);
            binSet       = new BinDataSet(AppRes.DB.Connect, null, null);

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

            stringToSmus = new List <int>();
            stringRows   = new List <StringRow>();

            ctrlPatternGrid             = new CtrlPatternGrid(EPatternDispMode.String, stringToSmus);
            ctrlPatternGrid.XLength     = (int)xLengthEdit.Value;
            ctrlPatternGrid.YHeight     = (int)yHeightEdit.Value;
            ctrlPatternGrid.StringCount = (int)stringCountEdit.Value;
            ctrlPatternGrid.LedCount    = (int)ledCountEdit.Value;

            patternGridPanel.Controls.Add(ctrlPatternGrid);

            smuGrid.DataSource = stringRows;

            smuGridView.BeginUpdate();
            try
            {
                smuGridView.Columns.Clear();
                smuGridView.Columns.Add(CreateGridColumn(" ", "StringNo", 64));

                for (int i = 0; i < 20; i++)
                {
                    smuGridView.Columns.Add(CreateGridColumn($"SMU{i + 1}", $"SMU{i + 1}", 64, true, true));
                }
            }
            finally
            {
                smuGridView.EndUpdate();
            }

            binRows = new List <RecipeBinRow>();

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

            binTypeLookUpEdit.DataSource    = EnumHelper.GetNameValues <EBinType>();
            binTypeLookUpEdit.DisplayMember = "Name";
            binTypeLookUpEdit.ValueMember   = "Value";
            binTypeLookUpEdit.KeyMember     = "Value";
        }
Exemplo n.º 2
0
        private void Initialize()
        {
            recipeSet  = new RecipeDataSet(AppRes.DB.Connect, null, null);
            rankSet    = new RankDataSet(AppRes.DB.Connect, null, null);
            rankRowSet = new RankRowDataSet(AppRes.DB.Connect, null, null);

            rankRows = new List <TestRankRow>();

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

            NameValue <EReportItemCode>[] itemCodes = EnumHelper.GetNameValues <EReportItemCode>();
            itemCodeCombo.DataSource    = itemCodes;
            itemCodeCombo.DisplayMember = "Name";
            itemCodeCombo.ValueMember   = "Value";

            LoadRecipeComboItems();
        }
Exemplo n.º 3
0
        private void Initialize()
        {
            recipeSet    = new RecipeDataSet(AppRes.DB.Connect, null, null);
            masterSet    = new MasterPatternDataSet(AppRes.DB.Connect, null, null);
            masterLedSet = new MasterPatternLedDataSet(AppRes.DB.Connect, null, null);
            slaveSet     = new SlavePatternDataSet(AppRes.DB.Connect, null, null);
            slaveLedSet  = new SlavePatternLedDataSet(AppRes.DB.Connect, null, null);
            smuSet       = new SmuDataSet(AppRes.DB.Connect, null, null);

            stringToSmus = new List <int>();

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

            ctrlPatternGrid = new CtrlPatternGrid(EPatternDispMode.StringAndLamp, stringToSmus);
            patternGridPanel.Controls.Add(ctrlPatternGrid);

            DispSmuColorButtons();
            LoadRecipeComboItems();
        }
Exemplo n.º 4
0
        private void Initialize()
        {
            CtrlTestWorkGrid   ctrlTestWork;
            CtrlReportWorkGrid ctrlReportWork;

            recipeNo = 0;

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

            ctrlTestWork = new CtrlTestWorkGrid();
            testProcPanel.Controls.Add(ctrlTestWork);

            ctrlReportWork          = new CtrlReportWorkGrid();
            ctrlReportWork.TestRows = ctrlTestWork.Rows;
            reportProcPanel.Controls.Add(ctrlReportWork);

            recipeSet     = new RecipeDataSet(AppRes.DB.Connect, null, null);
            slaveSet      = new SlavePatternDataSet(AppRes.DB.Connect, null, null);
            testWorkSet   = new TestWorkDataSet(AppRes.DB.Connect, null, null);
            reportWorkSet = new ReportWorkDataSet(AppRes.DB.Connect, null, null);
            rankSet       = new RankDataSet(AppRes.DB.Connect, null, null);
            smuSet        = new SmuDataSet(AppRes.DB.Connect, null, null);
        }
Exemplo n.º 5
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);
        }