<%@ page contentType="text/html;charset=GBK"%>
<%@ page import="java.util.Iterator" %>
<%@ page import="java.util.Collection" %>
<%@ page import="java.util.TreeMap" %>
<%@ page import="java.util.ArrayList" %>
<%@ page import="java.sql.*" %>
<%@ page import="net.sz600.database.*" %>
<%@ page import="net.sz600.tool.SzConvert" %>
<%@ page import="net.sz600.database.SzPageInfo" %>
<%@ page import="net.sz600.system.SzProperties" %>
<%@ page import="net.sz600.system.SzPageHelp" %>
<%@ page import="net.sz600.system.SzLevelNumber" %>
<%@ page import="net.sz600.organize.SzModule" %>
<%@ page import="net.sz600.organize.SzModuleInfo" %>
<%@ page import="net.sz600.organize.SzPopedom" %>
<%@ page import="net.sz600.formEngine2.*" %>
<%@ page import="net.sz600.docEngine.*" %>
<%@ page import="net.sz600.project.* " %>
<%@ page import="net.sz600.mail.* " %>
<%@ page import="net.sz600.system.SzAnnex" %>
<%@ page import="net.sz600.system.SzAnnexInfo" %>
<%@ page import="net.sz600.bbs.*" %>
<%@ include file="/sessionInfo.jsp"%>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<link href="<%=strSkin_SESSION%>/css2007.css" rel="stylesheet" type="text/css">
<SCRIPT src="../share/js/ftiens4_tree.js"></SCRIPT>
<style type=text/css>
</style>
<style type="text/css">
	#litype{ 
	list-style-type:none; 
	list-style-image: url(../image/picli.gif); 
	} 
	.ScrollButton1{
		background-color:#800000;
		cursor:hand;
	}
	.ScrollButton0{
		background-color:#C0C0C0;
		cursor:hand;
	}
	.d1 {
		padding-left:120px;
		margin-left:100px;
	}

	img{vertical-align:middle;} 

    t img { vertical-align:middle;}
</style>  
</head>

<body>
<%
	//取得表单模块
	Map formMap = bdFormControl.getFormMap();
	//表单循环
	BdFormInfo bdFormInfo = null;
	Iterator iterForm = null;
	iterForm = formMap.values().iterator();
	String s = "";
	
	BdValueControl bdValueControl = new BdValueControl();
	String moduleName = "";
	String formName = "";
	Iterator iterKey = null;
	String sKey = "";	
	int i = 0;
	
	//取得文档模块
	ReadDocEngineXml docEngine = new ReadDocEngineXml();
	Collection docColl = docEngine.getDocList();
	DocEngineInfo docEngineInfo = null;
	Iterator iterDoc = null;
	
	
	SzModule szModule = new SzModule();
	SzModuleInfo moduleInfo = null;
	int iMKID = 0;	
	String strDate = "";
	String strTitle = "";
	String strTitle2 = "";
%>
<%
	//读取数据
	BbsBlock bbsBlock = new BbsBlock();
	BbsBlockInfo bbsBlockInfo = null;
				    
	BbsStick bbsStick = new BbsStick();
	BbsStickInfo bbsStickInfo = null;					
%>    
<table width="100%" align="left">
  <tr>
    <!-- 大布局，第一列 -->
    <td id="id1" width="60%" valign="top">


      <table border="0" cellpadding="0" cellspacing="0" align="center" width="100%">
        <tr><td height="5"></td></tr>    

        <tr>
          <td colspan="3">
       <!-- 开始，待办事务 -->   
      <table border="0" cellpadding="0" cellspacing="0" align="center" width="100%">
        <tr>
          <td>
            <table border="0" cellpadding="0" cellspacing="0" align="center" width="100%">
              <tr>           
          <td background="<%=strSkin_SESSION%>/desktop/d01_01.gif" width="6" height="26"></td>
          <td background="<%=strSkin_SESSION%>/desktop/d01_02.gif" width="140" height="26">
             <span style="width:25;"></span>待办事务</td>
          <td background="<%=strSkin_SESSION%>/desktop/d01_03.gif" height="26" valign="top" align="right" nowrap>
             <img src="<%=strSkin_SESSION%>/desktop/d_b_min.gif"><img src="<%=strSkin_SESSION%>/desktop/d_b_line.gif"><img src="<%=strSkin_SESSION%>/desktop/d_b_close.gif">
          </td>
          <td background="<%=strSkin_SESSION%>/desktop/d01_04.gif" width="6" height="26"></td>
               </tr>
            </table>
          </td>           
        </tr>
        
        <tr>
          <td>
            <table border="0" cellpadding="0" cellspacing="0" align="center" width="100%">
              <tr>         
          <td background="<%=strSkin_SESSION%>/desktop/d02_01.gif" width="6"></td>
          <td colspan="2" height="100">
            <table border="0" cellpadding="0" cellspacing="0" align="center" width="100%">
            <%=bdValueControl.printTransactCount(iDLID_SESSION, szCOMPANY_SESSION)%>
            </table>
          </td>
          <td background="<%=strSkin_SESSION%>/desktop/d02_02.gif" width="6"></td>
               </tr>
            </table>
          </td>            
        </tr>
        
        <tr>
          <td>
            <table border="0" cellpadding="0" cellspacing="0" align="center" width="100%">
              <tr>        
          <td background="<%=strSkin_SESSION%>/desktop/d03_01.gif" width="6" height="6"></td>
          <td colspan="2" background="<%=strSkin_SESSION%>/desktop/d03_02.gif" height="6"></td>
          <td background="<%=strSkin_SESSION%>/desktop/d03_03.gif" width="6" height="6"></td>
               </tr>
            </table>
          </td>            
        </tr>               
      </table> 
      <!-- 结束，待办事务结束 -->
         
          </td>
        </tr>

    <!-- 表单信息 -->
<%	
	iterKey = formMap.keySet().iterator();
	while (iterKey.hasNext()) {
		sKey = (String)iterKey.next();
		//取得表单信息
		bdFormInfo = (BdFormInfo)formMap.get(new String(sKey));
    	//取得模块信息
    	formName = bdFormInfo.getFormName();
    	moduleName = sKey.replaceAll("-" + formName, "");
    	
		//是否列桌面
		if (bdFormInfo.getDesktop() > 0) {
			s = bdValueControl.printMainNew(moduleName, formName, session, "../images/skin_blue2", szCOMPANY_SESSION);
			if (s.equals("")) {
				continue;
			}
%>
		<tr><td height="5"></td></tr>
        <tr>
          <td colspan="3">

       <!-- 开始，表单数据 -->   
      <table border="0" cellpadding="0" cellspacing="0" align="center" width="100%">
        <tr>
          <td>
            <table border="0" cellpadding="0" cellspacing="0" align="center" width="100%">
              <tr>           
          <td background="<%=strSkin_SESSION%>/desktop/d01_01.gif" width="6" height="26"></td>
          <td background="<%=strSkin_SESSION%>/desktop/d01_02.gif" width="140" height="26">
             <span style="width:25;"></span><%=bdFormInfo.getFormDesc() %></td>
          <td background="<%=strSkin_SESSION%>/desktop/d01_03.gif" height="26" valign="top" align="right" nowrap>
             <img src="<%=strSkin_SESSION%>/desktop/d_b_min.gif"><img src="<%=strSkin_SESSION%>/desktop/d_b_line.gif"><img src="<%=strSkin_SESSION%>/desktop/d_b_close.gif">
          </td>
          <td background="<%=strSkin_SESSION%>/desktop/d01_04.gif" width="6" height="26"></td>
               </tr>
            </table>
          </td>           
        </tr>
        
        <tr>
          <td>
            <table border="0" cellpadding="0" cellspacing="0" align="center" width="100%">
              <tr>         
          <td background="<%=strSkin_SESSION%>/desktop/d02_01.gif" width="6"></td>
          <td colspan="2" height="110" valign="top">
            <table border="0" cellpadding="0" cellspacing="0" align="center" width="100%">
             <%=s %>

            </table>
          </td>
          <td background="<%=strSkin_SESSION%>/desktop/d02_02.gif" width="6"></td>
               </tr>
            </table>
          </td>            
        </tr>
        
        <tr>
          <td>
            <table border="0" cellpadding="0" cellspacing="0" align="center" width="100%">
              <tr>        
          <td background="<%=strSkin_SESSION%>/desktop/d03_01.gif" width="6" height="6"></td>
          <td colspan="2" background="<%=strSkin_SESSION%>/desktop/d03_02.gif" height="6"></td>
          <td background="<%=strSkin_SESSION%>/desktop/d03_03.gif" width="6" height="6"></td>
               </tr>
            </table>
          </td>            
        </tr>               
      </table> 
      <!-- 结束，表单数据结束 -->   
          </td>
        </tr>
<% 
		}//if ends
	}//while ends
%>   
        
          
      </table>
    </td>
    
    <!-- 大布局，第二列 -->    
    <td id="id2" width="1"></td>
        
    <!-- 大布局，第三列 -->    
    <td id="id3" valign="top" align="left">
      <table border="0" cellpadding="0" cellspacing="0" align="center" width="100%">
        <!----------------------- 间隔行:日程安排 -->             
        <tr><td height="5"></td></tr>        
        <tr>
          <td>   

      <table border="0" cellpadding="0" cellspacing="0" align="center" width="100%">
        <tr>
          <td>
            <table border="0" cellpadding="0" cellspacing="0" align="center" width="100%">
              <tr>
          <td background="<%=strSkin_SESSION%>/desktop/d11_01.gif" width="6" height="26"></td>
          <td background="<%=strSkin_SESSION%>/desktop/d11_02.gif" width="140" height="26">
             <span style="width:25;"></span>快速通道
          </td>
          <td background="<%=strSkin_SESSION%>/desktop/d11_03.gif" height="26">&nbsp;</td>
          <td background="<%=strSkin_SESSION%>/desktop/d11_04.gif" width="55" height="26" valign="top" align="right">
             <img src="<%=strSkin_SESSION%>/desktop/d_b_min.gif" width="19"><img src="<%=strSkin_SESSION%>/desktop/d_b_line.gif"><img src="<%=strSkin_SESSION%>/desktop/d_b_close.gif">
          </td>          
          <td background="<%=strSkin_SESSION%>/desktop/d11_05.gif" width="6" height="26"></td>
              </tr>
            </table>
          </td>  
        </tr>
        
        <tr>
          <td>
            <table border="0" cellpadding="0" cellspacing="0" align="center" width="100%">
              <tr>        
          <td background="<%=strSkin_SESSION%>/desktop/d12_01.gif" width="6"></td>
          <td colspan="3" height="100" width="280">
            <table border="0" cellpadding="0" cellspacing="0" align="center" width="100%">
			<%=bdFormControl.printToolbar3()%>
			</table>
          </td>
          <td background="<%=strSkin_SESSION%>/desktop/d12_02.gif" width="6"></td>
              </tr>
            </table>
          </td>           
        </tr>
        
        <tr>
          <td>
            <table border="0" cellpadding="0" cellspacing="0" align="center" width="100%">
              <tr>          
          <td background="<%=strSkin_SESSION%>/desktop/d13_01.gif" width="6" height="6"></td>
          <td colspan="3" background="<%=strSkin_SESSION%>/desktop/d13_02.gif" height="6"></td>
          <td background="<%=strSkin_SESSION%>/desktop/d13_03.gif" width="6" height="6"></td>
               </tr>
            </table>
          </td>           
        </tr>   
      </table>                 
      
          </td>
        </tr>    
        
    <!-- 表单信息 -->
<!-- 具体列出待办 -->
<%	

	iterKey = formMap.keySet().iterator();
    s = "";
	while (iterKey.hasNext()) {
		sKey = (String)iterKey.next();
		//取得表单信息
		bdFormInfo = (BdFormInfo)formMap.get(new String(sKey));
    	//取得模块信息
    	formName = bdFormInfo.getFormName();
    	moduleName = sKey.replaceAll("-" + formName, "");
		//是否列桌面
		if (bdFormInfo.getHasFlow().equals("1")) {
			s = bdValueControl.printMainTransactNew(moduleName, formName, session, "");
			if (s.equals("")) {
				continue;
			}
%>
        <tr><td height="5"></td></tr>
        <tr>
          <td colspan="3">

       <!-- 开始，表单数据 -->   
     <table border="0" cellpadding="0" cellspacing="0" align="center" width="100%">
        <tr>
          <td>
            <table border="0" cellpadding="0" cellspacing="0" align="center" width="100%">
              <tr>
          <td background="<%=strSkin_SESSION%>/desktop/d11_01.gif" width="6" height="26"></td>
          <td background="<%=strSkin_SESSION%>/desktop/d11_02.gif" width="140" height="26">
             <span style="width:25;"></span><%=bdFormInfo.getFormDesc()%>
          </td>
          <td background="<%=strSkin_SESSION%>/desktop/d11_03.gif" height="26">&nbsp;</td>
          <td background="<%=strSkin_SESSION%>/desktop/d11_04.gif" width="55" height="26" valign="top" align="right">
             <img src="<%=strSkin_SESSION%>/desktop/d_b_min.gif" width="19"><img src="<%=strSkin_SESSION%>/desktop/d_b_line.gif"><img src="<%=strSkin_SESSION%>/desktop/d_b_close.gif">
          </td>          
          <td background="<%=strSkin_SESSION%>/desktop/d11_05.gif" width="6" height="26"></td>
              </tr>
            </table>
          </td>  
        </tr>
        
        <tr>
          <td>
            <table border="0" cellpadding="0" cellspacing="0" align="center" width="100%">
              <tr>        
          <td background="<%=strSkin_SESSION%>/desktop/d12_01.gif" width="6"></td>
          <td colspan="3" height="100"   width="280" valign="top">
            <table border="0" cellpadding="0" cellspacing="0" align="center" width="100%">
			<%=s%>
			</table>
          </td>
          <td background="<%=strSkin_SESSION%>/desktop/d12_02.gif" width="6"></td>
              </tr>
            </table>
          </td>           
        </tr>
        
        <tr>
          <td>
            <table border="0" cellpadding="0" cellspacing="0" align="center" width="100%">
              <tr>          
          <td background="<%=strSkin_SESSION%>/desktop/d13_01.gif" width="6" height="6"></td>
          <td colspan="3" background="<%=strSkin_SESSION%>/desktop/d13_02.gif" height="6"></td>
          <td background="<%=strSkin_SESSION%>/desktop/d13_03.gif" width="6" height="6"></td>
               </tr>
            </table>
          </td>           
        </tr>   
      </table>  
      <!-- 结束，表单数据结束 -->   
          </td>
        </tr>
<% 
		}//if ends
	}//while ends
%>             
        <!-- 一块的结束 -->          

      </table>                 
    </td>      
     
    <!-- 大布局，第二列 -->    
    <td id="id4" width="5">    
    </td>
  </tr>
</table>
    
<script language="javascript">   
 	function vote(formObj, sUrl){
		var xxids = document.getElementsByName("XXID");
		var len = xxids.length; 
		//alert(len);
        var checked = false; 
        for (i = 0; i < len; i++){ 
            if (xxids[i].checked == true){ 
                checked = true; 
                break; 
            } 
        } 
        if (!checked){ 
            alert("请至少选择一项！"); 
            return; 
        } 
        formObj.action = sUrl;
        formObj.submit();
	}
	
  //重新计算div的大小
  var vHeight = document.body.clientHeight;
  var vWidth = document.body.clientWidth;  
  
  
  //window.status = vHeight + "=" + vWidth;
</script> 

</body>

