jscript.js

来自「尚洋仓库管理系统,对仓库」· JavaScript 代码 · 共 96 行

JS
96
字号
// JScript 文件

var orgColor,orgColor2;
window.status="尚洋精密工业有限公司";
function RowMouseOver(obj)
{
    if(obj.style.backgroundColor=="#677287")
    {
        return;
    }
    orgColor=obj.style.backgroundColor;
    obj.style.backgroundColor="#f6f6f6";
}

function RowMouseOut(obj)
{
    if(obj.style.backgroundColor=="#677287")
    {
        return;
    }
    obj.style.backgroundColor=orgColor;
}
function lostFocus(table)
    {
        if(currentTR==null||currentTR=="undefined")
            return;
        currentTR.style.backgroundColor="#ffffff";
        currentTR.style.color="#000000";
        currentTR=null;
    }
function changeBorder_In(obj)
{
    obj.style.borderTopColor="#ffffff";
    obj.style.borderLeftColor="#ffffff";
    obj.style.borderBottomColor="#a0a0a0";
    obj.style.borderRightColor="#a0a0a0";
    obj.style.backgroundColor="#ffffff";
}


function changeBorder_Out(obj)
{
    obj.style.borderTopColor="#f6f6f6"
    obj.style.borderLeftColor="#f6f6f6"
    obj.style.borderBottomColor="#f6f6f6"
    obj.style.borderRightColor="#f6f6f6"
    obj.style.backgroundColor="#f6f6f6";
}

function changeBorder_In2(obj)
{
    obj.style.backgroundColor="#ffffff";
}


function changeBorder_Out2(obj)
{
    obj.style.backgroundColor="#f6f6f6";
}

function chooseTr(objTr)
{
//    if(objTr.style.backgroundColor!="#677287")
//    {
//        orgColor2=objTr.style.backgroundColor;
//    }
    if(currentTR!=null)
    {
        currentTR.style.backgroundColor="#ffffff";
        currentTR.style.color="#000000";
    }
    currentTR=objTr;
    objTr.style.backgroundColor="#677287";
    objTr.style.color="#ffffff";
    
}
//只接收数字类型,且大于0
function jsIsNumber(obj)
{
    if(jsIsEmpty(obj))
    {
        return true;
    }
}
//只接收日期类型
function jsIsDate(obj)
{
    return true;
}
//非空
function jsIsEmpty(obj)
{
    return true;
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?