书签 分享 收藏 举报 版权申诉 / 29

类型客户关系管理系统.docx

  • 文档编号:27839020
  • 上传时间:2023-07-05
  • 格式:DOCX
  • 页数:29
  • 大小:754.61KB

密码

2.用户点击登录后,利用javascrip语言判断用户名和密码是否合法,代码如下:

functionisNumberOrLetter(s){//判断是否是数字或字母

varregu="^[0-9a-zA-Z]+$";

varre=newRegExp(regu);

if(re.test(s)){

returntrue;

}else{

alert("账号只能是字母或数字!

");

returnfalse;

}

}

3.跳转到LoginCheckServlet,获取用户名密码,利用javabean,jdbc等技术连接数据库判断用户名和密码是否正确。

代码如下

request.setCharacterEncoding("utf-8");

//获取用户名和密码

StringuserNum=request.getParameter("userNum");

StringuserPw=request.getParameter("userPw");

LoginServiceservice=newLoginServiceImpl();

UserInfouserInfo=newUserInfo();

userInfo.setUserNum(userNum);

Listlist=service.query(userInfo);

list.add(userInfo);

UserInfouserInfo2=service.getAllList(userNum);

request.getSession().setAttribute("userInfo2",userInfo2);

if(userPw.equals(list.get(0).getUserPw())){

request.getRequestDispatcher("/view/frame/main.jsp").forward(request,response);

}else{

response.sendRedirect("../login.jsp?

error=yes");

}

3.2职工信息模块

1.查看职工信息

核心代码如下:

servlet/UserQueryServlet"method="post">

  请输入查询内容:

290px"/>

  请选择查询方式:

100px">

员工姓名

部门名称

角色名称

员工学历

2修改职工信息

根据id去修改对应职工信息核心代码如下:

145px">

<%ListconditionList=(List)request.getAttribute("conditionInfo");%>

<%

for(inti=0;i

CustomerConditionInfoconditionInfo=conditionList.get(i);

%>

"

<%if(customerInfo.getConditionId()==conditionInfo.getConditionId()){%>

selected="selected"<%}%>

>

<%=conditionInfo.getConditionName()%>

<%}

%>

3.2客户信息模块

1.查询客户信息

代码如下:

servlet/CustomerQueryServlet"method="post">

<%UserInfouserInfo=(UserInfo)request.getSession().getAttribute("userInfo2");

%>

  请输入查询内容:

290px"/>

  请选择查询方式:

100px">

客户姓名

客户状态

客户来源

客户类型

所属员工

客户公司

2增加职工信息

代码如下:

<%ListsourceList=(List)request.getAttribute("sourceInfo");%>

<%for(inti=0;i

CustomerSourceInfosourceInfo=sourceList.get(i);

%>

"><%=sourceInfo.getSourceName()%>

<%}%>

3.修改职工信息

代码如下:

//获取客户信息

intcustomerId=Integer.parseInt(request.getParameter("customerId"));

CustomerServiceservice=newCustomerServiceImpl();

CustomerInfocustomerInfo=service.getAllList(customerId);

request.setAt

配套讲稿:

如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。

特殊限制:

部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。

关 键  词:
客户关系 管理 系统
提示  冰豆网所有资源均是用户自行上传分享,仅供网友学习交流,未经上传用户书面授权,请勿作他用。
关于本文
本文标题:客户关系管理系统.docx
链接地址:https://www.bdocx.com/doc/27839020.html
关于我们 - 网站声明 - 网站地图 - 资源地图 - 友情链接 - 网站客服 - 联系我们

copyright@ 2008-2022 冰点文档网站版权所有

经营许可证编号:鄂ICP备2022015515号-1

收起
展开