コード例 #1
0
        public override Object FillStatesFromDB(object[] processRow, ArrayList StateList)
        {
            Statee005 state = new Statee005();
            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._SecondACSuccessfulNextstate = processRow[9].ToString();
            state._EMVAppErrorNextstate        = processRow[10].ToString();
            state._EMVHardwareErrorNextstate   = processRow[11].ToString();
            state._EMVSequenceErrorNextstate   = processRow[12].ToString();

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

            ////NextState Kontrolu
            if (state.SecondACSuccessfulNextstate != "255")
            {
                ChildobjList.Add(GetChildState("SecondACSuccessfulNextstate", state.SecondACSuccessfulNextstate, 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);
        }
コード例 #2
0
        public override object CreateInsertCommandScript(PropertyGrid SelectedPgrid, string ProjectName, string TransactionName, int ExtensionStateNumber)
        {
            Statee005 State = new Statee005();

            State = (Statee005)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.SecondACSuccessfulNextstate,
                                State.EMVAppErrorNextstate, State.EMVHardwareErrorNextstate, State.EMVSequenceErrorNextstate,
                                "000", "000", "000", State.ConfigId, State.BrandId, State.ConfigVersion);
            SqlStringList.Add(sql);

            return(SqlStringList);
        }
コード例 #3
0
        public override Object StateChanged(string SelectedProperty, string newValue, Object ClassInstance, PropertyGrid SelectedPgrid)
        {
            //FillStateFromPropertyGrid
            Statee005 Selectedstate = new Statee005();
            Statee005 Dynamicstate  = new Statee005();

            Selectedstate             = (Statee005)SelectedPgrid.SelectedObject;
            Dynamicstate              = (Statee005)ClassInstance;
            Dynamicstate._Description = Selectedstate.StateDescription;
            Dynamicstate.BrandId      = Selectedstate.BrandId;
            Dynamicstate.ConfigId     = Selectedstate.ConfigId;

            Dynamicstate._ChipCardOperation           = Selectedstate.ChipCardOperation;
            Dynamicstate._SecondACSuccessfulNextstate = Selectedstate.SecondACSuccessfulNextstate;
            Dynamicstate._EMVAppErrorNextstate        = Selectedstate.EMVAppErrorNextstate;
            Dynamicstate._EMVHardwareErrorNextstate   = Selectedstate.EMVHardwareErrorNextstate;
            Dynamicstate._EMVSequenceErrorNextstate   = Selectedstate.EMVSequenceErrorNextstate;

            return(Dynamicstate);
        }