?? oa.js
字號:
// JavaScript Document
//********admin.htm******************//
function login(){
if(document.form1.id.value!=""&&document.form1.password.value!=""){
return true;
}else{
alert("請輸入用戶名和密碼");
return false;
}
}
//********em.htm******************//
function login(){
if(document.form1.id.value!=""&&document.form1.password.value!=""){
return true;
}else{
alert("請輸入員工號和密碼");
return false;
}
}
//********signstate.jsp******************//
function sign(){
if(document.form1.up.value==""){
alert("請輸入上班日期");
document.form1.up.focus();
return false;
}else if(document.form1.up.value.indexOf(":")==-1){
alert("請?zhí)顚懻_日期格式");
document.form1.up.focus();
return false;
}
if(document.form1.down.value==""){
alert("請輸入下班日期");
document.form1.down.focus();
return false;
}else if(document.form1.down.value.indexOf(":")==-1){
alert("請?zhí)顚懭掌诟袷?quot;);
document.form1.down.focus();
return false;
}
return true;
}
//********department.jsp******************//
function dep(){
if(document.form1.name.value==""){
alert("請輸入部門名稱");
document.form1.name.focus();
return false;
}
if(document.form1.explain.value==""){
alert("請輸入部門描述");
document.form1.explain.focus();
return false;
}
return true;
}
//********job.jsp******************//
function job(){
if(document.form1.name.value==""){
alert("請輸入職位名稱");
document.form1.name.focus();
return false;
}
if(document.form1.explain.value==""){
alert("請輸入職位描述");
document.form1.explain.focus();
return false;
}
return true;
}
//********emstate.jsp******************//
function emstate(){
if(document.form1.name.value==""){
alert("請輸入員工狀態(tài)");
document.form1.name.focus();
return false;
}
if(document.form1.explain.value==""){
alert("請輸入員工狀態(tài)描述");
document.form1.explain.focus();
return false;
}
return true;
}
//********add.jsp******************//
function add(){
if(document.form1.name.value==""){
alert("請輸入員工姓名");
return false;
}
if(document.form1.birthday.value==""){
alert("請輸入員工出生日期");
return false;
}else if(document.form1.birthday.value.indexOf("-")==-1){
alert("請?zhí)顚懭掌诟袷?quot;);
document.form1.birthday.focus();
return false;
}
if(document.form1.learn.value==""){
alert("請輸入員工學(xué)歷");
return false;
}
if(document.form1.post.value==""){
alert("請輸入員工職稱");
return false;
}
if(document.form1.tel.value==""){
alert("請輸入員工電話");
return false;
}
if(document.form1.addr.value==""){
alert("請輸入員工地址");
return false;
}
return true;
}
//********add.jsp******************//
function sel(){
if(document.form1.sele.value==""){
document.form1.sele.focus();
alert("請輸入查找內(nèi)容");
return false;
}
return true;
}
//********set.jsp******************//
function set(){
if(document.form1.id.value==""){
alert("序號不能為空");
document.form1.id.focus();
return false;
}
if(isNaN(document.form1.id.value)){
alert("請輸入正確序號");
document.form1.id.focus();
return false;
}
if(document.form1.id.value.indexOf(".")!=-1){
alert("請輸入正確序號");
document.form1.id.focus();
return false;
}
if(document.form1.password.value==""){
alert("請輸入員工密碼");
document.form1.password.focus();
return false;
}
return true;
}
//********affice/add.jsp******************//
function affice(){
if(document.form1.title.value==""){
alert("標題不能為空");
document.form1.title.focus();
return false;
}
if(document.form1.content.value==""){
alert("請輸入具體公告");
document.form1.content.focus();
return false;
}
return true;
}
//********emex/add.jsp******************//
function emex(){
if(document.form1.emid.value==""){
alert("請輸入員工序號");
document.form1.emid.focus();
return false;
}
if(isNaN(document.form1.emid.value)){
alert("請輸入正確序號");
document.form1.emid.focus();
return false;
}
if(document.form1.emid.value.indexOf(".")!=-1){
alert("請輸入正確序號");
document.form1.emid.focus();
return false;
}
return true;
}
//********send.jsp******************//
function bumfs(){
if(document.form1.emid.value==""){
alert("請輸入接收人序號");
document.form1.emid.focus();
return false;
}
if(isNaN(document.form1.emid.value)){
alert("請輸入正確序號");
document.form1.emid.focus();
return false;
}
if(document.form1.emid.value.indexOf(".")!=-1){
alert("請輸入正確序號");
document.form1.emid.focus();
return false;
}
if(document.form1.title.value==""){
alert("請輸入公文標題");
document.form1.title.focus();
return false;
}
if(document.form1.bumf.value==""){
alert("不允許出現(xiàn)空白公文");
document.form1.bumf.focus();
return false;
}
return true;
}
//********bumf/accept.jsp******************//
function accepts(){
if(document.form1.bumf.value==""){
alert("不允許出現(xiàn)空白公文");
document.form1.bumf.focus();
return false;
}
return true;
}
//********info/send.jsp******************//
function info(){
if(document.form1.acceptid.value==""){
alert("請輸入接收人序號");
document.form1.acceptid.focus();
return false;
}
if(isNaN(document.form1.acceptid.value)){
alert("請輸入正確序號");
document.form1.acceptid.focus();
return false;
}
if(document.form1.acceptid.value.indexOf(".")!=-1){
alert("請輸入正確序號");
document.form1.acceptid.focus();
return false;
}
if(document.form1.title.value==""){
alert("請輸入標題");
document.form1.title.focus();
return false;
}
if(document.form1.content.value==""){
alert("不允許發(fā)送空白消息");
document.form1.content.focus();
return false;
}
return true;
}
//********error/errorpage.jsp******************//
function re(){
parent.location.href='../index.htm';
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -