finacial_projectedit.jsp

来自「java开发的办公系统 1.系统管理 (地区管理,部门管理,菜单管理,用户管理」· JSP 代码 · 共 385 行 · 第 1/2 页

JSP
385
字号
<%@ include file="../../include/configuration.jsp"%><%@ include file="../../include/authorizemanager.jsp"%><%@ page import="com.vere.finacial.bean.*"%><%@ page import="com.vere.finacial.item.*"%><%@ page contentType="text/html; charset=gb2312" %><%	SessionFactory sessionFactory=(SessionFactory)session.getAttribute("sessionFactory");	String message="";	ParameterUtils.setCharacterEncoding(request);	String status=ParameterUtils.getString(request,"status");	//修改	if(status.equals("edit"))	{		String id=ParameterUtils.getString(request,"id");//		String crm_project_info_id=ParameterUtils.getString(request,"crm_project_info_id");//		String crm_customer_name=ParameterUtils.getString(request,"crm_customer_name");//客户名称		String crm_project_name=ParameterUtils.getString(request,"crm_project_name");//项目名称		String crm_customer_id=ParameterUtils.getString(request,"crm_customer_id");//		String crm_customer_contact_id=ParameterUtils.getString(request,"crm_customer_contact_id");//		String crm_customer_contact_name=ParameterUtils.getString(request,"crm_customer_contact_name");//客户联系人姓名		String project_price=ParameterUtils.getString(request,"project_price");//合同金额		String real_price=ParameterUtils.getString(request,"real_price");//实收款		String duty=ParameterUtils.getString(request,"duty");//几期付款		String checkout_method=ParameterUtils.getString(request,"checkout_method");//收款方式		String sign_date=ParameterUtils.getString(request,"sign_date");//签订日期		String end_date=ParameterUtils.getString(request,"end_date");//项目结束日期		String project_manager=ParameterUtils.getString(request,"project_manager");//项目经理		String memo=ParameterUtils.getString(request,"memo");//备注		String register_date=DateUtils.getDateTime();//登记日期		String register_username=sessionFactory.getManager_usersItem().getUsername();//登记用户		String register_name=sessionFactory.getManager_usersItem().getName();//登记人		String register_department_id=sessionFactory.getManager_usersItem().getDepartment_id();//登记部门编号		String register_department_nodepath=sessionFactory.getManager_usersItem().getDepartment_nodepath();//登记部门路径		String register_department=sessionFactory.getManager_usersItem().getManager_departmentItem().getName();//登记部门		String register_area_id=sessionFactory.getManager_usersItem().getArea_id();//登记地区编号		String register_area_nodepath=sessionFactory.getManager_usersItem().getArea_nodepath();//登记地区路径		String register_area=sessionFactory.getManager_usersItem().getManager_areaItem().getName();//登记地区		String send_people=sessionFactory.getManager_usersItem().getName();//发送人		String send_department=sessionFactory.getManager_usersItem().getManager_departmentItem().getName();//发送部门		String send_area=sessionFactory.getManager_usersItem().getManager_areaItem().getName();//发送地区		String send_date=DateUtils.getDateTime();//发送日期		String workflow_id=ParameterUtils.getString(request,"workflow_id");//流程		String workflow_state_id=ParameterUtils.getString(request,"workflow_state_id");//流程状态编号		String workflow_state_name=ParameterUtils.getString(request,"workflow_state_name");//流程状态		String approval_type=ParameterUtils.getString(request,"approval_type");//审批类型		String appraisal_method=ParameterUtils.getString(request,"appraisal_method");//评审方式		String approval_user=ParameterUtils.getString(request,"approval_user");//审批用户		String approval_name=ParameterUtils.getString(request,"approval_name");//审批人		String approval_departmentid=ParameterUtils.getString(request,"approval_departmentid");//审批部门编号		String approval_department=ParameterUtils.getString(request,"approval_department");//审批部门		String receive_user=ParameterUtils.getString(request,"receive_user");//接收用户		String receive_name=ParameterUtils.getString(request,"receive_name");//接收人		String func_id=ParameterUtils.getString(request,"func_id");//功能编号		String state_type=ParameterUtils.getString(request,"state_type");//流程状态		if(project_price==null||!Check.isFloat(project_price)){			out.print("project_price 合同金额必须为浮点数字");			return;		}		if(real_price==null||!Check.isFloat(real_price)){			out.print("real_price 实收款必须为浮点数字");			return;		}		if(duty==null||!Check.isIntegerPlus(duty)){			out.print("duty 几期付款必须为整型数字");			return;		}		Finacial_projectItem item=new Finacial_projectItem();		item.setId(id);		item.setCrm_project_info_id(crm_project_info_id);		item.setCrm_customer_name(crm_customer_name);		item.setCrm_project_name(crm_project_name);		item.setCrm_customer_id(crm_customer_id);		item.setCrm_customer_contact_id(crm_customer_contact_id);		item.setCrm_customer_contact_name(crm_customer_contact_name);		item.setProject_price(project_price);		item.setReal_price(real_price);		item.setDuty(duty);		item.setCheckout_method(checkout_method);		item.setSign_date(sign_date);		item.setEnd_date(end_date);		item.setProject_manager(project_manager);		item.setMemo(memo);		item.setRegister_date(register_date);		item.setRegister_username(register_username);		item.setRegister_name(register_name);		item.setRegister_department_id(register_department_id);		item.setRegister_department_nodepath(register_department_nodepath);		item.setRegister_department(register_department);		item.setRegister_area_id(register_area_id);		item.setRegister_area_nodepath(register_area_nodepath);		item.setRegister_area(register_area);		item.setSend_people(send_people);		item.setSend_department(send_department);		item.setSend_area(send_area);		item.setSend_date(send_date);		item.setWorkflow_id(workflow_id);		item.setWorkflow_state_id(workflow_state_id);		item.setWorkflow_state_name(workflow_state_name);		item.setApproval_type(approval_type);		item.setAppraisal_method(appraisal_method);		item.setApproval_user(approval_user);		item.setApproval_name(approval_name);		item.setApproval_departmentid(approval_departmentid);		item.setApproval_department(approval_department);		item.setReceive_user(receive_user);		item.setReceive_name(receive_name);		item.setFunc_id(func_id);		item.setState_type(state_type);		Finacial_projectBean bean=new Finacial_projectBean();		boolean b=bean.updateItem(item);        if(b){          message="1";        }	}		String id=ParameterUtils.getString(request,"id");		Finacial_projectBean bean=new Finacial_projectBean();		Finacial_projectItem item=bean.find(id);		Oa_dictionaryXmlBean oa_dictionaryXmlBean=new Oa_dictionaryXmlBean();		List oa_dictionaryXmlList=oa_dictionaryXmlBean.findXmlByArray("28");%><html><head><title><%=titleName%></title><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><link href="../../css/css.css" rel="stylesheet" type="text/css"><script language="javascript" src="../../js/check.js"></script><link href="../../css/date.css" rel="stylesheet" type="text/css"><script src="../../js/ShowDate.js"></script><script language="javascript">    init();</script></head><script language="javascript">	function back()	{		location="finacial_project.jsp";	}	function Check()	{		var form=form1;		if(!isFloat(form.project_price.value))		{			alert("合同金额必须为浮点数字!");			form.project_price.focus();			return;		}		if(!isFloat(form.real_price.value))		{			alert("实收款必须为浮点数字!");			form.real_price.focus();			return;		}		if(!isIntegerPlus(form.duty.value))		{			alert("几期付款必须为整型数字!");			form.duty.focus();			return;		}		form.status.value="edit";		form.submit();	}</script><body><form action=""  method="post"  name="form1">	<table class="firsttable">		<tr>			<td align="center" valign="top">				<table class="centertable">					<tr>						<td></td>					</tr>					<tr>						<td align="center" class="addborder">							<table  class="addTable">								<tr align="center" >									<td colspan="2">                  					<font  class="message">										<%											if(message.equals("1"))											{												out.println("修改成功:继续");											}										%>										</font>									</td>								</tr>								<tr >									<td >:</td>									<td ><input name="crm_project_info_id" type="text" id="crm_project_info_id" value="<%=item.getCrm_project_info_id()%>"></td>								</tr>								<tr >									<td >客户名称:</td>

⌨️ 快捷键说明

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