#557 work on facility app
This commit is contained in:
parent
2d83de8b88
commit
1c57fc1fe3
@ -87,9 +87,9 @@ local function new_view(root)
|
|||||||
|
|
||||||
--#region facility overview
|
--#region facility overview
|
||||||
|
|
||||||
local f_pane = Div{parent=page_div}
|
local main_pane = Div{parent=page_div}
|
||||||
local f_div = Div{parent=f_pane,x=2,width=main.get_width()-2}
|
local f_div = Div{parent=main_pane,x=2,width=main.get_width()-2}
|
||||||
table.insert(panes, f_pane)
|
table.insert(panes, main_pane)
|
||||||
|
|
||||||
local fac_page = app.new_page(nil, #panes)
|
local fac_page = app.new_page(nil, #panes)
|
||||||
fac_page.tasks = { update }
|
fac_page.tasks = { update }
|
||||||
@ -162,8 +162,18 @@ local function new_view(root)
|
|||||||
|
|
||||||
TextBox{parent=t_div,y=1,text="Facility Tanks",alignment=ALIGN.CENTER}
|
TextBox{parent=t_div,y=1,text="Facility Tanks",alignment=ALIGN.CENTER}
|
||||||
|
|
||||||
|
-- for i = 1, #fac.tank_list do
|
||||||
|
-- if fac.tank_list[i] == 2 then
|
||||||
|
-- table.insert(io.facility.tank_ps_tbl, psil.create())
|
||||||
|
-- table.insert(io.facility.tank_data_tbl, {})
|
||||||
|
-- end
|
||||||
|
-- end
|
||||||
|
|
||||||
for i = 1, #fac.tank_data_tbl do
|
for i = 1, #fac.tank_data_tbl do
|
||||||
tank_page_navs[i] = dyn_tank(app, nil, panes, Div{parent=page_div}, i, fac.tank_ps_tbl[i], update)
|
tank_page_navs[i] = dyn_tank(app, nil, panes, Div{parent=page_div}, i, fac.tank_ps_tbl[i], update)
|
||||||
|
|
||||||
|
t_div.line_break()
|
||||||
|
TextBox{parent=t_div,y=1,text="Facility Tank ",alignment=ALIGN.CENTER}
|
||||||
end
|
end
|
||||||
|
|
||||||
--#endregion
|
--#endregion
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user