ipqiusheng

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 18 total)
  • Author
    Posts
  • in reply to: jQuery issues in #14408
    ipqiusheng
    Participant

    Hi
    Mikhail and other guys, do you know what’s parsedData define?, it has property of ViewStamp and SchemeDoc object?
    scada.scheme.Scheme.prototype._obtainSchemeDoc = function (parsedData) {
    try {
    if (typeof parsedData.ViewStamp === “undefined”) {
    throw { message: “ViewStamp property is missing.” };
    }

    if (typeof parsedData.SchemeDoc === “undefined”) {
    throw { message: “SchemeDoc property is missing.” };
    }

    if (this._viewStampsMatched(this.viewStamp, parsedData.ViewStamp)) {
    this.type = “”;
    this.props = parsedData.SchemeDoc;
    this.viewStamp = parsedData.ViewStamp;
    return true;
    } else {
    return false;
    }
    }
    catch (ex) {
    console.error(scada.utils.getCurTime() + ” Error obtaining scheme properties:”, ex.message);
    return false;
    }
    };

    in reply to: jQuery issues in #14367
    ipqiusheng
    Participant

    thanks for your reply
    Mikhail, I have used github to find this popup.js in webshell project, so I can’t find that in plscheme files. just mark here for other guys if someone have interesting in your code

    in reply to: jQuery issues in #14365
    ipqiusheng
    Participant

    hi
    Mikhail
    I put the link below my comments

    in reply to: jQuery issues in #14362
    ipqiusheng
    Participant

    also, in basiccomprender.js, it also existed

    in reply to: jQuery issues in #14360
    ipqiusheng
    Participant

    Hi
    Mikhail
    sorry, I haven’t use version 6.0, I still look at your version 5.0 code, your code is very elegant,I still look at that, this is version 5.0 code, the popupLocator existed in schemerender.js. not sure where it is defined, but it looks like define in viewhub.js, but I can’t find that.
    https://github.com/RapidScada/scada/blob/master/ScadaWeb/ScadaScheme/PlgScheme/plugins/Scheme/js/schemerender.js

    in reply to: jQuery issues in #14348
    ipqiusheng
    Participant

    scada.scheme.SchemeRenderer.prototype._setTitle = function (title, renderContext) {
    if (title && renderContext.schemeEnv.viewHub) {
    document.title = title + ” – ” + renderContext.schemeEnv.viewHub.getEnv().productName;

    // set title of a popup in case the scheme is in the popup
    var popup = scada.popupLocator.getPopup();
    if (popup) {
    popup.setModalTitle(window, document.title);
    }

    // send notification about title change
    renderContext.schemeEnv.viewHub.notify(scada.EventTypes.VIEW_TITLE_CHANGED, window, document.title);
    }
    };

    Hi
    Mikhail, thank you for your kind comment, how about this popupLocator, it is under scada namespace, but I can’t find that define

    in reply to: jQuery issues in #14263
    ipqiusheng
    Participant

    hi
    All Guys
    I meet some issues in schemerender.js file, it seems curCnlDataMap/imageMap are Map object, but I can’t find the inilization seems like imageMap=new map;
    scada.scheme.RenderContext = function () {
    this.curCnlDataMap = null;
    this.editMode = false;
    this.schemeEnv = null;
    this.viewID = 0;
    this.imageMap = null;
    this.controlRight = true;
    };

    in reply to: jQuery issues in #14260
    ipqiusheng
    Participant

    scada.scheme.UnknownComponentRenderer = function () {
    scada.scheme.Renderer.call(this);
    };

    scada.scheme.UnknownComponentRenderer.prototype = Object.create(scada.scheme.Renderer.prototype);
    scada.scheme.UnknownComponentRenderer.constructor = scada.scheme.UnknownComponentRenderer;

    /********** Render Context **********/

    // Render context type
    scada.scheme.RenderContext = function () {
    this.curCnlDataMap = null;
    this.editMode = false;
    this.schemeEnv = null;
    this.viewID = 0;
    this.imageMap = null;
    this.controlRight = true;
    };

    have find the defination in schemerender, mark here

    in reply to: New ScadaAdmin Project in Version 5 #13983
    ipqiusheng
    Participant

    Hi
    Mikhail
    will you prepare new models for Version 6? does that have some introduction about new versions? will that get some new interesting functions?

    in reply to: New ScadaAdmin Project in Version 5 #13927
    ipqiusheng
    Participant
    in reply to: lack of Basic Control after compiling ScadaScheme #13926
    ipqiusheng
    Participant

    Hi
    Mikhail
    do you mean we install distributive on computer, then we can run the source code and debug our project?

    in reply to: lack of WinControl #13925
    ipqiusheng
    Participant

    Hi
    Mikhail
    I re-build wincontrol in my computer, that can fix most of issues about wincontrol. it seems the dll from Nu-get repository has some issues which will cause install locally failed, not sure other guys if meet same issues.
    https://ibb.co/6RL98q9

    in reply to: ScadaAdmin Compile Issues #13921
    ipqiusheng
    Participant

    Hi
    Mikhail
    just mark this for other learner, this because the wincontrol dll contain system.windows.forms v6.0.0, when project use this as a reference, it will show compile errors. I re-compile the whole wincontrol project, then use this as a reference, the conflicts of system.windows.forms v6.0.0 between v4.0.0 disappeared. thank you for your kind remind.

    in reply to: ScadaAdmin Compile Issues #13912
    ipqiusheng
    Participant

    https://ibb.co/fvqFrsn

    this is the image

    in reply to: lack of WinControl #13909
    ipqiusheng
    Participant

    https://ibb.co/LkLXjqq this is image

Viewing 15 posts - 1 through 15 (of 18 total)