• FORM 关闭实现


    PROCEDURE close_window(wnd IN VARCHAR2) IS

       return_code    NUMBER;

        

        IF (name_in('system.mode') = 'ENTER-QUERY') THEN

          app_exception.disabled;

          RETURN;

        END IF;

       /* IF (wnd = 'CUXTRANTIMEW') THEN

          app_window.close_first_window;

        END IF;

        IF (wnd = get_view_property(get_item_property(:system.cursor_item, item_canvas), window_name)) THEN

          do_key('PREVIOUS_BLOCK');

        END IF;

        hide_window(wnd);*/

      if (wnd = 'QUERY_FIND') then

        if (get_window_property('CUXTRANTIMEW', VISIBLE) = 'FALSE') then

          fnd_message.set_name('BOM', 'BOM_CLOSE_BILL_COMPARE');

          return_code := fnd_message.question('YES', NULL, 'NO');

          if return_code = 1 then  --return yes, the third button

            exit_form(NO_VALIDATE);

          else

            null;

          end if;

        else

          go_block('B_SM_IMP_TEMP');

          hide_window(wnd);

        end if;

      elsif (wnd = 'CUXTRANTIMEW') then

        if (get_window_property('QUERY_FIND', VISIBLE) = 'FALSE') then

          fnd_message.set_name('BOM', 'BOM_CLOSE_BILL_COMPARE');

          return_code := fnd_message.question('YES', NULL, 'NO');

          if return_code = 1 then

            exit_form(NO_VALIDATE);

          else

            null;

          end if;

        else

          go_block('QUERY_FIND');

          hide_window(wnd);

        end if;

      end if;

      END close_window;

  • 相关阅读:
    NOI2010 能量采集
    NOI2011 兔兔与蛋蛋游戏
    动态规划——min/max的单调性优化总结
    NOI2011 NOI嘉年华
    NOI2011 阿狸的打字机
    NOI2011 智能车比赛
    NOI2011 兔农
    NOI2012 魔幻棋盘
    NOI2012 美食节
    NOI2012 迷失游乐园
  • 原文地址:https://www.cnblogs.com/ella-luo/p/4023686.html
Copyright © 2020-2023  润新知