EasyShop/Content/images2/mkl/OrderLine2.js

(开头部分) 7KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。


function OrderLine(orderLineInfo) {

    this.LineId = orderLineInfo.LineId;
    this.MaxQty = parseInt(orderLineInfo.MaxQty);
    //this.ColumnName = columnName;
    this.Amount = 0;
    this.Unitprice = 0;
    this.GpAmount = 0;
    this.GpPoint = 0;
    this.Qty = parseInt(orderLineInfo.Qty);
    this.CanModify = orderLineInfo.CanModify;
    this.SaleType = orderLineInfo.SaleType; 

    //新修改  开始
    //    OrderLine.GetElementById("aMinus" + this.LineId).style.visibility = (this.Qty > 1 ? "visible" : "hidden");
    //    OrderLine.GetElementById("aAdd" + this.LineId).style.visibility = (this.Qty >= this.MaxQty ? "hidden" : "visible");
    //新修改  结束

    //OrderLine.GetElementById("aMinus" + this.LineId).isDisabled = (this.Qty <= 1);
    //OrderLine.GetElementById("aAdd" + this.LineId).isDisabled = (this.Qty >= this.MaxQty);

}

OrderLine.prototype = new RSBase();

OrderLine.prototype.ErrorCallbackRSBase = OrderLine.prototype.ErrorCallback;

OrderLine.prototype.ErrorCallback = function(error, callBackContext, response) {

    callBackContext.Object.ErrorCallbackRSBase(error, callBackContext, response);
    callBackContext.Element.value = "";
}

OrderLine.GetElementById = function(controlId) {
    var o = document.getElementById(controlId);
    if (o == null) {
        alert("控件编号:" + controlId + "不存在");
        return null;
    }
    return o;
}

OrderLine.prototype.GetElementById1 = function(controlId) {
    var o = document.getElementById(controlId);
    if (o == null) {
        alert("控件编号:" + controlId + "不存在");
        return null;
    }
    return o;
}


OrderLine.prototype.Initial = function() {

}

OrderLine.prototype.GetCallbackContext = function(element) {
    return new CallbackContext(element, this);
}
后面还有 158 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。