python界面实现点餐系统_餐厅点餐系统详细设计与系统实现

  • Post author:
  • Post category:python


餐厅点餐系统详细设计与系统实现

一.主要业务逻辑设计

1.登陆操作

package com.ibooking.action;

import com.ibooking.action.base.*;

import com.ibooking.util.*;

import com.opensymphony.xwork2.ActionContext;

public class LoginProcessAction extends BaseAction {

/**

*

*/

private static final long serialVersionUID = 1L;

private String userName;

private String userPasswd;

@Override

public String execute() {

ActionContext ctx = ActionContext.getContext();

if (daoService.validatePasswd(userName, userPasswd)) {

String userAuth = daoService.getUserAuthByName(userName);

//save the user info

ctx.getSession().put(WebConstant.LOGIN_USER, userName);

ctx.getSession().put(WebConstant.LOGIN_AUTH, userAuth);

fillTitle();

return fillIndexPage();

}else {