Esempio n. 1
0
        /// <summary>
        /// Slect SPC Model
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private 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();

            _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);
            }
        }
Esempio n. 2
0
 public void InitializeVariable()
 {
     this._wsSPC          = new WebServiceController <eSPCWebService.eSPCWebService>().Create();
     this._mlthandler     = MultiLanguageHandler.getInstance();
     this._Initialization = new Initialization();
     this._Initialization.InitializePath();
     this._bspreadutility  = new BSpreadUtility();
     this._ComUtil         = new CommonUtility();
     this._llstData        = new LinkedList();
     this.strucContextList = new SPCStruct.ChartConditionContextList();
     this.strucContextinfo = new SPCStruct.ChartContextInfo();
 }