Example #1
0
        public void VersionHistoryClicked()
        {
            if (!(this.bSpread != null && this.bSpread.ActiveSheet.RowCount > 0))
            {
                MSGHandler.DisplayMessage(MSGType.Information, "SPC_INFO_SEARCH_SPC_MODEL_LIST", null, null);
                return;
            }

            //int selectColumnIndex = GetColumnIndex("SELECT");
            //if(selectColumnIndex == -1)
            //    throw new Exception("There is no 'select' column.");

            ArrayList selectedList = bSpread.GetCheckedList(0);

            if (selectedList.Count != 1)
            {
                MSGHandler.DisplayMessage(MSGType.Information, "SPC_INFO_SEARCH_SPC_MODEL_LIST", null, null);
                return;
            }

            string modelID = this.bSpread.GetCellText((int)selectedList[0], GetColumnIndex(BISTel.eSPC.Common.COLUMN.CHART_ID));

            if (VersionHistoryButtonClicked != null)
            {
                var args = new VersionHistoryButtonClickedEventArgs {
                    ModelID = modelID
                };
                VersionHistoryButtonClicked(this, args);
            }
        }
Example #2
0
        public void VersionHistoryButtonClicked(object sender, VersionHistoryButtonClickedEventArgs args)
        {
            LinkedList llCondition = new LinkedList(Definition.CONDITION_KEY_MODEL_CONFIG_RAWID, args.ModelID);

            this.spcModelVersionHistory1.PageSearch(llCondition);
        }