📄 costenteradd.jsp
字号:
if (document.form1.charge_sum.value=="") {
alert("请输入费用金额!");
document.form1.charge_sum.focus();
return false;
}
if ((document.form1.charge_type.value=="qt")) {
if(document.form1.charge_name.value=="") {
alert("输入其他费用时请填入费用名称!");
document.form1.charge_name.focus();
return false;
}}
charge_sum = document.form1.charge_sum.value;
if (!checkNumber(charge_sum)) {
document.form1.charge_sum.value = "";
document.form1.charge_sum.focus();
return false;
}
return true;
}
function getReason() {
document.form1.case_reason.selectedIndex = document.form1.case_id.selectedIndex;
}
function getID() {
document.form1.case_id.selectedIndex = document.form1.case_reason.selectedIndex;
}
</script>
<!--显示工具条-->
<table width="98%" align="center" cellspacing="1">
<tr>
<td width="90%"><a href="CostEnter.jsp"><img src="../images/all.gif" height="22" border="0" width="88"></a><a href="CostEnterAdd.jsp"><img src="../images/add.gif" alt="增加内容" width="79" height="22" border="0" ></a><img src="../images/delete.gif" alt="删除选中的内容" onClick="return Del();" style="cursor:hand" width="79" height="22"><a href="CostEnterSearch.jsp"><img src="../images/query.gif" alt="查询内容" width="79" height="22" border="0"></a></td>
<td width="10%" align="right"><img src="../images/back.gif" width="50" height="22" onClick="window.history.back()" style="cursor:hand"></td>
</tr>
</table>
<table width="98%" background="../images/line.gif" border="0" cellspacing="0" cellpadding="0" height="12" align="center">
<tr>
<td> </td>
</tr>
</table>
<!--显示工具条结束-->
<form name="form1" method="post" action="CostEnterAdd.jsp">
<table width="98%" align="center" border="0" cellspacing="1" cellpadding="5" class="table_bg">
<tr>
<td width="152" align="right" class="title_bg"> 费用编码: </td>
<td width="197" class="tr_bg1">
<input type="text" name="charge_id" class="input" size="15" value=<%=fid%> readOnly>
<font color="#FF0000">* </font></td>
<td width="150" align="right" class="title_bg"> 费用金额[元]: </td>
<td width="245" class="tr_bg1">
<input type="text" name="charge_sum" class="input" size="15">
<font color="#FF0000">* </font></td>
</tr>
<tr>
<td align="right" width="152" class="title_bg">费用名称:</td>
<td width="197" class="tr_bg1">
<input type="text" name="charge_name" class="input" size="15">
</td>
<td align="right" width="150" class="title_bg">费用类型:</td>
<td width=245 class="tr_bg1">
<select name="charge_type" class="select">
<option value="ht">合同费用</option>
<option value="qt">其他费用</option>
<option value="">___________</option>
</select>
</td>
</tr>
<tr>
<td align="right" width="152" class="title_bg">案件编码:</td>
<td width="197" class="tr_bg1">
<select name="case_id" class="select" onChange="getReason();" >
<option value=""> </option>
<%
String case_id, case_reason;
rs = db.executeQuery("select case_id from t_caseinfo order by case_id");
while (rs.next()) {
case_id = rs.getString("case_id");
%>
<option value=<%=case_id%>><%=case_id%></option>
<%}%>
<option value=""> ___________</option>
</select>
</td>
<td align="right" width="150" class="title_bg">承办律师:</td>
<td width=245 class="tr_bg1">
<select name="employee_id" class="select">
<option value=""> </option>
<%
rs = db.executeQuery("select employee_id, employee_name from t_employee where (duty like '%律师' or duty='主任' or duty='合伙人') and active='1'");
while (rs.next()) {
%>
<option value=<%=rs.getString("employee_id")%>><%=rs.getString("employee_name")%></option>
<%}%>
<option value="">___________ </option>
</select>
</td>
</tr>
<tr>
<td align="right" width="150" class="title_bg">案由:</td>
<td class="tr_bg1" colspan="3">
<select name="case_reason" class="select" onChange="getID();">
<option value=""> </option>
<%rs = db.executeQuery("select case_reason from t_caseinfo order by case_id");
while (rs.next()) {
case_reason = rs.getString("case_reason");
%>
<option value=<%=case_reason%>><%=case_reason%></option>
<%}%>
<option value=""> _________________________________________</option>
</select>
</td>
</tr>
<tr>
<td align=right width=152 class="title_bg"> 收费人: </td>
<td width=197 class="tr_bg1">
<select name="charge_person" class="select">
<option value=""></option>
<%
rs = db.executeQuery("select employee_id, employee_name from t_employee");
while (rs.next()) {
%>
<option value=<%=rs.getString("employee_id")%>><%=rs.getString("employee_name")%></option>
<%}%>
<option value="">___________</option>
</select>
</td>
<td align="right" width="150" class="title_bg"> 标的额[元]:</td>
<td width=245 class="tr_bg1">
<input type="text" name="case_object" class="input" size="15">
</td>
</tr>
<tr>
<td align=right width=152 class="title_bg"> 支付期限: </td>
<td width=197 class="tr_bg1">
<input type="text" name="time_limit" maxlength="10" size="10" value="" class="input" readOnly>
<img src="../images/datetime.gif" border="0" align="absmiddle"
alt="弹出日历下拉菜单" onClick="fPopUpCalendarDlg(time_limit);return false" width="16" height="16">
</td>
<td align="right" width="150" class="title_bg"> 支付方式: </td>
<td width=245 class="tr_bg1">
<select name="payment_method" class="select">
<option value="xj">现金</option>
<option value="zz">转账</option>
</select>
</td>
</tr>
<tr>
<td align=right width=152 class="title_bg"> 收费日期: </td>
<td width=197 class="tr_bg1">
<input type="text" name="receive_time" maxlength="10" size="10" value="" class="input" readOnly>
<img src="../images/datetime.gif" border="0" align="absmiddle"
alt="弹出日历下拉菜单" onClick="fPopUpCalendarDlg(receive_time);return false" width="16" height="16">
</td>
<td align=right width=150 class="title_bg"> 收费标准: </td>
<td width=245 class="tr_bg1" >
<input type="text" name="charge_standard" class="input">
</td>
</tr>
<tr>
<td align=right width=152 class="title_bg"> 折扣比例: </td>
<td width=197 class="tr_bg1">
<input type="text" name="discount" class="input" size="6"> %
</td>
<td align=right width=150 class="title_bg"> 折扣审批人: </td>
<td width=245 class="tr_bg1" >
<select name="discount_person" class="select">
<option value=""></option>
<%
rs = db.executeQuery("select employee_id, employee_name from t_employee");
while (rs.next()) {
%>
<option value=<%=rs.getString("employee_id")%>><%=rs.getString("employee_name")%></option>
<%}%>
</select>
</td>
</tr>
<tr>
<td align="right" width="152" class="title_bg"> 律师分配比例:</td>
<td width="197" class="tr_bg1">
<input type="text" name="part_proportion" class="input" size="6"> %
</td>
<td align=right width=150 class="title_bg"> 币种: </td>
<td width=245 class="tr_bg1" >
<select name="currency_kind" class="select">
<option value="rmb">人民币</option>
<option value="hk">港币</option>
<option value="dollar">美金</option>
</select>
</td>
</tr>
<tr>
<td align=right width=152 class="title_bg"> 备注:</td>
<td class="tr_bg1" width="592" colspan="3">
<textarea name="comment" cols="73" wrap="VIRTUAL" rows="2" class="input"></textarea>
</td>
</tr>
</table>
<br>
<div align="center">
<input type="submit" value="保存" name="save" class="button" onClick="return checkForm();">
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -