作业一:
将xxjjT01增加窗体及按钮(增、修、删)
表单(form1.html)
设定按钮作业,授权
1.新增:XXJJT01+CREATE
2.修改:XXJJT01+UPDATE
3.删除:XXJJT01+DELETE
若未授权,按钮设为disabled。
<%@ page contentType="text/html;charset=UTF-8" %> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <%! public static final String _AppId="XXJJ031363";%> <%@ include file="../../jsp/dzjjMainHeader.jsp" %> <!-- 将xxjjT01增加窗体及按钮(增、修、删) 表单(form1.html) 设定按钮作业,授权 1.新增:XXJJT01+CREATE 2.修改:XXJJT01+UPDATE 3.删除:XXJJT01+DELETE 若未授权,按钮设为disabled。 String authorityId="XXJJT01"; --> <% String authorityId="XXJJ031363"; dsjcagc dsa=new dsjcagc(_dsCom); boolean isCreate=dsa.check(_dsCom, authorityId, "CREATE", _dsCom.user.ID); boolean isUpdate=dsa.check(_dsCom, authorityId, "UPDATE", _dsCom.user.ID); boolean isDelete=dsa.check(_dsCom, authorityId, "DELETE", _dsCom.user.ID); %> <link rel="stylesheet" href="/erp/html/dzwcss.css"> <!-- 疑问一: id class 后面''和"" 疑问二:td class='subsys-title' 疑问三:tr class='light-bg-left' --> <form name="form1" id="form1"> <table width="100%"> <tr> <td class="function-bar">功能</td> <td> <input type='button' name=btnN value='新增' <%=isCreate?"":"disabled" %>> <input type="button" name="btnR" value="修改"<%=isUpdate?"":"disabled" %>> <input type="button" name="btnD" value="删除"<%=isUpdate?"":"disabled" %>> </td> <td class="subsy-title">讯息</td> <td class="msg" id="msg">Welcome...</td> </tr> </table> <table id="tab1" width="100%"> <tr class='light-bg-left'> <td class='subsys-title'>厂商代码</td> <td><input type='text' name='vendorId' size="20"></td> <td class='subsys-title'>厂商名称</td> <td><input type='text' name='vendor' size="20"></td> </tr> <tr class="light-bg-left"> <td class="subsys-title">厂商电话</td> <td><input type='text' name='phone' size='20'></td> <td class="subsys-title">地址</td> <td><input type='text' name='address' size='100'></td> </tr> <tr class='light-bg-left'> <td class='subsys-title'>备注</td> <td colspan='3'> <textarea name='memo' rows='4' cols='60'></textarea> </td> </tr> <tr class='light-bg-left'> <td class='subsys-title'>最后更新人员</td> <td><input type='text' name='updateUser' size='20'></td> <td class='subsys-title'>最后更新时间</td> <td><input type="text" name ="updateTime" size="20"></td> </tr> </table> </form> <%@ include file="../../jsp/dzjjMainFooter.jsp" %>