Ejemplo n.º 1
0
        public override Object FillPropertyGridFromState(Object ClassInstance, PropertyGrid SelectedPgrid)
        {
            //FillStateFromPropertyGrid
            Statee004 Selectedstate = new Statee004();
            Statee004 Dynamicstate  = new Statee004();

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

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

            Dynamicstate._Description       = Selectedstate.StateDescription;
            Dynamicstate._ChipCardOperation = Selectedstate.ChipCardOperation;

            //Dynamicstate._FirstACSuccessfulNextstate = Selectedstate._FirstACSuccessfulNextstate;
            //Dynamicstate._FirstACDeclinedNextstate = Selectedstate._FirstACDeclinedNextstate;
            //Dynamicstate._ChipReferralNextstate = Selectedstate._ChipReferralNextstate;
            //Dynamicstate._NoAppStartedNextstate = Selectedstate._NoAppStartedNextstate;
            //Dynamicstate._EMVAppErrorNextstate = Selectedstate._EMVAppErrorNextstate;
            //Dynamicstate._EMVHardwareErrorNextstate = Selectedstate._EMVHardwareErrorNextstate;
            //Dynamicstate._EMVSequenceErrorNextstate = Selectedstate._EMVSequenceErrorNextstate;

            return(Dynamicstate);
        }
Ejemplo n.º 2
0
        public override object CreateInsertCommandScript(PropertyGrid SelectedPgrid, string ProjectName, string TransactionName, int ExtensionStateNumber)
        {
            Statee004 State = new Statee004();

            State = (Statee004)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.ChipCardOperation, State.FirstACSuccessfulNextstate, State.FirstACDeclinedNextstate,
                                State.ChipReferralNextstate, State.NoAppStartedNextstate, State.EMVAppErrorNextstate, State.EMVHardwareErrorNextstate,
                                State.EMVSequenceErrorNextstate, State.ConfigId, State.BrandId, State.ConfigVersion);
            SqlStringList.Add(sql);

            return(SqlStringList);
        }
Ejemplo n.º 3
0
        public override Object FillStatesFromDB(object[] processRow, ArrayList StateList)
        {
            Statee004 state = new Statee004();
            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._FirstACSuccessfulNextstate = processRow[9].ToString();
            state._FirstACDeclinedNextstate   = processRow[10].ToString();
            state._ChipReferralNextstate      = processRow[11].ToString();
            state._NoAppStartedNextstate      = processRow[12].ToString();
            state._EMVAppErrorNextstate       = processRow[13].ToString();
            state._EMVHardwareErrorNextstate  = processRow[14].ToString();
            state._EMVSequenceErrorNextstate  = processRow[15].ToString();


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

            ////NextState Kontrolu
            if (state.FirstACSuccessfulNextstate != "255")
            {
                ChildobjList.Add(GetChildState("FirstACSuccessfulNextstate", state.FirstACSuccessfulNextstate, StateList, processRow[7].ToString(), state.StateType, state.StateNumber));
            }
            if (state.FirstACDeclinedNextstate != "255")
            {
                ChildobjList.Add(GetChildState("FirstACDeclinedNextstate", state.FirstACDeclinedNextstate, StateList, processRow[7].ToString(), state.StateType, state.StateNumber));
            }
            if (state.ChipReferralNextstate != "255")
            {
                ChildobjList.Add(GetChildState("ChipReferralNextstate", state.ChipReferralNextstate, StateList, processRow[7].ToString(), state.StateType, state.StateNumber));
            }
            if (state.NoAppStartedNextstate != "255")
            {
                ChildobjList.Add(GetChildState("NoAppStartedNextstate", state.NoAppStartedNextstate, StateList, processRow[7].ToString(), state.StateType, state.StateNumber));
            }
            if (state.EMVAppErrorNextstate != "255")
            {
                ChildobjList.Add(GetChildState("EMVAppErrorNextstate", state.EMVAppErrorNextstate, 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));
            }
            if (state.EMVSequenceErrorNextstate != "255")
            {
                ChildobjList.Add(GetChildState("EMVSequenceErrorNextstate", state.EMVSequenceErrorNextstate, 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);
        }