Beispiel #1
0
        public override object CreateInsertCommandScript(PropertyGrid SelectedPgrid, string ProjectName, string TransactionName, int ExtensionStateNumber)
        {
            StateComma State = new StateComma();

            State = (StateComma)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.PleaseWaitScreenNumber, State.ICCInitSuccessfulNextState,
                                State.CardNotSmartNextState, State.NoUsableAppNextState, State.ICCAppLevelErrorNextState, State.ICCHardLevelErrorNextState,
                                State.Reserved, State.Reserved, State.ConfigId, State.BrandId, State.ConfigVersion);
            SqlStringList.Add(sql);

            return(SqlStringList);
        }
Beispiel #2
0
        public override Object FillPropertyGridFromState(Object ClassInstance, PropertyGrid SelectedPgrid)
        {
            StateComma Selectedstate = new StateComma();
            StateComma Dynamicstate  = new StateComma();

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

            Dynamicstate._Description = Selectedstate.StateDescription;
            Dynamicstate.BrandId      = Selectedstate.BrandId;
            Dynamicstate.ConfigId     = Selectedstate.ConfigId;

            Dynamicstate._PleaseWaitScreenNumber = Selectedstate.PleaseWaitScreenNumber;
            //Dynamicstate._ICCInitSuccessfulNextState = Selectedstate._ICCInitSuccessfulNextState;
            //Dynamicstate._CardNotSmartNextState = Selectedstate._CardNotSmartNextState;
            //Dynamicstate._NoUsableAppNextState = Selectedstate._NoUsableAppNextState;
            //Dynamicstate._ICCAppLevelErrorNextState = Selectedstate._ICCAppLevelErrorNextState;
            //Dynamicstate._ICCHardLevelErrorNextState = Selectedstate._ICCHardLevelErrorNextState;
            Dynamicstate._Reserved = Selectedstate.Reserved;

            return(Dynamicstate);
        }
Beispiel #3
0
        public override Object FillStatesFromDB(object[] processRow, ArrayList StateList)
        {
            StateComma                    state         = new StateComma();
            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._PleaseWaitScreenNumber     = processRow[8].ToString();
            state._ICCInitSuccessfulNextState = processRow[9].ToString();
            state._CardNotSmartNextState      = processRow[10].ToString();
            state._NoUsableAppNextState       = processRow[11].ToString();
            state._ICCAppLevelErrorNextState  = processRow[12].ToString();
            state._ICCHardLevelErrorNextState = processRow[13].ToString();
            state._Reserved = processRow[14].ToString();

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

            //NextState Kontrolu
            if (state.ICCInitSuccessfulNextState != "255")
            {
                ChildobjList.Add(GetChildState("ICCInitSuccessfulNextState", state.ICCInitSuccessfulNextState, StateList, processRow[7].ToString(), state.StateType, state.StateNumber));
            }
            if (state.CardNotSmartNextState != "255")
            {
                ChildobjList.Add(GetChildState("CardNotSmartNextState", state.CardNotSmartNextState, StateList, processRow[7].ToString(), state.StateType, state.StateNumber));
            }
            if (state.NoUsableAppNextState != "255")
            {
                ChildobjList.Add(GetChildState("NoUsableAppNextState", state.NoUsableAppNextState, StateList, processRow[7].ToString(), state.StateType, state.StateNumber));
            }
            if (state.ICCAppLevelErrorNextState != "255")
            {
                ChildobjList.Add(GetChildState("ICCAppLevelErrorNextState", state.ICCAppLevelErrorNextState, StateList, processRow[7].ToString(), state.StateType, state.StateNumber));
            }
            if (state.ICCHardLevelErrorNextState != "255")
            {
                ChildobjList.Add(GetChildState("ICCHardLevelErrorNextState", state.ICCHardLevelErrorNextState, StateList, processRow[7].ToString(), state.StateType, state.StateNumber));
            }


            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);
        }