ui:msg('hello world');
local m_sSysUserID = ui:getSysVar('user_id');
local m_sSysUserName = ui:getSysVar('user_name');
local m_sSysUserCnName = ui:getSysVar('user_cn_name');
print(m_sSysUserID);
print(m_sSysUserName);
print(m_sSysUserCnName);
local sTmp = ui:get('id_info');
print(sTmp);
ui:set('id_info_oee','18.24');
if not ui:msgConfirm('是否确定执行操作?') then
return;
end
local itIn = CIntent();
local itOut = CIntent();
itIn:set('look_only','1');
ui:execDialog('qc_main_check_v4','质检(全流程)',itIn,itOut);
local err = CTNString();
ui:uiDeleteDB('ui_form',err);
ui:uiInsertDB('ui_form',err);
ui:uiUpdateDB('ui_form',err);
ui:uiSelectDB('ui_form',err);
function run_update()
for i=0,10000 do
print('good boy');
cutil:sleep(1000);
end
end
function finish_thread()
print('thread finished');
end
ui:runGUI('run_update();','finish_thread();');
ui:disable('id_serial_number');
ui:enable('id_serial_number');
ui:show('id_name');
ui:hide('id_name');