<% if (Request["action"].ToString() != "add")

   <% if (Request["action"].ToString() != "add")
                   {%>
                <tr>
                    <th bgcolor="#FFFFFF" class="r_bg" style="width: 167px">
                        状态:
                    </th>
                    <td colspan="3" bgcolor="#FFFFFF" class="right_bg" style="width: 297px">
                        <asp:DropDownList ID="ddlStatus" runat="server" Width="125px" CssClass="input1">
                            <asp:ListItem Selected="True" Value="在职">在职</asp:ListItem>
                            <asp:ListItem Value="离职:开除">离职:开除</asp:ListItem>
                            <asp:ListItem Value="离职:自愿">离职:自愿</asp:ListItem>
                        </asp:DropDownList><label style="color: Red">添加新员工,默认在职!</label></td>
                </tr>
                <tr>
                    <th bgcolor="#FFFFFF" class="r_bg" style="width: 167px; height: 100px;">
                        离职原因:
                    </th>
                    <td colspan="13" bgcolor="#FFFFFF" class="right_bg" style="height: 100px">
                        <asp:TextBox ID="txtStatusRemark" runat="server" CssClass="input1" Width="368px"
                            Height="100px" TextMode="MultiLine" Rows="5"></asp:TextBox><label style="color: Red">添加新员工,不可修改!</label></td>
                </tr>
                <tr>
                    <th bgcolor="#FFFFFF" class="r_bg" style="width: 167px; height: 24px;">
                        离职时间:
                    </th>
                    <td colspan="13" bgcolor="#FFFFFF" class="right_bg" style="height: 24px">
                        <asp:TextBox ID="txtStatusDate" runat="server" CssClass="input1" Width="368px" οnclick="SelectDate(this.name)"></asp:TextBox><label
                            style="color: Red">添加新员工,不可修改!</label></td>
                </tr>
                <%}
                %>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
使用中文解释ssm管理系统文件中util文件里PageHelper类解释以下代码package com.util; import java.util.ArrayList; import java.util.List; import javax.servlet.http.HttpServletRequest; public class PageHelper { public static void getPage(List<?> list, String name, List<String> nameList, List<String> valueList, int pageSize, String number, HttpServletRequest request, String method) { StringBuffer buffer = new StringBuffer(); String name2 = name.substring(0, 1).toUpperCase() + name.substring(1); String path = ""; String action = "getAll" + name2 + ".action"; if (method != null) { action = "query" + name2 + "ByCond.action"; } List<Object> objList = new ArrayList<Object>(); if (nameList != null && valueList != null) { for (int i = 0; i < nameList.size(); i++) { path += "&" + nameList.get(i) + "=" + valueList.get(i); } } int pageNumber = list.size(); int maxPage = pageNumber; if (maxPage % pageSize == 0) { maxPage = maxPage / pageSize; } else { maxPage = maxPage / pageSize + 1; } if (number == null) { number = "0"; } int start = Integer.parseInt(number) * pageSize; int over = (Integer.parseInt(number) + 1) * pageSize; int count = pageNumber - over; if (count <= 0) { over = pageNumber; } for (int i = start; i < over; i++) { Object obj = list.get(i); objList.add(obj); } buffer.append(" 共为"); buffer.append(maxPage); buffer.append("页 共有"); buffer.append(pageNumber); buffer.append("条 当前为第"); buffer.append((Integer.parseInt(number) + 1)); buffer.append("页 "); if ((Integer.parseInt(number) + 1) == 1) { buffer.append("首页"); } else { buffer.append("<a href="" + name + "/" + action + "?number=0" + path + "">首页</a>"); } buffer.append(" "); if ((Integer.parseInt(number) + 1) == 1) { buffer.append("上一页"); } else { buffer.append("<a href="" + name + "/" + action + "?number=" + (Integer.parseInt(number) - 1) + "" + path + "">上一页</a>"); } buffer.append(" "); if (maxPage <= (Integer.parseInt(number) + 1)) { buffer.append("下一页"); } else { buffer.append("<a href="" + name + "/" + action + "?number=" + (Integer.parseInt(number) + 1) + "" + path + "">下一页</a>"); } buffer.append(" "); if (maxPage <= (Integer.parseInt(number) + 1)) { buffer.append("尾页"); } else { buffer.append("<a href="" + name + "/" + action + "?number=" + (maxPage - 1) + "" + path + "">尾页</a>"); } String html = buffer.toString(); request.setAttribute("html", html); request.setAttribute(name + "List", objList); }
最新发布
05-05
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值