JSP验证之JSP页面

时间:2022-02-01 23:32:16

<%// @include file="/allCheckUser.jspf"%>
<%@ page contentType="text/html;charset=GBK"%>
<%@ page import="java.util.*"%>
<%@ page import="sponsion.util.dboperator.DBOperator"%>
<%@ page import="sponsion.business.project.*"%>
<%@ page import="sponsion.util.container.Hash"%>
<%@ page import="sponsion.util.dic.DicGroup"%>
<%@ page import="com.igit.ztbtsc.tools.StringUtil"%>
<%
 String path = request.getContextPath();
 Integer userID = (Integer) session.getAttribute("UserID");

 String ProMainBody = StringUtil.stringInit(request.getParameter("ProMainBody"), ""); //受理主体

 String act = StringUtil.stringInit(request.getParameter("act"), "");
 String see = StringUtil.stringInit(request.getParameter("see"), ""); //项目资料调用

 DBOperator db = new DBOperator();
 Vector vect = new Vector();
 Hash he = new Hash();
 Hash record = new Hash();
 String sql = "";
 String sql_dic = ""; //提取数据字典用的sql变量
 String title = ""; //标题
 String info = ""; //用于网上申请的提示
 String msg = "";

 //保申请登记表 PRO_ApplyReg
 String ProjSerialID = ""; //项目流水号
 String IsFromWeb = ""; //*是否网上申请
 String IsJoin = ""; //*是否老客户
 String AppRegNum = ""; //申请登记编号
 String ProComMod = ""; //项目来源
 String ProComModName = ""; //项目来源name
 String ProComFrm = ""; //项目来源二级
 String ProComFrmName = ""; //项目来源二级name
 String ProConMod = ""; //咨询方式
 String EnterpriseID = ""; //组织机构代码
 String PerCompanyName="";//关联企业名称
 String PerEnterpriseID  ="";//关联企业组织结构代码
 String CompanyName = ""; //企业名称
 String RegDate = ""; //注册时间
 String RegBoroCounID = ""; //注册区县ID
 String RegAddr = ""; //注册地址
 
 String WorkBoroCounID = ""; //经营区县ID
 String WorkAddr = ""; //经营地址
 String CompPropKindID = ""; //企业所有制性质ID
 String CompTradeID = ""; //所属行业ID
 String CompTechTypeID = ""; //企业技术类型
 String RegMoney = ""; //注册资本
 String WorkScope = ""; //经营范围
 String MainProduct = ""; //主导产品
 String Partner1Name = ""; //股东1名称
 String Partner2Name = ""; //股东2名称
 String Partner3Name = ""; //股东3名称
 String Partner4Name = ""; //股东4名称
 String Partner1HoldScale = ""; //股东1所占股份
 String Partner2HoldScale = ""; //股东2所占股份
 String Partner3HoldScale = ""; //股东3所占股份
 String Partner4HoldScale = ""; //股东4所占股份
 String LastYearCapitalization = ""; //去年财务数据_资产总额
 String LastYearOwesTotal = ""; //去年财务数据_负债总额
 String LastYearEquity = ""; //去年财务数据_净资产
 String LastYearSale = ""; //去年财务数据_销售收入
 String LastYearProfitTotal = ""; //去年财务数据_利润总额
 String ThisYearCapitalization = ""; //今年截至月末财务数据_资产总额
 String ThisYearOwesTotal = ""; //今年截至月末财务数据_负债总额
 String ThisYearEquity = ""; //今年截至月末财务数据_净资产
 String ThisYearSale = ""; //今年截至月末财务数据_销售收入
 String ThisYearProfitTotal = ""; //今年截至月末财务数据_利润总额
 String LoanCardNumb = ""; //贷款卡号码
 String LoanCardPassword = ""; //贷款卡密码
 String NowBankLoanBalance = ""; //现有银行贷款余额
 String NowBankName = ""; //贷款银行
 String NowReturnDate = ""; //合同还款日期
 String NowBankLoanType = ""; //现有银行贷款类别
 String ThisTimeLoanBankID = ""; //本次拟贷款银行ID
 String ThisTimeAppGuarMoney = ""; //本次申请担保金额
 String ThisTimeAppGuarTerm = ""; //本次申请担保期限
 String ThisTimeAppGuarTermType = ""; //本次申请担保期限类别
 String ThisTimeAppLoanType = "流动资金"; //本次申请贷款类别
 String LoanReason = ""; //贷款原因及用途
 String LoanPlan = ""; //还款计划
 String LoanMoneyFrm = ""; //还款资金来源
 String IsThirdPartyGuar = ""; //可提供的反担保措施_是否第三方保证
 String ThirdPartyGuarantor = ""; //可提供的反担保措施_第三方保证人
 String IsMortagage = ""; //可提供的反担保措施_是否抵(质)押
 String Pawn = ""; //可提供的反担保措施_抵(质)押物
 String IsOtherOptGuar = ""; //可提供的反担保措施_是否其它反担保措施
 String OtherOptGuarInfo = ""; //可提供的反担保措施_其它反担保措施信息
 String CompLinkMan = ""; //企业联系人
 String CompLinkTel = ""; //联系电话
 String CompEmail = ""; //电子邮箱
 String IsAccept = ""; //*受理状态

 //项目信息表
 String ProjGuarTypeID = ""; //业务类型(担保品种)
 String IsProjGuarTypeID ="";//用于判断是否个人贷款
 String ProjGuarTypeName = ""; //业务类型(担保品种)名称
 String ProjSx = ""; //是否授信
 String ProjSxName = ""; //是否授信名称
 String ProjRunKinkID = ""; //项目运作性质
 String ProjRunKinkName = ""; //项目运作性质名称
 String runID = ""; //项目运作性质前三位编码
 String BorCouID = ""; //区县ID
 String BorCouUnitID = ""; //区县财政(或合作机构)ID
 String ProjPolicyRecomUnit = ""; //推荐单位
 String UnitName = ""; //推荐单位名称
 String CowoID = ""; //推荐单位ID

 //2011-07-25 业务系统改造 增加字段
 String IsGroupGuar = "";//是否是组合性担保
 String ProjRtc="";//是否是融通仓项目
 String  IsSqReview ="" ;//是否授权评审
 String GroupGuarContent = "";//组合担保内容
 String BankBusinessProductID = "";//**银行业务产品35
 String SCProductID = "";//公司特色产品47
 String SCExpressLane = "";//审批快速通道46
 
 String BusinessProductID = "";//审批快速通道45
 String GuarPlatformID = "";//担保平台39
 String IssuedByTheWayID = "";//保函出具方式40
 String GuarPatternID = "";//担保方式41
 
 //String ProjCusType = "";//0620新增 客户类型。20121018取消该项
 String ProjLGType = "";//0621新增 保函类型----------
 
 String SetIndustryID = "";//归属产业42
 String SetBelong = "";//所属商圈43
 
 String SetIndustryName = "";//归属产业name
 String GuarPlatformName = "";//担保平台name
 String IssuedByTheWayName = "";//保函出具方式name
 String GuarPatternName = "";//担保方式name
 String BusinessProductName = "";//**担保机构业务产品name
 String BankBusinessProductName = "";//**银行业务产品name
 String SCExpressLaneName = "";//审批快速通道name
 String SCProductIDName = "";//公司特色产品name
 //申请阶段信息表
 String BookerID = ""; //登记人ID
 String BookerName = ""; //登记人姓名
 String BookerDeptID = ""; //登记人部门ID
 String BookDate = sponsion.util.Character.StringUtil.getDateNow("en"); //登记时间
 //System.out.println("------------BookDate="+BookDate);
 String ProjManagerAID = ""; //A角ID(用于判断A角是否已指,从而决定读写状态。)
   
    //2012-11-28  授信改造 start
 String ISMoreGuarType = "";//是否多个品种,只是对外部授信的项目
 String ProSubect = "";//是否多个品种,只是对外部授信的项目
 String ProSubectMS ="";//项目担保主体简要描述
 String IsJTSX = "";//是否集团授信
 String IsEDHY = "";//是否存在额度混用
 String IsProBH = "";//是否涉及包含项目
 String BHProID = "";//包含项目流水号
 String BHProSXMoney = "0";//包含项目授信金额
 String BHProZBMoney = "0";//包含项目在保余额
  
 //2012-11-28  授信改造 end
   
 String CustomerType = ""; //客户类型
 String CustomerTypeName = ""; //客户类型名称
       
 if (act.equals("add")) { // -- -- -- -- 添加 -- -- -- --
  EnterpriseID = request.getParameter("EnterpriseID"); //组织机构代码
  CompanyName = request.getParameter("CompanyName"); //企业名称
  IsJoin = StringUtil.stringInit(request.getParameter("IsJoin"), ""); //*是否老客户
  ProjGuarTypeID = StringUtil.stringInit(request.getParameter("ApplyGuarTypeID"), ""); //业务类别(担保品种)(上页与本页字段名来自不同表)
  if (ProjGuarTypeID.equals("")) {
   ProjGuarTypeID = StringUtil.stringInit(request.getParameter("GuarTypeID"), ""); //业务类别(担保品种)(当二级分类为空时,取一级分类)
  }
  if(ProjGuarTypeID.length()>3){
   IsProjGuarTypeID = ProjGuarTypeID.substring(0,3);
  }
 
  ProjSx = StringUtil.stringInit(request.getParameter("ProjSx"), ""); //是否授信
  //ProjRunKinkID = StringUtil.stringInit(request.getParameter("ProjRunKinkID"), ""); //项目运作性质
  //CowoID = StringUtil.stringInit(request.getParameter("CowoID"), ""); //推荐单位ID
  //2011-07-25 业务系统改造 增加字段 (20110731Bill)
  ProComMod = request.getParameter("ProComMod"); //项目来源方式
  ProComFrm = StringUtil.stringInit(request.getParameter("ProComFrm"),""); //项目来源
      
  IsGroupGuar = StringUtil.stringInit(request.getParameter("IsGroupGuar"), ""); //是否组合性在担保  
  ProjRtc = StringUtil.stringInit(request.getParameter("ProjRtc"), ""); //是否组合性在担保  
  IsSqReview = StringUtil.stringInit(request.getParameter("IsSqReview"), ""); //是否授权评审   
  GroupGuarContent = request.getParameter("GroupGuarContent");//组合性在担保内容
      
  BankBusinessProductID = StringUtil.stringInit(request.getParameter("BankBusinessProductID"), ""); //**银行业务产品35
  SCProductID = StringUtil.stringInit(request.getParameter("SCProductID"), ""); //公司特色产品
  SCExpressLane = StringUtil.stringInit(request.getParameter("SCExpressLane"), ""); //审批快速通道
  BusinessProductID = StringUtil.stringInit(request.getParameter("BusinessProductID"), ""); //业务产品
  SetIndustryID = StringUtil.stringInit(request.getParameter("SetIndustryID"), ""); //归属产业
  GuarPlatformID = StringUtil.stringInit(request.getParameter("GuarPlatformID"), ""); //担保平台
  IssuedByTheWayID = StringUtil.stringInit(request.getParameter("IssuedByTheWayID"), ""); //保函出具方式
  GuarPatternID = StringUtil.stringInit(request.getParameter("GuarPatternID"), ""); //担保方式
  CustomerType = StringUtil.stringInit(request.getParameter("CustomerType"), ""); //客户类型
  ProjLGType = request.getParameter("ProjLGType"); //保函类型
  
  //2012-11-28  授信改造 start
  ISMoreGuarType = StringUtil.stringInit(request.getParameter("ISMoreGuarType"), "");//是否多个品种,只是对外部授信的项目
  ProSubect = StringUtil.stringInit(request.getParameter("ProSubect"), "");//是否多个品种,只是对外部授信的项目
  ProSubectMS =request.getParameter("ProSubectMS");//项目担保主体简要描述
  IsJTSX = StringUtil.stringInit(request.getParameter("IsJTSX"), "");//是否集团授信
  IsEDHY = StringUtil.stringInit(request.getParameter("IsEDHY"), "");//是否存在额度混用
  IsProBH = StringUtil.stringInit(request.getParameter("IsProBH"), "");//是否涉及包含项目
  BHProID = StringUtil.stringInit(request.getParameter("BHProID"), "");//包含项目流水号
  BHProSXMoney = StringUtil.stringInit(request.getParameter("BHProSXMoney"), "0");//包含项目授信金额
  BHProZBMoney = StringUtil.stringInit(request.getParameter("BHProZBMoney"), "0");//包含项目在保余额
  //2012-11-28  授信改造 end
  
  title = "新建";
  //提取登记人
  sql = "select u.USERNAME BookerName,o.ORGID,i.ORGNAME,i.mainBody,c.BoroCounID,c.CowoShortName "
    + " from USER_INFO u "
    + " left join USER_ORG o on u.USERID=o.USERID "
    + " left join ORG_INFO i on o.ORGID=i.ORGID "
    + " left join Dic_CoWorker c on o.ORGID=c.CowoID "
    + " where u.USERID=" + userID;
  System.out.println("scdb: enrolNew.jsp 人员 sql=" + sql + "#");
  vect = new Vector();
  he = new Hash();
  vect = db.dataSelect(sql);
  for (int i = 0; i < vect.size(); i++) {
   he = (Hash) vect.elementAt(0);
  }
  BookerName = he.getString("BookerName", ""); //人员
  BookerDeptID = he.getString("ORGID", ""); //部门ID
  //ORGNAME=he.getString("ORGNAME",""); //部门名称
  ProjRunKinkID = he.getString("mainBody", ""); //运作性质
  CowoID = he.getString("ORGID", ""); //推荐单位ID
  ProjPolicyRecomUnit = CowoID+"."+he.getString("CowoShortName","");
  UnitName = he.getString("CowoShortName","");
  BorCouID = he.getString("BoroCounID","");
  
  //取默认信息
  sql = "select CompanyName,RegBoroCounID,RegAddr,SetBelong,WorkBoroCounID,WorkAddr,PropKindID,TradeID,CreateDate,RegMoney,WorkScope,LoanCardNumb,LoanCardPassword,LinkMan,LinkManTel,EMail,CustomerType "
    + "from ENT_CompanyInfo "
    + "where EnterpriseID = '"
    + EnterpriseID + "'";
  System.out.println("scdb: enrolForm.jsp 企业表 sql=" + sql + "#");
  vect = new Vector();
  vect = db.dataSelect(sql);
  he = new Hash();
  for (int i = 0; i < vect.size(); i++) {
   he = (Hash) vect.elementAt(0);
  }
  //基本信息表 ENT_CompanyInfo
  RegBoroCounID = he.getString("RegBoroCounID", ""); //注册区县ID
  RegAddr = he.getString("RegAddr", ""); //注册地址
  SetBelong = he.getString("SetBelong", "");//所属商圈
  WorkBoroCounID = he.getString("WorkBoroCounID", ""); //经营区县ID
  WorkAddr = he.getString("WorkAddr", ""); //经营地址
  CompPropKindID = he.getString("PropKindID", ""); //企业所有制性质ID
  CompTradeID = he.getString("TradeID", ""); //所属行业ID
  RegDate = he.getDateString("CreateDate", ""); //注册时间
  RegMoney = he.getString("RegMoney", ""); //注册资本
  WorkScope = he.getString("WorkScope", ""); //经营范围
  LoanCardNumb = he.getString("LoanCardNumb", ""); //贷款卡号码
  LoanCardPassword = he.getString("LoanCardPassword", ""); //贷款卡密码
  CompLinkMan = he.getString("LinkMan", ""); //企业联系人
  CompLinkTel = he.getString("LinkManTel", ""); //联系电话
  CompEmail = he.getString("EMail", ""); //电子邮件
  
  //取业务类型、运作性质 等其他数据字典
  sql = "select (select ItemName from DIC_Item where GroupID=5 and ItemID='"+ProjGuarTypeID+"') ProjGuarTypeName,"
   + "(select ItemName from DIC_Item where GroupID=7 and ItemID='"+ProjRunKinkID+"') ProjRunKinkName,"
   + "(select ItemName from DIC_Item where GroupID=36 and ItemID='"+ProComMod+"') ProComModName,"
   + "(select ItemName from DIC_Item where GroupID=45 and ItemID='"+BusinessProductID+"') BusinessProductName,"
   + "(select ItemName from DIC_Item where GroupID=35 and ItemID='"+BankBusinessProductID+"') BankBusinessProductName,"
   + "(select ItemName from DIC_Item where GroupID=47 and ItemID='"+SCProductID+"') SCProductIDName,"
   + "(select ItemName from DIC_Item where GroupID=46 and ItemID='"+SCExpressLane+"') SCExpressLaneName,"
   + "(select ItemName from DIC_Item where GroupID=42 and ItemID='"+SetIndustryID+"') SetIndustryName,"
   + "(select ItemName from DIC_Item where GroupID=39 and ItemID='"+GuarPlatformID+"') GuarPlatformName,"
   + "(select ItemName from DIC_Item where GroupID=41 and ItemID='"+GuarPatternID+"') GuarPatternName,"
   + "(select ItemName from DIC_Item where GroupID=40 and ItemID='"+IssuedByTheWayID+"') IssuedByTheWayName,"
   + "(select ItemName from DIC_Item where GroupID=50 and ItemID='"+CustomerType+"') CustomerTypeName ";
  System.out.println("scdb: enrolForm.jsp 业务类型、运作性质 sql=" + sql+ "#");
  vect = new Vector();
  he = new Hash();
  vect = db.dataSelect(sql);
  for (int i = 0; i < vect.size(); i++) {
   he = (Hash) vect.elementAt(0);
  }
  ProjGuarTypeName = he.getString("ProjGuarTypeName", ""); //业务类型(担保品种)名称
  ProjRunKinkName = he.getString("ProjRunKinkName", ""); //项目运作性质名称
  ProComModName = he.getString("ProComModName", ""); //项目来源name
  BusinessProductName = he.getString("BusinessProductName", ""); //
  BankBusinessProductName = he.getString("BankBusinessProductName", ""); //业务产品name
  SCProductIDName=he.getString("SCProductIDName", ""); //
  SCExpressLaneName=he.getString("SCExpressLaneName", ""); //
  SetIndustryName = he.getString("SetIndustryName", "");//归属产业name
  GuarPlatformName = he.getString("GuarPlatformName", "");//担保平台name
  GuarPatternName = he.getString("GuarPatternName", "");//担保方式
  IssuedByTheWayName = he.getString("IssuedByTheWayName", "");//保函出具方式名称
  CustomerTypeName = he.getString("CustomerTypeName", "");//客户类型名称
  //GroupGuarContent=he.getString("GroupGuarContent", "");//是否是组合性担保的内容

 } else { // -- -- -- -- 修改、查看 -- -- -- --
  ProjSerialID = StringUtil.stringInit(request.getParameter("ProjSerialID"), ""); //项目流水号
  if (see.equals("")) {
   //权限判断
   System.out.println("登记人: " + sponsion.business.project.ProjectManage.getBookerID(ProjSerialID) + "=" + userID);
   boolean flag1 = sponsion.business.project.ProjectManage.getBookerID(ProjSerialID).equals(userID.toString()); //取得登记人
   if (!flag1) {
    msg = " javascript:alert('您不是该项目的登记人,仅有读的权限!');";
    see = "1";
   }
  }
  //取登记表信息
  sql = "select IsFromWeb,IsJoin,ProComMod,ProComFrm,ProConMod,CompanyName,RegDate,EnterpriseID,PerCompanyName,PerEnterpriseID,RegBoroCounID,RegAddr,WorkBoroCounID,WorkAddr,CompPropKindID,"
    + "RegMoney,SetBelong,CompTradeID,CompTechTypeID,WorkScope,MainProduct,Partner1Name,Partner2Name,Partner3Name,Partner4Name,Partner1HoldScale,"
    + "Partner2HoldScale,Partner3HoldScale,Partner4HoldScale,LastYearCapitalization,LastYearOwesTotal,LastYearEquity,LastYearSale,"
    + "LastYearProfitTotal,ThisYearCapitalization,ThisYearOwesTotal,ThisYearEquity,ThisYearSale,ThisYearProfitTotal,LoanCardNumb,"
    + "LoanCardPassword,NowBankLoanBalance,NowBankName,NowReturnDate,NowBankLoanType,ThisTimeLoanBankID,ThisTimeAppGuarMoney,"
    + "ThisTimeAppGuarTerm,ThisTimeAppGuarTermType,ThisTimeAppLoanType,LoanReason,LoanPlan,LoanMoneyFrm,IsThirdPartyGuar,ThirdPartyGuarantor,IsMortagage,"
    //2012-1-28  授信改造
    + "i.ISMoreGuarType,i.ProSubect,convert(nvarchar,i.ProSubectMS) ProSubectMS,i.IsJTSX,i.IsEDHY,i.IsProBH,i.BHProID,i.BHProSXMoney,i.BHProZBMoney,"
    + "Pawn,IsOtherOptGuar,OtherOptGuarInfo,CompLinkMan,CompLinkTel,CompEmail,IsAccept,r.ProComMod,"
    + "i.ProjGuarTypeID,i.ProjRunKinkID,i.GroupGuarContent,i.BusinessProductID,i.BankBusinessProductID,i.SCProductID,i.SCExpressLane,i.GuarPlatformID,i.IsGroupGuar,i.IssuedByTheWayID,i.GuarPatternID,i.ProjCusType,i.ProjLGType,i.SetIndustryID,i.ProjRtc,i.IsSqReview,i.GroupGuarContent,"
    + "(select ItemName from DIC_Item where GroupID=5 and ItemID=i.ProjGuarTypeID) ProjGuarTypeName,"
    + "(select ItemName from DIC_Item where GroupID=7 and ItemID=i.ProjRunKinkID) ProjRunKinkName,"
    + "(select ItemName from DIC_Item where GroupID=45 and ItemID=i.BusinessProductID) BusinessProductName,"
    + "(select ItemName from DIC_Item where GroupID=35 and ItemID=i.BankBusinessProductID) BankBusinessProductName,"
    + "(select ItemName from DIC_Item where GroupID=46 and ItemID=i.SCExpressLane) SCExpressLaneName,"
    + "(select ItemName from DIC_Item where GroupID=47 and ItemID=i.SCProductID) SCProductIDName,"
    + "(select ItemName from DIC_Item where GroupID=36 and ItemID=r.ProComMod) ProComModName,"
    + "(select ItemName from DIC_Item where GroupID=39 and ItemID=i.GuarPlatformID) GuarPlatformName,"
    + "(select ItemName from DIC_Item where GroupID=40 and ItemID=i.IssuedByTheWayID) IssuedByTheWayName,"
    + "(select ItemName from DIC_Item where GroupID=41 and ItemID=i.GuarPatternID) GuarPatternName,"
    + "(select ItemName from DIC_Item where GroupID=42 and ItemID=i.SetIndustryID) SetIndustryName,"
    + "i.ProjSx,i.BorCouID,i.ProjPolicyRecomUnit,substring(ProjPolicyRecomUnit,PATINDEX('%.%',ProjPolicyRecomUnit)+1,len(ProjPolicyRecomUnit)) UnitName,"
    + "a.BookerID,a.BookDate,a.ProjManagerAID,"
    + "(select USERNAME from USER_INFO where USERID=a.BookerID) BookerName,"
    + "(select ItemName from DIC_Item where GroupID=50 and ItemID=i.ProjCusType) CustomerTypeName "
    + "from PRO_ApplyReg r "
    + "left join PRO_ProjectInfo i on i.ProjSerialID=r.ProjSerialID "
    + "left join PRO_ApplyInfo a on a.ProjSerialID=r.ProjSerialID "
    + "where r.ProjSerialID = " + ProjSerialID;
  System.out.println("scdb: enrolForm.jsp 非新建时 登记表 sql=" + sql + "#");
  vect = new Vector();
  vect = db.dataSelect(sql);
  he = new Hash();
  for (int i = 0; i < vect.size(); i++) {
   he = (Hash) vect.elementAt(0);
  }
  //企业信息表
  CustomerTypeName = he.getString("CustomerTypeName", ""); //客户类型名称
  //担保登记表 Emc_ApplyReg
  //ProjSerialID = he.getString("ProjSerialID","");
  IsFromWeb = he.getString("IsFromWeb", ""); //*是否网上申请
  IsJoin = he.getString("IsJoin", ""); //*是否老客户
  AppRegNum = he.getString("AppRegNum", ""); //申请登记编号
  ProComMod = he.getString("ProComMod", ""); //项目来源方式
  ProComFrm = he.getString("ProComFrm", ""); //项目来源
  System.out.println("项目来源"+ProComFrm);
  ProConMod = he.getString("ProConMod", ""); //咨询方式
  EnterpriseID = he.getString("EnterpriseID", ""); //组织机构代码
  PerCompanyName=he.getString("PerCompanyName","");//关联企业名称
  PerEnterpriseID =he.getString("PerEnterpriseID","");//关联企业代码
  CompanyName = he.getString("CompanyName", ""); //企业名称
  RegDate = he.getDateString("RegDate", ""); //注册时间
  RegBoroCounID = he.getString("RegBoroCounID", ""); //注册区县ID
  RegAddr = he.getString("RegAddr", ""); //注册地址
  SetBelong = he.getString("SetBelong", ""); //所属商圈
  WorkBoroCounID = he.getString("WorkBoroCounID", ""); //经营区县ID
  WorkAddr = he.getString("WorkAddr", ""); //经营地址
  CompPropKindID = he.getString("CompPropKindID", ""); //企业所有制性质ID
  CompTradeID = he.getString("CompTradeID", ""); //所属行业ID
  CompTechTypeID = he.getString("CompTechTypeID", ""); //企业技术类型
  RegMoney = he.getString("RegMoney", ""); //注册资本
  WorkScope = he.getString("WorkScope", ""); //经营范围
  MainProduct = he.getString("MainProduct", ""); //主导产品
  Partner1Name = he.getString("Partner1Name", ""); //股东1名称
  Partner2Name = he.getString("Partner2Name", ""); //股东2名称
  Partner3Name = he.getString("Partner3Name", ""); //股东3名称
  Partner4Name = he.getString("Partner4Name", ""); //股东4名称
  Partner1HoldScale = he.getString("Partner1HoldScale", ""); //股东1所占股份
  Partner2HoldScale = he.getString("Partner2HoldScale", ""); //股东2所占股份
  Partner3HoldScale = he.getString("Partner3HoldScale", ""); //股东3所占股份
  Partner4HoldScale = he.getString("Partner4HoldScale", ""); //股东4所占股份
  LastYearCapitalization = he.getString("LastYearCapitalization", ""); //去年财务数据_资产总额
  LastYearOwesTotal = he.getString("LastYearOwesTotal", ""); //去年财务数据_负债总额
  LastYearEquity = he.getString("LastYearEquity", ""); //去年财务数据_净资产
  LastYearSale = he.getString("LastYearSale", ""); //去年财务数据_销售收入
  LastYearProfitTotal = he.getString("LastYearProfitTotal", ""); //去年财务数据_利润总额
  ThisYearCapitalization = he.getString("ThisYearCapitalization", ""); //今年截至月末财务数据_资产总额
  ThisYearOwesTotal = he.getString("ThisYearOwesTotal", ""); //今年截至月末财务数据_负债总额
  ThisYearEquity = he.getString("ThisYearEquity", ""); //今年截至月末财务数据_净资产
  ThisYearSale = he.getString("ThisYearSale", ""); //今年截至月末财务数据_销售收入
  ThisYearProfitTotal = he.getString("ThisYearProfitTotal", ""); //今年截至月末财务数据_利润总额
  LoanCardNumb = he.getString("LoanCardNumb", ""); //贷款卡号码
  LoanCardPassword = he.getString("LoanCardPassword", ""); //贷款卡密码
  NowBankLoanBalance = he.getString("NowBankLoanBalance", ""); //现有银行贷款余额
  NowBankName = he.getString("NowBankName", ""); //贷款银行
  NowReturnDate = he.getDateString("NowReturnDate", ""); //合同还款日期
  NowBankLoanType = he.getString("NowBankLoanType", ""); //现有银行贷款类别
  ThisTimeLoanBankID = he.getString("ThisTimeLoanBankID", ""); //本次拟贷款银行ID
  ThisTimeAppGuarMoney = he.getString("ThisTimeAppGuarMoney", ""); //本次申请担保金额
  ThisTimeAppGuarTerm = he.getString("ThisTimeAppGuarTerm", ""); //本次申请担保期限
  ThisTimeAppGuarTermType = he.getString("ThisTimeAppGuarTermType", ""); //本次申请担保期限类别
  ThisTimeAppLoanType = he.getString("ThisTimeAppLoanType", ""); //本次申请贷款类别
  LoanReason = he.getString("LoanReason", ""); //贷款原因及用途
  LoanPlan = he.getString("LoanPlan", ""); //还款计划
  LoanMoneyFrm = he.getString("LoanMoneyFrm", ""); //还款资金来源
  IsThirdPartyGuar = he.getString("IsThirdPartyGuar", ""); //可提供的反担保措施_是否第三方保证
  ThirdPartyGuarantor = he.getString("ThirdPartyGuarantor", ""); //可提供的反担保措施_第三方保证人
  IsMortagage = he.getString("IsMortagage", ""); //可提供的反担保措施_是否抵(质)押
  Pawn = he.getString("Pawn", ""); //可提供的反担保措施_抵(质)押物
  IsOtherOptGuar = he.getString("IsOtherOptGuar", ""); //可提供的反担保措施_是否其它反担保措施
  OtherOptGuarInfo = he.getString("OtherOptGuarInfo", ""); //可提供的反担保措施_其它反担保措施信息
  CompLinkMan = he.getString("CompLinkMan", ""); //企业联系人
  CompLinkTel = he.getString("CompLinkTel", ""); //联系电话
  CompEmail = he.getString("CompEmail", ""); //电子邮箱
  IsAccept = he.getString("IsAccept", ""); //*受理状态
  //项目信息表
  ProjGuarTypeID = he.getString("ProjGuarTypeID", ""); //业务类别(担保品种)
  if(ProjGuarTypeID.length()>3){
   IsProjGuarTypeID = ProjGuarTypeID.substring(0,3);
  }
  ProjGuarTypeName = he.getString("ProjGuarTypeName", ""); //业务类型(担保品种)名称
  ProjSx = he.getString("ProjSx", "0"); //是否授信
  IsGroupGuar=he.getString("IsGroupGuar", "0");//是否是组合性担保
  ProjRtc=he.getString("ProjRtc","");//是否是融通仓项目
  System.out.println("scdb: ProjRtc="+ProjRtc);
  GroupGuarContent = he.getString("GroupGuarContent", "");//组合性担保内容
  IsSqReview=he.getString("IsSqReview", "");//是否授权评审he.
  ProjRunKinkID = he.getString("ProjRunKinkID", ""); //项目运作性质
  ProjRunKinkName = he.getString("ProjRunKinkName", ""); //项目运作性质名称
        ProComModName=he.getString("ProComModName", "");//项目来源的名称
        ProComMod=he.getString("ProComMod", "");//项目来源
  BusinessProductID = he.getString("BusinessProductID", ""); //业务产品
  BankBusinessProductID=he.getString("BankBusinessProductID","");
  SCProductID=he.getString("SCProductID", ""); //
  SCExpressLane=he.getString("SCExpressLane", ""); //
  BankBusinessProductName=he.getString("BankBusinessProductName", ""); //银行业务产品名称
  SCProductIDName=he.getString("SCProductIDName", ""); //
  SCExpressLaneName=he.getString("SCExpressLaneName", ""); //
  System.out.println("BankBusinessProductName:"+BankBusinessProductName);
  BusinessProductName = he.getString("BusinessProductName", ""); //担保机构业务产品的名称
  //SetIndustryID = he.getString("SetIndustryID", ""); //归属产业
  SetIndustryName = he.getString("SetIndustryName", "");//归属产业名称
  //GuarPlatformID = he.getString("GuarPlatformID", ""); //担保平台
  GuarPlatformName = he.getString("GuarPlatformName", "");//担保平台名称
  GuarPatternName = he.getString("GuarPatternName", "");//担保方式的名称//担保  
  IssuedByTheWayName = he.getString("IssuedByTheWayName", "");//保函出具方式名称式
  BorCouID = he.getString("BorCouID", ""); //区县ID
  BorCouUnitID = ""; //区县财政(或合作机构)ID
  ProjPolicyRecomUnit = he.getString("ProjPolicyRecomUnit", ""); //推荐单位
  if (!ProjPolicyRecomUnit.equals("")) {
   CowoID = ProjPolicyRecomUnit.substring(0,ProjPolicyRecomUnit.indexOf(".")); //推荐单位ID
  }
  UnitName = he.getString("UnitName", ""); //推荐单位名称
  //2012-11-28  授信改造 start
  ISMoreGuarType = he.getString("ISMoreGuarType", "");//是否多个品种,只是对外部授信的项目
  ProSubect = he.getString("ProSubect", "");//是否多个品种,只是对外部授信的项目
  ProSubectMS = he.getString("ProSubectMS", "");//项目担保主体简要描述
  IsJTSX = he.getString("IsJTSX", "");//是否集团授信
  IsEDHY = he.getString("IsEDHY", "");//是否存在额度混用
  IsProBH = he.getString("IsProBH", "");//是否涉及包含项目
  BHProID = he.getString("BHProID", "");//包含项目流水号
  BHProSXMoney = he.getString("BHProSXMoney", "0");//包含项目授信金额
  BHProZBMoney = he.getString("BHProZBMoney", "0");//包含项目在保余额
  //2012-11-28  授信改造 end
  //申请阶段信息表
  //BookerID = he.getString("BookerID",""); //登记人ID
  BookerName = he.getString("BookerName", ""); //登记人姓名
  //BookerDeptID = he.getString("BookerDeptID",""); //登记人部门ID
  BookDate = he.getDateString("BookDate", ""); //登记时间
  ProjManagerAID = he.getString("ProjManagerAID", ""); //A角ID
  if (!ProjManagerAID.equals("")) {
   see = "1"; //已指定A角时,只读。
  }
  //ProComFrm = request.getParameter("ProComFrm"); //项目来源(用于网上申请)
  //if (ProComFrm == null || ProComFrm.equals("")) {ProComFrm="";}
  if (IsFromWeb.equals("1")) {
   info = "注:该登记表来自企业网上申请。<br>";
   msg = " javascript:alert('该登记表来自企业网上申请!');";
   see = "1";
  }
 }
 if (IsJoin.equals("0")) {
  info = info + "注:该企业为新客户";
 }
 System.out.println("scdb: enrolForm.jsp act=" + act + ", ProjSerialID=" + ProjSerialID + ", EnterpriseID="
   + EnterpriseID + ", CompanyName=" + CompanyName + ", ProjGuarTypeID=" + ProjGuarTypeID + "#");

 runID = ProjRunKinkID; //项目运作性质前3位编码
 if (runID.length() > 3) {
  runID = runID.substring(0, 3);
 }
 if (!ProjPolicyRecomUnit.equals("")) {
  //运作性质 = 区县财政 || 合作机构 || 分公司
  //if (ProjRunKinkID.equals("003") || ProjRunKinkID.equals("002") || ProjRunKinkID.equals("004")) {
  if (runID.equals("003") || runID.equals("002") || runID.equals("004")) {
   //推荐单位=区县财政(或合作机构)ID+"."+区县财政(或合作机构)名称
   ProjPolicyRecomUnit = BorCouID + '.' + ProjPolicyRecomUnit;
  }
 }
 System.out.println("enrolForm.jsp ProMainBody=" + ProMainBody + ",ProjRunKinkID=" + ProjRunKinkID + ",runID=" + runID+",ProjPolicyRecomUnit="+ProjPolicyRecomUnit);

 String BankID = ""; //本次拟贷款银行的父银行(临时用,非数据结构)
 if (ThisTimeLoanBankID != null && ThisTimeLoanBankID.length() >= 3) {
  BankID = ThisTimeLoanBankID.substring(0, 3);
 }
 String BankID2 = ""; //项目来原 银行的父银行ID
 if (ProComMod.equals("002")) { //来源方式=银行
  if (ProComFrm != null && ProComFrm.length() >= 3)
  //{BankID2 = ProComFrm.substring(0, 3);}
  {BankID2 = ProComFrm ;}//--------------------------------0606 修改
 }

 //提取数据字典
 sql_dic = "select BankID,BankName from Dic_Bank order by substring(BankID,1,3),BankName"; //取银行,加一排序字段BankOrder
 vect = db.dataSelect(sql_dic);
 String[][] bank_all = new String[vect.size()][2];
 int ii = 0;
 he = new Hash();
 for (int i = 0; i < vect.size(); i++) {
  he = (Hash) vect.elementAt(i);
  bank_all[ii][0] = he.getString("BankID", "");
  bank_all[ii][1] = he.getString("BankName", "");
  ii++;
 }
 if (act.equals("up")) {
  see="1";
 }
 //读写控制
 String readonly = "";
 String disabled = "";
 if (see.equals("1")) {
  readonly = "readonly";
  disabled = "disabled";
 }
 // 2012-5-10 所属行业二级
 String CompTrade = ""; //所属行业的的父行业(临时用,非数据结构)
 if (CompTradeID != null && CompTradeID.length() >= 1) {
  CompTrade = CompTradeID.substring(0, 1);
 }
 sql = "select GroupID,ItemID,ItemName from DIC_Item where GroupID=2 order by ItemID"; //所属行业字典";
 Vector vect_h = new Vector();
 vect_h = db.dataSelect(sql);
 String[][] compTrade_all = new String[vect_h.size()][2];
 int jj = 0;
 he = new Hash();
 for (int i = 0; i < vect_h.size(); i++) {
  he = (Hash) vect_h.elementAt(i);
  compTrade_all[jj][0] = he.getString("ItemID", "");
  compTrade_all[jj][1] = he.getString("ItemName", "");
  jj++;
 }
 //项目信息 2012-05-28
 Hash h_pro =new Hash();
 if(!ProjSerialID.equals("")){
  h_pro = ProjectManage.getProjectInfo(ProjSerialID);
 }
 String ProEntLprResidual= h_pro.getString("EntLprResidual","");//项目信息表 里的历史在保余额
             
 //----2012-6-21 项目信息表里的申请当前在保余额记录时间---开始--
 String EntS=h_pro.getDateString("EntSystDate","");
 System.out.println("EntS日期-1---:"+EntS);
 String EntSystDate="";
 if(EntS.equals("1900-01-01")){
  EntSystDate = " ";
 }else{
  EntSystDate = EntS;
 }
      
 // --2012-7-18  企业与我司担保业务里的在保金额
 String GuBZBMoney= "";//企业信息表 里的最新在保余额
 String GuBStorDate="";//2012-07-18 企业与我司担保业务当前在保余额记录日期
 sql = "select GuBZBMoney,GuBStorDate from ENT_GuaBusiness "
  + "where EnterpriseID = '"+ EnterpriseID + "'";
 Vector vect_E  = new Vector();
 vect_E = db.dataSelect(sql);
 Hash he_E = new Hash();
 for (int i = 0; i < vect_E.size(); i++) {
  he_E = (Hash) vect_E.elementAt(0);
 }
 GuBZBMoney= he_E.getString("GuBZBMoney","0");//企业信息表 里的最新在保余额
 GuBStorDate=he_E.getDateString("GuBStorDate","");
 System.out.println("当前在保余额记录----1-----:"+ProEntLprResidual); 
 if(ProEntLprResidual.equals("")){
  ProEntLprResidual=GuBZBMoney;
  //企业信息表里 在保余额记录时间2012-6-21
  EntSystDate = GuBStorDate;
 }
 System.out.println("当前在保余额记录-----2----:"+GuBStorDate);
 java.text.DecimalFormat dk = new java.text.DecimalFormat("#,##0.00");
  
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>申请登记表</title>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<link rel="stylesheet" href="../../text.css" type="text/css">
  <style type="text/css">
.displaya {display: none;}
</style>
<script type='text/javascript' src="<%=path%>/javascript/clander/setday_.js"></script>
<script type='text/javascript' src="<%=path%>/javascript/Date/WdatePicker.js"></script>
<SCRIPT language=JavaScript src= "../../jsLib.js" type=text/Javascript></SCRIPT> 
<script type="text/javascript" src="../../jquery.js"></script>
<script language=javascript>
//新建
function add_DB(){
 if (checkForm(formAdd)) {
  if(document.getElementById("ProComMod").value == '002' && document.getElementById("ProComFrm").value == ''){
   alert("请选择项目来源中的银行!");
  }else{
   formAdd.action = "enrolFormWork.jsp";
   onceButton(1,document.all.onceBut); //一次按钮
   formAdd.submit();
  }
 }

//编辑
function up_DB(){
 if (checkForm(formAdd)) {
  formAdd.action = "enrolFormWork.jsp";
  formAdd.submit();
 }

//添加到网上申报系统
function writeToWeb(){
 if (checkForm(formAdd)) {
  if (confirm('确定要在网上申报系统也建立该《登记表》?\n确定后不能再修改!')==true) {
   formAdd.action = "enrolFormToWebWork.jsp";
   formAdd.submit();
  }
 }

//同意(网上申请)
function agree() {
 if (confirm('确定要受理该企业提交的《登记表》?\n确定后不能再修改!')==true) {
  formAdd.action = "enrolFormWork.jsp?act=agree&IsJoin=<%=IsJoin%>";
  formAdd.submit();
 }
}
//不同意(网上申请)
function disagree() {
 if (confirm('确定要拒绝该企业提交的《登记表》?\n确定后不能再修改!')==true) {
  formAdd.action = "enrolFormWork.jsp?act=disagree&IsJoin=<%=IsJoin%>";
  formAdd.submit();
 }
}
//根据项目来源方式设置项目来源的下拉列表。参数:一级ID。(20110730Bill)
function setProComFrm(str) {
 var str2 = '<%=ProComFrm%>'; //设置二级
 if (str=='002') { //提交银行组件
     //toSelBank(str, str2);;
  toSelBank('<%=BankID2%>'); //调用银行组件方法----------------------------0606 传参
  document.all.Div_ProComFrm.style.display='';
  //document.all.Div_IsSqReview.style.display='none';
 } else if (str=='003') { //提交合作机构组件
  toSelCoWorker(str, str2); //调用合作机构组件方法
  document.all.Div_ProComFrm.style.display='';
  //document.all.Div_IsSqReview.style.display='';
 } else if (str=='004') { //商协会
  toSelCoWorker(str, str2); //
  document.all.Div_ProComFrm.style.display='';
  //document.all.Div_IsSqReview.style.display='none';
 } else if (str=='005') { //其他组织
  toSelCoWorker(str, str2);
  document.all.Div_ProComFrm.style.display='';
  //document.all.Div_IsSqReview.style.display='none';
 }else if (str=='006') { //所属商圈
  toSelCoWorker(str, str2);
  document.all.Div_ProComFrm.style.display='';
  //document.all.Div_IsSqReview.style.display='none';
 }else {
  document.all.Div_ProComFrm.style.display='none';
  //document.all.Div_IsSqReview.style.display='none';
 }
 var ProComMod=document.getElementById("ProComMod").value;
 var isgrant=document.getElementsByName("IsSqReview");
 if(ProComMod=='003'){
  if(document.formAdd.IsSqReview) {document.formAdd.IsSqReview[0].checked;}
 }else{
  if(document.formAdd.IsSqReview) {document.formAdd.IsSqReview[1].checked;}
 }
}
//本次借款银行
function select_bank(){
 var j = 0;
 var id_father = document.formAdd.BankID.value;
 if (id_father == null) {
  id_father = "bank_all[0][0]";
 }
 document.formAdd.ThisTimeLoanBankID.length = 0;
<%  
 for (int i=0;i<bank_all.length;i++) {
  if (bank_all[i][0].length() == 6) {
%>    
   if ('<%=bank_all[i][0].substring(0, 3)%>' == id_father) {
    document.formAdd.ThisTimeLoanBankID.options[j] = new Option("<%=bank_all[i][1]%>","<%=bank_all[i][0]%>");
    j++;
   } 
<%
  }
 }
%>
}
//所属行业======2012-5-10 所属行业二级 选择方法========start================
function select_CompTradeID(){
 var j = 0;
 var id_father = document.formAdd.CompTrade.value;
 // alert(id_father);
 if (id_father == null) {
  id_father = "compTrade_all[0][0]";
 }
 document.formAdd.CompTradeID.length = 0;
<%  
 for (int i=0;i<compTrade_all.length;i++) {
  if (compTrade_all[i][0].length() == 3) {
%>    
   if ('<%=compTrade_all[i][0].substring(0, 1)%>' == id_father) {
    document.formAdd.CompTradeID.options[j] = new Option("<%=compTrade_all[i][1]%>","<%=compTrade_all[i][0]%>");
    j++;
   } 
<%
  }
 }
%>
}
//所属行业======2012-5-10 所属行业二级 选择方法========end================
//设置期限
function setTerm(str) {
 formAdd.ThisTimeAppGuarTerm.value=str;
}
</script>
<script language="JavaScript1.2">
<!--
function table_1() {
 aa.style.display='none';
}
function table_2() {
 aa.style.display='';
}
-->
</script>
</head>
<body onload="<%=msg%>
<%
if (BankID.equals("")) {out.println("javascript:select_bank();");}

//if (CompTrade.equals("")) {out.println("javascript:select_CompTradeID();");}
%>
setProComFrm('<%=ProComMod%>');" topmargin="0" marginwidth="0" marginheight="0">
<%
 if (act.equals("add")) {
%>
<div class="div_desktop_outline">
   <div class="div_subpage_title">
    <table width="100%" height="100%" border="0" cellpadding="0"
     cellspacing="0">
     <tr>
      <td width="27">
       <img src="<%=path%>/image/subTitle_bg01.gif" width="27"
        height="32" />
      </td>
      <td
       style="background: url(<%=path%>/image/subTitle_bg02.gif) repeat-x;">
       <span class="red">当前位置:</span>担保业务系统 &gt; 项目管理 &gt; 受理
      </td>
      <td width="15"
       style="background: url(<%=path%>/image/subTitle_bg03.gif) repeat-x;">
       &nbsp;
      </td>

     </tr>
    </table>
   </div>
   <div class="div_subpage_outline">
<br class="row">
<%
 }
%>
<table align="center" width="90%" border="0" cellpadding="" cellspacing="0">
<form action="" method="post" name="formAdd">
 <input type="hidden" name="act" value="<%=act%>">
 <input type="hidden" name="ProjSerialID" value="<%=ProjSerialID%>">
 <input type="hidden" name="ProMainBody" value="<%=ProMainBody%>">
 <input type="hidden" name="ProComMod" value="<%=ProComMod%>">
 <input type="hidden" name="ProComFrm" value="<%=ProComFrm%>">
 <input type="hidden" name="ProjGuarTypeID" value="<%=ProjGuarTypeID%>"><!--业务类型-->
 <input type="hidden" name="ProjSx" value="<%=ProjSx%>"><!--是否授信-->
 <input type="hidden" name="ProjRunKinkID" value="<%=ProjRunKinkID%>"><!--项目运作性质-->
 <input type="hidden" name="BusinessProductID" value="<%=BusinessProductID%>"><!--业务产品-->
 <input type="hidden" name="BankBusinessProductID" value="<%=BankBusinessProductID%>"><!--银行业务产品-->
 <input type="hidden" name="SCProductID" value="<%=SCProductID%>"><!--公司特色产品 -->
 <input type="hidden" name="SCExpressLane" value="<%=SCExpressLane%>"><!--审批快速通道 -->
 <input type="hidden" name="GuarPlatformID" value="<%=GuarPlatformID%>"><!-- 担保平台 -->
 <input type="hidden" name="SetIndustryID" value="<%=SetIndustryID%>"><!-- 归属产业 -->
 <input type="hidden" name="IssuedByTheWayID" value="<%=IssuedByTheWayID%>"><!-- 保函出具方式 -->
 <input type="hidden" name="GuarPatternID" value="<%=GuarPatternID%>"><!-- 担保方式-->
 <input type="hidden" name="CustomerType" value="<%=CustomerType%>"><!-- 客户类型 -->
 <input type="hidden" name="ProjLGType" value="<%=ProjLGType%>"><!--0621新增 保函类型 -->
 <input type="hidden" name="BookerID" value="<%=userID%>">
 <input type="hidden" name="BookerDeptID" value="<%=BookerDeptID%>">
 <input type="hidden" name="IsJoin" value="<%=IsJoin%>">
 <!--<input type="hidden" name="IsGroupGuar" value="<%=IsGroupGuar%>">是否是组合性在担保 -->
 <!--<input type="hidden" name="IsSqReview" value="<%=IsGroupGuar%>">是否授权评审 -->
 <!--<input type="hidden" name="ProjRtc" value="<%=IsGroupGuar%>">是否融通仓项目 -->
  <tr>
    <td align="center" class="title_1"><%=title%>《担保申请登记表》</td>
  </tr>
  <tr>
  <td colspan="2" align="right">编号:<%=ProjSerialID%>&nbsp;&nbsp;</td>
 </tr>
</table>
<table align="center" width="96%" border="0"  class="table_border">
  <tr>
    <td class="info_r">项目来源:</td>
      <td colspan="3" class="info_w">
   <select name="ProComMod" id="ProComMod" value="<%=ProComMod %>" onchange="javascript:setProComFrm(this.value);" <%=disabled%> tt="st" kk="0" ts="项目来源" >
<%
sql = "select ItemID,ItemName,(case when ItemID='"+ProComMod+"' then 'selected' else '' end) optSel from DIC_Item where GroupID=36 order by ItemID";
vect = new Vector();
vect = db.dataSelect(sql);
he = new Hash();
for (int i = 0; i < vect.size(); i++) {
 he = (Hash) vect.elementAt(i);
%>
<option value="<%=he.getString("ItemID", "")%>"  <%=he.getString("optSel", "")%>><%=he.getString("ItemName", "")%></option>
<%
}
%>
</select>
<input id="ProComFrm" type="hidden" name="ProComFrm" value="<%=ProComFrm%>">
<!-- 项目来源选择项 -->
<div id="Div_ProComFrm" style="display:none"></div>
</td>
    <td class="info_r">咨询方式:</td>
    <td class="info_w">
     <input type="radio" name="ProConMod" value="电话" checked  <%=disabled%>>电话
     <input type="radio" name="ProConMod" value="来访" <%=disabled%>>来访</td>
  </tr>
  <tr>
    <td class="info_r">企业名称:</td>
    <td colspan="2" class="info_w"><input type="text" name="CompanyName" value="<%=CompanyName%>" size="59" maxlength="100" readonly tt="st" kk="0" ts="企业名称"></td>
    <td class="info_r">组织机构代码:</td>
    <td colspan="2" class="info_w"><input type="text" name="EnterpriseID" value="<%=EnterpriseID%>" size="25" maxlength="25" readOnly tt="st" kk="0" ts="组织机构代码"></td>
  </tr>
   <tr>
   <td class="info_r">申请客户当前在保余额(万元):</td> 
    <td colspan="2" class="info_w"><input type="text" name="ProEntLprResidual" value="<%=dk.format(Double.parseDouble(ProEntLprResidual)) %>" size="25" maxlength="25"></td>
    <td class="info_r">申请客户当前在保余额记录日期:</td> 
    <td colspan="2" class="info_w"><input type="text" name="EntSystDate" value="<%=EntSystDate %>" size="25" maxlength="25"></td>
  </tr>
 <tr>
   <td class="info_r">担保品种:</td>
    <td colspan="2" class="info_w"><input type="text" name="ProjGuarTypeName" value="<%=ProjGuarTypeName%>" size="25" maxlength="25" readOnly tt="st" kk="0" ts="业务类型"></td>
     <td class="info_r">是否组合性担保</td> 
      <td colspan="2" class="info_w"><table border="0" class="table_nonborder">
 <tr>
 <td>
 <table align="left" class="table_nonborder" id="tb">
  <tr>
 <td>
<input type="radio" name="IsGroupGuar" value="1"  <%if(IsGroupGuar.equals("1")){out.println("checked");}%> <%=disabled%> readonly/>是
<input type="radio" name="IsGroupGuar" value="0"  <%if(IsGroupGuar.equals("0")){out.println("checked");}%> <%=disabled%> readonly/>否
<br>
<input name="GroupGuarContent" value="<%=GroupGuarContent%>" type="text" size="30" readonly>
 </td>
 </tr>
   </table>
  </td>
 </tr>
</table>
</td>
  </tr>

<%
 if (ProjSx.equals("1")) {
  ProjSxName = "内部授信";
 } else if (ProjSx.equals("2")) {
  ProjSxName = "外部授信";
 } else {
  ProjSxName = "无授信";
 }
%>
  <tr>
    <td class="info_r">是否授信:</td>
    <td colspan="2" class="info_w"><input type="text" name="" value="<%=ProjSxName%>" size="25" maxlength="25" readOnly tt="st" kk="0" ts="是否授信">
<!--
<input type="radio" name="ProjSx" value="0" disabled <%if(ProjSx.equals("0")){out.println("checked");}%>>无授信
<input type="radio" name="ProjSx" value="1" disabled <%if(ProjSx.equals("1")){out.println("checked");}%>>内部授信
<input type="radio" name="ProjSx" value="2" disabled <%if(ProjSx.equals("2")){out.println("checked");}%>>外部授信
-->
    </td>
    <td class="info_r">银行业务产品:</td>
    <td colspan="2" class="info_w">
     <input type="text" name="BankBusinessProductName"  value="<%=BankBusinessProductName%>" size="59" maxlength="100" readonly >
    </td>
  </tr>
  <tr>
   <td class="info_r">公司特色产品:</td>
    <td colspan="2" class="info_w">
     <input type="text" name="SCProductIDName"  value="<%=SCProductIDName%>" size="59" maxlength="100"  readonly >
  <td class="info_r">审批快速通道:</td>
    <td colspan="2" class="info_w">
     <input type="text" name="SCExpressLaneName"  value="<%=SCExpressLaneName%>" size="59" maxlength="100" readonly >
  </tr>
  <tr>
   <td class="info_r">运作性质:</td>
    <td colspan="2" class="info_w">
     <input type="text" name="ProjRunKinkName"  value="<%=ProjRunKinkName%>" size="59" maxlength="100"  readonly >
  <td class="info_r">担保机构业务产品:</td>
    <td colspan="2" class="info_w">
     <input type="text" name="BusinessProductName"  value="<%=BusinessProductName%>" size="59" maxlength="100" readonly >
  </tr>
 
 
  <tr >
   <td class="info_r">归属产业:</td>
         <td colspan="2" class="info_w">
     <input type="text" name="SetIndustryName"  value="<%=SetIndustryName%>" size="59" maxlength="100" readonly ></td>
       <td class="info_r">是否融通仓项目</td> 
          <td colspan="2" class="info_w">
    <input type="radio" name="ProjRtc" value="1" <%if(ProjRtc.equals("1")){out.println("checked");}%> <%=disabled%> readonly/>是
    <input type="radio" name="ProjRtc" value="0" <%if(ProjRtc.equals("0")){out.println("checked");}%> <%=disabled%> readonly/>否
    </td>
   </tr>
<%
 if (ProComMod.equals("003")) { //查看时
%>    
    <tr >
      <td class="info_r">是否授权评审</td> 
          <td colspan="5" class="info_w">
    <input type="radio" name="IsSqReview" value="1"  <%if(IsSqReview.equals("1")){out.println("checked");}%> <%=disabled%> readonly/>是
    <input type="radio" name="IsSqReview" value="0" <%if(IsSqReview.equals("0")){out.println("checked");}%> <%=disabled%> readonly/>否
    </td>
 </tr>
<% }%> 
   <tr>
     <td class="info_r">保函出具方式:</td>
      <td colspan="2" class="info_w">
     <input type="text" name="IssuedByTheWayName"  value="<%=IssuedByTheWayName%>" size="59" maxlength="100" readonly >
      <td class="info_r">担保平台:</td>
     <td colspan="2" class="info_w">
     <input type="text" name="GuarPlatformName"  value="<%=GuarPlatformName%>" size="59" maxlength="100" readonly >  
  </tr>
  <tr>
    <td class="info_r">推荐单位:</td>
    <td colspan="2"  class="info_w">
<%
 
 if (see.equals("1")) { //查看时
%>
<input type="text" name="" value="<%=UnitName%>" size="59" maxlength="100" readOnly >
<%
 } else { //编辑时

  if (runID.equals("001")) { //项目运作性质无推荐单位
%>
 <select name="ProjPolicyRecomUnit" size="1" <%=disabled%> >
  <option value="">-------------------</option>
 </select>
<%
  } else { //项目运作性质有推荐单位(合作机构、分公司、区县财政项目)
   //列表值规则:区县ID.机构ID.机构名称
   //System.out.println("scdb: enrolForm.jspsee aaaaaaaaaarunIDaaaaaaaa="+runID);
   //if (runID.equals("003")) { //区县财政
   // sql = "select UserID,ItemID,ItemName from DIC_Item where GroupID=12 order by GroupID";
   //} else if (runID.equals("002")) { //合作机构
   // sql = "select CowoID ItemID,CowoName,BoroCounID UserID,SpecialID,CowoShortName ItemName from Dic_CoWorker where CowoID in (select nodeSourceId from scdb2_TreeDB where isLeaf=0 and nodeFatherId in (select MbTreeNode from DIC_MbTreeNode where MbCode='002'))";
   //} else if (runID.equals("004")) { //分公司
   // sql = "select CowoID ItemID,CowoName,BoroCounID UserID,SpecialID,CowoShortName ItemName from Dic_CoWorker where CowoID in (select nodeSourceId from scdb2_TreeDB where isLeaf=0 and nodeFatherId in (select MbTreeNode from DIC_MbTreeNode where MbCode='004'))";
   //}else if (runID.equals("002")) {//20110804业务系统改造 合并合作机构和分公司
   // sql = "select CowoID ItemID,CowoName,BoroCounID UserID,SpecialID,CowoShortName ItemName from Dic_CoWorker where CowoID in (select nodeSourceId from scdb2_TreeDB where isLeaf=0 and nodeFatherId in (select MbTreeNode from DIC_MbTreeNode where MbCode='002' or MbCode='004'))";
   //}
   //System.out.println("enrolForm.jsp sql=" + sql);
   //vect = db.dataSelect(sql);
   //record = new Hash();
%> 
<!--
 <select name="ProjPolicyRecomUnit" size="1" <%=disabled%> tt="s" kk="0" ts="推荐单位">
  <option value="">请选择</option>
<%  
   //for (int i = 0; i < vect.size(); i++) {
   // record = (Hash) vect.elementAt(i);
%>
<option value="<%=record.getString("UserID", "")%>.<%=record.getString("ItemID", "")%>.<%=record.getString("ItemName", "")%>" <%if(CowoID.equals(record.getString("ItemID",""))){out.println("selected");}%>><%=record.getString("ItemName", "")%></option>
<%
   //}
%>
 </select>
 -->
 <input type="hidden" name="ProjPolicyRecomUnit" value="<%=ProjPolicyRecomUnit%>">
 <input type="text" name="" value="<%=UnitName%>" size="59" maxlength="100" readOnly >
<%
  }
 }
%>
    </td>
      <td class="info_r">担保方式:</td>
    <td colspan="2" class="info_w">
     <input type="text" name="GuarPatternName"  value="<%=GuarPatternName%>" size="59" maxlength="100" readonly >
  </tr>
  <tr>
    <td class="info_r">注册时间:</td>
    <td colspan="2" class="info_w">
<input id="qx1" name="RegDate"  value="<%=RegDate%>"  size="10" maxlength="10" tt="dt" kk="0" ts="注册时间" onfocus="setday(document.all.qx1);" readOnly <%=disabled%>><font style="color:red">*</font>
   </td>
    <td class="info_r">客户类型:</td>
    <td colspan="2" class="info_w"><input type="text" name="CustomerTypeName" value="<%=CustomerTypeName%>" size="25" maxlength="25" readOnly tt="st" kk="0" ts="客户类型"></td>
  </tr>
 
  <!-- 授信改造2012-11-28 start -->
  <tr>
     <td class="info_r">是否多个业务品种(外部授信项目):</td> 
          <td colspan="2" class="info_w">
    <input type="radio" name="ISMoreGuarType" value="1"  <%if(ISMoreGuarType.equals("1")){out.println("checked");}%> <%=disabled%> readonly/>是
    <input type="radio" name="ISMoreGuarType" value="0" <%if(ISMoreGuarType.equals("0")){out.println("checked");}%> <%=disabled%> readonly/>否
    </td>
      <td class="info_r">项目担保主体:</td>
      <td colspan="2" class="info_w">
      <input type="radio" name="ProSubect" value="1"  <%if(ProSubect.equals("1")){out.println("checked");}%> <%=disabled%> readonly/>多个主体
   <input type="radio" name="ProSubect" value="0" <%if(ProSubect.equals("0")){out.println("checked");}%> <%=disabled%> readonly/>单一主体
       <textarea name="ProSubectMS" cols="82" rows="3"  class="form_css2"><%=ProSubectMS%></textarea>
      </td> 
  </tr>
  <tr>
     <td class="info_r">是否集团授信:</td> 
          <td colspan="2" class="info_w">
    <input type="radio" name="IsJTSX" value="1"  <%if(IsJTSX.equals("1")){out.println("checked");}%> <%=disabled%> readonly/>是
    <input type="radio" name="IsJTSX" value="0" <%if(IsJTSX.equals("0")){out.println("checked");}%> <%=disabled%> readonly/>否
    </td>
      <td class="info_r">是否存在额度混用:</td>
      <td colspan="2" class="info_w">
      <input type="radio" name="IsEDHY" value="1"  <%if(IsEDHY.equals("1")){out.println("checked");}%> <%=disabled%> readonly/>是
   <input type="radio" name="IsEDHY" value="0" <%if(IsEDHY.equals("0")){out.println("checked");}%> <%=disabled%> readonly/>否
       
      </td> 
  </tr>
  <tr >
      <td class="info_r">是否涉及包含项目:</td> 
          <td colspan="5" class="info_w">
    <input type="radio" name="IsProBH" value="1"  <%if(IsProBH.equals("1")){out.println("checked");}%> <%=disabled%> readonly/>是
    <input type="radio" name="IsProBH" value="0" <%if(IsProBH.equals("0")){out.println("checked");}%> <%=disabled%> readonly/>否<br>
     <input name="BHProID" type="text" size="30"  value="<%=BHProID%>">包含项目流水号<br>
    <input name="BHProSXMoney" type="text" size="30"  value="<%=dk.format(Double.parseDouble(BHProSXMoney))%>">包含项目授信金额<br>
    <input name="BHProZBMoney" type="text" size="30"  value="<%=dk.format(Double.parseDouble(BHProZBMoney))%>">包含项目在保余额
  
    </td>
 </tr>
 
    <!-- 授信改造2012-11-28 end -->
<% if(IsProjGuarTypeID.equals("013")){%>
   <tr>
    <td class="info_r">关联企业名称:</td>
    <td colspan="2" class="info_w">
<input name="PerCompanyName" value="<%=PerCompanyName%>" size="60" maxlength="100" ts="关联企业名称">
    </td>
    <td class="info_r">关联企业组织机构代码:</td>
    <td colspan="2" class="info_w"><input type="text" name="PerEnterpriseID" value="<%=PerEnterpriseID  %>" size="60" maxlength="100"  ts="关联企业组织结构代码"></td>
  </tr>
<%}%>
 
  <tr>
    <td class="info_r">注册地址:</td>
    <td colspan="5" class="info_w"><select name="RegBoroCounID" size="1" <%=disabled%> class="form_css">
<%
 sql_dic = "select * from DIC_Item where GroupID=11 and ItemID<>'000' order by GroupID"; //区县
 vect = db.dataSelect(sql_dic);
 record = new Hash();
 for (int i = 0; i < vect.size(); i++) {
  record = (Hash) vect.elementAt(i);
%>
        <option value="<%=record.getString("ItemID", "")%>" <%if(RegBoroCounID.equals(record.getString("ItemID",""))){out.println("selected");}%>><%=record.getString("ItemName", "")%></option>
   <%
     }
   %>
 </select><input type="text" name="RegAddr" value="<%=RegAddr%>" size="50" maxlength="100" <%=readonly%> class="form_css" tt="st" kk="1" ts="注册地址"></td>
  </tr>
  <tr>
    <td class="info_r">经营地址:</td>
  <td colspan="2" class="info_w"><select name="WorkBoroCounID" size="1" <%=disabled%> class="form_css">
<%
 record = new Hash();
 for (int i = 0; i < vect.size(); i++) {
  record = (Hash) vect.elementAt(i);
%>
        <option value="<%=record.getString("ItemID", "")%>" <%if(WorkBoroCounID.equals(record.getString("ItemID",""))){out.println("selected");}%>><%=record.getString("ItemName", "")%></option>
<%
 }
%>      
      </select><input type="text" name="WorkAddr" value="<%=WorkAddr%>" size="50" maxlength="100" <%=readonly%> class="form_css" tt="st" kk="1" ts="经营地址"></td>
    <td class="info_r">所属商圈:</td>
   <td colspan="2" class="info_w">
  <select name="SetBelong" size="1" class="form_css" <%=disabled%>>
<%
 sql_dic = "select * from DIC_Item where GroupID=43 order by ItemID"; //所属商圈
 vect = db.dataSelect(sql_dic);
 record = new Hash();
 for (int i = 0; i < vect.size(); i++) {
  record = (Hash) vect.elementAt(i);
%>
        <option value="<%=record.getString("ItemID", "")%>" <%if(SetBelong.equals(record.getString("ItemID",""))){out.println("selected");}%>><%=record.getString("ItemName", "")%></option>
<%
 }
%>
      </select></td>
  </tr>
  <tr>
    <td class="info_r">企业性质:</td>
    <td colspan="3" class="info_w">
     <select name="CompPropKindID" size="1" <%=disabled%> class="form_css">
<%
 sql_dic = "select * from DIC_Item where GroupID=1 order by GroupID"; //企业性质
 vect = db.dataSelect(sql_dic);
 record = new Hash();
 for (int i = 0; i < vect.size(); i++) {
  record = (Hash) vect.elementAt(i);
%>
        <option value="<%=record.getString("ItemID", "")%>" <%if(CompPropKindID.equals(record.getString("ItemID",""))){out.println("selected");}%>><%=record.getString("ItemName", "")%></option>
<%
 }
%>
      </select></td>
    <td class="info_r">注册资本(万元):</td>
    <td class="info_w"><input type="text" name="RegMoney" value="<%=RegMoney%>" size="12" maxlength="12" <%=readonly%> class="form_css" tt="dg" kk="1" ts="注册资本"></td>
  </tr>
  <tr>
    <td class="info_r">所属行业:</td>
    <td colspan="3" class="info_w">
    <select name="CompTrade" size="1" <%=disabled%>  tt="st" kk="0" ts="所属行业" class="form_css" onChange="select_CompTradeID();">
      <option>-----请选择-----</option>
<%
 for (int i = 0; i < compTrade_all.length; i++) {
  if (compTrade_all[i][0].length() == 1) {
%>     
    <option value="<%=compTrade_all[i][0]%>" <%if(CompTrade.equals(compTrade_all[i][0])){out.println("selected");}%>><%=compTrade_all[i][1]%></option>
<%
 }
 }
%> 
      </select>
     <select name="CompTradeID" size="1" <%=disabled%> >
    <option>-----请选择-----</option>
<%
 for (int i = 0; i < compTrade_all.length; i++) {
  //if (CompTrade.equals(compTrade_all[i][0])&& compTrade_all[i][0].length() == 3) {
  if (CompTrade.equals(compTrade_all[i][0].substring(0,1))&& compTrade_all[i][0].length() > 1 ) {
%>     
    <option value="<%=compTrade_all[i][0]%>" <%if(CompTradeID.equals(compTrade_all[i][0])){out.println("selected");}%>><%=compTrade_all[i][1]%></option>
<%
 }
 }
%> 
      </select> <font color=red>*</font>         
 </td>  
          
    <td class="info_r">企业技术类型:</td>
    <td class="info_w"><select name="CompTechTypeID" size="1" <%=disabled%> class="form_css">
<%
 sql_dic = "select * from DIC_Item where GroupID=17 order by GroupID"; //企业技术类型
 vect = db.dataSelect(sql_dic);
 record = new Hash();
 for (int i = 0; i < vect.size(); i++) {
  record = (Hash) vect.elementAt(i);
%>
        <option value="<%=record.getString("ItemID", "")%>" <%if(CompTechTypeID.equals(record.getString("ItemID",""))){out.println("selected");}%>><%=record.getString("ItemName", "")%></option>
<%
 }
%>
      </select></td>       
  </tr>
  <tr>
    <td colspan="6" class="info_r">经营范围:<br>
     <textarea name="WorkScope" cols="82" rows="3" <%=readonly%> class="form_css2"><%=WorkScope%></textarea></td>
  </tr>
  <tr>
    <td colspan="6" class="info_r">主导产品:<br>
     <textarea name="MainProduct" cols="82" rows="3" <%=readonly%> class="form_css2"><%=MainProduct%></textarea></td>
  </tr>
  <tr>
    <td rowspan="2" class="info_r">企业股本结构:</td>
    <td class="info_r">股东名称:</td>
    <td class="info_w"><input type="text" name="Partner1Name" value="<%=Partner1Name%>" size="12" maxlength="50" <%=readonly%> class="form_css"></td>
    <td class="info_w"><input type="text" name="Partner2Name" value="<%=Partner2Name%>" size="12" maxlength="50" <%=readonly%> class="form_css"></td>
    <td class="info_w"><input type="text" name="Partner3Name" value="<%=Partner3Name%>" size="12" maxlength="50" <%=readonly%> class="form_css"></td>
    <td class="info_w"><input type="text" name="Partner4Name" value="<%=Partner4Name%>" size="12" maxlength="50" <%=readonly%> class="form_css"></td>
  </tr>
  <tr>
    <td class="info_r">所占股份(%):</td>
    <td class="info_w"><input type="text" name="Partner1HoldScale" value="<%=Partner1HoldScale%>" size="12" maxlength="50" <%=readonly%> class="form_css"></td>
    <td class="info_w"><input type="text" name="Partner2HoldScale" value="<%=Partner2HoldScale%>" size="12" maxlength="50" <%=readonly%> class="form_css"></td>
    <td class="info_w"><input type="text" name="Partner3HoldScale" value="<%=Partner3HoldScale%>" size="12" maxlength="50" <%=readonly%> class="form_css"></td>
    <td class="info_w"><input type="text" name="Partner4HoldScale" value="<%=Partner4HoldScale%>" size="12" maxlength="50" <%=readonly%> class="form_css"></td>
  </tr>
  <tr>
    <td width="17%" class="info_r">主要财务数据:</td>
    <td width="17%" align="center" class="info_r">资产总额(万元)</td>
    <td width="17%" align="center" class="info_r">负债总额(万元)</td>
    <td width="17%" align="center" class="info_r">净资产(万元)</td>
    <td width="17%" align="center" class="info_r">销售收入(万元)</td>
    <td width="17%" align="center" class="info_r">利润总额(万元)</td>
  </tr>
  <tr>
    <td class="info_r">去年:</td>
    <td class="info_w">1<input type="text" name="LastYearCapitalization" value="<%=LastYearCapitalization%>" size="12" maxlength="12" <%=readonly%> class="form_css" tt="dg" kk="1" ts="去年资产总额"><font style="color:red">*</td>
    <td class="info_w"><input type="text" name="LastYearOwesTotal" value="<%=LastYearOwesTotal%>" size="12" maxlength="12" <%=readonly%> class="form_css" tt="dg" kk="1" ts="去年负债总额"></td>
    <td class="info_w"><input type="text" name="LastYearEquity" value="<%=LastYearEquity%>" size="12" maxlength="12" <%=readonly%> class="form_css" tt="dg" kk="1" ts="去年净资产"></td>
    <td class="info_w">2<input type="text" name="LastYearSale" value="<%=LastYearSale%>" size="12" maxlength="12" <%=readonly%> class="form_css" tt="dg" kk="1" ts="去年销售收入"><font style="color:red">*</td>
    <td class="info_w"><input type="text" name="LastYearProfitTotal" value="<%=LastYearProfitTotal%>" size="12" maxlength="12" <%=readonly%> class="form_css" tt="dg" kk="1" ts="去年利润总额"></td>
  </tr>
  <tr>
    <td class="info_r">今年截至本月末:</td>
    <td class="info_w"><input type="text" name="ThisYearCapitalization" value="<%=ThisYearCapitalization%>" size="12" maxlength="12" <%=readonly%> class="form_css" tt="dg" kk="1" ts="今年资产总额"></td>
    <td class="info_w"><input type="text" name="ThisYearOwesTotal" value="<%=ThisYearOwesTotal%>" size="12" maxlength="12" <%=readonly%> class="form_css" tt="dg" kk="1" ts="今年负债总额"></td>
    <td class="info_w"><input type="text" name="ThisYearEquity" value="<%=ThisYearEquity%>" size="12" maxlength="12" <%=readonly%> class="form_css"" tt="dg" kk="1" ts="今年净资产"></td>
    <td class="info_w"><input type="text" name="ThisYearSale" value="<%=ThisYearSale%>" size="12" maxlength="12" <%=readonly%> class="form_css" tt="dg" kk="1" ts="今年销售收入"></td>
    <td class="info_w"><input type="text" name="ThisYearProfitTotal" value="<%=ThisYearProfitTotal%>" size="12" maxlength="12" <%=readonly%> class="form_css" tt="dg" kk="1" ts="今年利润总额"></td>
  </tr>
  <tr>
    <td class="info_r">贷款卡号码:</td>
    <td colspan="2" class="info_w"><input type="text" name="LoanCardNumb" value="<%=LoanCardNumb%>" size="24" maxlength="36" <%=readonly%> class="form_css"></td>
    <td class="info_r">贷款卡密码:</td>
    <td colspan="2" class="info_w"><input type="text" name="LoanCardPassword" value="<%=LoanCardPassword%>" size="24" maxlength="36" <%=readonly%> class="form_css"></td>
  </tr>
  <tr>
    <td class="info_r">现有银行贷款余额(万元):</td>
    <td class="info_w"><input type="text" name="NowBankLoanBalance" value="<%=NowBankLoanBalance%>" size="12" maxlength="12" <%=readonly%> class="form_css" tt="dg" kk="1" ts="现有银行贷款余额"></td>
    <td class="info_r">贷款银行:</td>
    <td class="info_w"><input type="text" name="NowBankName" value="<%=NowBankName%>" size="12" maxlength="50" <%=readonly%> class="form_css"></td>
    <td class="info_r">合同还款日期:</td>
    <td class="info_w">
<input id="qx2" name="NowReturnDate" value="<%=NowReturnDate%>" size="10" maxlength="10" tt="dt" kk="1" ts="合同还款日期" onfocus="setday(document.all.qx2);" readOnly <%=disabled%>></td>
  </tr>
  <tr>
    <td class="info_r">现有银行贷款类别:</td>
    <td colspan="5" class="info_w"><input type="text" name="NowBankLoanType" value="<%=NowBankLoanType%>" size="12" maxlength="36" <%=readonly%> class="form_css"></td>
  </tr>
  <tr>
   <td class="info_r">本次拟贷款银行:</td>
    <td colspan="5" class="info_w">
     <select name="BankID" size="1" <%=disabled%> onChange="select_bank();">
<%
 for (int i = 0; i < bank_all.length; i++) {
  if (bank_all[i][0].length() == 3) {
%>     
    <option value="<%=bank_all[i][0]%>" <%if(BankID.equals(bank_all[i][0])){out.println("selected");}%>><%=bank_all[i][1]%></option>
<%
 }
 }
%> 
      </select>
     
     <select name="ThisTimeLoanBankID" size="1" <%=disabled%>>
<%
 for (int i = 0; i < bank_all.length; i++) {
  if (BankID.equals(bank_all[i][0].substring(0, 3))
    && bank_all[i][0].length() == 6) {
%>     
    <option value="<%=bank_all[i][0]%>" <%if(ThisTimeLoanBankID.equals(bank_all[i][0])){out.println("selected");}%>><%=bank_all[i][1]%></option>
<%
 }
 }
%> 
      </select>
    </td> 
  </tr>
  <tr>
    <td class="info_r">申请担保金额(万元):</td>
    <td class="info_w"><input type="text" name="ThisTimeAppGuarMoney" value="<%=ThisTimeAppGuarMoney%>" size="12" maxlength="12" <%=readonly%> class="form_css" tt="dg" kk="0" ts="本次申请担保金额"><font style="color:red">*</font></td>
    <td class="info_r">担保期限(月):</td>
    <td class="info_w" colspan="3"><input type="text" name="ThisTimeAppGuarTerm" value="<%=ThisTimeAppGuarTerm%>" size="12" maxlength="12" <%=readonly%> class="form_css" tt="dg" kk="0" ts="担保期限">
     <input type="radio" name="ThisTimeAppGuarTermType" value="0" checked <%if(ThisTimeAppGuarTermType.equals("0")){out.println("checked");}%> <%=disabled%> onClick="setTerm('');">月
     <input type="radio" name="ThisTimeAppGuarTermType" value="1" <%if(ThisTimeAppGuarTermType.equals("1")){{out.println("checked");}}%> <%=disabled%> onClick="setTerm('');">天
     <input type="radio" name="ThisTimeAppGuarTermType" value="2" <%if(ThisTimeAppGuarTermType.equals("2")){{out.println("checked");}}%> <%=disabled%> onClick="setTerm('0');">无期限
     <font style="color:red">*</font>
    </td>
  </tr>
  <tr>
    <td class="info_r">贷款类别:</td>
    <td class="info_w" colspan="5"><input type="text" name="ThisTimeAppLoanType" value="<%=ThisTimeAppLoanType%>" size="12" maxlength="12" <%=readonly%> class="form_css"></td>
  </tr>
  <tr>
    <td colspan="6" class="info_r">贷款原因及用途:<br>
     <textarea name="LoanReason" cols="82" rows="3" <%=readonly%> class="form_css2"><%=LoanReason%></textarea></td>
  </tr>
  <tr>
    <td colspan="6" class="info_r">还款计划:<br>
     <textarea name="LoanPlan" cols="82" rows="3" <%=readonly%> class="form_css2"><%=LoanPlan%></textarea></td>
  </tr>
  <tr>
    <td colspan="6" class="info_r">还款资金来源:<br>
     <textarea name="LoanMoneyFrm" cols="82" rows="3" <%=readonly%> class="form_css2"><%=LoanMoneyFrm%></textarea></td>
  </tr>
  <tr>
    <td rowspan="3" class="info_r">可提供的反担保措施:</td>
    <td colspan="5" class="info_w"><input type="checkbox" name="IsThirdPartyGuar" value="1" <%if(IsThirdPartyGuar.equals("1")){out.println("checked");}%> <%=disabled%> class="form_css">
     第三方保证 保证人:<input type="text" name="ThirdPartyGuarantor" value="<%=ThirdPartyGuarantor%>" size="50" maxlength="100" <%=readonly%> class="form_css"></td>
  </tr>
  <tr>
    <td colspan="5" class="info_w"><input type="checkbox" name="IsMortagage" value="1" <%if(IsMortagage.equals("1")){out.println("checked");}%> <%=disabled%> class="form_css">
      抵(质)押 抵押物:<input type="text" name="Pawn" value="<%=Pawn%>" size="50" maxlength="100" <%=readonly%> class="form_css"></td>
  </tr>
  <tr>
    <td colspan="5" class="info_w"><input type="checkbox" name="IsOtherOptGuar" value="1" <%if(IsOtherOptGuar.equals("1")){out.println("checked");}%> <%=disabled%> class="form_css">
      其它&nbsp;&nbsp;&nbsp;反担保措施:<input type="text" name="OtherOptGuarInfo" value="<%=OtherOptGuarInfo%>" size="50" maxlength="100" <%=readonly%> class="form_css"></td>
  </tr>
  <tr>
    <td class="info_r">企业联系人:</td>
    <td class="info_w"><input type="text" name="CompLinkMan" value="<%=CompLinkMan%>" size="12" maxlength="50" <%=readonly%> tt="st" kk="0" ts="企业联系人" class="form_css"><font style="color:red">*</font></td>
    <td class="info_r">联系电话:</td>
    <td class="info_w"><input type="text" name="CompLinkTel" value="<%=CompLinkTel%>" size="12" maxlength="50" <%=readonly%> class="form_css" tt="st" kk="0" ts="联系电话"><font style="color:red">*</font></td>
    <td class="info_r">电子邮箱:</td>
    <td class="info_w"><input type="text" name="CompEmail" value="<%=CompEmail%>" size="12" maxlength="50" <%=readonly%> class="form_css" tt="em" kk="1" ts="电子邮箱"></td>
  </tr>
  <tr>
    <td class="info_r">登记人:</td>
    <td class="info_w"><input type="text" name="" value="<%=BookerName%>" size="12" maxlength="50" readOnly class="form_css"></td>
    <td class="info_r">登记时间:</td>
    <td colspan="3" class="info_w">
<input id="qx3" name="BookDate" value="<%=BookDate%>" size="10" maxlength="10" tt="dt" kk="1" ts="登记时间" onfocus="setday(document.all.qx3);" readOnly <%=disabled%>>
    </td>
  </tr>
</table>
<table align="center" width="96%"  border="0" cellpadding="5" cellspacing="0">
 <tr>
    <td><font color="red"><%=info%></font></td>
  </tr>
 <tr>
  <td align="center">
<%
 if (see.equals("1")) { //登记表只读
  if (IsFromWeb.equals("1") && IsAccept.equals("")) { //网上申请 && 未作处理
%>
<input name="sendRepot" type="button" class="buttonpop" value=" 同意 " onClick="JavaScript:agree();">
&nbsp;&nbsp;
<input name="sendRepot" type="button" class="buttonpop" value=" 拒绝 " onClick="JavaScript:disagree();">
<%
 }
 } else { //登记表可写(适用业务系统自建的登记表)
  if (act.equals("add")) {
%>
<input name="sendRepot" type="button" class="buttonpop" value=" 上一步 " onClick="JavaScript:window.history.back();">
&nbsp;&nbsp;
<input name="sendRepot" type="button" class="buttonpop" value=" 取消 " onClick="JavaScript:window.location='applyList.jsp';">
&nbsp;&nbsp;
<input name="onceBut" type="button" class="buttonpop" value=" 完成 " onClick="JavaScript:add_DB();">
<%
 } else if (act.equals("up")) {
%>
<input name="sendRepot" type="button" class="buttonpop" value=" 关闭 " onClick="JavaScript:window.close();">
&nbsp;&nbsp;
<input name="sendRepot" type="button" class="buttonpop" value=" 保存 " onClick="JavaScript:up_DB();">
<%
 }
 }
%>
  </td>
 </tr>
</table>
</form>
<br>
<!-- 银行 -->
<jsp:include page="../publicModel/bankSel.jsp">
 <jsp:param name="runType" value="0" />
 <jsp:param name="callType" value="" />
 <jsp:param name="divID" value="Div_ProComFrm" />
 <jsp:param name="isKk" value="" />
 <jsp:param name="feAim" value="ProComFrm" />
 <jsp:param name="keyValue" value="" />
</jsp:include>
<!-- 合作机构 需一级ID和二级ID-->
<jsp:include page="../publicModel/coWorkerSel.jsp">
 <jsp:param name="runType" value="0" />
 <jsp:param name="callType" value="" />
 <jsp:param name="divID" value="Div_ProComFrm" />
 <jsp:param name="isKk" value="" />
 <jsp:param name="feAim" value="ProComFrm" />
 <jsp:param name="fValue" value="" />
 <jsp:param name="keyValue" value="" />
</jsp:include>
<iframe id="scHif" name="scHidIFrame" src="" width="0" height="0" scrolling="No" frameborder="0" framespacing="0" border="0" style="z-index: -1"></iframe>
</div></div>
</body>
</html>

欢迎加我的qq技术群425783133