Пример #1
0
 /**
  * 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