大家好,欢迎来到IT知识分享网。<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.0 Transitional//EN”>
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME=”Generator” CONTENT=”EditPlus”>
<META NAME=”Author” CONTENT=””>
<META NAME=”Keywords” CONTENT=””>
<META NAME=”Description” CONTENT=””>
</HEAD>
<script>
function init()
{
all_real();
}
function all_real()
{
var basePay = document.all(“hrSalary.basePay”).value;
var textfield2 = document.all(“textfield2”).value;
var textfield3 = document.all(“textfield3”).value;
var textfield100 = document.all(“textfield100”).value;
var textfield4 = document.all(“textfield4”).value;
var textfield5 = document.all(“textfield5”).value;
document.all(“textfield9”).value = all_earning(basePay,textfield2,textfield3,textfield100);
document.all(“textfield10”).value = all_pay(textfield4,textfield5);
document.all(“textfield11”).value = all_sub(document.all(“textfield9”).value,document.all(“textfield10”).value)
}
function all_earning(arg1,arg2,arg3,arg4)
{
var r1,r2,r3,r4,m;
try{r1=arg1.toString().split(“.”)[1].length}catch(e){r1=0}
try{r2=arg2.toString().split(“.”)[1].length}catch(e){r2=0}
try{r3=arg3.toString().split(“.”)[1].length}catch(e){r3=0}
try{r4=arg4.toString().split(“.”)[1].length}catch(e){r4=0}
m=Math.pow(10,Math.max(r1,r2,r3,r4))
return (arg1*m+arg2*m+arg3*m+arg4*m)/m
}
function all_pay(arg1,arg2)
{
var r1,r2,m;
try{r1=arg1.toString().split(“.”)[1].length}catch(e){r1=0}
try{r2=arg2.toString().split(“.”)[1].length}catch(e){r2=0}
m=Math.pow(10,Math.max(r1,r2))
return (arg1*m+arg2*m)/m
}
function all_sub(arg1,arg2)
{
var r1,r2,m;
try{r1=arg1.toString().split(“.”)[1].length}catch(e){r1=0}
try{r2=arg2.toString().split(“.”)[1].length}catch(e){r2=0}
m=Math.pow(10,Math.max(r1,r2))
return (arg1*m-arg2*m)/m
}
</script>
<BODY οnlοad=”init()”>
<table width=”98%” border=”0″ align=”center” cellpadding=”0″ cellspacing=”0″ class=”transparence”>
<td class=”GridShowList”>
基本工资
</td>
<td class=”GridWriterList”>
<input name=”hrSalary.basePay” value=”1000″ type=”text” size=”20″ onpropertychange=”all_real()”>
</td>
<td class=”GridShowList”>
岗位工资
</td>
<td class=”GridWriterList”>
<input name=”textfield2″ value=”1100″ type=”text” size=”20″ onpropertychange=”all_real()”>
</td>
</tr>
<tr>
<td class=”GridShowList”>
绩效工资
</td>
<td class=”GridWriterList”>
<input name=”textfield3″ value=”1200″ type=”text” size=”20″ onpropertychange=”all_real()”>
</td>
<td class=”GridShowList”>
加班
</td>
<td class=”GridWriterList”>
<input name=”textfield100″ value=”1300″ type=”text” size=”20″ onpropertychange=”all_real()”>
</td>
</tr>
</table>
———————————————————————————————————————————-
<table width=”98%” border=”0″ align=”center” cellpadding=”0″ cellspacing=”0″ class=”transparence”>
<tr>
<td class=”GridShowList”>
税金
</td>
<td class=”GridWriterList”>
<input name=”textfield4″ value=”100″ type=”text” size=”20″ onpropertychange=”all_real()”>
</td>
<td class=”GridShowList”>
养老保险
</td>
<td class=”GridWriterList”>
<input name=”textfield5″ value=”200″ type=”text” size=”20″ onpropertychange=”all_real()”>
</td>
</tr>
</table>
——————————————————————————————————————————————-
<table width=”98%” border=”0″ align=”center” cellpadding=”0″ cellspacing=”0″ class=”transparence”>
<tr>
<td class=”GridShowList”>
应发工资合计
</td>
<td class=”GridWriterList” colspan=”3″>
<input id=”sumPay” name=”textfield9″ value=”” type=”text” readonly=”true”>
</td>
<td class=”GridShowList”>
扣款合计
</td>
<td class=”GridWriterList” colspan=”3″>
<input id=”subPay” name=”textfield10″ type=”text” readonly=”true” >
</td>
<td class=”GridShowList”>
实发工资合计
</td>
<td class=”GridWriterList” colspan=”3″>
<input id=”real” name=”textfield11″ type=”text” readonly=”true”>
</td>
</tr>
</table>
</BODY>
</HTML>
免责声明:本站所有文章内容,图片,视频等均是来源于用户投稿和互联网及文摘转载整编而成,不代表本站观点,不承担相关法律责任。其著作权各归其原作者或其出版社所有。如发现本站有涉嫌抄袭侵权/违法违规的内容,侵犯到您的权益,请在线联系站长,一经查实,本站将立刻删除。 本文来自网络,若有侵权,请联系删除,如若转载,请注明出处:https://yundeesoft.com/7562.html