Exemple #1
0
        public bool CheckDeleteData(DataSet ds, BasePageUCtrl page, bool isShowMsg)
        {
            bool bCheck = false;

            if (ds.Tables.Contains("DELETE"))
            {
                bCheck = true;
            }

            if (bCheck)
            {
                return(true);
            }
            else
            {
                page.MsgClose();

                if (isShowMsg)
                {
                    MSGHandler.DisplayMessage(MSGType.Information, "VMS_NO_DELETE_DATA", null, null);
                }

                return(false);
            }
        }
Exemple #2
0
        /// <summary>
        /// SAVE전 CHECK
        /// </summary>
        /// <param name="ds"></param>
        /// <param name="thispage"></param>
        /// <param name="isShowMsg"></param>
        /// <returns></returns>
        public bool CheckSaveData(DataSet ds, BasePageUCtrl page, bool isShowMsg)
        {
            bool bCheck = false;

            if (ds.Tables.Count > 0 && (ds.Tables.Contains("INSERT") || ds.Tables.Contains("UPDATE")))
            {
                bCheck = true;
            }
            else if (ds.Tables.Contains("DELETE"))
            {
                bCheck = true;
            }

            if (bCheck)
            {
                return(true);
            }
            else
            {
                page.MsgClose();

                if (isShowMsg)
                {
                    MSGHandler.DisplayMessage(MSGType.Information, "GENERAL_NO_SAVE_DATA", null, null);
                }

                return(false);
            }
        }
Exemple #3
0
        /// <summary>
        /// Slect SPC Model
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        public void bbtnSelectModel_Click(object sender, EventArgs e)
        {
            BISTel.PeakPerformance.Client.BaseUserCtrl.BasePageUCtrl bpUC = new BasePageUCtrl();

            this.strucContextinfo      = new SPCStruct.ChartContextInfo();
            this.strucContextinfo.AREA = this.mArea.Replace("'", "");
            this.strucContextinfo.LINE = this.mLine;
            this.strucContextinfo.MODEL_CONFIG_RAWID = this.mModelConfigRawID;
            this.strucContextinfo.SPC_MODEL_NAME     = this.mSPCModel;
            this.strucContextinfo.PARAM_ALIAS        = this.mParamAlias;
            this.strucContextinfo.llstCustomContext  = this.mllstCustomContext;
            this.strucContextinfo.llstContext        = this.mllstContext;
            this.strucContextinfo.DTModelContext     = this.mDTModelContext;
            this.strucContextinfo.SPCModelType       = SPCMODEL_TYPE.CONDITION;

            SPCChartConditionPopup _chartConditionPop = new SPCChartConditionPopup();

            if (this.GetType().FullName == "BISTel.eSPC.Condition.ATT.Report.SPCChartCondition")
            {
                _chartConditionPop.ISATT = true;
            }
            else if (this.GetType().FullName == "BISTel.eSPC.Condition.Report.SPCChartCondition")
            {
                _chartConditionPop.ISATT = false;
            }
            _chartConditionPop.CONTEXT_INFO = strucContextinfo;
            try
            {
                bpUC.MsgShow(this._mlthandler.GetVariable("RMS_PROGRESS_SEARCH"));
                _chartConditionPop.InitializePopup();
            }
            catch (Exception ex)
            {
                bpUC.MsgClose();
                LogHandler.ExceptionLogWrite(Definition.APPLICATION_NAME, ex);
            }
            finally
            {
                bpUC.MsgClose();
            }
            _chartConditionPop.ShowDialog();
            DialogResult dResult = _chartConditionPop.ButtonResult;

            if (dResult == DialogResult.OK)
            {
                this.strucContextinfo  = _chartConditionPop.CONTEXT_INFO;
                this.mModelConfigRawID = this.strucContextinfo.MODEL_CONFIG_RAWID;
                this.mParamAlias       = this.strucContextinfo.PARAM_ALIAS;
                this.mMainYN           = this.strucContextinfo.MAIN_YN;

                this.mAreaUnit      = this.strucContextinfo.AREA;
                this.mAreaRawidUnit = this.strucContextinfo.AREA_RAWID;
                this.mEQPModelUnit  = this.strucContextinfo.EQP_MODEL;

                this.mllstContext        = this.strucContextinfo.llstContext;
                this.mllstCustomContext  = this.strucContextinfo.llstCustomContext;
                this.mDefaultChartList   = this.strucContextinfo.DEFAULT_CHART_LIST;
                this.iRestrictSampleDays = this.strucContextinfo.RESTRICT_SAMPLE_DAYS;

                this.dateCondition1.DateType      = Definition.PERIOD_TYPE.CUSTOM;
                this.dateCondition1.DateTimeStart = DateTime.Now.AddDays(-this.iRestrictSampleDays);
                this.dateCondition1.DateTimeEnd   = DateTime.Now;

                //this.AddHead();
                this.PROC_SpreadContextBind(this.mllstContext, this.mllstCustomContext);
            }
        }