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); } }
/// <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); } }
public bool CheckRemoveMessage(DataSet ds, BasePageUCtrl page, string item, bool isShowMsg) { if (DSUtil.GetResultSucceed(ds) == Definition.FAIL) { page.MsgClose(); if (isShowMsg && DSUtil.GetResultMsg(ds) != "") { MSGHandler.DisplayMessage(MSGType.Warning, "VMS_DELETE_FAIL_USEDATA", new string[] { item }, null); } return(false); } else { page.MsgClose(); if (isShowMsg) { MSGHandler.DisplayMessage(MSGType.Information, "VMS_DELETE_SUCCESS", null, null); } return(true); } }
public bool CheckSaveMessage(DataSet ds, BasePageUCtrl page, bool isShowMsg) { if (DSUtil.GetResultSucceed(ds) == Definition.FAIL) { page.MsgClose(); if (isShowMsg && DSUtil.GetResultMsg(ds) != "") { MSGHandler.DisplayMessage(MSGType.Error, DSUtil.GetResultMsg(ds)); } else if (isShowMsg) { MSGHandler.DisplayMessage(MSGType.Warning, "GENERAL_SAVE_FAIL", null, null); } return(false); } else { page.MsgClose(); if (isShowMsg) { MSGHandler.DisplayMessage(MSGType.Information, "GENERAL_SAVE_SUCCESS", null, null); } return(true); } }
/// <summary> /// search후 check method /// </summary> /// <param name="ds"></param> /// <param name="thispage"></param> /// <param name="isShowMsg"></param> /// <returns></returns> public bool CheckSearchMessage(DataSet ds, BasePageUCtrl page, bool isShowMsg) { if (DSUtil.GetResultSucceed(ds) == Definition.FAIL) { page.MsgClose(); if (isShowMsg && DSUtil.GetResultMsg(ds) != "") { MSGHandler.DisplayMessage(MSGType.Error, DSUtil.GetResultMsg(ds)); } return(false); } else { if (ds.Tables.Count == 0 || ds.Tables[0].Rows.Count == 0) { page.MsgClose(); if (isShowMsg) { MSGHandler.DisplayMessage(MSGType.Information, "GENERAL_NO_DATA", null, null); } } return(true); } }
/// <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); } }
public void InitializePage() { //Temp Data. Container에 올리면 Container가 Configuration을 Initialize하기 때문에 이 호출 없이도 사용 가능. //mwkim에 의한 확인 2008.08.20 //------------------------------------------------------------------------------------------- SessionData sessionData = base.GetSession(); BasePageUCtrl basepageuntil = new BasePageUCtrl(); basepageuntil.PageInfo(sessionData.GetXml(), " ", "http://localhost/ees", "80", "", "", "", ""); //------------------------------------------------------------------------------------------- this.InitializeVariable(); this.InitializeBSpread(); }