Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
        private void reportPluseButton_Click(object sender, EventArgs e)
        {
            CtrlReportWorkGrid ctrl = reportProcPanel.Controls[0] as CtrlReportWorkGrid;

            ctrl.AddRow();
        }