Beispiel #1
0
        public ModelOracle(OracleSetting oracleMESSetting, Logger log)
        {
            _setting = oracleMESSetting;
            ModelParameter dbParam = new ModelParameter {
                DataBaseType = DataBaseType.Oracle,
                UserName     = _setting.UserID,
                PassWord     = _setting.PassWord,
                Host         = _setting.Host,
                Port         = _setting.Port,
                DBorService  = _setting.ServiceName
            };

            InitDataBase(dbParam, log);
            IDValue = "SEQ_EM_WQPF_ID.NEXTVAL";
        }
Beispiel #2
0
 public MainSetting()
 {
     MES              = new OracleSetting();
     Native           = new SQLSetting();
     Flowmeter        = new FlowmeterSetting();
     Smoker           = new SmokerSetting();
     Weather          = new WeatherSetting();
     OilTemp          = new OilTempSetting();
     RealtimeInterval = 1000;
     Name             = "Emission";
     DynoParamIP      = "127.0.0.1";
     DynoParamPort    = 50001;
     DynoIP           = "127.0.0.1";
     DynoPort         = 5555;
     RecvTimeout      = 5000;
     ScannerPort      = string.Empty;
     ScannerBaud      = 9600;
     VMASSpeed        = new DataTable();
 }