Exemplo n.º 1
0
        public override object CreateInsertCommandScript(PropertyGrid SelectedPgrid, string ProjectName, string TransactionName, int ExtensionStateNumber)
        {
            Statee000 State = new Statee000();

            State = (Statee000)SelectedPgrid.SelectedObject;
            List <string> SqlStringList = new List <string>();
            string        sql           = SqlStr;

            //Screen Extension
            string ex1sql = sql;

            if (State.ExtensionStateNumber != "255")
            {
                ex1sql = string.Format(ex1sql, Guid, Status, DateTime.Now.ToString("yyyyMMddHHmmss"), State.ExtensionStateNumber,
                                       State.ExtensionDescription, State.ExtensionType, ProjectName, TransactionName, State.PleaseWaitScreenNumber,
                                       State.ProcessNotStartNextstate, State.FlagServiceCodechecking, State.FlagConfirmCandidatesChecking, State.ExtensionReserved,
                                       State.ExtensionReserved, State.ExtensionReserved, State.ExtensionReserved,
                                       State.ConfigId, State.BrandId, State.ConfigVersion);
                SqlStringList.Add(ex1sql);
            }

            sql = string.Format(sql, Guid, Status, DateTime.Now.ToString("yyyyMMddHHmmss"), State.StateNumber, State.StateDescription,
                                State.StateType, ProjectName, TransactionName, State.ChipCardOperation, State.SuccessfulNextstate, State.FailedContactingNextState,
                                State.NoAppAvaliableNextState, State.EMVAppLevelErrorNextState, State.EMVHardwareErrorNextState, State.ExtensionStateNumber,
                                State.Reserved, State.ConfigId, State.BrandId, State.ConfigVersion);
            SqlStringList.Add(sql);

            return(SqlStringList);
        }
Exemplo n.º 2
0
        public override Object FillPropertyGridFromState(Object ClassInstance, PropertyGrid SelectedPgrid)
        {
            Statee000 Selectedstate = new Statee000();
            Statee000 Dynamicstate  = new Statee000();

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

            Dynamicstate.BrandId  = Selectedstate.BrandId;
            Dynamicstate.ConfigId = Selectedstate.ConfigId;

            Dynamicstate._Description       = Selectedstate.StateDescription;
            Dynamicstate._ChipCardOperation = Selectedstate.ChipCardOperation;
            //Dynamicstate._SuccessfulNextstate = Selectedstate._SuccessfulNextstate;
            //Dynamicstate._FailedContactingNextState = Selectedstate._FailedContactingNextState;
            //Dynamicstate._NoAppAvaliableNextState = Selectedstate._NoAppAvaliableNextState;
            //Dynamicstate._EMVAppLevelErrorNextState = Selectedstate._EMVAppLevelErrorNextState;
            //Dynamicstate._EMVHardwareErrorNextState = Selectedstate._EMVHardwareErrorNextState;
            Dynamicstate._Reserved = Selectedstate.Reserved;

            Dynamicstate._ExtensionStateNumber          = Selectedstate.ExtensionStateNumber;
            Dynamicstate._ExtensionType                 = Selectedstate.ExtensionType;
            Dynamicstate._ExtensionDescription          = Selectedstate.ExtensionDescription;
            Dynamicstate._PleaseWaitScreenNumber        = Selectedstate.PleaseWaitScreenNumber;
            Dynamicstate._ProcessNotStartNextstate      = Selectedstate.ProcessNotStartNextstate;
            Dynamicstate._FlagServiceCodechecking       = Selectedstate.FlagServiceCodechecking;
            Dynamicstate._FlagConfirmCandidatesChecking = Selectedstate.FlagConfirmCandidatesChecking;
            Dynamicstate._ExtensionReserved             = Selectedstate.ExtensionReserved;

            return(Dynamicstate);
        }
Exemplo n.º 3
0
        public override Object FillStatesFromDB(object[] processRow, ArrayList StateList)
        {
            Statee000 state = new Statee000();
            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._ChipCardOperation         = processRow[8].ToString();
            state._SuccessfulNextstate       = processRow[9].ToString();
            state._FailedContactingNextState = processRow[10].ToString();
            state._NoAppAvaliableNextState   = processRow[11].ToString();
            state._EMVAppLevelErrorNextState = processRow[12].ToString();
            state._EMVHardwareErrorNextState = processRow[13].ToString();
            state._ExtensionStateNumber      = processRow[14].ToString();

            state._Reserved = processRow[15].ToString();

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

            //Extension State Kontrolu Screen
            if (state.ExtensionStateNumber != "255")
            {
                object[] ExtensionState = GetExtensionState(ref StateList, state.ExtensionStateNumber);
                state._ExtensionDescription          = processRow[4].ToString();
                state._PleaseWaitScreenNumber        = ExtensionState[8].ToString();
                state._ProcessNotStartNextstate      = ExtensionState[9].ToString();
                state._FlagServiceCodechecking       = ExtensionState[10].ToString();
                state._FlagConfirmCandidatesChecking = ExtensionState[11].ToString();
                state._ExtensionReserved             = ExtensionState[12].ToString();
            }

            ////NextState Kontrolu
            if (state.SuccessfulNextstate != "255")
            {
                ChildobjList.Add(GetChildState("SuccessfulNextstate", state.SuccessfulNextstate, StateList, processRow[7].ToString(), state.StateType, state.StateNumber));
            }
            if (state.FailedContactingNextState != "255")
            {
                ChildobjList.Add(GetChildState("FailedContactingNextState", state.FailedContactingNextState, StateList, processRow[7].ToString(), state.StateType, state.StateNumber));
            }
            if (state.NoAppAvaliableNextState != "255")
            {
                ChildobjList.Add(GetChildState("NoAppAvaliableNextState", state.NoAppAvaliableNextState, StateList, processRow[7].ToString(), state.StateType, state.StateNumber));
            }
            if (state.EMVAppLevelErrorNextState != "255")
            {
                ChildobjList.Add(GetChildState("EMVAppLevelErrorNextState", state.EMVAppLevelErrorNextState, StateList, processRow[7].ToString(), state.StateType, state.StateNumber));
            }
            if (state.EMVHardwareErrorNextState != "255")
            {
                ChildobjList.Add(GetChildState("EMVHardwareErrorNextState", state.EMVHardwareErrorNextState, 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);
        }