JAVA客户资源管理系统 第9页
系统主要程序:
下面为系统的struts-config.xml配置文件代码:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "
http://struts.apache.org/dtds/struts-config_1_2.dtd">
<struts-config>
<data-sources />
<form-beans >
<form-bean name="loginForm" type="com.lqm.struts.form.LoginForm" />
<form-bean name="clientForm" type="com.lqm.struts.form.ClientForm" />
<form-bean name="productsForm" type="com.lqm.struts.form.ProductsForm" />
<form-bean name="contractForm" type="com.lqm.struts.form.ContractForm" />
</form-beans>
<global-exceptions />
<global-forwards />
<action-mappings >
<action
attribute="loginForm"
input="/login.jsp"
name="loginForm"
parameter="method"
path="/login"
scope="request"
type="org.springframework.web.struts.DelegatingActionProxy">
<forward name="loginSuccess" path="/index.html" />
<forward name="loginFail" path="/login.jsp" />
<forward name="addSuccess" path="/jsp/SystemManage/addManagerSucc.jsp"/>
<forward name="addUserFail" path="/jsp/SystemManage/addUserFail.jsp"/>
<forward name="selectSystemUser" path="/jsp/SystemManage/selecManager.jsp" />
<forward name="deletUserSuccess" path="/jsp/SystemManage/deleteUserSuccess.jsp"/>
<forward name="toUpdateUser" path="/jsp/SystemManage/updateManager.jsp"/>
<forward name="updateUserSuccess" path="/jsp/SystemManage/updateUserSuccess.jsp"/>
<forward name="selectSystemUserFail" path="/jsp/SystemManage/selectUserFail.jsp"/>
<forward name="addRoleFail" path="/jsp/SystemManage/addRoleFail.jsp"/>
<forward name="addRoleSuccess" path="/jsp/SystemManage/addRoleSuccess.jsp"/>
<forward name="selectAllRole" path="/jsp/SystemManage/selectRole.jsp"/>
<forward name="deleteRoleFail" path="/jsp/SystemManage/deleteRoleFail.jsp"/>
<forward name="deleteRoleSuccess" path="/jsp/SystemManage/deleteRoleSuccess.jsp"/>
<forward name="addDeptSucc" path="/jsp/SystemManage/selectDept.jsp" />
<forward name="addDeptFail" path="/jsp/SystemManage/addDeptFail.html" />
<forward name="addManager" path="/jsp/SystemManage/addManager.jsp" />
<forward name="deleteDeptFail" path="/jsp/SystemManage/deleteDeptFail.jsp" />
<forward name="deleteDeptSuccess" path="/jsp/SystemManage/deleteDeptSuccess.jsp" />
<forward name="toUpdateDept" path="/jsp/SystemManage/updateDept.jsp" />
<forward name="updateDeptFail" path="/jsp/SystemManage/updateDeptFail.jsp" />
<forward name="updateDeptSuccess" path="/jsp/SystemManage/updateDeptSuccess.jsp" />
<forward name="toUpdatePwd" path="/jsp/SystemManage/updatePwd.jsp"/>
<forward name="updatePwdFail" path="/jsp/SystemManage/updatePwdFail.jsp"/>
<forward name="updatePwdSuccess" path="/jsp/SystemManage/updatePwdSuccess.jsp"/>
</action>
<action
attribute="clientForm"
name="clientForm"
parameter="method"
path="/client"
scope="request"
type="org.springframework.web.struts.DelegatingActionProxy">
<forward name="saveGradFail" path="/jsp/ClientManage/addRateFail.jsp" />
<forward name="selectAllGrad" path="/jsp/ClientManage/selectRate.jsp" />
<forward name="toUpdateGrad" path="/jsp/ClientManage/updateRate.jsp" />
<forward name="addClient" path="/jsp/ClientManage/addMessage.jsp" />
<forward name="deleteGradFail" path="/jsp/ClientManage/deleteGradFail.jsp" />
<forward name="deleteGradSuccess" path="/jsp/ClientManage/deleteGradSuccess.jsp" />
<forward name="selectAllClient" path="/jsp/ClientManage/basicMessage.jsp" />
<forward name="selectClient" path="/jsp/ClientManage/basicMessage.jsp" />
<forward name="particularMessage" path="/jsp/ClientManage/particularMessage.jsp" />
<forward name="updateClient" path="/jsp/ClientManage/updateMessage.jsp" />
<forward name="slectClientFail" path="/jsp/ClientManage/selectClientFail.jsp" />
<forward name="deleteClientSuccess" path="/jsp/ClientManage/deleteClientSuccess.jsp" />
</action>
<action
attribute="productsForm"
name="productsForm"
parameter="method"
path="/products"
scope="request"
type="org.springframework.web.struts.DelegatingActionProxy" >
<forward name="selectAllType" path="/jsp/WareManage/selectType.jsp"/>
<forward name="toAddType" path="/jsp/WareManage/addType.jsp"/>
<forward name="addTypeSuccess" path="/jsp/WareManage/addTypeSuccess.jsp"/>
<forward name="toUpdateType" path="/jsp/WareManage/updateType.jsp"/>
<forward name="updateTypeSuccess" path="/jsp/WareManage/updateTypeSuccess.jsp"/>
<forward name="updateTypeFail" path="/jsp/WareManage/updateTypeFail.jsp"/>
<forward name="fuzzyFindFail" path="/jsp/WareManage/selectProductFail.jsp"/>
<forward name="toUpdateProduct" path="/jsp/WareManage/updateProducts.jsp"/>
<forward name="updateProductSuccess" path="/jsp/WareManage/updateProductSuccess.jsp"/>
<forward name="toAddProduction" path="/jsp/WareManage/addProduction.jsp"/>
<forward name="selectAllProduction" path="/jsp/WareManage/selectProduction.jsp"/>
<forward name="deleteProductSuccess" path="/jsp/WareManage/deleteProductSuccess.jsp"/>
</action>
<action
attribute="contractForm"
name="contractForm"
parameter="method"
path="/contract"
scope="request"
type="org.springframework.web.struts.DelegatingActionProxy" >
<forward name="selectAllContract" path="/jsp/Contract/selectBaseContract.jsp" />
<forward name="toAllContract" path="/jsp/Contract/selectAllContract.jsp"></forward>
</action>
</action-mappings>
<message-resources parameter="com.lqm.struts.ApplicationResources" />
<plug-in className="org.springframework.web.struts.ContextLoaderPlugIn">
<set-property property="contextConfigLocation"
value="/WEB-INF/applicationContext-*.xml,classpath*:applicationContext-*.xml" />
</plug-in>
</struts-config>
下面为客户信息表的映射配置文件:Clientmessage.hbm.xml
<hibernate-mapping>
<class name="com.lqm.po.Clientmessage" table="clientmessage" catalog="crm">
<id name="clientId" type="java.lang.Integer">
<column name="client_id" />
<generator class="increment" />
</id>
<many-to-one name="clientgrad" class="com.lqm.po.Clientgrad" fetch="select">
<column name="rade_id" />
</many-to-one>
<property name="name" type="java.lang.String">
<column name="name" length="15" not-null="true" />
</property>
<property name="sex" type="java.lang.String">
<column name="sex" length="4" />
</property>
<property name="email" type="java.lang.String">
<column name="email" length="30" />
</property>
<property name="telephone" type="java.lang.String">
<column name="telephone" length="15" />
</property>
<property name="address" type="java.lang.String">
<column name="address" length="200" />
上一页 [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] 下一页
JAVA客户资源管理系统 第9页下载如图片无法显示或论文不完整,请联系qq752018766