Exemple #1
0
        public override Object FillStatesFromDB(object[] processRow, ArrayList StateList)
        {
            StateA state = new StateA();
            ModelCanvasStateObject        TransStateObj = new ModelCanvasStateObject();
            List <ModelParentStateObject> ParentobjList = new List <ModelParentStateObject>();
            List <ModelChildStateObject>  ChildobjList  = new List <ModelChildStateObject>();

            state.Status       = processRow[1].ToString();
            state.StateNumber  = processRow[3].ToString();
            state._Description = processRow[4].ToString();
            state.StateType    = processRow[5].ToString();

            state._screen              = processRow[8].ToString();
            state._GoodReadNextState   = processRow[9].ToString();
            state._misreadScreen       = processRow[10].ToString();
            state._readCondition1      = processRow[11].ToString();
            state._readCondition2      = processRow[12].ToString();
            state._readCondition3      = processRow[13].ToString();
            state._cardReturnFlag      = processRow[14].ToString();
            state._NoFITMatchNextState = processRow[15].ToString();

            state.ConfigId      = processRow[16].ToString();
            state.BrandId       = processRow[17].ToString();
            state.ConfigVersion = processRow[18].ToString();

            //NextState Kontrolu
            #region nextState arrange-parent and pointer

            if (state.GoodReadNextState != "255")
            {
                ChildobjList.Add(GetChildState("GoodReadNextState", state.GoodReadNextState, StateList, processRow[7].ToString(), state.StateType, state.StateNumber));
            }
            if (state.NoFITMatchNextState != "255")
            {
                ChildobjList.Add(GetChildState("NoFITMatchNextState", state.NoFITMatchNextState, StateList, processRow[7].ToString(), state.StateType, state.StateNumber));
            }

            #endregion



            TransStateObj.BrandId          = state.BrandId;
            TransStateObj.ConfigId         = state.ConfigId;
            TransStateObj.Id               = state.StateNumber;
            TransStateObj.StateDescription = state.StateDescription;
            TransStateObj.Type             = state.StateType;
            TransStateObj.TransactionName  = processRow[7].ToString();

            TransStateObj.PropertyGrid.SelectedObject = state;
            TransStateObj.ParentStateList             = ParentobjList;
            TransStateObj.ChildStateList = ChildobjList;
            designerCanvas.TransactionList.Add(TransStateObj);

            return(StateList);
        }
Exemple #2
0
        public override object CreateInsertCommandScript(PropertyGrid SelectedPgrid, string ProjectName, string TransactionName, int ExtensionStateNumber)
        {
            StateA State = new StateA();

            State = (StateA)SelectedPgrid.SelectedObject;
            List <string> SqlStringList = new List <string>();

            string sql = SqlStr;

            sql = string.Format(sql, Guid, Status, DateTime.Now.ToString("yyyyMMddHHmmss"), State.StateNumber, State.StateDescription,
                                State.StateType, ProjectName, TransactionName, State.ScreenNumber, State.GoodReadNextState, State.MisreadScreen,
                                State.ReadCondition1, State.ReadCondition2, State.ReadCondition3, State.CardReturnFlag, State.NoFITMatchNextState,
                                State.ConfigId, State.BrandId, State.ConfigVersion);
            SqlStringList.Add(sql);

            return(SqlStringList);
        }
Exemple #3
0
        public override Object FillPropertyGridFromState(Object ClassInstance, PropertyGrid SelectedPgrid)
        {
            StateA Selectedstate = new StateA();
            StateA Dynamicstate  = new StateA();

            Selectedstate                = (StateA)SelectedPgrid.SelectedObject;
            Dynamicstate                 = (StateA)ClassInstance;
            Dynamicstate._Description    = Selectedstate.StateDescription;
            Dynamicstate.BrandId         = Selectedstate.BrandId;
            Dynamicstate.ConfigId        = Selectedstate.ConfigId;
            Dynamicstate._cardReturnFlag = Selectedstate.CardReturnFlag;
            //Dynamicstate._GoodReadNextState = Selectedstate._GoodReadNextState;
            Dynamicstate._misreadScreen = Selectedstate.MisreadScreen;
            //Dynamicstate._nofitmatchState = Selectedstate._nofitmatchState;
            Dynamicstate._readCondition1 = Selectedstate.ReadCondition1;
            Dynamicstate._readCondition2 = Selectedstate.ReadCondition2;
            Dynamicstate._readCondition3 = Selectedstate.ReadCondition3;
            Dynamicstate._screen         = Selectedstate.ScreenNumber;
            return(Dynamicstate);
        }
Exemple #4
0
        public override Object StateChanged(string SelectedProperty, string newValue, Object ClassInstance, PropertyGrid SelectedPgrid)
        {
            //FillStateFromPropertyGrid
            StateA Selectedstate = new StateA();
            StateA Dynamicstate  = new StateA();

            Selectedstate = (StateA)SelectedPgrid.SelectedObject;
            Dynamicstate  = (StateA)ClassInstance;

            Dynamicstate._Description         = Selectedstate.StateDescription;
            Dynamicstate.BrandId              = Selectedstate.BrandId;
            Dynamicstate.ConfigId             = Selectedstate.ConfigId;
            Dynamicstate._cardReturnFlag      = Selectedstate.CardReturnFlag;
            Dynamicstate._GoodReadNextState   = Selectedstate.GoodReadNextState;
            Dynamicstate._misreadScreen       = Selectedstate.MisreadScreen;
            Dynamicstate._NoFITMatchNextState = Selectedstate.NoFITMatchNextState;
            Dynamicstate._readCondition1      = Selectedstate.ReadCondition1;
            Dynamicstate._readCondition2      = Selectedstate.ReadCondition2;
            Dynamicstate._readCondition3      = Selectedstate.ReadCondition3;
            Dynamicstate._screen              = Selectedstate.ScreenNumber;

            return(Dynamicstate);
        }