コード例 #1
0
ファイル: MPOS.java プロジェクト: kimhatrung/Adempiere
 /**
  * Get POS from Cache
  *
  * @param ctx context
  * @param C_POS_ID id
  * @return MPOS
  */
 public static MPOS get(Properties ctx, int C_POS_ID) {
   Integer key = new Integer(C_POS_ID);
   MPOS retValue = (MPOS) s_cache.get(key);
   if (retValue != null) return retValue;
   retValue = new MPOS(ctx, C_POS_ID, null);
   if (retValue.get_ID() != 0) s_cache.put(key, retValue);
   return retValue;
 } //	get
コード例 #2
0
  /** Constructor */
  public WPosQuery(WPOS posPanel, WSubOrder order) {
    super();
    p_posPanel = posPanel;
    p_order = order;
    p_pos = order.p_pos;
    p_ctx = p_pos.getCtx();
    this.setAttribute("mode", "modal");
    this.setBorder("normal");
    this.setWidth("850px");
    this.setHeight("500px");
    this.setContentStyle("overflow: auto");
    this.setSizable(true);
    this.setMaximizable(true);
    this.setVisible(true);

    init();
  } //	PosQueryBPartner