关于产品系列五之jsp页面里的问题

来源:互联网 发布:爬虫用什么数据库 编辑:程序博客网 时间:2024/05/16 19:40

在产品的这几个报表里,页面上有几个需要注意的问题。

第一,关于checkbox 的选择要在页面上显示,具体如下

  var flag=cform.subordinateincluded;
  if(flag.checked)
  flag.value='Y';
  editform.submit();

 <custom:checkbox property="subordinateincluded" styleClass="normalradio" checkFlag="Y"/>

第二,要取得选中的公司甚至包括公司的直属下级机构,这时需要跟orgselect的页面联系起来

function page_orgselect4check(rootpath,params,name)
{
  var status="height=380, width=600,top=100,left=100,toolbar=n0, menubar=no, scrollbars=yes, resizable=no, location=no, status=no";
  var url="../img/OrgSelect4check.jsp?<%= OvalTools.randomURL() %>&organization.solutiontype=1";

   if(popwindow!=null)
      popwindow.close();
   popwindow=window.open(url, "newwindow", status);
}

function page_setOrg(orgid,orgname,orgcode,selectshortname)
{
  cform.orgname.value=selectshortname;
  cform.orgid.value=orgid;
  cform.orgcode.value=orgcode;
  if(popwindow!=null)
    popwindow.close();
}

第三,从字典表里取数据

detailTdArray.add(new DicWriteTD("status","Status"));