Exemplo n.º 1
0
        void RefreshDataPROP()
        {
            TParamAlternativeItem AI;

            sgAlternative.RowCount = 2;
            if (ParamAlt != null)
            {
                int m_cnt = ParamAlt.Count;
                for (int i = 0; i <= m_cnt - 1; i++)
                {
                    if (i + 1 > sgAlternative.RowCount - 1)
                    {
                        sgAlternative.RowCount = sgAlternative.RowCount + 1;
                    }
                    AI = ParamAlt.Items[i];

                    if (sgObjects.Count <= i + 1)
                    {
                        sgObjects.Add((object)AI);
                    }
                    else
                    {
                        sgObjects[i] = (object)AI;
                    }

                    CommonGraph.SGCellsByName(sgAlternative, i, "СОСТАВ", AI.SOSTAV);
                    CommonGraph.SGCellsByName(sgAlternative, i, "B", AI.B);
                    CommonGraph.SGCellsByName(sgAlternative, i, "T", AI.T);
                    CommonGraph.SGCellsByName(sgAlternative, i, "V", AI.V);
                }
            }
        }
Exemplo n.º 2
0
        void RefreshDataFUZZY()
        {
            TParamAlternativeItem AI;

            sgAlternative.RowCount = 2;
            if (ParamAlt != null)
            {
                int m_cnt = ParamAlt.Count;
                for (int i = 0; i <= m_cnt - 1; i++)
                {
                    if (i + 1 > sgAlternative.RowCount - 1)
                    {
                        sgAlternative.RowCount = sgAlternative.RowCount + 1;
                    }
                    AI = ParamAlt.Items[i];

                    if (sgObjects.Count <= i + 1)
                    {
                        sgObjects.Add((object)AI);
                    }
                    else
                    {
                        sgObjects[i] = (object)AI;
                    }

                    CommonGraph.SGCellsByName(sgAlternative, 1 + i, "СОСТАВ", AI.SOSTAV);
                    CommonGraph.SGCellsByName(sgAlternative, 1 + i, "A1_B_F", AI.A1_B_F);
                    CommonGraph.SGCellsByName(sgAlternative, 1 + i, "В_F1N", AI.B_F1N);
                    CommonGraph.SGCellsByName(sgAlternative, 1 + i, "В_F1B", AI.B_F1B);
                    CommonGraph.SGCellsByName(sgAlternative, 1 + i, "A2_В_F", AI.A2_B_F);
                    CommonGraph.SGCellsByName(sgAlternative, 1 + i, "В_F2N", AI.B_F2N);
                    CommonGraph.SGCellsByName(sgAlternative, 1 + i, "В_F2B", AI.B_F2B);
                    CommonGraph.SGCellsByName(sgAlternative, 1 + i, "A3_B_F", AI.A3_B_F);
                    CommonGraph.SGCellsByName(sgAlternative, 1 + i, "В_F3N", AI.B_F3N);
                    CommonGraph.SGCellsByName(sgAlternative, 1 + i, "В_F3B", AI.B_F3B);
                    CommonGraph.SGCellsByName(sgAlternative, 1 + i, "A1_T_F", AI.A1_T_F);
                    CommonGraph.SGCellsByName(sgAlternative, 1 + i, "T_F1N", AI.T_F1N);
                    CommonGraph.SGCellsByName(sgAlternative, 1 + i, "T_F1B", AI.T_F1B);
                    CommonGraph.SGCellsByName(sgAlternative, 1 + i, "A2_T_F", AI.A2_T_F);
                    CommonGraph.SGCellsByName(sgAlternative, 1 + i, "T_F2N", AI.T_F2N);
                    CommonGraph.SGCellsByName(sgAlternative, 1 + i, "T_F2B", AI.T_F2B);
                    CommonGraph.SGCellsByName(sgAlternative, 1 + i, "A3_T_F", AI.A3_T_F);
                    CommonGraph.SGCellsByName(sgAlternative, 1 + i, "T_F3N", AI.T_F3N);
                    CommonGraph.SGCellsByName(sgAlternative, 1 + i, "T_F3B", AI.T_F3B);
                    CommonGraph.SGCellsByName(sgAlternative, 1 + i, "A1_V_F", AI.A1_V_F);
                    CommonGraph.SGCellsByName(sgAlternative, 1 + i, "V_F1N", AI.V_F1N);
                    CommonGraph.SGCellsByName(sgAlternative, 1 + i, "V_F1B", AI.V_F1B);
                    CommonGraph.SGCellsByName(sgAlternative, 1 + i, "A2_V_F", AI.A2_V_F);
                    CommonGraph.SGCellsByName(sgAlternative, 1 + i, "V_F2N", AI.V_F2N);
                    CommonGraph.SGCellsByName(sgAlternative, 1 + i, "V_F2B", AI.V_F2B);
                    CommonGraph.SGCellsByName(sgAlternative, 1 + i, "A3_V_F", AI.A3_V_F);
                    CommonGraph.SGCellsByName(sgAlternative, 1 + i, "V_F3N", AI.V_F3N);
                    CommonGraph.SGCellsByName(sgAlternative, 1 + i, "V_F3B", AI.V_F3B);
                }
            }
        }
Exemplo n.º 3
0
        void StringInit()
        {
            sgAlternative.ColumnCount      = 1;
            sgAlternative.RowCount         = 1;
            sgAlternative.Rows[0].ReadOnly = true;

            CommonGraph.SGCells(sgAlternative, 0, 0, "СОСТАВ");
            //     sgAlternative.ColWidths[0] = 200;

            if (Type_Char == SharedConst.PROP)
            {
                sgAlternative.ColumnCount = 4;
                CommonGraph.SGCells(sgAlternative, 0, 1, "B");
                CommonGraph.SGCells(sgAlternative, 0, 2, "T");
                CommonGraph.SGCells(sgAlternative, 0, 3, "V");
            }
            else if (Type_Char == SharedConst.FUZZY)
            {
                sgAlternative.ColumnCount = 28;
                CommonGraph.SGCells(sgAlternative, 0, 1, "A1_B_F");
                CommonGraph.SGCells(sgAlternative, 0, 2, "В_F1N");
                CommonGraph.SGCells(sgAlternative, 0, 3, "В_F1B");
                CommonGraph.SGCells(sgAlternative, 0, 4, "A2_В_F");
                CommonGraph.SGCells(sgAlternative, 0, 5, "В_F2N");
                CommonGraph.SGCells(sgAlternative, 0, 6, "В_F2B");
                CommonGraph.SGCells(sgAlternative, 0, 7, "A3_B_F");
                CommonGraph.SGCells(sgAlternative, 0, 8, "В_F3N");
                CommonGraph.SGCells(sgAlternative, 0, 9, "В_F3B");
                CommonGraph.SGCells(sgAlternative, 0, 10, "A1_T_F");
                CommonGraph.SGCells(sgAlternative, 0, 11, "T_F1N");
                CommonGraph.SGCells(sgAlternative, 0, 12, "T_F1B");
                CommonGraph.SGCells(sgAlternative, 0, 13, "A2_T_F");
                CommonGraph.SGCells(sgAlternative, 0, 14, "T_F2N");
                CommonGraph.SGCells(sgAlternative, 0, 15, "T_F2B");
                CommonGraph.SGCells(sgAlternative, 0, 16, "A3_T_F");
                CommonGraph.SGCells(sgAlternative, 0, 17, "T_F3N");
                CommonGraph.SGCells(sgAlternative, 0, 18, "T_F3B");
                CommonGraph.SGCells(sgAlternative, 0, 19, "A1_V_F");
                CommonGraph.SGCells(sgAlternative, 0, 20, "V_F1N");
                CommonGraph.SGCells(sgAlternative, 0, 21, "V_F1B");
                CommonGraph.SGCells(sgAlternative, 0, 22, "A2_V_F");
                CommonGraph.SGCells(sgAlternative, 0, 23, "V_F2N");
                CommonGraph.SGCells(sgAlternative, 0, 24, "V_F2B");
                CommonGraph.SGCells(sgAlternative, 0, 25, "A3_V_F");
                CommonGraph.SGCells(sgAlternative, 0, 26, "V_F3N");
                CommonGraph.SGCells(sgAlternative, 0, 27, "V_F3B");
            }
        }
Exemplo n.º 4
0
        void StringInit()
        {
            int m_type = TFE.TypeShape;

            sgParam.ColumnCount      = 4;
            sgParam.RowCount         = 1;
            sgParam.Rows[0].ReadOnly = true;

            CommonGraph.SGCells(sgParam, 0, 0, "НАЗВАНИЕ");
            CommonGraph.SGCells(sgParam, 0, 1, "ФУНКЦИЯ");
            CommonGraph.SGCells(sgParam, 0, 2, "ЭЛЕМЕНТ");
            CommonGraph.SGCells(sgParam, 0, 3, "СОСТАВ");

            if (Type_Char == SharedConst.PROP)
            {
                if (m_type == 5)
                {
                    sgParam.ColumnCount = 7;
                    CommonGraph.SGCells(sgParam, 0, 4, "B");
                    CommonGraph.SGCells(sgParam, 0, 5, "T");
                    CommonGraph.SGCells(sgParam, 0, 6, "V");
                }
                if (m_type == 6)
                {
                    sgParam.ColumnCount = 10;
                    CommonGraph.SGCells(sgParam, 0, 4, "ЭЛЕМЕНТ(диагн.)");
                    CommonGraph.SGCells(sgParam, 0, 5, "В(диагн)");
                    CommonGraph.SGCells(sgParam, 0, 6, "П_11");
                    CommonGraph.SGCells(sgParam, 0, 7, "П_00");
                    CommonGraph.SGCells(sgParam, 0, 8, "T_д");
                    CommonGraph.SGCells(sgParam, 0, 9, "V_д");
                }
                if (m_type == 7)
                {
                    sgParam.ColumnCount = 8;
                    CommonGraph.SGCells(sgParam, 0, 4, "K_11");
                    CommonGraph.SGCells(sgParam, 0, 5, "K_00");
                    CommonGraph.SGCells(sgParam, 0, 6, "T_Ф");
                    CommonGraph.SGCells(sgParam, 0, 7, "V_Ф");
                }
                if (m_type == 8)
                {
                    sgParam.ColumnCount = 5;
                    CommonGraph.SGCells(sgParam, 0, 4, "УСЛОВИЕ");
                }
            }

            else if (Type_Char == SharedConst.FUZZY)
            {
                if (m_type == 5)
                {
                    sgParam.ColumnCount = 31;
                    CommonGraph.SGCells(sgParam, 0, 4, "A1_B_F");
                    CommonGraph.SGCells(sgParam, 0, 5, "Â_F1N");
                    CommonGraph.SGCells(sgParam, 0, 6, "Â_F1B");
                    CommonGraph.SGCells(sgParam, 0, 7, "A2_Â_F");
                    CommonGraph.SGCells(sgParam, 0, 8, "Â_F2N");
                    CommonGraph.SGCells(sgParam, 0, 9, "Â_F2B");
                    CommonGraph.SGCells(sgParam, 0, 10, "A3_B_F");
                    CommonGraph.SGCells(sgParam, 0, 11, "Â_F3N");
                    CommonGraph.SGCells(sgParam, 0, 12, "Â_F3B");
                    CommonGraph.SGCells(sgParam, 0, 13, "A1_T_F");
                    CommonGraph.SGCells(sgParam, 0, 14, "T_F1N");
                    CommonGraph.SGCells(sgParam, 0, 15, "T_F1B");
                    CommonGraph.SGCells(sgParam, 0, 16, "A2_T_F");
                    CommonGraph.SGCells(sgParam, 0, 17, "T_F2N");
                    CommonGraph.SGCells(sgParam, 0, 18, "T_F2B");
                    CommonGraph.SGCells(sgParam, 0, 19, "A3_T_F");
                    CommonGraph.SGCells(sgParam, 0, 20, "T_F3N");
                    CommonGraph.SGCells(sgParam, 0, 21, "T_F3B");
                    CommonGraph.SGCells(sgParam, 0, 22, "A1_V_F");
                    CommonGraph.SGCells(sgParam, 0, 23, "V_F1N");
                    CommonGraph.SGCells(sgParam, 0, 24, "V_F1B");
                    CommonGraph.SGCells(sgParam, 0, 25, "A2_V_F");
                    CommonGraph.SGCells(sgParam, 0, 26, "V_F2N");
                    CommonGraph.SGCells(sgParam, 0, 27, "V_F2B");
                    CommonGraph.SGCells(sgParam, 0, 28, "A3_V_F");
                    CommonGraph.SGCells(sgParam, 0, 29, "V_F3N");
                    CommonGraph.SGCells(sgParam, 0, 30, "V_F3B");
                }
                if (m_type == 6)
                {
                    sgParam.ColumnCount = 49;
                    CommonGraph.SGCells(sgParam, 0, 4, "A1_P_EL_F");
                    CommonGraph.SGCells(sgParam, 0, 5, "P_EL_F1N");
                    CommonGraph.SGCells(sgParam, 0, 6, "P_EL_F1B");
                    CommonGraph.SGCells(sgParam, 0, 7, "A2_P_EL_F");
                    CommonGraph.SGCells(sgParam, 0, 8, "P_EL_F2N");
                    CommonGraph.SGCells(sgParam, 0, 9, "P_EL_F2B");
                    CommonGraph.SGCells(sgParam, 0, 10, "A3_P_EL_F");
                    CommonGraph.SGCells(sgParam, 0, 11, "P_EL_F3N");
                    CommonGraph.SGCells(sgParam, 0, 12, "P_EL_F3B");
                    CommonGraph.SGCells(sgParam, 0, 13, "A1_P11_F");
                    CommonGraph.SGCells(sgParam, 0, 14, "P11_F1N");
                    CommonGraph.SGCells(sgParam, 0, 15, "P11_F1B");
                    CommonGraph.SGCells(sgParam, 0, 16, "A2_P11_F");
                    CommonGraph.SGCells(sgParam, 0, 17, "P11_F2N");
                    CommonGraph.SGCells(sgParam, 0, 18, "P11_F2B");
                    CommonGraph.SGCells(sgParam, 0, 19, "A3_P11_F");
                    CommonGraph.SGCells(sgParam, 0, 20, "P11_F3N");
                    CommonGraph.SGCells(sgParam, 0, 21, "P11_F3B");
                    CommonGraph.SGCells(sgParam, 0, 22, "A1_P00_F");
                    CommonGraph.SGCells(sgParam, 0, 23, "P00_F1N");
                    CommonGraph.SGCells(sgParam, 0, 24, "P00_F1B");
                    CommonGraph.SGCells(sgParam, 0, 25, "A2_P00_F");
                    CommonGraph.SGCells(sgParam, 0, 26, "P00_F2N");
                    CommonGraph.SGCells(sgParam, 0, 27, "P00_F2B");
                    CommonGraph.SGCells(sgParam, 0, 28, "A3_P00_F");
                    CommonGraph.SGCells(sgParam, 0, 29, "P00_F3N");
                    CommonGraph.SGCells(sgParam, 0, 30, "P00_F3B");
                    CommonGraph.SGCells(sgParam, 0, 31, "A1_TD_F");
                    CommonGraph.SGCells(sgParam, 0, 32, "TD_F1N");
                    CommonGraph.SGCells(sgParam, 0, 33, "TD_F1B");
                    CommonGraph.SGCells(sgParam, 0, 34, "A2_TD_F");
                    CommonGraph.SGCells(sgParam, 0, 35, "TD_F2N");
                    CommonGraph.SGCells(sgParam, 0, 36, "TD_F2B");
                    CommonGraph.SGCells(sgParam, 0, 37, "A3_TD_F");
                    CommonGraph.SGCells(sgParam, 0, 38, "A3_TD_F");
                    CommonGraph.SGCells(sgParam, 0, 39, "TD_F3B");
                    CommonGraph.SGCells(sgParam, 0, 40, "A1_VD_F");
                    CommonGraph.SGCells(sgParam, 0, 41, "VD_F1N");
                    CommonGraph.SGCells(sgParam, 0, 42, "VD_F1B");
                    CommonGraph.SGCells(sgParam, 0, 43, "A2_VD_F");
                    CommonGraph.SGCells(sgParam, 0, 44, "VD_F2N");
                    CommonGraph.SGCells(sgParam, 0, 45, "VD_F2B");
                    CommonGraph.SGCells(sgParam, 0, 46, "A3_VD_F");
                    CommonGraph.SGCells(sgParam, 0, 47, "VD_F3N");
                    CommonGraph.SGCells(sgParam, 0, 48, "VD_F3B");
                }
                if (m_type == 7)
                {
                    sgParam.ColumnCount = 40;
                    CommonGraph.SGCells(sgParam, 0, 4, "A1_K11_F");
                    CommonGraph.SGCells(sgParam, 0, 5, "K11_F1N");
                    CommonGraph.SGCells(sgParam, 0, 6, "K11_F1B");
                    CommonGraph.SGCells(sgParam, 0, 7, "A2_K11_F");
                    CommonGraph.SGCells(sgParam, 0, 8, "K11_F2N");
                    CommonGraph.SGCells(sgParam, 0, 9, "K11_F2B");
                    CommonGraph.SGCells(sgParam, 0, 10, "A3_K11_F");
                    CommonGraph.SGCells(sgParam, 0, 11, "K11_F3N");
                    CommonGraph.SGCells(sgParam, 0, 12, "K11_F3B");
                    CommonGraph.SGCells(sgParam, 0, 13, "A1_K00_F");
                    CommonGraph.SGCells(sgParam, 0, 14, "K00_F1N");
                    CommonGraph.SGCells(sgParam, 0, 15, "K00_F1B");
                    CommonGraph.SGCells(sgParam, 0, 16, "A2_K00_F");
                    CommonGraph.SGCells(sgParam, 0, 17, "K00_F2N");
                    CommonGraph.SGCells(sgParam, 0, 18, "K00_F2B");
                    CommonGraph.SGCells(sgParam, 0, 19, "A3_K00_F");
                    CommonGraph.SGCells(sgParam, 0, 20, "K00_F3N");
                    CommonGraph.SGCells(sgParam, 0, 21, "K00_F3B");
                    CommonGraph.SGCells(sgParam, 0, 22, "A1_TF_F");
                    CommonGraph.SGCells(sgParam, 0, 23, "TF_F1N");
                    CommonGraph.SGCells(sgParam, 0, 24, "TF_F1B");
                    CommonGraph.SGCells(sgParam, 0, 25, "A2_TF_F");
                    CommonGraph.SGCells(sgParam, 0, 26, "TF_F2N");
                    CommonGraph.SGCells(sgParam, 0, 27, "TF_F2B");
                    CommonGraph.SGCells(sgParam, 0, 28, "A3_TF_F");
                    CommonGraph.SGCells(sgParam, 0, 29, "TF_F3N");
                    CommonGraph.SGCells(sgParam, 0, 30, "TF_F3B");
                    CommonGraph.SGCells(sgParam, 0, 31, "A1_VF_F");
                    CommonGraph.SGCells(sgParam, 0, 32, "VF_F1N");
                    CommonGraph.SGCells(sgParam, 0, 33, "VF_F1B");
                    CommonGraph.SGCells(sgParam, 0, 34, "A2_VF_F");
                    CommonGraph.SGCells(sgParam, 0, 35, "VF_F2N");
                    CommonGraph.SGCells(sgParam, 0, 36, "VF_F2B");
                    CommonGraph.SGCells(sgParam, 0, 37, "A3_VF_F");
                    CommonGraph.SGCells(sgParam, 0, 38, "VF_F3N");
                    CommonGraph.SGCells(sgParam, 0, 39, "VF_F3B");
                }
                if (m_type == 8)
                {
                    sgParam.ColumnCount = 5;
                    CommonGraph.SGCells(sgParam, 0, 4, "УСЛОВИЕ");
                }
            }
        }
Exemplo n.º 5
0
        void RefreshDataFUZZY()
        {
            TParamAlternativeItem AI;
            int m_type = TFE.TypeShape;

            sgParam.RowCount = 1;
            //sgParam.RowCount = 2;
            //    sgParam.FixedRows = 1;
            //      sgParam.Rows[1].Clear();
            if (TFE.ParamAlt != null)
            {
                int m_cnt = TFE.ParamAlt.Count;
                sgParam.RowCount = m_cnt;

                /*   if (m_cnt > sgParam.RowCount)
                 *     sgParam.RowCount += 1;*/
                for (int i = 0; i <= m_cnt - 1; i++)
                {
                    AI = TFE.ParamAlt.Items[i];
                    //            sgParam.Rows[1 + i].Cells[0].Value = (object)AI;
                    AI.SOSTAV = (TFE.ID).ToString() + ":" + (i + 1).ToString();
                    CommonGraph.SGCellsByName(sgParam, 1 + i, "НАЗВАНИЕ", AI.NAME);
                    CommonGraph.SGCellsByName(sgParam, 1 + i, "ФУНКЦИЯ", AI.FUNCTION2);
                    CommonGraph.SGCellsByName(sgParam, 1 + i, "ЭЛЕМЕНТ", AI.ELEMENT);
                    CommonGraph.SGCellsByName(sgParam, 1 + i, "СОСТАВ", AI.SOSTAV);

                    if (m_type == 5)
                    {
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "A1_B_F", AI.A1_B_F);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "В_F1N", AI.B_F1N);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "В_F1B", AI.B_F1B);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "A2_В_F", AI.A2_B_F);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "В_F2N", AI.B_F2N);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "В_F2B", AI.B_F2B);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "A3_B_F", AI.A3_B_F);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "В_F3N", AI.B_F3N);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "В_F3B", AI.B_F3B);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "A1_T_F", AI.A1_T_F);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "T_F1N", AI.T_F1N);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "T_F1B", AI.T_F1B);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "A2_T_F", AI.A2_T_F);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "T_F2N", AI.T_F2N);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "T_F2B", AI.T_F2B);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "A3_T_F", AI.A3_T_F);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "T_F3N", AI.T_F3N);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "T_F3B", AI.T_F3B);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "A1_V_F", AI.A1_V_F);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "V_F1N", AI.V_F1N);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "V_F1B", AI.V_F1B);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "A2_V_F", AI.A2_V_F);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "V_F2N", AI.V_F2N);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "V_F2B", AI.V_F2B);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "A3_V_F", AI.A3_V_F);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "V_F3N", AI.V_F3N);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "V_F3B", AI.V_F3B);
                    }
                    if (m_type == 6)
                    {
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "A1_P_EL_F", AI.A1_P_EL_F);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "P_EL_F1N", AI.P_EL_F1N);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "P_EL_F1B", AI.P_EL_F1B);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "A2_P_EL_F", AI.A2_P_EL_F);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "P_EL_F2N", AI.P_EL_F2N);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "P_EL_F2B", AI.P_EL_F2B);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "A3_P_EL_F", AI.A3_P_EL_F);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "P_EL_F3N", AI.P_EL_F3N);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "P_EL_F3B", AI.P_EL_F3B);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "A1_P11_F", AI.A1_P11_F);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "P11_F1N", AI.P11_F1N);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "P11_F1B", AI.P11_F1B);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "A2_P11_F", AI.A2_P11_F);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "P11_F2N", AI.P11_F2N);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "P11_F2B", AI.P11_F2B);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "A3_P11_F", AI.A3_P11_F);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "P11_F3N", AI.P11_F3N);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "P11_F3B", AI.P11_F3B);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "A1_P00_F", AI.A1_P00_F);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "P00_F1N", AI.P00_F1N);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "P00_F1B", AI.P00_F1B);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "A2_P00_F", AI.A2_P00_F);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "P00_F2N", AI.P00_F2N);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "P00_F2B", AI.P00_F2B);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "A3_P00_F", AI.A3_P00_F);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "P00_F3N", AI.P00_F3N);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "P00_F3B", AI.P00_F3B);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "A1_TD_F", AI.A1_TD_F);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "TD_F1N", AI.TD_F1N);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "TD_F1B", AI.TD_F1B);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "A2_TD_F", AI.A2_TD_F);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "TD_F2N", AI.TD_F2N);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "TD_F2B", AI.TD_F2B);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "A3_TD_F", AI.A3_TD_F);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "TD_F3N", AI.TD_F3N);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "TD_F3B", AI.TD_F3B);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "A1_VD_F", AI.A1_VD_F);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "VD_F1N", AI.VD_F1N);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "VD_F1B", AI.VD_F1B);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "A2_VD_F", AI.A2_VD_F);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "VD_F2N", AI.VD_F2N);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "VD_F2B", AI.VD_F2B);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "A3_VD_F", AI.A3_VD_F);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "VD_F3N", AI.VD_F3N);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "VD_F3B", AI.VD_F3B);
                    }
                    if (m_type == 7)
                    {
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "A1_K11_F", AI.A1_K11_F);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "K11_F1N", AI.K11_F1N);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "K11_F1B", AI.K11_F1B);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "A2_K11_F", AI.A2_K11_F);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "K11_F2N", AI.K11_F2N);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "K11_F2B", AI.K11_F2B);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "A3_K11_F", AI.A3_K11_F);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "K11_F3N", AI.K11_F3N);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "K11_F3B", AI.K11_F3B);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "A1_K00_F", AI.A1_K00_F);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "K00_F1N", AI.K00_F1N);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "K00_F1B", AI.K00_F1B);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "A2_K00_F", AI.A2_K00_F);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "K00_F2N", AI.K00_F2N);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "K00_F2B", AI.K00_F2B);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "A3_K00_F", AI.A3_K00_F);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "K00_F3N", AI.K00_F3N);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "K00_F3B", AI.K00_F3B);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "A1_TF_F", AI.A1_TF_F);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "TF_F1N", AI.TF_F1N);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "TF_F1B", AI.TF_F1B);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "A2_TF_F", AI.A2_TF_F);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "TF_F2N", AI.TF_F2N);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "TF_F2B", AI.TF_F2B);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "A3_TF_F", AI.A3_TF_F);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "TF_F3N", AI.TF_F3N);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "TF_F3B", AI.TF_F3B);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "A1_VF_F", AI.A1_VF_F);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "VF_F1N", AI.VF_F1N);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "VF_F1B", AI.VF_F1B);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "A2_VF_F", AI.A2_VF_F);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "VF_F2N", AI.VF_F2N);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "VF_F2B", AI.VF_F2B);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "A3_VF_F", AI.A3_VF_F);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "VF_F3N", AI.VF_F3N);
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "VF_F3B", AI.VF_F3B);
                    }
                    if (m_type == 8)
                    {
                        CommonGraph.SGCellsByName(sgParam, 1 + i, "УСЛОВИЕ", AI.PREDICAT);
                    }
                }
            }
        }
Exemplo n.º 6
0
        void RefreshDataPROP()
        {
            TParamAlternativeItem AI;
            int m_type = TFE.TypeShape;

            //      sgParam.RowCount = 1;
            //       sgParam.RowCount = 2;
            //      sgParam.FixedRows = 1;
            //       sgParam.Rows[1].Clear();
            if (TFE.ParamAlt != null)
            {
                int m_cnt = TFE.ParamAlt.Count;
                sgParam.RowCount = m_cnt;

                /*       if (m_cnt > sgParam.RowCount)
                 *         sgParam.RowCount += 1;*/
                for (int i = 0; i <= m_cnt - 1; i++)
                {
                    AI = TFE.ParamAlt.Items[i];

                    if (sgObjects.Count <= i + 1)
                    {
                        sgObjects.Add((object)AI);
                    }
                    else
                    {
                        sgObjects[i] = (object)AI;
                    }
                    AI.SOSTAV = (TFE.ID).ToString() + ":" + (i + 1).ToString();
                    CommonGraph.SGCellsByName(sgParam, i, "НАЗВАНИЕ", AI.NAME);
                    CommonGraph.SGCellsByName(sgParam, i, "ФУНКЦИЯ", AI.FUNCTION2);
                    CommonGraph.SGCellsByName(sgParam, i, "ЭЛЕМЕНТ", AI.ELEMENT);
                    CommonGraph.SGCellsByName(sgParam, i, "СОСТАВ", AI.SOSTAV);

                    if (m_type == 5)
                    {
                        CommonGraph.SGCellsByName(sgParam, i, "B", AI.B);
                        CommonGraph.SGCellsByName(sgParam, i, "T", AI.T);
                        CommonGraph.SGCellsByName(sgParam, i, "V", AI.V);
                    }
                    if (m_type == 6)
                    {
                        CommonGraph.SGCellsByName(sgParam, i, "ЭЛЕМЕНТ(диагн.)", AI.ELEM_DIAGN);
                        CommonGraph.SGCellsByName(sgParam, i, "В(диагн)", AI.P_DIAGN_EL);
                        CommonGraph.SGCellsByName(sgParam, i, "П_11", AI.P_11);
                        CommonGraph.SGCellsByName(sgParam, i, "П_00", AI.P_00);
                        CommonGraph.SGCellsByName(sgParam, i, "T_д", AI.T_D);
                        CommonGraph.SGCellsByName(sgParam, i, "V_д", AI.V_D);
                    }
                    if (m_type == 7)
                    {
                        CommonGraph.SGCellsByName(sgParam, i, "K_11", AI.K_11);
                        CommonGraph.SGCellsByName(sgParam, i, "K_00", AI.K_00);
                        CommonGraph.SGCellsByName(sgParam, i, "T_Ф", AI.T_F);
                        CommonGraph.SGCellsByName(sgParam, i, "V_Ф", AI.V_F);
                    }
                    if (m_type == 8)
                    {
                        CommonGraph.SGCellsByName(sgParam, i, "УСЛОВИЕ", AI.PREDICAT);
                    }
                }
                sgParam.Rows[sgParam.RowCount - 1].Selected = true;
            }
        }