<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html> <head> <style></style> </head>
<body bgcolor="#eeeeee">
<table align='center' style='border: groove; border-bottom-width: 1; width: 70%; padding: 5px; border-radius: 10px; -webkit-border-radius: 10px; font-family: Helvetica, Arial, Segoe UI Light, sans-serif;  font-size: 14px; background-color: #FEFEFE;'>
  <tr style='background-color: #ffffff;'>
    <td colspan='1' align='Center' width='100%' style='padding-left: 2px; padding-right: 2px;'>
      <span style='color: #004B8D;'> {{ data.settings.site.site_name }} </span>
    </td>
    </tr>
  {{~ if data.settings.site.header1 != "" ~}}
  <tr style='background-color: #ffffff;'>
    <td colspan='1' align='Center' width='100%' style='padding-left: 2px; padding-right: 2px;'> 
      <span style='color: #004B8D;'> {{ data.settings.site.header1 }} </span>
    </td>
  </tr>
  {{~ end ~}}
  {{~ if data.settings.site.header2 != "" ~}}
  <tr style='background-color: #ffffff;'>
    <td colspan='1' align='Center' width='100%' style='padding-left: 2px; padding-right: 2px;'> 
      <span style='color: #004B8D;'> {{ data.settings.site.header2 }} </span>
    </td>
  </tr>
  {{~ end ~}}
  {{~ if data.settings.site.header3 != "" ~}}
  <tr style='background-color: #ffffff;'>
    <td colspan='1' align='Center' width='100%' style='padding-left: 2px; padding-right: 2px;'>
      <span style='color: #004B8D;'> {{ data.settings.site.header3 }} </span>
    </td>
  </tr>
  {{~ end ~}}
  <tr style='background-color: #ffffff;'>
    <td colspan='1' align='Center' width='100%' style='padding-left: 2px; padding-right: 2px;'>
      <span style='color: #004B8D;'> 序号: {{ data.settings.site.console_serial }} </span>
    </td>
  </tr>
  <tr style='background-color: #ffffff;'>
    <td colspan='1' align='Center' width='100%' style='padding-left: 2px; padding-right: 2px;'>
      <span style='color: #004B8D;'> {{ f.currenttime format: data.settings.system.date_format }} </span>
    </td>
  </tr>
</table>

<table align='center' style='border: groove; border-bottom-width: 1; width: 70%; padding: 5px; border-radius: 10px; -webkit-border-radius: 10px; font-family: Helvetica, Arial, Segoe UI Light, sans-serif;  font-size: 14px; background-color: #FEFEFE;'>
  <tr style='font-weight: bold; font-size: 16px; background-color: #ffffff; color: #000000;'>
    <td colspan='1' align='Center' width='100%' style='padding-left: 2px; padding-right: 2px;'>
      <span style='color: #004B8D;'>  油品交付 </span>
    </td>
  </tr>
</table>

<table align='center' style='border: groove; border-bottom-width: 1; width: 70%; padding: 5px; border-radius: 10px; -webkit-border-radius: 10px; font-family: Helvetica, Arial, Segoe UI Light, sans-serif;  font-size: 14px; background-color: #FEFEFE;'>
  <tr style='background-color: #ffffff;'>
    <td colspan='1' align='Right' width='50%' style='font-weight: Bold; padding-left: 4px; padding-right: 4px;'>
      <span style='color: #000000;'>     油罐    </span>
    </td>
    <td colspan='1' align='Left' width='50%' style='font-weight: Normal; padding-left: 4px; padding-right: 4px;'>
      <span style='color: #000000;'>    {{ data.tank.tank_number }} - {{ data.tank.tank_description }}           </span>
    </td>
  </tr>
  <tr style='background-color: #ffffff;'>
    <td colspan='1' align='Right' width='50%' style='font-weight: Bold; padding-left: 4px; padding-right: 4px;'>
      <span style='color: {{if data.final_tank_status == 0}} #196F3D {{else}} #CC0000 {{end}};'>   状态  </span>
    </td>
    <td colspan='1' align='Left' width='50%' style='font-weight: Normal; padding-left: 4px; padding-right: 4px;'>
      <span style='color: {{if data.final_tank_status == 0}} #196F3D {{else}} #CC0000 {{end}};'>  {{ data.final_tank_status | f.tankstatus }}  </span>
    </td>
  </tr>
</table>

<table align='center' style='border: groove; border-bottom-width: 1; width: 70%; padding: 5px; border-radius: 10px; -webkit-border-radius: 10px; font-family: Helvetica, Arial, Segoe UI Light, sans-serif;  font-size: 14px; background-color: #FEFEFE;'>
  <tr style='background-color: #ffffff;'>
    <td colspan='1' align='Right' width='40%' style='font-weight: Bold; padding-left: 2px; padding-right: 2px;'>
      <span style='color: #004B8D;'>                 </span>
    </td>
    <td colspan='1' align='Right' width='20%' style='font-weight: Bold; padding-left: 2px; padding-right: 2px;'>
      <span style='color: #004B8D;'>   最初的             </span>
    </td>
    <td colspan='1' align='Left' width='40%' style='font-weight: Bold; padding-left: 2px; padding-right: 2px;'>
      <span style='color: #004B8D;'>                   </span>
    </td>
  </tr>
  <tr style='background-color: #ffffff;'>
    <td colspan='1' align='Right' width='40%' style='font-weight: Bold; padding-left: 2px; padding-right: 2px;'>
      <span style='color: #000000;'>  时间            </span>
    </td>
    <td colspan='1' align='Right' width='20%' style='font-weight: Normal; padding-left: 2px; padding-right: 2px;'>
      <span style='color: #000000;'>    {{ data.initial_time | f.unixtime format: data.settings.system.date_format }}          </span>
    </td>
    <td colspan='1' align='Left' width='40%' style='font-weight: Normal; padding-left: 2px; padding-right: 2px;'>
      <span style='color: #000000;'>                    </span>
    </td>
  </tr>
  <tr style='background-color: #ffffff;'>
    <td colspan='1' align='Right' width='40%' style='font-weight: Bold; padding-left: 2px; padding-right: 2px;'>
      <span style='color: #000000;'>  油品高度   </span>
    </td>
    <td colspan='1' align='Right' width='20%' style='font-weight: Normal; padding-left: 2px; padding-right: 2px;'>
      <span style='color: #000000;'>    {{ data.initial_product_level | f.format_level unit: data.settings.system.level_unit }}         </span>
    </td>
    <td colspan='1' align='Left' width='40%' style='font-weight: Normal; padding-left: 2px; padding-right: 2px;'>
      <span style='color: #000000;'>  {{ data.settings.system.level_unit_label | f.unit_label }}       </span>
    </td>
  </tr>
  <tr style='background-color: #ffffff;'>
    <td colspan='1' align='Right' width='40%' style='font-weight: Bold; padding-left: 2px; padding-right: 2px;'>
      <span style='color: #000000;'>  油品体积  </span>
    </td>
    <td colspan='1' align='Right' width='20%' style='font-weight: Normal; padding-left: 2px; padding-right: 2px;'>
      <span style='color: #000000;'>    {{ data.initial_product_volume | f.format_volume unit: data.settings.system.volume_unit }}        </span>
    </td>
    <td colspan='1' align='Left' width='40%' style='font-weight: Normal; padding-left: 2px; padding-right: 2px;'>
      <span style='color: #000000;'>  {{ data.settings.system.volume_unit_label | f.unit_label }}      </span>
    </td>
  </tr>
  <tr style='background-color: #ffffff;'>
    <td colspan='1' align='Right' width='40%' style='font-weight: Bold; padding-left: 2px; padding-right: 2px;'>
      <span style='color: #000000;'>  补偿油品高度  </span>
    </td>
    <td colspan='1' align='Right' width='20%' style='font-weight: Normal; padding-left: 2px; padding-right: 2px;'>
      <span style='color: #000000;'>    {{ data.initial_product_volume_comp | f.format_volume unit: data.settings.system.volume_unit }}      </span>
    </td>
    <td colspan='1' align='Left' width='40%' style='font-weight: Normal; padding-left: 2px; padding-right: 2px;'>
      <span style='color: #000000;'>  {{ data.settings.system.volume_unit_label | f.unit_label }}      </span>
    </td>
  </tr>
  <tr style='background-color: #ffffff;'>
    <td colspan='1' align='Right' width='40%' style='font-weight: Bold; padding-left: 2px; padding-right: 2px;'>
      <span style='color: #000000;'>  水位     </span>
    </td>
    <td colspan='1' align='Right' width='20%' style='font-weight: Normal; padding-left: 2px; padding-right: 2px;'>
      <span style='color: #000000;'>    {{ data.initial_water_level | f.format_level unit: data.settings.system.level_unit }}    </span>
    </td>
    <td colspan='1' align='Left' width='40%' style='font-weight: Normal; padding-left: 2px; padding-right: 2px;'>
      <span style='color: #000000;'>  {{ data.settings.system.level_unit_label | f.unit_label }}       </span>
    </td>
  </tr>
  <tr style='background-color: #ffffff;'>
    <td colspan='1' align='Right' width='40%' style='font-weight: Bold; padding-left: 2px; padding-right: 2px;'>
      <span style='color: #000000;'>  水量    </span>
    </td>
    <td colspan='1' align='Right' width='20%' style='font-weight: Normal; padding-left: 2px; padding-right: 2px;'>
      <span style='color: #000000;'>    {{ data.initial_water_volume | f.format_volume unit: data.settings.system.volume_unit }}   </span>
    </td>
    <td colspan='1' align='Left' width='40%' style='font-weight: Normal; padding-left: 2px; padding-right: 2px;'>
      <span style='color: #000000;'>  {{ data.settings.system.volume_unit_label | f.unit_label }}      </span>
    </td>
  </tr>
  <tr style='background-color: #ffffff;'>
    <td colspan='1' align='Right' width='40%' style='font-weight: Bold; padding-left: 2px; padding-right: 2px;'>
      <span style='color: #000000;'>  温度     </span>
    </td>
    <td colspan='1' align='Right' width='20%' style='font-weight: Normal; padding-left: 2px; padding-right: 2px;'>
      <span style='color: #000000;'>    {{ data.initial_temperature | f.format_temperature unit: data.settings.system.temperature_unit }}          </span>
    </td>
    <td colspan='1' align='Left' width='40%' style='font-weight: Normal; padding-left: 2px; padding-right: 2px;'>
      <span style='color: #000000;'>  {{ data.settings.system.temperature_unit_label | f.unit_label }} </span>
    </td>
  </tr>
</table>

<table align='center' style='border: groove; border-bottom-width: 1; width: 70%; padding: 5px; border-radius: 10px; -webkit-border-radius: 10px; font-family: Helvetica, Arial, Segoe UI Light, sans-serif;  font-size: 14px; background-color: #FEFEFE;'>
  <tr style='background-color: #ffffff;'>
    <td colspan='1' align='Right' width='40%' style='font-weight: Bold; padding-left: 2px; padding-right: 2px;'>
      <span style='color: #004B8D;'>                 </span>
    </td>
    <td colspan='1' align='Right' width='20%' style='font-weight: Bold; padding-left: 2px; padding-right: 2px;'>
      <span style='color: #004B8D;'>   最终               </span>
    </td>
    <td colspan='1' align='Left' width='40%' style='font-weight: Bold; padding-left: 2px; padding-right: 2px;'>
      <span style='color: #004B8D;'>                  </span>
    </td>
  </tr>
{{~ if data.final_time <= data.initial_time ~}}
  <tr style='background-color: #ffffff;'>
    <td colspan='1' align='Right' width='40%' style='font-weight: Bold; padding-left: 2px; padding-right: 2px;'>
      <span style='color: #CC0000;'>               </span>
    </td>
    <td colspan='1' align='Right' width='20%' style='font-weight: Bold; padding-left: 2px; padding-right: 2px;'>
      <span style='color: #CC0000;'> 进行中         </span>
    </td>
    <td colspan='1' align='Left' width='40%' style='font-weight: Bold; padding-left: 2px; padding-right: 2px;'>
      <span style='color: #CC0000;'>                </span>
    </td>
  </tr>
{{~ else ~}}
  <tr style='background-color: #ffffff;'>
    <td colspan='1' align='Right' width='40%' style='font-weight: Bold; padding-left: 2px; padding-right: 2px;'>
      <span style='color: #000000;'>  时间            </span>
    </td>
    <td colspan='1' align='Right' width='20%' style='font-weight: Normal; padding-left: 2px; padding-right: 2px;'>
      <span style='color: #000000;'>    {{ data.final_time | f.unixtime format: data.settings.system.date_format }}         </span>
    </td>
    <td colspan='1' align='Left' width='40%' style='font-weight: Normal; padding-left: 2px; padding-right: 2px;'>
      <span style='color: #000000;'>                    </span>
    </td>
  </tr>
  <tr style='background-color: #ffffff;'>
    <td colspan='1' align='Right' width='40%' style='font-weight: Bold; padding-left: 2px; padding-right: 2px;'>
      <span style='color: #000000;'>  油品高度   </span>
    </td>
    <td colspan='1' align='Right' width='20%' style='font-weight: Normal; padding-left: 2px; padding-right: 2px;'>
      <span style='color: #000000;'>    {{ data.final_product_level | f.format_level unit: data.settings.system.level_unit }}        </span>
    </td>
    <td colspan='1' align='Left' width='40%' style='font-weight: Normal; padding-left: 2px; padding-right: 2px;'>
      <span style='color: #000000;'>  {{ data.settings.system.level_unit_label | f.unit_label }}       </span>
    </td>
  </tr>
  <tr style='background-color: #ffffff;'>
    <td colspan='1' align='Right' width='40%' style='font-weight: Bold; padding-left: 2px; padding-right: 2px;'>
      <span style='color: #000000;'>  油品体积  </span>
    </td>
    <td colspan='1' align='Right' width='20%' style='font-weight: Normal; padding-left: 2px; padding-right: 2px;'>
      <span style='color: #000000;'>    {{ data.final_product_volume | f.format_volume unit: data.settings.system.volume_unit }}       </span>
    </td>
    <td colspan='1' align='Left' width='40%' style='font-weight: Normal; padding-left: 2px; padding-right: 2px;'>
      <span style='color: #000000;'>  {{ data.settings.system.volume_unit_label | f.unit_label }}      </span>
    </td>
  </tr>
  <tr style='background-color: #ffffff;'>
    <td colspan='1' align='Right' width='40%' style='font-weight: Bold; padding-left: 2px; padding-right: 2px;'>
      <span style='color: #000000;'>  补偿油品高度  </span>
    </td>
    <td colspan='1' align='Right' width='20%' style='font-weight: Normal; padding-left: 2px; padding-right: 2px;'>
      <span style='color: #000000;'>    {{ data.final_product_volume_comp | f.format_volume unit: data.settings.system.volume_unit }}     </span>
    </td>
    <td colspan='1' align='Left' width='40%' style='font-weight: Normal; padding-left: 2px; padding-right: 2px;'>
      <span style='color: #000000;'>  {{ data.settings.system.volume_unit_label | f.unit_label }}      </span>
    </td>
  </tr>
  <tr style='background-color: #ffffff;'>
    <td colspan='1' align='Right' width='40%' style='font-weight: Bold; padding-left: 2px; padding-right: 2px;'>
      <span style='color: #000000;'>  水位     </span>
    </td>
    <td colspan='1' align='Right' width='20%' style='font-weight: Normal; padding-left: 2px; padding-right: 2px;'>
      <span style='color: #000000;'>    {{ data.final_water_level | f.format_level unit: data.settings.system.level_unit }}   </span>
    </td>
    <td colspan='1' align='Left' width='40%' style='font-weight: Normal; padding-left: 2px; padding-right: 2px;'>
      <span style='color: #000000;'>  {{ data.settings.system.level_unit_label | f.unit_label }}       </span>
    </td>
  </tr>
  <tr style='background-color: #ffffff;'>
    <td colspan='1' align='Right' width='40%' style='font-weight: Bold; padding-left: 2px; padding-right: 2px;'>
      <span style='color: #000000;'>  水量    </span>
    </td>
    <td colspan='1' align='Right' width='20%' style='font-weight: Normal; padding-left: 2px; padding-right: 2px;'>
      <span style='color: #000000;'>    {{ data.final_water_volume | f.format_volume unit: data.settings.system.volume_unit }}  </span>
    </td>
    <td colspan='1' align='Left' width='40%' style='font-weight: Normal; padding-left: 2px; padding-right: 2px;'>
      <span style='color: #000000;'>  {{ data.settings.system.volume_unit_label | f.unit_label }}      </span>
    </td>
  </tr>
  <tr style='background-color: #ffffff;'>
    <td colspan='1' align='Right' width='40%' style='font-weight: Bold; padding-left: 2px; padding-right: 2px;'>
      <span style='color: #000000;'>  温度     </span>
    </td>
    <td colspan='1' align='Right' width='20%' style='font-weight: Normal; padding-left: 2px; padding-right: 2px;'>
      <span style='color: #000000;'>    {{ data.final_temperature | f.format_temperature unit: data.settings.system.temperature_unit }}         </span>
    </td>
    <td colspan='1' align='Left' width='40%' style='font-weight: Normal; padding-left: 2px; padding-right: 2px;'>
      <span style='color: #000000;'>  {{ data.settings.system.temperature_unit_label | f.unit_label }} </span>
    </td>
  </tr>
  <tr style='background-color: #ffffff;'>
    <td colspan='1' align='Right' width='40%' style='font-weight: Bold; padding-left: 2px; padding-right: 2px;'>
      <span style='color: #000000;'>                  </span>
    </td>
    <td colspan='1' align='Right' width='20%' style='font-weight: Normal; padding-left: 2px; padding-right: 2px;'>
      <span style='color: #000000;'>                        </span>
    </td>
    <td colspan='1' align='Left' width='40%' style='font-weight: Normal; padding-left: 2px; padding-right: 2px;'>
      <span style='color: #000000;'>                    </span>
    </td>
  </tr>
  <tr style='background-color: #ffffff;'>
    <td colspan='1' align='Right' width='40%' style='font-weight: Bold; padding-left: 2px; padding-right: 2px;'>
      <span style='color: #CC0000;'> 油品已完成入罐     </span>
    </td>
    <td colspan='1' align='Right' width='20%' style='font-weight: Bold; padding-left: 2px; padding-right: 2px;'>
      <span style='color: #CC0000;'>  {{ data.final_delivered_volume | f.format_volume unit: data.settings.system.volume_unit }}   </span>
    </td>
    <td colspan='1' align='Left' width='40%' style='font-weight: Bold; padding-left: 2px; padding-right: 2px;'>
      <span style='color: #CC0000;'> {{ data.settings.system.volume_unit_label | f.unit_label }}    </span>
    </td>
  </tr>
{{~ end ~}}
</table>

<div>&nbsp;</div>
</body>
</html>
