/*
* 檢索用的學(xué)員名稱
*/
function selectStudentName(){
document.forms[0].action="../financeInputAction.do";
document.forms[0].submit();
}
/*
* 檢索出學(xué)員的身份證號(hào)
*/
function idCardNoGet(){
var index = window.document.forms[0].lst_stuName.selectedIndex;
document.forms[0].txt_idCard.value = document.forms[0].lst_stuName[index].value ;
}
/*
* 獲取返回ID
*/
function setActionNo(){
document.forms[0].action="../financeInputAction.do";
document.forms[0].submit();
}
/*
* 保存插入數(shù)據(jù)
*/
function studentSave(){
if(document.forms[0].lst_class.value == ""){
alert("班級(jí)名不能為空!");
return false;
}
if(document.forms[0].lst_stuName.value == ""){
alert("學(xué)生姓名不能為空!");
return false;
}
if(document.forms[0].txt_mustMoney.value == ""){
alert("應(yīng)繳款不能為空!");
return false;
}
var m = document.forms[0].txt_mustMoney.value;
if(moneyCheck(m)== false){
alert("應(yīng)繳款處請(qǐng)輸入數(shù)字")
return false;
}
if(document.forms[0].txt_mustMoney.value>9999999999){
alert("應(yīng)繳款超出限額,請(qǐng)輸入0~9999999999之間的數(shù)");
return false;
}
document.forms[0].action="../financeInputSaveAction.do";
document.forms[0].submit();
}
function moneyCheck(m){
var mustMoney = "0123456789";
var stuMoney = m.length;
var flag = true;
var count = 0;
var money;
while(flag = true && count< stuMoney){
money = m.substr(count,1);
if(-1== mustMoney.indexOf(money)){
flag = false;
count++;
}
return flag;
}
}
-->
聯(lián)系客服