From 3f5f5d4ce3f9e3e00b1634681736e6c709941f7f Mon Sep 17 00:00:00 2001
From: byloveletter <byloveletter@falinux.com>
Date: Thu, 27 Apr 2017 21:00:24 +0900
Subject: [PATCH] =?UTF-8?q?=EB=94=94=EB=B2=84=EA=B9=85=20=EC=9A=94?=
 =?UTF-8?q?=EC=B2=AD=20=EC=82=AC=ED=95=AD=20=EC=A0=81=EC=9A=A9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

- 실시간 데이터 자동 갱신
- 수위센서값 표시
---
 app/gui/oven_control/basicsettingwindow.cpp        |  14 +
 app/gui/oven_control/basicsettingwindow.h          |  22 ++
 app/gui/oven_control/basicsettingwindow.ui         | 410 +++++++++++++++++++++
 app/gui/oven_control/configwindow.cpp              |   8 +
 app/gui/oven_control/configwindow.h                |   2 +
 app/gui/oven_control/engineermenuwindow.cpp        |   6 +
 app/gui/oven_control/engineermenuwindow.h          |   2 +
 .../images/config/service/basic_setting_bgnd.png   | Bin 0 -> 3135 bytes
 app/gui/oven_control/manualcookwindow.ui           |  14 +-
 app/gui/oven_control/operationtimeheat.ui          |   2 +-
 app/gui/oven_control/oven_control.pro              |   9 +-
 app/gui/oven_control/ovenstatics.cpp               |  14 +-
 app/gui/oven_control/ovenstatics.h                 |   6 +
 app/gui/oven_control/realtimepartswindow.cpp       |  25 +-
 app/gui/oven_control/realtimepartswindow.h         |   2 +
 app/gui/oven_control/realtimesensorwindow.cpp      |   9 +
 app/gui/oven_control/realtimesensorwindow.h        |   3 +-
 app/gui/oven_control/resources.qrc                 |   1 +
 18 files changed, 532 insertions(+), 17 deletions(-)
 create mode 100644 app/gui/oven_control/basicsettingwindow.cpp
 create mode 100644 app/gui/oven_control/basicsettingwindow.h
 create mode 100644 app/gui/oven_control/basicsettingwindow.ui
 create mode 100644 app/gui/oven_control/images/config/service/basic_setting_bgnd.png

diff --git a/app/gui/oven_control/basicsettingwindow.cpp b/app/gui/oven_control/basicsettingwindow.cpp
new file mode 100644
index 0000000..1e16f0f
--- /dev/null
+++ b/app/gui/oven_control/basicsettingwindow.cpp
@@ -0,0 +1,14 @@
+#include "basicsettingwindow.h"
+#include "ui_basicsettingwindow.h"
+
+BasicSettingWindow::BasicSettingWindow(QWidget *parent) :
+    QMainWindow(parent),
+    ui(new Ui::BasicSettingWindow)
+{
+    ui->setupUi(this);
+}
+
+BasicSettingWindow::~BasicSettingWindow()
+{
+    delete ui;
+}
diff --git a/app/gui/oven_control/basicsettingwindow.h b/app/gui/oven_control/basicsettingwindow.h
new file mode 100644
index 0000000..74a139e
--- /dev/null
+++ b/app/gui/oven_control/basicsettingwindow.h
@@ -0,0 +1,22 @@
+#ifndef BASICSETTINGWINDOW_H
+#define BASICSETTINGWINDOW_H
+
+#include <QMainWindow>
+
+namespace Ui {
+class BasicSettingWindow;
+}
+
+class BasicSettingWindow : public QMainWindow
+{
+    Q_OBJECT
+
+public:
+    explicit BasicSettingWindow(QWidget *parent = 0);
+    ~BasicSettingWindow();
+
+private:
+    Ui::BasicSettingWindow *ui;
+};
+
+#endif // BASICSETTINGWINDOW_H
diff --git a/app/gui/oven_control/basicsettingwindow.ui b/app/gui/oven_control/basicsettingwindow.ui
new file mode 100644
index 0000000..4f54275
--- /dev/null
+++ b/app/gui/oven_control/basicsettingwindow.ui
@@ -0,0 +1,410 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
+ <class>BasicSettingWindow</class>
+ <widget class="QMainWindow" name="BasicSettingWindow">
+  <property name="geometry">
+   <rect>
+    <x>0</x>
+    <y>0</y>
+    <width>900</width>
+    <height>1600</height>
+   </rect>
+  </property>
+  <property name="windowTitle">
+   <string>MainWindow</string>
+  </property>
+  <property name="styleSheet">
+   <string notr="true">#centralwidget { background-image: url(:/images/background/config_service.png); }
+#bottomBar { background-image: url(:/images/bottom_bar/background.png); }
+#midWidget { background-image: url(:/images/config/service/basic_setting_bgnd.png); }</string>
+  </property>
+  <widget class="QWidget" name="centralwidget">
+   <property name="styleSheet">
+    <string notr="true"/>
+   </property>
+   <widget class="QStackedWidget" name="upperStack">
+    <property name="geometry">
+     <rect>
+      <x>0</x>
+      <y>0</y>
+      <width>900</width>
+      <height>426</height>
+     </rect>
+    </property>
+    <widget class="QWidget" name="clockContainer">
+     <property name="styleSheet">
+      <string notr="true">#clockContainer { background-image: url(:/images/clock/background.png); }</string>
+     </property>
+     <widget class="Clock" name="clock" native="true">
+      <property name="geometry">
+       <rect>
+        <x>272</x>
+        <y>36</y>
+        <width>356</width>
+        <height>355</height>
+       </rect>
+      </property>
+     </widget>
+    </widget>
+    <widget class="QWidget" name="page_2"/>
+   </widget>
+   <widget class="QLabel" name="label_15">
+    <property name="geometry">
+     <rect>
+      <x>55</x>
+      <y>426</y>
+      <width>900</width>
+      <height>84</height>
+     </rect>
+    </property>
+    <property name="font">
+     <font>
+      <family>Malgun Gothic</family>
+      <pointsize>11</pointsize>
+     </font>
+    </property>
+    <property name="styleSheet">
+     <string notr="true">color: rgb(255, 255, 255);</string>
+    </property>
+    <property name="text">
+     <string>서비스단계(엔지니어모드) &gt; 기본설정</string>
+    </property>
+   </widget>
+   <widget class="QWidget" name="bottomBar" native="true">
+    <property name="geometry">
+     <rect>
+      <x>0</x>
+      <y>1450</y>
+      <width>900</width>
+      <height>150</height>
+     </rect>
+    </property>
+    <widget class="QPushButton" name="backButton">
+     <property name="geometry">
+      <rect>
+       <x>401</x>
+       <y>26</y>
+       <width>97</width>
+       <height>97</height>
+      </rect>
+     </property>
+     <property name="sizePolicy">
+      <sizepolicy hsizetype="Minimum" vsizetype="Minimum">
+       <horstretch>0</horstretch>
+       <verstretch>0</verstretch>
+      </sizepolicy>
+     </property>
+     <property name="styleSheet">
+      <string notr="true">QPushButton { border-image: url(:/images/bottom_bar/back.png); }
+QPushButton:pressed { border-image: url(:/images/bottom_bar/back_ov.png); }</string>
+     </property>
+     <property name="text">
+      <string/>
+     </property>
+    </widget>
+   </widget>
+   <widget class="QWidget" name="gridLayoutWidget">
+    <property name="geometry">
+     <rect>
+      <x>40</x>
+      <y>545</y>
+      <width>821</width>
+      <height>66</height>
+     </rect>
+    </property>
+    <layout class="QGridLayout" name="gridLayout" columnstretch="67,33">
+     <property name="spacing">
+      <number>0</number>
+     </property>
+     <item row="0" column="0" colspan="2">
+      <widget class="QPushButton" name="button">
+       <property name="enabled">
+        <bool>false</bool>
+       </property>
+       <property name="sizePolicy">
+        <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
+         <horstretch>0</horstretch>
+         <verstretch>0</verstretch>
+        </sizepolicy>
+       </property>
+       <property name="font">
+        <font>
+         <family>Roboto</family>
+         <pointsize>10</pointsize>
+         <weight>75</weight>
+         <bold>true</bold>
+         <underline>false</underline>
+        </font>
+       </property>
+       <property name="styleSheet">
+        <string notr="true">QPushButton { border-image: url(:/images/config/pannel.png);color: rgb(255, 255, 255); }
+QPushButton:pressed { border-image: url(:/images/config/pannel_ov.png); }
+QPushButton { text-align: left;}
+</string>
+       </property>
+       <property name="text">
+        <string>    기본설정</string>
+       </property>
+      </widget>
+     </item>
+     <item row="0" column="1">
+      <widget class="QLabel" name="label_17">
+       <property name="enabled">
+        <bool>true</bool>
+       </property>
+       <property name="font">
+        <font>
+         <family>Malgun Gothic</family>
+         <pointsize>11</pointsize>
+         <weight>75</weight>
+         <bold>true</bold>
+        </font>
+       </property>
+       <property name="styleSheet">
+        <string notr="true">color: rgb(255, 255, 255);</string>
+       </property>
+       <property name="text">
+        <string>EM-2</string>
+       </property>
+       <property name="alignment">
+        <set>Qt::AlignCenter</set>
+       </property>
+       <property name="margin">
+        <number>0</number>
+       </property>
+      </widget>
+     </item>
+    </layout>
+   </widget>
+   <widget class="QWidget" name="midWidget" native="true">
+    <property name="geometry">
+     <rect>
+      <x>43</x>
+      <y>627</y>
+      <width>813</width>
+      <height>647</height>
+     </rect>
+    </property>
+    <property name="styleSheet">
+     <string notr="true">QLabel{
+	color : white;
+}</string>
+    </property>
+    <widget class="QLabel" name="ctrlLbList_1_1">
+     <property name="geometry">
+      <rect>
+       <x>0</x>
+       <y>70</y>
+       <width>460</width>
+       <height>94</height>
+      </rect>
+     </property>
+     <property name="font">
+      <font>
+       <family>나눔고딕</family>
+       <pointsize>10</pointsize>
+      </font>
+     </property>
+     <property name="text">
+      <string>스팀발생기 수동 스케일 제거 후 물의 양</string>
+     </property>
+     <property name="margin">
+      <number>7</number>
+     </property>
+    </widget>
+    <widget class="QLabel" name="ctrlLbList_1_2">
+     <property name="geometry">
+      <rect>
+       <x>0</x>
+       <y>166</y>
+       <width>460</width>
+       <height>94</height>
+      </rect>
+     </property>
+     <property name="font">
+      <font>
+       <family>나눔고딕</family>
+       <pointsize>10</pointsize>
+      </font>
+     </property>
+     <property name="text">
+      <string>소형펌프모터 모드</string>
+     </property>
+     <property name="margin">
+      <number>7</number>
+     </property>
+    </widget>
+    <widget class="QLabel" name="ctrlLbList_1_3">
+     <property name="geometry">
+      <rect>
+       <x>0</x>
+       <y>263</y>
+       <width>460</width>
+       <height>94</height>
+      </rect>
+     </property>
+     <property name="font">
+      <font>
+       <family>나눔고딕</family>
+       <pointsize>10</pointsize>
+      </font>
+     </property>
+     <property name="text">
+      <string>소형펌프모터 인터벌시간 설정</string>
+     </property>
+     <property name="margin">
+      <number>7</number>
+     </property>
+    </widget>
+    <widget class="QLabel" name="ctrlLbList_1_4">
+     <property name="geometry">
+      <rect>
+       <x>0</x>
+       <y>360</y>
+       <width>460</width>
+       <height>94</height>
+      </rect>
+     </property>
+     <property name="font">
+      <font>
+       <family>나눔고딕</family>
+       <pointsize>10</pointsize>
+      </font>
+     </property>
+     <property name="text">
+      <string>건열퀀칭 작동 온도 </string>
+     </property>
+     <property name="margin">
+      <number>7</number>
+     </property>
+    </widget>
+    <widget class="QLabel" name="ctrlLbList_1_5">
+     <property name="geometry">
+      <rect>
+       <x>0</x>
+       <y>458</y>
+       <width>460</width>
+       <height>94</height>
+      </rect>
+     </property>
+     <property name="font">
+      <font>
+       <family>나눔고딕</family>
+       <pointsize>10</pointsize>
+      </font>
+     </property>
+     <property name="text">
+      <string>스팀퀀칭 작동온도 </string>
+     </property>
+     <property name="margin">
+      <number>7</number>
+     </property>
+    </widget>
+    <widget class="QLabel" name="ctrlLbList_1_6">
+     <property name="geometry">
+      <rect>
+       <x>0</x>
+       <y>553</y>
+       <width>460</width>
+       <height>94</height>
+      </rect>
+     </property>
+     <property name="font">
+      <font>
+       <family>나눔고딕</family>
+       <pointsize>10</pointsize>
+      </font>
+     </property>
+     <property name="text">
+      <string>드레인볼밸브 </string>
+     </property>
+     <property name="margin">
+      <number>7</number>
+     </property>
+    </widget>
+    <widget class="QLabel" name="ctrlLbCol_1">
+     <property name="geometry">
+      <rect>
+       <x>0</x>
+       <y>0</y>
+       <width>460</width>
+       <height>69</height>
+      </rect>
+     </property>
+     <property name="font">
+      <font>
+       <family>나눔고딕</family>
+       <pointsize>10</pointsize>
+      </font>
+     </property>
+     <property name="text">
+      <string>설정구분</string>
+     </property>
+     <property name="margin">
+      <number>7</number>
+     </property>
+    </widget>
+    <widget class="QLabel" name="ctrlLbCol_2">
+     <property name="geometry">
+      <rect>
+       <x>460</x>
+       <y>0</y>
+       <width>201</width>
+       <height>69</height>
+      </rect>
+     </property>
+     <property name="font">
+      <font>
+       <family>나눔고딕</family>
+       <pointsize>10</pointsize>
+      </font>
+     </property>
+     <property name="text">
+      <string>설 정</string>
+     </property>
+     <property name="alignment">
+      <set>Qt::AlignCenter</set>
+     </property>
+     <property name="margin">
+      <number>7</number>
+     </property>
+    </widget>
+    <widget class="QLabel" name="ctrlLbCol_3">
+     <property name="geometry">
+      <rect>
+       <x>660</x>
+       <y>0</y>
+       <width>151</width>
+       <height>69</height>
+      </rect>
+     </property>
+     <property name="font">
+      <font>
+       <family>나눔고딕</family>
+       <pointsize>10</pointsize>
+      </font>
+     </property>
+     <property name="text">
+      <string>상태</string>
+     </property>
+     <property name="alignment">
+      <set>Qt::AlignCenter</set>
+     </property>
+     <property name="margin">
+      <number>7</number>
+     </property>
+    </widget>
+   </widget>
+  </widget>
+ </widget>
+ <customwidgets>
+  <customwidget>
+   <class>Clock</class>
+   <extends>QWidget</extends>
+   <header>clock.h</header>
+   <container>1</container>
+  </customwidget>
+ </customwidgets>
+ <resources/>
+ <connections/>
+</ui>
diff --git a/app/gui/oven_control/configwindow.cpp b/app/gui/oven_control/configwindow.cpp
index 90870e0..e98d499 100644
--- a/app/gui/oven_control/configwindow.cpp
+++ b/app/gui/oven_control/configwindow.cpp
@@ -2,6 +2,7 @@
 #include "ui_configwindow.h"
 
 #include "functiontestwindow.h"
+#include "engineermenuwindow.h"
 
 ConfigWindow::ConfigWindow(QWidget *parent) :
     QMainWindow(parent),
@@ -29,3 +30,10 @@ void ConfigWindow::on_backButton_clicked()
 {
     close();
 }
+
+void ConfigWindow::on_pushButton_3_clicked()
+{
+    EngineerMenuWindow *w = new EngineerMenuWindow(this);
+    w->setWindowModality(Qt::WindowModal);
+    w->showFullScreen();
+}
diff --git a/app/gui/oven_control/configwindow.h b/app/gui/oven_control/configwindow.h
index 1e31be6..a97226c 100644
--- a/app/gui/oven_control/configwindow.h
+++ b/app/gui/oven_control/configwindow.h
@@ -22,6 +22,8 @@ private slots:
 
     void on_backButton_clicked();
 
+    void on_pushButton_3_clicked();
+
 private:
     Ui::ConfigWindow *ui;
 };
diff --git a/app/gui/oven_control/engineermenuwindow.cpp b/app/gui/oven_control/engineermenuwindow.cpp
index 35e71b7..07eda01 100644
--- a/app/gui/oven_control/engineermenuwindow.cpp
+++ b/app/gui/oven_control/engineermenuwindow.cpp
@@ -60,4 +60,10 @@ void EngineerMenuWindow::on_engAdjustButton_clicked()
     w->setWindowModality(Qt::WindowModal);
     w->showFullScreen();
     w->raise();
+
+}
+
+void EngineerMenuWindow::on_stdConfigButton_clicked()
+{
+
 }
diff --git a/app/gui/oven_control/engineermenuwindow.h b/app/gui/oven_control/engineermenuwindow.h
index 71073c8..c60c730 100644
--- a/app/gui/oven_control/engineermenuwindow.h
+++ b/app/gui/oven_control/engineermenuwindow.h
@@ -26,6 +26,8 @@ private slots:
 
     void on_engAdjustButton_clicked();
 
+    void on_stdConfigButton_clicked();
+
 private:
     Ui::EngineerMenuWindow *ui;
 };
diff --git a/app/gui/oven_control/images/config/service/basic_setting_bgnd.png b/app/gui/oven_control/images/config/service/basic_setting_bgnd.png
new file mode 100644
index 0000000000000000000000000000000000000000..a2a90f5a4dbd0925c4d2610795ae3391f684d36e
GIT binary patch
literal 3135
zcmeAS@N?(olHy`uVBq!ia0y~yVAf?|U~1=J1B&!KSZ)QR*pj^6T^Rm@;DWu&Cj&(|
z3p^r=85p>QL70(Y)*K0-AbW|YuPggQ7Eulb=0;I>FQD8RPZ!6Kid%1Q9ppW1z{BEb
z{P+7FO~v&yCK?AHVys!S;58G2-KtGYI|R%2_yA4l5CakynUEL?QBV<7h6^_X16Txw
z(U8H&zyK0KWe5O01QtPIFf3waU;v4L84g>pGC&RjOQA4Ood|a{suMxppsEuw-TL75
zvQs=jcQX_i^w&IayYaXh7!5SG6B1BISqKLyrh8EX86`;JflO4`qQpAf!>F+iPX{Qm
z4o?TD(T~He6gUxk^n=}6cP(TlFrhLq@I9Nze}|*GhM$?-WQ)Vyprj2CQ6$C;prvpv
za0Y6$;L;1!3Qy^n46w)GeugtpB8vL)gWat}B_ZriBql8#c<eJ(5)^$866Ag!=-qJq
zy8*V)rhzNEIf1sq9S&!p1Trx`fM)_YV*qmlJfFfDpo9r`8Jt0s6R{@<cn*NaNrScT
zXdEJn2za=lGKk64IMN%9<Iv{ZXc3B3XHY$~QPTmuxThdNpyck+A{3=%LH*FCdV+Yc
ae=p<LwIQpG1b&o(>ON0bKbLh*2~7ZuzvXxU

literal 0
HcmV?d00001

diff --git a/app/gui/oven_control/manualcookwindow.ui b/app/gui/oven_control/manualcookwindow.ui
index 605c7e6..0e80ef5 100644
--- a/app/gui/oven_control/manualcookwindow.ui
+++ b/app/gui/oven_control/manualcookwindow.ui
@@ -124,7 +124,7 @@ height: 33px;
        </rect>
       </property>
       <property name="pixmap">
-       <pixmap resource="resources.qrc">:/images/animation/close_door_arrow.png</pixmap>
+       <pixmap>:/images/animation/close_door_arrow.png</pixmap>
       </property>
      </widget>
     </widget>
@@ -1416,7 +1416,7 @@ QPushButton:pressed { background-image: url(:/images/manual_button/ok_ov.png); }
        <string/>
       </property>
       <property name="pixmap">
-       <pixmap resource="resources.qrc">:/images/line/manual_core_temp_horizontal.png</pixmap>
+       <pixmap>:/images/line/manual_core_temp_horizontal.png</pixmap>
       </property>
      </widget>
      <widget class="QLabel" name="label_2">
@@ -1432,7 +1432,7 @@ QPushButton:pressed { background-image: url(:/images/manual_button/ok_ov.png); }
        <string/>
       </property>
       <property name="pixmap">
-       <pixmap resource="resources.qrc">:/images/line/manual_core_temp_vertical.png</pixmap>
+       <pixmap>:/images/line/manual_core_temp_vertical.png</pixmap>
       </property>
      </widget>
      <widget class="QLabel" name="label_3">
@@ -1448,7 +1448,7 @@ QPushButton:pressed { background-image: url(:/images/manual_button/ok_ov.png); }
        <string/>
       </property>
       <property name="pixmap">
-       <pixmap resource="resources.qrc">:/images/line/manual_core_temp_vertical.png</pixmap>
+       <pixmap>:/images/line/manual_core_temp_vertical.png</pixmap>
       </property>
      </widget>
      <widget class="QLabel" name="label_4">
@@ -1464,7 +1464,7 @@ QPushButton:pressed { background-image: url(:/images/manual_button/ok_ov.png); }
        <string/>
       </property>
       <property name="pixmap">
-       <pixmap resource="resources.qrc">:/images/line/manual_core_temp_vertical.png</pixmap>
+       <pixmap>:/images/line/manual_core_temp_vertical.png</pixmap>
       </property>
      </widget>
      <widget class="QLabel" name="innerInterTempLabel">
@@ -2335,8 +2335,6 @@ QPushButton:pressed { background-image: url(:/images/manual_button/ok_ov.png); }
    <header>animatedimagebox.h</header>
   </customwidget>
  </customwidgets>
- <resources>
-  <include location="resources.qrc"/>
- </resources>
+ <resources/>
  <connections/>
 </ui>
diff --git a/app/gui/oven_control/operationtimeheat.ui b/app/gui/oven_control/operationtimeheat.ui
index 35ef441..2b14532 100644
--- a/app/gui/oven_control/operationtimeheat.ui
+++ b/app/gui/oven_control/operationtimeheat.ui
@@ -67,7 +67,7 @@
      <string notr="true">color: rgb(255, 255, 255);</string>
     </property>
     <property name="text">
-     <string>서비스단계(엔지니어모드) &gt; 작동시간 &gt; 가열</string>
+     <string>서비스단계(엔지니어모드) &gt; 작동시간 &gt; 가열부</string>
     </property>
    </widget>
    <widget class="QWidget" name="bottomBar" native="true">
diff --git a/app/gui/oven_control/oven_control.pro b/app/gui/oven_control/oven_control.pro
index d62a218..7cbc89e 100644
--- a/app/gui/oven_control/oven_control.pro
+++ b/app/gui/oven_control/oven_control.pro
@@ -64,7 +64,8 @@ SOURCES += main.cpp\
     adjustmentwindow.cpp \
     yesnopopupdlg.cpp \
     configpanelbutton.cpp \
-    config.cpp
+    config.cpp \
+    basicsettingwindow.cpp
 
 HEADERS  += mainwindow.h \
     cook.h \
@@ -118,7 +119,8 @@ HEADERS  += mainwindow.h \
     adjustmentwindow.h \
     yesnopopupdlg.h \
     configpanelbutton.h \
-    config.h
+    config.h \
+    basicsettingwindow.h
 
 FORMS    += mainwindow.ui \
     manualcookwindow.ui \
@@ -150,7 +152,8 @@ FORMS    += mainwindow.ui \
     realtimesensorwindow.ui \
     adjustmentwindow.ui \
     yesnopopupdlg.ui \
-    configpanelbutton.ui
+    configpanelbutton.ui \
+    basicsettingwindow.ui
 
 RESOURCES += \
     resources.qrc
diff --git a/app/gui/oven_control/ovenstatics.cpp b/app/gui/oven_control/ovenstatics.cpp
index 7d42df2..aa5e6a0 100644
--- a/app/gui/oven_control/ovenstatics.cpp
+++ b/app/gui/oven_control/ovenstatics.cpp
@@ -377,8 +377,10 @@ void OvenStatistics::oneSecTimerFired(void){
     //부품
     if(state.door_state !=0){
         srvdata->use_log.items.door_open+=1;
-        realdata.b.door_open = 1;
+
     }
+
+
     if(state.onoff_state2 !=0){
            if( (state.onoff_state2 & LOAD_STATE2_DV)!=0){
                srvdata->use_log.items.dv_open+=1;
@@ -415,7 +417,15 @@ void OvenStatistics::oneSecTimerFired(void){
     realdata.b.snv_open = (state.onoff_state2&LOAD_STATE2_SNV)==0?0:1;
     realdata.b.wsv_open = (state.onoff_state2&LOAD_STATE2_WSV)==0?0:1;
     realdata.b.ssv_open = (state.onoff_state2&LOAD_STATE2_SSV)==0?0:1;
-    realdata.b.water_level = 0;
+    if( (state.reserved11 & 0x0018) !=0){
+        if( (state.reserved11&0x0008) != 0){
+            realdata.b.water_level = water_level_high;
+        }
+        else if( (state.reserved11 & 0x0010) !=0){
+            realdata.b.water_level = water_level_low;
+        }
+    }
+    else realdata.b.water_level = water_level_normal;
 
     if(srvdata->sensor_log.items.B1.high_temp.itemp < state.sensor1 ){
         srvdata->sensor_log.items.B1.high_temp.itemp = state.sensor1;
diff --git a/app/gui/oven_control/ovenstatics.h b/app/gui/oven_control/ovenstatics.h
index 997b923..df24c2a 100644
--- a/app/gui/oven_control/ovenstatics.h
+++ b/app/gui/oven_control/ovenstatics.h
@@ -143,6 +143,12 @@ enum wash_mode_type{
     wash_mode_highspeed
 };
 
+enum water_level_state{
+    water_level_normal = 0,
+    water_level_low,
+    water_level_high
+};
+
 
 typedef union
 {
diff --git a/app/gui/oven_control/realtimepartswindow.cpp b/app/gui/oven_control/realtimepartswindow.cpp
index 12d7211..76367fc 100644
--- a/app/gui/oven_control/realtimepartswindow.cpp
+++ b/app/gui/oven_control/realtimepartswindow.cpp
@@ -47,10 +47,18 @@ RealtimePartsWindow::RealtimePartsWindow(QWidget *parent) :
 
     reloadUi();
 
+    timer = new QTimer(this);
+    connect(timer, SIGNAL(timeout()),this,SLOT(oneSecTimerFired()));
+    timer->start(1000); //1000ms fired
+
 }
 
+
+
 RealtimePartsWindow::~RealtimePartsWindow()
 {
+    timer->stop();
+    delete timer;
     delete ui;
 }
 
@@ -77,8 +85,15 @@ void RealtimePartsWindow::reloadUi(void){
     if(realdata.b.snv_open) ui->m_ctrlLbListState_1_3->setText(tr("ON"));
     else ui->m_ctrlLbListState_1_3->setText(tr("OFF"));
 
-    strTemp.sprintf("%d",realdata.b.water_level);
-    ui->m_ctrlLbListState_1_4->setText(strTemp);
+    //strTemp.sprintf("%d",realdata.b.water_level);
+    //ui->m_ctrlLbListState_1_4->setText(strTemp);
+    if(realdata.b.water_level == water_level_high){
+        ui->m_ctrlLbListState_1_4->setText(tr("HIGH"));
+    }
+    else if(realdata.b.water_level == water_level_low){
+        ui->m_ctrlLbListState_1_4->setText(tr("LOW"));
+    }
+    else ui->m_ctrlLbListState_1_4->setText(tr("NORMAL"));
 
     if(realdata.b.sgnv_open) ui->m_ctrlLbListState_1_5->setText(tr("ON"));
     else ui->m_ctrlLbListState_1_5->setText(tr("OFF"));
@@ -93,6 +108,8 @@ void RealtimePartsWindow::reloadUi(void){
     else ui->m_ctrlLbListState_1_8->setText(tr("OFF"));
 
 
+
+
     for(i=1;i<CONTROL_LIST_COL_MAX;i++){
         for(j=0;j<CONTROL_LIST_ITEM_MAX;j++){
             m_arrLbState[i][j]->setText("-");
@@ -100,3 +117,7 @@ void RealtimePartsWindow::reloadUi(void){
     }
 
 }
+
+void RealtimePartsWindow::oneSecTimerFired(void){
+    reloadUi();
+}
diff --git a/app/gui/oven_control/realtimepartswindow.h b/app/gui/oven_control/realtimepartswindow.h
index a0bf686..76f8b1d 100644
--- a/app/gui/oven_control/realtimepartswindow.h
+++ b/app/gui/oven_control/realtimepartswindow.h
@@ -22,10 +22,12 @@ public:
 
 private slots:
     void on_backButton_clicked();
+    void oneSecTimerFired(void);
 
 private:
     Ui::RealtimePartsWindow *ui;
     QLabel *m_arrLbState[CONTROL_LIST_COL_MAX][CONTROL_LIST_ITEM_MAX];
+    QTimer *timer;
 
     void reloadUi(void);
 };
diff --git a/app/gui/oven_control/realtimesensorwindow.cpp b/app/gui/oven_control/realtimesensorwindow.cpp
index 88a1835..b982cd1 100644
--- a/app/gui/oven_control/realtimesensorwindow.cpp
+++ b/app/gui/oven_control/realtimesensorwindow.cpp
@@ -58,10 +58,15 @@ RealtimeSensorWindow::RealtimeSensorWindow(QWidget *parent) :
         m_arrSensorItems[i] = &(ovs->srvdata->sensor_log.values[m_arrSensorItemIdxs[i]]);
     }
     reloadUi();
+    timer = new QTimer(this);
+    connect(timer, SIGNAL(timeout()),this,SLOT(oneSecTimerFired()));
+    timer->start(1000); //1000ms fired
 }
 
 RealtimeSensorWindow::~RealtimeSensorWindow()
 {
+    timer->stop();
+    delete timer;
     delete ui;
 }
 
@@ -125,3 +130,7 @@ void RealtimeSensorWindow::reloadUi(void){
     }
 
 }
+
+void RealtimeSensorWindow::oneSecTimerFired(void){
+    reloadUi();
+}
diff --git a/app/gui/oven_control/realtimesensorwindow.h b/app/gui/oven_control/realtimesensorwindow.h
index 58cb95c..a0a8bed 100644
--- a/app/gui/oven_control/realtimesensorwindow.h
+++ b/app/gui/oven_control/realtimesensorwindow.h
@@ -22,6 +22,7 @@ public:
 
 private slots:
     void on_backButton_clicked();
+    void oneSecTimerFired(void);
 
 private:
     const uint16_t m_arrSensorItemIdxs[REALSENSOR_CONTROL_LIST_ITEM_MAX]={
@@ -34,7 +35,7 @@ private:
     Ui::RealtimeSensorWindow *ui;
     QLabel *m_arrLbState[REALSENSOR_CONTROL_LIST_COL_MAX][REALSENSOR_CONTROL_LIST_ITEM_MAX];
     sensor_log_item* m_arrSensorItems[REALSENSOR_CONTROL_LIST_ITEM_MAX];
-
+    QTimer *timer;
 
     void reloadUi(void);
 };
diff --git a/app/gui/oven_control/resources.qrc b/app/gui/oven_control/resources.qrc
index 5d8a35f..939543b 100644
--- a/app/gui/oven_control/resources.qrc
+++ b/app/gui/oven_control/resources.qrc
@@ -432,5 +432,6 @@
         <file>images/config/service/realtime_parts_bgnd.png</file>
         <file>images/config/service/realtime_sensor_bgnd.png</file>
         <file>images/config/service/adjustment_line.png</file>
+        <file>images/config/service/basic_setting_bgnd.png</file>
     </qresource>
 </RCC>
-- 
2.1.4