⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 crm_project_infoadd.jsp

📁 java开发的办公系统 1.系统管理 (地区管理,部门管理,菜单管理,用户管理,角色管理,权限) 2.工作流管理 (流程类别,流程) 3.字典管理 (国家,省份,城市,公共数据字典) 4.项目
💻 JSP
📖 第 1 页 / 共 2 页
字号:
											{
												if(develop_language.equals("0")||develop_language.equals(oa_dictionaryItem.getCode()))
													out.println("<input type='radio' name='develop_language' value='"+oa_dictionaryItem.getCode()+"' checked>"+oa_dictionaryItem.getCode_name());
												else
													out.println("<input type='radio' name='develop_language' value='"+oa_dictionaryItem.getCode()+"' >"+oa_dictionaryItem.getCode_name());
											}
										}
									%>									</td>
								</tr>
								<tr >
									<td >开发数据库:</td>
									<td >
									<%
										String  develop_database="0";
										if(!ParameterUtils.getString(request,"develop_database").equals(""))
											develop_database=ParameterUtils.getString(request,"develop_database");
										for(int i=0;i<oa_dictionaryXmlList.size();i++){
											Oa_dictionaryItem oa_dictionaryItem=(Oa_dictionaryItem)oa_dictionaryXmlList.get(i);
											if(oa_dictionaryItem.getNum().equals("27"))
											{
												if(develop_database.equals("0")||develop_database.equals(oa_dictionaryItem.getCode()))
													out.println("<input type='radio' name='develop_database' value='"+oa_dictionaryItem.getCode()+"' checked>"+oa_dictionaryItem.getCode_name());
												else
													out.println("<input type='radio' name='develop_database' value='"+oa_dictionaryItem.getCode()+"' >"+oa_dictionaryItem.getCode_name());
											}
										}
									%>									</td>
								</tr>
								<tr >
									<td >项目语种:</td>
									<td >
									<select name="project_language" id="project_language">
									<%
										for(int i=0;i<oa_dictionaryXmlList.size();i++){
											Oa_dictionaryItem oa_dictionaryItem=(Oa_dictionaryItem)oa_dictionaryXmlList.get(i);
											if(oa_dictionaryItem.getNum().equals("21"))
											{
												if(ParameterUtils.getString(request,"project_language").equals(oa_dictionaryItem.getCode()))
													out.println("<option value='"+oa_dictionaryItem.getCode()+"' selected>"+oa_dictionaryItem.getCode_name()+"</option>");
												else
													out.println("<option value='"+oa_dictionaryItem.getCode()+"' >"+oa_dictionaryItem.getCode_name()+"</option>");
											}
										}
									%>
									</select>									</td>
								</tr>
								
								<tr >
									<td >项目金额:</td>
									<td ><input name="project_price" type="text" id="project_price"  value="0.00" ></td>
								</tr>
								<tr >
									<td >项目类型:</td>
									<td >
									<select name="project_type" id="project_type">
									<%
										for(int i=0;i<oa_dictionaryXmlList.size();i++){
											Oa_dictionaryItem oa_dictionaryItem=(Oa_dictionaryItem)oa_dictionaryXmlList.get(i);
											if(oa_dictionaryItem.getNum().equals("22"))
											{
												if(ParameterUtils.getString(request,"project_type").equals(oa_dictionaryItem.getCode()))
													out.println("<option value='"+oa_dictionaryItem.getCode()+"' selected>"+oa_dictionaryItem.getCode_name()+"</option>");
												else
													out.println("<option value='"+oa_dictionaryItem.getCode()+"' >"+oa_dictionaryItem.getCode_name()+"</option>");
											}
										}
									%>
									</select>									</td>
								</tr>
								<tr >
									<td >项目来源:</td>
									<td >
									<select name="project_origin" id="project_origin">
									<%
										for(int i=0;i<oa_dictionaryXmlList.size();i++){
											Oa_dictionaryItem oa_dictionaryItem=(Oa_dictionaryItem)oa_dictionaryXmlList.get(i);
											if(oa_dictionaryItem.getNum().equals("15"))
											{
												if(ParameterUtils.getString(request,"project_origin").equals(oa_dictionaryItem.getCode()))
													out.println("<option value='"+oa_dictionaryItem.getCode()+"' selected>"+oa_dictionaryItem.getCode_name()+"</option>");
												else
													out.println("<option value='"+oa_dictionaryItem.getCode()+"' >"+oa_dictionaryItem.getCode_name()+"</option>");
											}
										}
									%>
									</select>									</td>
								</tr>
								<tr >
									<td >所属行业:</td>
									<td >
									<select name="project_business" id="project_business">
									<%
										for(int i=0;i<oa_dictionaryXmlList.size();i++){
											Oa_dictionaryItem oa_dictionaryItem=(Oa_dictionaryItem)oa_dictionaryXmlList.get(i);
											if(oa_dictionaryItem.getNum().equals("16"))
											{
												if(ParameterUtils.getString(request,"project_business").equals(oa_dictionaryItem.getCode()))
													out.println("<option value='"+oa_dictionaryItem.getCode()+"' selected>"+oa_dictionaryItem.getCode_name()+"</option>");
												else
													out.println("<option value='"+oa_dictionaryItem.getCode()+"' >"+oa_dictionaryItem.getCode_name()+"</option>");
											}
										}
									%>
									</select>									</td>
								</tr>
								<tr >
									<td >国家:</td>
									<td ><select name="country_id" id="country_id" onChange="select_kind_contry(this);select_kind_province(document.all('province_id'))">
                                      <option value=''></option>
                                      <%
										Dictionary_countryXmlBean dictionary_countryXmlBean=new Dictionary_countryXmlBean();
										List dictionary_countryXmlList=dictionary_countryXmlBean.findXml();
										for(int i=0;i<dictionary_countryXmlList.size();i++){
											Dictionary_countryItem dictionary_countryItem=(Dictionary_countryItem)dictionary_countryXmlList.get(i);
											if(ParameterUtils.getString(request,"country_id").equals(dictionary_countryItem.getId()))
												out.println("<option value='"+dictionary_countryItem.getId()+"' selected>"+dictionary_countryItem.getCountry_cn_name()+"</option>");
											else
												out.println("<option value='"+dictionary_countryItem.getId()+"' >"+dictionary_countryItem.getCountry_cn_name()+"</option>");
										}
									%>
                                    </select>
								    省份/地区:
								    <select name="province_id" id="province_id" onChange="select_kind_province(this)">
                                      <option value=''></option>
                                      <%
										Dictionary_provinceXmlBean dictionary_provinceXmlBean=new Dictionary_provinceXmlBean();
										List dictionary_provinceXmlList=dictionary_provinceXmlBean.findXmlByCountry_id(ParameterUtils.getString(request,"country_id"));
										for(int i=0;i<dictionary_provinceXmlList.size();i++){
											Dictionary_provinceItem dictionary_provinceItem=(Dictionary_provinceItem)dictionary_provinceXmlList.get(i);
											if(ParameterUtils.getString(request,"province_id").equals(dictionary_provinceItem.getId()))
												out.println("<option value='"+dictionary_provinceItem.getId()+"' selected>"+dictionary_provinceItem.getProvince_cn_name()+"</option>");
											else
												out.println("<option value='"+dictionary_provinceItem.getId()+"' >"+dictionary_provinceItem.getProvince_cn_name()+"</option>");
										}
									%>
                                    </select>
							      城市:
							      <select name="city_id" id="city_id">
                                    <option value=''></option>
                                    <%
										Dictionary_cityXmlBean dictionary_cityXmlBean=new Dictionary_cityXmlBean();
										List dictionary_cityXmlList=dictionary_cityXmlBean.findXmlByProvince_id(ParameterUtils.getString(request,"province_id"));
										for(int i=0;i<dictionary_cityXmlList.size();i++){
											Dictionary_cityItem dictionary_cityItem=(Dictionary_cityItem)dictionary_cityXmlList.get(i);
											if(ParameterUtils.getString(request,"city_id").equals(dictionary_cityItem.getId()))
												out.println("<option value='"+dictionary_cityItem.getId()+"' selected>"+dictionary_cityItem.getCity_cn_name()+"</option>");
											else
												out.println("<option value='"+dictionary_cityItem.getId()+"' >"+dictionary_cityItem.getCity_cn_name()+"</option>");
										}
									%>
                                  </select></td>
								</tr>
								<tr >
									<td  width=100>参考网址:</td>
									<td ><textarea name="refer_website" cols="70" rows="5" id="refer_website"></textarea></td>
								</tr>
								<tr >
									<td  width=100>项目要求:</td>
									<td ><textarea name="project_introduction" cols="70" rows="10" id="project_introduction"></textarea></td>
								</tr>
								<script language='javascript'>
								function selectFile()
								{
									var url="../public/fileupload.jsp?dir_name=crm_project_info&file_name=related_doc";
									open(url,'win','scrollbars=no,width=600,height=400,resizable=no,left=200,top=100,resizable=false');
								}
								</script>
								<tr >
									<td >相关文档:</td>
									<td ><textarea name="related_doc" cols="70" rows="5" id="related_doc" readonly="readonly"></textarea> <input name="Buttonfile" type="button" class="button" onClick="selectFile()" value="上传"></td>
								</tr>
								<tr >
								  <td colspan="2" align="center">
										<input  type="button" class="button" onClick="Check()" value="确定"></td>
								</tr>
							</table>
						</td>
					</tr>
					<tr>
						<td></td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
<input type="hidden" name="status" >
<input type="hidden" name="message" >
</form>
</body>
</html>
<script language="javascript">
function select_kind_contry(obj)
{ //把产品的类别列出
	var f2Array = new Array();
	<%
		dictionary_provinceXmlList=dictionary_provinceXmlBean.findXml();
		for(int i=0; i<dictionary_countryXmlList.size(); i++)
		{
			Dictionary_countryItem dictionary_countryItem=(Dictionary_countryItem)dictionary_countryXmlList.get(i);
			out.println( "f2Array["+dictionary_countryItem.getId()+"] = new Array();");
			int j = 0;
			for(int k=0; k<dictionary_provinceXmlList.size(); k++)
			{
				Dictionary_provinceItem dictionary_provinceItem=(Dictionary_provinceItem)dictionary_provinceXmlList.get(k);
				if(dictionary_provinceItem.getCountry_id().equals(dictionary_countryItem.getId()))
				{
					out.println( "f2Array["+dictionary_countryItem.getId()+"]["+j+"] = new Option();");
					out.println( "f2Array["+dictionary_countryItem.getId()+"]["+j+"].value = "+dictionary_provinceItem.getId()+";");
					out.println( "f2Array["+dictionary_countryItem.getId()+"]["+j+"].text = '"+dictionary_provinceItem.getProvince_cn_name()+"';");
					j++;
				}
				
			}
		}
	%>
	var form = form1;
	var	 i = eval(obj.value);
	form.province_id.length = 1;
	if(obj.value=="") return;
	for(var j=0; j<f2Array[i].length; j++)
	{
		form.province_id.options[form.province_id.length] = f2Array[i][j];
	}
}
</script>
<script language="javascript">
function select_kind_province(obj)
{ //把产品的类别列出
	var f2Array = new Array();
	<%
		dictionary_cityXmlList=dictionary_cityXmlBean.findXml();
		for(int i=0; i<dictionary_provinceXmlList.size(); i++)
		{
			Dictionary_provinceItem dictionary_provinceItem=(Dictionary_provinceItem)dictionary_provinceXmlList.get(i);
			out.println( "f2Array["+dictionary_provinceItem.getId()+"] = new Array();");
			int j = 0;
			for(int k=0; k<dictionary_cityXmlList.size(); k++)
			{
				Dictionary_cityItem dictionary_cityItem=(Dictionary_cityItem)dictionary_cityXmlList.get(k);
				if(dictionary_cityItem.getProvince_id().equals(dictionary_provinceItem.getId()))
				{
					out.println( "f2Array["+dictionary_provinceItem.getId()+"]["+j+"] = new Option();");
					out.println( "f2Array["+dictionary_provinceItem.getId()+"]["+j+"].value = "+dictionary_cityItem.getId()+";");
					out.println( "f2Array["+dictionary_provinceItem.getId()+"]["+j+"].text = '"+dictionary_cityItem.getCity_cn_name()+"';");
					j++;
				}
				
			}
		}
	%>
	var form = form1;
	
	var	 i = eval(obj.value);
	form.city_id.length = 1;
	if(obj.value=="") return;
	for(var j=0; j<f2Array[i].length; j++)
	{
		form.city_id.options[form.city_id.length] = f2Array[i][j];
	}
}
</script>
<script language="javascript">
function select_kind_customer(obj)
{ //把产品的类别列出
	var f2Array = new Array();
	<%
		/*Crm_customer_contactBean crm_customer_contactBean=new Crm_customer_contactBean();
		Crm_customer_contactItem crm_customer_contactItem=new Crm_customer_contactItem();
		crm_customer_contactItem.setRegister_area_nodepath(sessionFactory.getManager_usersItem().getArea_id());
		List crm_customer_contactList=crm_customer_contactBean.find(crm_customer_contactItem);
		for(int i=0; i<crm_customer_infoList.size(); i++)
		{
			crm_customer_infoItem=(Crm_customer_infoItem)crm_customer_infoList.get(i);
			out.println( "f2Array["+crm_customer_infoItem.getId()+"] = new Array();");
			int j = 0;
			for(int k=0; k<crm_customer_contactList.size(); k++)
			{
				crm_customer_contactItem=(Crm_customer_contactItem)crm_customer_contactList.get(k);
				if(crm_customer_contactItem.getCustomer_id().equals(crm_customer_infoItem.getId()))
				{
					out.println( "f2Array["+crm_customer_infoItem.getId()+"]["+j+"] = new Option();");
					out.println( "f2Array["+crm_customer_infoItem.getId()+"]["+j+"].value = "+crm_customer_contactItem.getId()+";");
					out.println( "f2Array["+crm_customer_infoItem.getId()+"]["+j+"].text = '"+crm_customer_contactItem.getContact_name()+"';");
					j++;
				}
				
			}
		}*/
	%>
	var form = form1;
	
	var	 i = eval(obj.value);
	form.customer_contact_id.length = 1;
	if(obj.value=="") return;
	for(var j=0; j<f2Array[i].length; j++)
	{
		form.customer_contact_id.options[form.customer_contact_id.length] = f2Array[i][j];
	}
}
</script>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -