Exemplo n.º 1
0
        private void initTG(TG dest, DataRow row_tg, DataTable allParamTG)
        {
            dest.name_shr = row_tg["NAME_SHR"].ToString();
            if (IsNameField(row_tg, "NAME_FUTURE") == true)
            {
                dest.name_future = row_tg["NAME_FUTURE"].ToString();
            }
            else
            {
                ;
            }
            dest.m_id = Convert.ToInt32(row_tg["ID"]);
            if (!(row_tg["INDX_COL_RDG_EXCEL"] is System.DBNull))
            {
                dest.m_indx_col_rdg_excel = Convert.ToInt32(row_tg["INDX_COL_RDG_EXCEL"]);
            }
            else
            {
                ;
            }

            DataRow[] rows_tg = allParamTG.Select(@"ID_TG=" + dest.m_id);
            dest.m_strKKS_NAME_TM = rows_tg[0][@"KKS_NAME"].ToString();
            dest.m_arIds_fact[(int)TG.ID_TIME.MINUTES] = Int32.Parse(rows_tg[0][@"ID_IN_ASKUE_3"].ToString());
            dest.m_arIds_fact[(int)TG.ID_TIME.HOURS]   = Int32.Parse(rows_tg[0][@"ID_IN_ASKUE_30"].ToString());
        }
Exemplo n.º 2
0
        public TECComponent(TEC tec, TG tg)
            : this(tec)
        {
            name_shr = tg.name_shr;
            m_id     = tg.m_id;

            name_future = tg.name_future;

            m_indx_col_export_pbr_excel = tg.m_indx_col_export_pbr_excel;
            m_indx_col_rdg_excel        = tg.m_indx_col_rdg_excel;

            m_dcKoeffAlarmPcur = tg.m_dcKoeffAlarmPcur;
        }
Exemplo n.º 3
0
        public void InitTG(TG dest, DataRow row_tg, DataTable allParamTG, out int err)
        {
            err = -1;

            dest.name_shr       = row_tg["NAME_SHR"].ToString();
            dest.m_id           = Convert.ToInt32(row_tg["ID"]);
            dest.m_id_owner_gtp = Convert.ToInt32(row_tg["ID_GTP"]);

            //DataRow[] rows_tg = allParamTG.Select(@"ID_TG=" + dest.m_id);
            //dest.m_strKKS_NAME_TM = rows_tg[0][@"KKS_NAME"].ToString();
            //dest.m_arIds_fact[(int)HDateTime.INTERVAL.MINUTES] = Int32.Parse(rows_tg[0][@"ID_IN_ASKUE_3"].ToString());
            //dest.m_arIds_fact[(int)HDateTime.INTERVAL.HOURS] = Int32.Parse(rows_tg[0][@"ID_IN_ASKUE_30"].ToString());
        }