private void p5RowUpButton_Click(object sender, EventArgs e)
        {
            int index = p5StuffGridView.FocusedRowHandle;

            if (index <= 0)
            {
                return;
            }

            PhysicalPage5Row row = NewP5Row();

            row.No          = P5Rows[index].No;
            row.Line        = P5Rows[index].Line;
            row.TestItem    = P5Rows[index].TestItem;
            row.Result      = P5Rows[index].Result;
            row.Requirement = P5Rows[index].Requirement;

            p5Bookmark.Get();
            P5Rows.RemoveAt(index);
            P5Rows.Insert(index - 1, row);
            ReorderP5Rows();
            AppHelper.RefreshGridData(p5StuffGridView);

            p5Bookmark.Goto();
            p5StuffGridView.MoveBy(-1);

            p5StuffGrid.Focus();
        }
        private void p41RowUpButton_Click(object sender, EventArgs e)
        {
            int index = p4SampleGridView.FocusedRowHandle;

            if (index <= 0)
            {
                return;
            }

            PhysicalPage4Row row = NewP41Row();

            row.No          = P41Rows[index].No;
            row.Line        = P41Rows[index].Line;
            row.Sample      = P41Rows[index].Sample;
            row.BurningRate = P41Rows[index].BurningRate;

            p41Bookmark.Get();
            P41Rows.RemoveAt(index);
            P41Rows.Insert(index - 1, row);
            ReorderP41Rows();
            AppHelper.RefreshGridData(p4SampleGridView);

            p41Bookmark.Goto();
            p4SampleGridView.MoveBy(-1);

            p4SampleGrid.Focus();
        }
        private void p2RowUpButton_Click(object sender, EventArgs e)
        {
            int index = p2ResultGridView.FocusedRowHandle;

            if (index <= 0)
            {
                return;
            }

            PhysicalPage2Row row = NewP2Row();

            row.No         = P2Rows[index].No;
            row.Line       = P2Rows[index].Line;
            row.Requested  = P2Rows[index].Requested;
            row.Conclusion = P2Rows[index].Conclusion;

            p2Bookmark.Get();
            P2Rows.RemoveAt(index);
            P2Rows.Insert(index - 1, row);
            ReorderP2Rows();
            AppHelper.RefreshGridData(p2ResultGridView);

            p2Bookmark.Goto();
            p2ResultGridView.MoveBy(-1);

            p2ResultGrid.Focus();
        }
        private void p3RowUpButton_Click(object sender, EventArgs e)
        {
            int index = p3ClauseGridView.FocusedRowHandle;

            if (index <= 0)
            {
                return;
            }

            PhysicalPage3Row row = NewP3Row();

            row.No          = P3Rows[index].No;
            row.Line        = P3Rows[index].Line;
            row.Clause      = P3Rows[index].Clause;
            row.Description = P3Rows[index].Description;
            row.Result      = P3Rows[index].Result;

            p3Bookmark.Get();
            P3Rows.RemoveAt(index);
            P3Rows.Insert(index - 1, row);
            ReorderP3Rows();
            AppHelper.RefreshGridData(p3ClauseGridView);

            p3Bookmark.Goto();
            p3ClauseGridView.MoveBy(-1);

            p3ClauseGridView.Focus();
        }
        private void findButton_Click(object sender, EventArgs e)
        {
            PhysicalMainDataSet set = phyMainSet;

            bookmark.Get();

            AppHelper.ResetGridDataSource(physicalGrid);

            if (dateCheck.Checked == true)
            {
                set.From = fromDateEdit.Value.ToString(AppRes.csDateFormat);
                set.To   = toDateEdit.Value.ToString(AppRes.csDateFormat);
            }
            else
            {
                set.From = "";
                set.To   = "";
            }

            set.AreaNo         = (EReportArea)areaCombo.SelectedValue;
            set.ReportApproval = (EReportApproval)approvalCombo.SelectedValue;
            set.ProductNo      = itemNoEdit.Text.Trim();
            set.RecNo          = jobNoEdit.Text.Trim();
            set.Select();

            AppHelper.SetGridDataSource(physicalGrid, set);

            bookmark.Goto();
            physicalGrid.Focus();
        }
Пример #6
0
        private void findButton_Click(object sender, EventArgs e)
        {
            ProfJobDataSet set = profJobSet;

            bookmark.Get();
            AppHelper.ResetGridDataSource(reportGrid);

            if (dateCheck.Checked == true)
            {
                set.From = fromDateEdit.Value.ToString(AppRes.csDateFormat);
                set.To   = toDateEdit.Value.ToString(AppRes.csDateFormat);
            }
            else
            {
                set.From = "";
                set.To   = "";
            }

            set.JobNo      = "";
            set.AreaNo     = (EReportArea)areaCombo.SelectedValue;
            set.ItemNo     = itemNoEdit.Text.Trim();
            set.JobNo      = string.Empty;
            set.ExtendASTM = false;
            set.Select();

            AppHelper.SetGridDataSource(reportGrid, set);

            bookmark.Goto();
            reportGrid.Focus();
        }
        private void bomFindButton_Click(object sender, EventArgs e)
        {
            BomDataSet set = bomSet;

            bookmark.Get();

            AppHelper.ResetGridDataSource(bomGrid);

            if (bomDateCheck.Checked == true)
            {
                set.From = bomFromDateEdit.Value.ToString(AppRes.csDateFormat);
                set.To   = bomToDateEdit.Value.ToString(AppRes.csDateFormat);
            }
            else
            {
                set.From = "";
                set.To   = "";
            }
            set.AreaNo = (EReportArea)bomAreaCombo.SelectedValue;
            set.FName  = bomNameEdit.Text.Trim();
            set.Select();

            AppHelper.SetGridDataSource(bomGrid, set);

            bookmark.Goto();
            bomGrid.Focus();
        }
        private void findButton_Click(object sender, EventArgs e)
        {
            ProductDataSet set = productSet;

            bookmark.Get();

            AppHelper.ResetGridDataSource(integrationGrid);

            if (dateCheck.Checked == true)
            {
                set.From = fromDateEdit.Value.ToString(AppRes.csDateFormat);
                set.To   = toDateEdit.Value.ToString(AppRes.csDateFormat);
            }
            else
            {
                set.From = "";
                set.To   = "";
            }

            set.AreaNo = (EReportArea)areaCombo.SelectedValue;
            set.Code   = itemNoEdit.Text.Trim();
            set.JobNo  = jobNoEdit.Text.Trim();
            set.SelectByValid();

            AppHelper.SetGridDataSource(integrationGrid, set);

            bookmark.Goto();
            integrationGrid.Focus();
        }