예제 #1
0
        public override void PageSearch(LinkedList llstCondition)
        {
            this._llstData.Clear();
            DataTable dt = null;

            if (llstCondition[Definition.DynamicCondition_Search_key.LINE] != null)
            {
                dt         = (DataTable)llstCondition[Definition.DynamicCondition_Search_key.LINE];
                _Line      = DataUtil.GetDisplayData(dt);
                _LineRawID = DCUtil.GetValueData(dt);
            }


            if (llstCondition[Definition.DynamicCondition_Search_key.FAB] != null)
            {
                _sFab = DCUtil.GetValueData((DataTable)llstCondition[Definition.DynamicCondition_Search_key.FAB]);
            }


            if (llstCondition[Definition.DynamicCondition_Search_key.AREA] != null)
            {
                dt         = (DataTable)llstCondition[Definition.DynamicCondition_Search_key.AREA];
                _AreaRawID = DataUtil.GetConditionKeyDataList(dt, Definition.DynamicCondition_Condition_key.VALUEDATA);
            }


            if (llstCondition[Definition.DynamicCondition_Search_key.EQPMODEL] != null)
            {
                dt        = (DataTable)llstCondition[Definition.DynamicCondition_Search_key.EQPMODEL];
                _EQPModel = DataUtil.GetConditionKeyDataList(dt, Definition.DynamicCondition_Condition_key.VALUEDATA, true);
            }


            if (llstCondition[Definition.DynamicCondition_Search_key.DATETIME_FROM] != null)
            {
                dt = (DataTable)llstCondition[Definition.DynamicCondition_Search_key.DATETIME_FROM];

                this._sStartTime = CommonPageUtil.StartDate(dt.Rows[0][Definition.DynamicCondition_Condition_key.VALUEDATA].ToString());
            }
            if (llstCondition[Definition.DynamicCondition_Search_key.DATETIME_TO] != null)
            {
                dt             = (DataTable)llstCondition[Definition.DynamicCondition_Search_key.DATETIME_TO];
                this._sEndTime = CommonPageUtil.EndDate(dt.Rows[0][Definition.DynamicCondition_Condition_key.VALUEDATA].ToString());
            }

            if (llstCondition[Definition.DynamicCondition_Search_key.PARAM_TYPE] != null)
            {
                this._ParamType = DCUtil.GetValueData((DataTable)llstCondition[Definition.DynamicCondition_Search_key.PARAM_TYPE]);
            }


            if (llstCondition[Definition.DynamicCondition_Search_key.TYPE] != null)
            {
                string _sType = DCUtil.GetValueData((DataTable)llstCondition[Definition.DynamicCondition_Search_key.TYPE]);
                if (_sType.Equals("1"))
                {
                    _bProb = true;
                }
            }
            else
            {
                MSGHandler.DisplayMessage(MSGType.Warning, "선택된 Step별 Data Mapping 정보가 없습니다.");
                return;
            }

            if (llstCondition[Definition.DynamicCondition_Search_key.OPERATION] != null)
            {
                this._sOperation     = DCUtil.GetValueData((DataTable)llstCondition[Definition.DynamicCondition_Search_key.OPERATION]);
                this._sOperationDesc = DataUtil.GetDisplayData((DataTable)llstCondition[Definition.DynamicCondition_Search_key.OPERATION]);
            }


            if (string.IsNullOrEmpty(this._sOperation))
            {
                MSGHandler.DisplayMessage(MSGType.Warning, "기준 Step이 없습니다.");
                return;
            }

            if (llstCondition[Definition.DynamicCondition_Search_key.PROBE] != null)
            {
                string _sProb = DCUtil.GetValueData((DataTable)llstCondition[Definition.DynamicCondition_Search_key.PROBE]);
                this._bProb = !string.IsNullOrEmpty(_sProb) ? (_sProb == "1" ?true :false) : false;
            }

            if (llstCondition[Definition.DynamicCondition_Search_key.INFORMATION] != null)
            {
                this._arrInfo = CommonPageUtil.GetConditionKeyDataListArr((DataTable)llstCondition[Definition.DynamicCondition_Search_key.INFORMATION], Definition.DynamicCondition_Condition_key.VALUEDATA);
            }

            if (llstCondition[Definition.DynamicCondition_Search_key.ITEM] != null)
            {
                this._arrItem = CommonPageUtil.GetConditionKeyDataListArr((DataTable)llstCondition[Definition.DynamicCondition_Search_key.ITEM], Definition.DynamicCondition_Condition_key.VALUEDATA);
            }

            if (llstCondition[Definition.DynamicCondition_Search_key.SUBDATA] != null)
            {
                this._arrSubData = CommonPageUtil.GetConditionKeyDataListArr((DataTable)llstCondition[Definition.DynamicCondition_Search_key.SUBDATA], Definition.DynamicCondition_Condition_key.VALUEDATA);
            }


            if (llstCondition[Definition.DynamicCondition_Search_key.TARGET] != null)
            {
                this._sTargetOperation     = DCUtil.GetValueData((DataTable)llstCondition[Definition.DynamicCondition_Search_key.TARGET]);
                this._sTargetOperationDesc = DataUtil.GetDisplayData((DataTable)llstCondition[Definition.DynamicCondition_Search_key.TARGET]);
            }


            if (llstCondition[Definition.DynamicCondition_Search_key.TARGET_PROBE] != null)
            {
                string _sTartProb = DCUtil.GetValueData((DataTable)llstCondition[Definition.DynamicCondition_Search_key.TARGET_PROBE]);
                this._bTartProb = !string.IsNullOrEmpty(_sTartProb) ? (_sTartProb == "1" ? true : false) : false;
            }

            if (llstCondition[Definition.DynamicCondition_Search_key.TARGET_INFORMATION] != null)
            {
                this._arrTargetInfo = CommonPageUtil.GetConditionKeyDataListArr((DataTable)llstCondition[Definition.DynamicCondition_Search_key.TARGET_INFORMATION], Definition.DynamicCondition_Condition_key.VALUEDATA);
            }

            if (llstCondition[Definition.DynamicCondition_Search_key.TARGET_ITEM] != null)
            {
                this._arrTargetItem = CommonPageUtil.GetConditionKeyDataListArr((DataTable)llstCondition[Definition.DynamicCondition_Search_key.TARGET_ITEM], Definition.DynamicCondition_Condition_key.VALUEDATA);
            }

            if (llstCondition[Definition.DynamicCondition_Search_key.TARGET_SUBDATA] != null)
            {
                this._arrTargetSubData = CommonPageUtil.GetConditionKeyDataListArr((DataTable)llstCondition[Definition.DynamicCondition_Search_key.TARGET_SUBDATA], Definition.DynamicCondition_Condition_key.VALUEDATA);
            }

            if (llstCondition[Definition.DynamicCondition_Search_key.SORTING_KEY] != null)
            {
                this._arrSortingKey = CommonPageUtil.GetConditionKeyDataListArr((DataTable)llstCondition[Definition.DynamicCondition_Search_key.SORTING_KEY], Definition.DynamicCondition_Condition_key.VALUEDATA);
            }


            if (this._arrSortingKey.Count == 0)
            {
                MSGHandler.DisplayMessage(MSGType.Warning, string.Format(MSGHandler.GetMessage("GENERAL_SELECT_OBJECT"), "Sorting Key"));
                return;
            }


            PROC_DataBinding();
        }
예제 #2
0
        public override void PageSearch(LinkedList llstCondition)
        {
            this._llstSearchCondition.Clear();
            DataTable dt  = null;
            DataSet   _ds = null;


            if (llstCondition[Definition.DynamicCondition_Search_key.DATETIME_FROM] != null)
            {
                dt         = (DataTable)llstCondition[Definition.DynamicCondition_Search_key.DATETIME_FROM];
                sStartTime = CommonPageUtil.StartDate(dt.Rows[0][Definition.DynamicCondition_Condition_key.VALUEDATA].ToString());
            }
            if (llstCondition[Definition.DynamicCondition_Search_key.DATETIME_TO] != null)
            {
                dt       = (DataTable)llstCondition[Definition.DynamicCondition_Search_key.DATETIME_TO];
                sEndTime = CommonPageUtil.EndDate(dt.Rows[0][Definition.DynamicCondition_Condition_key.VALUEDATA].ToString());
            }

            if (llstCondition[Definition.DynamicCondition_Search_key.LINE] != null)
            {
                dt         = (DataTable)llstCondition[Definition.DynamicCondition_Search_key.LINE];
                _Line      = DataUtil.GetDisplayData(dt);
                _LineRawID = DCUtil.GetValueData(dt);
            }

            if (llstCondition[Definition.DynamicCondition_Search_key.AREA] != null)
            {
                dt         = (DataTable)llstCondition[Definition.DynamicCondition_Search_key.AREA];
                _AreaRawID = DataUtil.GetConditionKeyDataList(dt, Definition.DynamicCondition_Condition_key.VALUEDATA);
            }


            if (llstCondition[Definition.DynamicCondition_Search_key.EQPMODEL] != null)
            {
                dt        = (DataTable)llstCondition[Definition.DynamicCondition_Search_key.EQPMODEL];
                _EQPModel = DataUtil.GetConditionKeyDataList(dt, Definition.DynamicCondition_Condition_key.VALUEDATA, true);
            }


            DataTable dtParameter = (DataTable)llstCondition[Definition.DynamicCondition_Search_key.PARAM];

            this._sParamTypeCD = DCUtil.GetValueData((DataTable)llstCondition[Definition.DynamicCondition_Search_key.PARAM_TYPE]);
            this._sOperationID = DataUtil.GetConditionKeyDataList((DataTable)llstCondition[Definition.DynamicCondition_Search_key.OPERATION], Definition.DynamicCondition_Condition_key.VALUEDATA, true);
            this._sEQPID       = DataUtil.GetConditionKeyDataList((DataTable)llstCondition[Definition.DynamicCondition_Search_key.EQP_ID], Definition.DynamicCondition_Condition_key.VALUEDATA, true);
            this._sProductID   = DataUtil.GetConditionKeyDataList((DataTable)llstCondition[Definition.DynamicCondition_Search_key.PRODUCT], Definition.DynamicCondition_Condition_key.VALUEDATA, true);
            this._sPeriodPpk   = DCUtil.GetValueData((DataTable)llstCondition[Definition.DynamicCondition_Search_key.PERIOD_PPK]);
            this.arrSortingKey = CommonPageUtil.GetConditionKeyDataListArr((DataTable)llstCondition[Definition.DynamicCondition_Search_key.SORTING_KEY], Definition.DynamicCondition_Condition_key.VALUEDATA);

            LinkedList _llstModelConfigRawID = new LinkedList();

            arrModelCongifRawID.Clear();
            string sParameter = DataUtil.GetConditionKeyDataList(dtParameter, Definition.DynamicCondition_Condition_key.VALUEDATA, true);

            _llstModelConfigRawID.Clear();
            _llstModelConfigRawID.Add(Definition.DynamicCondition_Condition_key.LINE_RAWID, _LineRawID);

            if (!string.IsNullOrEmpty(_AreaRawID))
            {
                _llstModelConfigRawID.Add(Definition.DynamicCondition_Condition_key.AREA_RAWID, _AreaRawID);
            }

            if (!string.IsNullOrEmpty(_EQPModel))
            {
                _llstModelConfigRawID.Add(Definition.DynamicCondition_Condition_key.EQP_MODEL, _EQPModel);
            }

            _llstModelConfigRawID.Add(Definition.DynamicCondition_Condition_key.PARAM_TYPE_CD, _sParamTypeCD);
            if (!string.IsNullOrEmpty(sParameter) && sParameter.IndexOf(Definition.VARIABLE.STAR) < 0)
            {
                _llstModelConfigRawID.Add(Definition.DynamicCondition_Condition_key.PARAM_ALIAS, sParameter);
            }

            _llstModelConfigRawID.Add(Definition.DynamicCondition_Condition_key.MAIN_YN, "Y");

            if (!string.IsNullOrEmpty(_sOperationID) && _sOperationID != "*")
            {
                _llstModelConfigRawID.Add(Definition.DynamicCondition_Condition_key.OPERATION_ID, _sOperationID);
            }
            //sub modeling 존재여부 확인
            _ds = _wsSPC.GetSPCModelConfigSearch(_llstModelConfigRawID.GetSerialData());
            if (!DataUtil.IsNullOrEmptyDataSet(_ds))
            {
                for (int i = 0; i < _ds.Tables[0].Rows.Count; i++)
                {
                    string strModelCongifRawID = _ds.Tables[0].Rows[i][Definition.DynamicCondition_Condition_key.MODEL_CONFIG_RAWID].ToString();

                    if (!arrModelCongifRawID.Contains(strModelCongifRawID))
                    {
                        arrModelCongifRawID.Add(strModelCongifRawID);
                    }
                }
            }


            if (arrModelCongifRawID.Count == 0)
            {
                MSGHandler.DisplayMessage(MSGType.Warning, MSGHandler.GetMessage("INFORMATION_NODATA"));
                return;
            }
            string sModelCongifRawid = CommonPageUtil.GetConditionKeyArrayList(arrModelCongifRawID);

            this._llstSearchCondition.Clear();
            this._llstSearchCondition.Add(Definition.DynamicCondition_Condition_key.START_DTTS, sStartTime);
            this._llstSearchCondition.Add(Definition.DynamicCondition_Condition_key.END_DTTS, sEndTime);
            this._llstSearchCondition.Add(Definition.DynamicCondition_Condition_key.PERIOD_PPK, this._sPeriodPpk);
            this._llstSearchCondition.Add(Definition.DynamicCondition_Condition_key.MODEL_CONFIG_RAWID, sModelCongifRawid);

            if (this._sParamTypeCD.Equals("MET"))
            {
                _OperationColumnName = Definition.CHART_COLUMN.MEASURE_OPERATION_ID;
            }
            else
            {
                _OperationColumnName = Definition.CHART_COLUMN.OPERATION_ID;
            }

            PROC_DataBinding();
        }
예제 #3
0
        public override void PageSearch(LinkedList llstCondition)
        {
            _chartVariable = new ChartInterface();
            this._llstSearchCondition.Clear();

            if (!llstCondition.Contains(Definition.DynamicCondition_Search_key.AREA))
            {
                MSGHandler.DisplayMessage(MSGType.Information, MSGHandler.GetMessage(Definition.MSG_KEY_SELECT_CONDITION_DATA));
                return;
            }

            DataTable dt = null;

            if (llstCondition[Definition.DynamicCondition_Search_key.FROMDATE] != null)
            {
                dt = (DataTable)llstCondition[Definition.DynamicCondition_Search_key.FROMDATE];
                DateTime dtFrom = (DateTime)dt.Rows[0][Definition.DynamicCondition_Condition_key.DATETIME_VALUEDATA];
                sStartTime = CommonPageUtil.StartDate(dtFrom.ToString(Definition.DATETIME_FORMAT));
            }
            if (llstCondition[Definition.DynamicCondition_Search_key.TODATE] != null)
            {
                dt = (DataTable)llstCondition[Definition.DynamicCondition_Search_key.TODATE];
                DateTime dtTo = (DateTime)dt.Rows[0][Definition.DynamicCondition_Condition_key.DATETIME_VALUEDATA];
                sEndTime = CommonPageUtil.EndDate(dtTo.ToString(Definition.DATETIME_FORMAT));
            }

            this._llstSearchCondition.Add(Definition.DynamicCondition_Condition_key.START_DTTS, sStartTime);
            this._llstSearchCondition.Add(Definition.DynamicCondition_Condition_key.END_DTTS, sEndTime);



            if (llstCondition[Definition.DynamicCondition_Search_key.LINE] != null)
            {
                dt    = (DataTable)llstCondition[Definition.DynamicCondition_Search_key.LINE];
                _line = dt.Rows[0][Definition.DynamicCondition_Condition_key.DISPLAYDATA].ToString();
                _chartVariable.LINE = _line;
                this._llstSearchCondition.Add(Definition.DynamicCondition_Condition_key.LINE_RAWID, dt.Rows[0][Definition.DynamicCondition_Condition_key.VALUEDATA].ToString());
            }

            string strArea = _ComUtil.GetConditionString((DataTable)llstCondition[Definition.DynamicCondition_Search_key.AREA], Definition.DynamicCondition_Condition_key.AREA);

            if (!string.IsNullOrEmpty(strArea))
            {
                this._llstSearchCondition.Add(Definition.DynamicCondition_Condition_key.AREA, strArea);
            }


            string strParamType = _ComUtil.GetConditionData((DataTable)llstCondition[Definition.DynamicCondition_Search_key.PARAM_TYPE], Definition.DynamicCondition_Condition_key.VALUEDATA);

            if (!string.IsNullOrEmpty(strParamType))
            {
                this._llstSearchCondition.Add(Definition.DynamicCondition_Condition_key.PARAM_TYPE_CD, strParamType);
            }


            if (!llstCondition.Contains(Definition.DynamicCondition_Search_key.SPC_MODEL_CONFIG_RAWID))
            {
                MSGHandler.DisplayMessage(MSGType.Information, "Please Select SPC Model.");
                return;
            }


            string strModelConfigRawID = ((DataTable)llstCondition[Definition.DynamicCondition_Search_key.SPC_MODEL_CONFIG_RAWID]).Rows[0][Definition.DynamicCondition_Condition_key.VALUEDATA].ToString();

            if (!string.IsNullOrEmpty(strModelConfigRawID))
            {
                this._llstSearchCondition.Add(Definition.DynamicCondition_Condition_key.MODEL_CONFIG_RAWID, strModelConfigRawID);
            }

            PROC_DataBinding();
        }