Example #1
0
        private void WidthConsistent(bool reset, int row, GridView gv)
        {
            GV_ReflowHot.CellValueChanged  -= GV_Reflow_CellValueChanged;
            GV_ReflowCool.CellValueChanged -= GV_Reflow_CellValueChanged;
            if (reset)
            {
                var pReflowerAreaData = CETCManagerApp.Instance.m_pETETCStage.m_ETReflower.m_CAreaData["Hot"];
                for (int col = 1; col < 13; col++)
                {
                    GV_ReflowHot.SetRowCellValue(row, GV_ReflowHot.Columns[col], pReflowerAreaData[col - 1].m_fAreaLength);
                }

                pReflowerAreaData = CETCManagerApp.Instance.m_pETETCStage.m_ETReflower.m_CAreaData["Cool"];
                for (int col = 1; col < 13; col++)
                {
                    GV_ReflowCool.SetRowCellValue(row, GV_ReflowCool.Columns[col], pReflowerAreaData[col - 1].m_fAreaLength);
                }
            }
            else
            {
                var mValue = gv.GetRowCellValue(row, gv.Columns[1]).ToDecimal();
                for (int col = 1; col <= m_nHeaterCount.Value; col++)
                {
                    GV_ReflowHot.SetRowCellValue(row, GV_ReflowHot.Columns[col], mValue);
                }

                //mValue = GV_ReflowCool.GetRowCellValue(row, GV_ReflowCool.Columns[1]).ToDecimal();
                for (int col = 1; col <= m_nCoolCount.Value; col++)
                {
                    GV_ReflowCool.SetRowCellValue(row, GV_ReflowCool.Columns[col], mValue);
                }
            }
            GV_ReflowHot.CellValueChanged  += GV_Reflow_CellValueChanged;
            GV_ReflowCool.CellValueChanged += GV_Reflow_CellValueChanged;
        }
Example #2
0
        private void SpeedConsistent(bool reset, int row1, int row2)
        {
            GV_ReflowHot.BeginUpdate();
            GV_ReflowCool.BeginUpdate();
            GV_ReflowHot.CellValueChanged  -= GV_Reflow_CellValueChanged;
            GV_ReflowCool.CellValueChanged -= GV_Reflow_CellValueChanged;
            if (reset)
            {
                var pReflower         = CETCManagerApp.Instance.m_pETETCStage.m_ETReflower;
                var pReflowerAreaData = pReflower.m_CAreaData["Hot"];
                for (int col = 1; col <= pReflower.m_nSampleHeaterAreaCount; col++)
                {
                    GV_ReflowHot.SetRowCellValue(2, GV_ReflowHot.Columns[col], pReflowerAreaData[col - 1].m_fAreaFanSpeedTop);
                    GV_ReflowHot.SetRowCellValue(3, GV_ReflowHot.Columns[col], pReflowerAreaData[col - 1].m_fAreaFanSpeedButtom);
                }

                pReflowerAreaData = pReflower.m_CAreaData["Cool"];
                for (int col = 1; col <= pReflower.m_nSampleCoolAreaCount; col++)
                {
                    GV_ReflowCool.SetRowCellValue(2, GV_ReflowCool.Columns[col], pReflowerAreaData[col - 1].m_fAreaFanSpeedTop);
                    GV_ReflowCool.SetRowCellValue(3, GV_ReflowCool.Columns[col], pReflowerAreaData[col - 1].m_fAreaFanSpeedButtom);
                }
            }
            else
            {
                for (int col = 1; col < GV_ReflowHot.Columns.Count; col++)
                {
                    var mValue = GV_ReflowHot.GetRowCellValue(row1, GV_ReflowHot.Columns[col]).ToDecimal();
                    GV_ReflowHot.SetRowCellValue(row2, GV_ReflowHot.Columns[col], mValue);
                }

                for (int col = 1; col < GV_ReflowCool.Columns.Count; col++)
                {
                    var mValue = GV_ReflowCool.GetRowCellValue(row1, GV_ReflowCool.Columns[col]).ToDecimal();
                    GV_ReflowCool.SetRowCellValue(row2, GV_ReflowCool.Columns[col], mValue);
                }
            }
            GV_ReflowHot.CellValueChanged  += GV_Reflow_CellValueChanged;
            GV_ReflowCool.CellValueChanged += GV_Reflow_CellValueChanged;
            GV_ReflowHot.EndUpdate();
            GV_ReflowCool.EndUpdate();
        }
Example #3
0
        private void TempConsistent(bool reset, int row1, int row2)
        {
            GV_ReflowHot.CellValueChanged  -= GV_Reflow_CellValueChanged;
            GV_ReflowCool.CellValueChanged -= GV_Reflow_CellValueChanged;
            if (reset)
            {
                var pReflowerAreaData = CETCManagerApp.Instance.m_pETETCStage.m_ETReflower.m_CAreaData["Hot"];
                for (int col = 1; col <= m_nHeaterCount.Value; col++)
                {
                    GV_ReflowHot.SetRowCellValue(0, GV_ReflowHot.Columns[col], pReflowerAreaData[col - 1].m_fAreaTemplTop);
                    GV_ReflowHot.SetRowCellValue(1, GV_ReflowHot.Columns[col], pReflowerAreaData[col - 1].m_fAreaTemplButtom);
                }

                pReflowerAreaData = CETCManagerApp.Instance.m_pETETCStage.m_ETReflower.m_CAreaData["Cool"];
                for (int col = 1; col <= m_nCoolCount.Value; col++)
                {
                    GV_ReflowCool.SetRowCellValue(0, GV_ReflowCool.Columns[col], pReflowerAreaData[col - 1].m_fAreaTemplTop);
                    GV_ReflowCool.SetRowCellValue(1, GV_ReflowCool.Columns[col], pReflowerAreaData[col - 1].m_fAreaTemplButtom);
                }
            }
            else
            {
                for (int col = 1; col < GV_ReflowHot.Columns.Count; col++)
                {
                    var mValue = GV_ReflowHot.GetRowCellValue(row1, GV_ReflowHot.Columns[col]).ToDecimal();
                    GV_ReflowHot.SetRowCellValue(row2, GV_ReflowHot.Columns[col], mValue);
                }

                for (int col = 1; col < GV_ReflowCool.Columns.Count; col++)
                {
                    var mValue = GV_ReflowCool.GetRowCellValue(row1, GV_ReflowCool.Columns[col]).ToDecimal();
                    GV_ReflowCool.SetRowCellValue(row2, GV_ReflowCool.Columns[col], mValue);
                }
            }
            GV_ReflowHot.CellValueChanged  += GV_Reflow_CellValueChanged;
            GV_ReflowCool.CellValueChanged += GV_Reflow_CellValueChanged;
        }