文件名称:j123
- 所属分类:
- JSP源码/Java
- 资源属性:
- [Java] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 1kb
- 下载次数:
- 0次
- 提 供 者:
- 樊*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
一、责任链模式
现有 “战士”、“班长”、“排长”、“连长”,“营长”五种角色,当有人要请假时要进行以下处理
1.只能是下级象上级请假(如“排长”只能向“连长请假”)
2.班长可以批准1天内的假期,排长批5天,连长批10天,营长批20天,20以上不准假
请用责任链模式处理以下情况,输出具体的批准过程:
1.战士请12天假
2.排长请3天假
-First, the existing chain of responsibility pattern of " fighters" , " squad leader" , " platoon" , " company commander" , " battalion commander" five roles, when it was time to leave to carry out the following 1. Can only be lower, as higher levels leave (such as " platoon leader," only to " leave the company commander" ) 2. The squad leader can be approved within 1 day of the holiday, five days a platoon leader of the grant, the company commander approved 10 days, battalion commander approved 20 days, more than 20 are not allowed to leave, please chain model to deal with the responsibility of the following circumstances, the output of specific approval process: 1. soldiers requested 12 days leave 2. 3 days, please leave a platoon leader
现有 “战士”、“班长”、“排长”、“连长”,“营长”五种角色,当有人要请假时要进行以下处理
1.只能是下级象上级请假(如“排长”只能向“连长请假”)
2.班长可以批准1天内的假期,排长批5天,连长批10天,营长批20天,20以上不准假
请用责任链模式处理以下情况,输出具体的批准过程:
1.战士请12天假
2.排长请3天假
-First, the existing chain of responsibility pattern of " fighters" , " squad leader" , " platoon" , " company commander" , " battalion commander" five roles, when it was time to leave to carry out the following 1. Can only be lower, as higher levels leave (such as " platoon leader," only to " leave the company commander" ) 2. The squad leader can be approved within 1 day of the holiday, five days a platoon leader of the grant, the company commander approved 10 days, battalion commander approved 20 days, more than 20 are not allowed to leave, please chain model to deal with the responsibility of the following circumstances, the output of specific approval process: 1. soldiers requested 12 days leave 2. 3 days, please leave a platoon leader
相关搜索: 请假
(系统自动生成,下载前可以参看下载内容)
下载文件列表
j123.java