Beispiel #1
0
        public string GetString(int stringId)
        {
            SQLDB sqldb = new SQLDB(connectionString);
            string gettedString;

            sqldb.OpenConnection();
            gettedString = sqldb.GetString(stringId, CurrentLanguage);
            sqldb.CloseConnection();

            return gettedString;
        }
Beispiel #2
0
        public string GetDataState()
        {
            SQLDB sqlDB = new SQLDB(connectionString);
            int blockStateId;//в таблице fn_data_block
            int STRIddataBlockState;//в таблице fd_data_block_state
            string blockStateMessage;

            sqlDB.OpenConnection();
            blockStateId = sqlDB.GetDataBlockState(DATA_BLOCK_ID);
            STRIddataBlockState = sqlDB.GetSTRIdDataBlockStateName(blockStateId);
            blockStateMessage = sqlDB.GetString(STRIddataBlockState, CurrentLanguage);
            sqlDB.CloseConnection();

            return blockStateMessage;
        }