function click_id_btn_submit()
end
ui:setClickEvent('id_btn_submit','click_id_btn_submit');
function dblclick_id_edit()
end
ui:setDoubleClickEvent('id_edit','dblclick_id_edit');
function choose_combox()
end
ui:setSelChangeEvent('id_combox','choose_combox');
function edit_value_change()
end
ui:setValueChangeEvent('id_edit','edit_value_change');
function click_tb_id_new_material_type()
end
ui:addRightMenu('id_tree','click_tb_id_new_material_type','picture/common/toolbar/com_tool_new.png','新建');
function click_tb_id_modify_material_type()
end
ui:addRightMenu('id_tree','click_tb_id_modify_material_type','picture/common/toolbar/com_tool_modify.png','修改');
function click_tb_id_delete_material_type()
end
ui:addRightMenu('id_tree','click_tb_id_delete_material_type','picture/common/toolbar/com_tool_delete.png','删除');
function click_tb_id_refresh_material_type()
end
ui:addRightMenu('id_tree','click_tb_id_refresh_material_type','picture/common/toolbar/com_tool_refresh.png','刷新');
function click_tb_id_un_expand()
end
ui:addRightMenu('id_tree','click_tb_id_un_expand','picture/common/toolbar/com_tool_un_expand.png','收缩');
function click_tb_id_expand()
end
ui:addRightMenu('id_tree','click_tb_id_expand','picture/common/toolbar/com_tool_expand.png','展开');
function right_menu_click_id_material_type_tree(id,iMenuID)
if (iMenuID == 'id_new_material_type') then
click_tb_id_new_material_type();
elseif (iMenuID == 'id_modify_material_type') then
click_tb_id_modify_material_type();
elseif (iMenuID == 'id_delete_material_type') then
click_tb_id_delete_material_type();
elseif (iMenuID == 'id_refresh_material_type') then
click_tb_id_refresh_material_type();
elseif (iMenuID == 'id_un_expand') then
click_tb_id_un_expand();
elseif (iMenuID == 'id_expand') then
click_tb_id_expand();
end
end
ui:setRightMenuCilckEvent('id_tree','right_menu_click_id_material_type_tree');
function click_bt_num(cid)
local num = cutil:substr(cid,#cid-1,1);
local sNum = ui:get('id_num');
ui:set('id_num', sNum..num);
end
for i=0,9 do
ui:setClickEvent('bt_num_'..i, 'click_bt_num');
end
function click_bt_clear()
ui:set('id_num','');
end
ui:setClickEvent('bt_clear','click_bt_clear');
function click_bt_back()
local sNum = ui:get('id_num');
if #sNum > 0 then
ui:set('id_num', cutil:substr(sNum, 0, #sNum-1));
end
end
ui:setClickEvent('bt_back', 'click_bt_back');