コード例 #1
0
ファイル: FmViewDecision.cs プロジェクト: atomaszz/gelios
        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);
                }
            }
        }
コード例 #2
0
ファイル: FmViewDecision.cs プロジェクト: atomaszz/gelios
        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);
                }
            }
        }
コード例 #3
0
ファイル: FmParamAlternative.cs プロジェクト: atomaszz/gelios
        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);
                    }
                }
            }
        }
コード例 #4
0
ファイル: FmParamAlternative.cs プロジェクト: atomaszz/gelios
        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;
            }
        }