﻿/*******************************************************************************
 *        程序 ID     ：    Aspx
 *        程序名称    ：    Aspx管理类
 *        处 理       ：    定义Aspx和Aspxes类
 *        功 能       ：    定义Aspx和Aspxes类
 *
 *        修改履历
 *        年  月  日 区分 所 属/担 当        内 容                     对应编号
 *        ---------- ---- ------------------ ------------------------- --------
 *        2007/10/16 编写 Intasect/陈冬    新規作成
 * 
 * 
 *        Copyright ( C ) 2007 by Intasect communications(Chengdu), Co, Ltd.
 *        All rights reserved.
 *
********************************************************************************/
var Aspx = Class.create();
Aspx.prototype = {
  initialize : function()
  {
    this.options = Object.extend(
    {
      aspxId       : null,
      title        : null,
      height       : 100,
      width        : 312,
      url          : null,
      dialog       : false,
      showParent   : false,
      updateParent : false,
      onlyOne      : false,
      editable     : true,
      closable     : true,
      minimizable  : true,
      maximizable  : true,
      scroll       : "Auto",
      helpAspx     : "",
      icon         : null,
      ads          : null,
      tips         : null
    }, arguments[0] || {});
  }
}

var Aspxes = {
  aspxes  : [],
  
  Get : function(aspxid)
  {
    return this.aspxes[aspxid];
  },
  
  AddAspx : function(aspx)
  {
    this.aspxes[aspx.options.aspxId] = aspx;
  }
}
