private void SetEditValueFromDataSet()
        {
            string smuString = GetSmuString();

            CtrlTestWorkGrid testGrid = testProcPanel.Controls[0] as CtrlTestWorkGrid;

            testGrid.RecipeNo  = recipeNo;
            testGrid.SmuString = smuString;
            testGrid.Rows.Clear();

            testWorkSet.Select(recipeNo);

            if (testWorkSet.Empty == true)
            {
                testGrid.AddRow();
            }
            else
            {
                for (int i = 0; i < testWorkSet.RowCount; i++)
                {
                    testWorkSet.Fetch(i);
                    testGrid.AddRow();
                    SetTestWorkGridRow(testGrid.Rows[i], testWorkSet);
                }
            }

            testGrid.RefreshGridData();

            CtrlReportWorkGrid reportGrid = reportProcPanel.Controls[0] as CtrlReportWorkGrid;

            reportGrid.RecipeNo  = recipeNo;
            reportGrid.SmuString = smuString;
            reportGrid.Rows.Clear();

            reportWorkSet.Select(recipeNo);

            if (reportWorkSet.Empty == true)
            {
                reportGrid.AddRow();
            }
            else
            {
                for (int i = 0; i < reportWorkSet.RowCount; i++)
                {
                    reportWorkSet.Fetch(i);
                    reportGrid.AddRow();
                    SetReportWorkGridRow(reportGrid.Rows[i], reportWorkSet);
                }
            }

            reportGrid.RefreshGridData();
        }
        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);
        }
        private void reportMinusButton_Click(object sender, EventArgs e)
        {
            CtrlReportWorkGrid ctrl = reportProcPanel.Controls[0] as CtrlReportWorkGrid;

            ctrl.DeleteRow();
        }