Example #1
0
        public DialogResult Modify(SessionData sessionData, string URL, string Port, string line, string area, string eqpModel, string chartId, string mainYN, string groupName)
        {
            SPCConfigurationPopup spcConfigPopup = new SPCConfigurationPopup();

            spcConfigPopup.SESSIONDATA  = sessionData;
            spcConfigPopup.URL          = URL;
            spcConfigPopup.PORT         = Port;
            spcConfigPopup.CONFIG_MODE  = BISTel.eSPC.Common.ConfigMode.MODIFY;
            spcConfigPopup.LINE_RAWID   = line;
            spcConfigPopup.AREA_RAWID   = area;
            spcConfigPopup.EQP_MODEL    = eqpModel;
            spcConfigPopup.CONFIG_RAWID = chartId;
            spcConfigPopup.MAIN_YN      = mainYN;
            spcConfigPopup.GROUP_NAME   = groupName; //SPC-1292, KBLEE

            if (_ws.GetTheNumberOfATTSubConfigOfModel(chartId) > 0)
            {
                spcConfigPopup.HAS_SUBCONFIGS = true;
            }
            else
            {
                spcConfigPopup.HAS_SUBCONFIGS = false;
            }

            spcConfigPopup.InitializePopup();

            return(spcConfigPopup.ShowDialog());
        }
        public DialogResult ViewModel(SessionData sessionData, string URL, string Port, string line, string area, string eqpModel, string chartId, string mainYN, string version, string groupName)
        {
            SPCConfigurationPopup spcConfigPopup = new SPCConfigurationPopup();

            spcConfigPopup.SESSIONDATA  = sessionData;
            spcConfigPopup.URL          = URL;
            spcConfigPopup.PORT         = Port;
            spcConfigPopup.CONFIG_MODE  = ConfigMode.ROLLBACK;
            spcConfigPopup.LINE_RAWID   = line;
            spcConfigPopup.AREA_RAWID   = area;
            spcConfigPopup.EQP_MODEL    = eqpModel;
            spcConfigPopup.CONFIG_RAWID = chartId;
            spcConfigPopup.MAIN_YN      = mainYN;
            spcConfigPopup.VERSION      = version;
            spcConfigPopup.GROUP_NAME   = groupName;
            if (this.isMET)
            {
                spcConfigPopup.MODELINGTYPE = "MET";
            }
            else
            {
                spcConfigPopup.MODELINGTYPE = "TRACE";
            }

            if (_ws.GetTheNumberOfSubConfigOfModel(chartId) > 0)
            {
                spcConfigPopup.HAS_SUBCONFIGS = true;
            }
            else
            {
                spcConfigPopup.HAS_SUBCONFIGS = false;
            }

            if (version.Equals(lastestVersion))
            {
                spcConfigPopup.SaveButtonVisible = false;
            }

            spcConfigPopup.InitializePopup();

            return(spcConfigPopup.ShowDialog());
        }