Esempio n. 1
0
        public override Object FillPropertyGridFromState(Object ClassInstance, PropertyGrid SelectedPgrid)
        {
            StateI Selectedstate = new StateI();

            Selectedstate = (StateI)SelectedPgrid.SelectedObject;
            StateI Dynamicstate = new StateI();

            Dynamicstate                        = (StateI)ClassInstance;
            Dynamicstate.BrandId                = Selectedstate.BrandId;
            Dynamicstate.ConfigId               = Selectedstate.ConfigId;
            Dynamicstate._Description           = Selectedstate.StateDescription;
            Dynamicstate._ExtensionDescription1 = Selectedstate.ExtensionDescription1;
            Dynamicstate._ExtensionDescription2 = Selectedstate.ExtensionDescription2;

            Dynamicstate._EMVCAMProcessing = Selectedstate._EMVCAMProcessing;
            //Dynamicstate._OfflineDeclineNextStateNumber = Selectedstate._OfflineDeclineNextStateNumber;
            Dynamicstate._screen                    = Selectedstate._screen;
            Dynamicstate._sendAmntData              = Selectedstate._sendAmntData;
            Dynamicstate._SendGenPurpData_Ex        = Selectedstate._SendGenPurpData_Ex;
            Dynamicstate._sendGenPurpDataOrExtState = Selectedstate._sendGenPurpDataOrExtState;
            Dynamicstate._sendOpCodeData            = Selectedstate._sendOpCodeData;
            Dynamicstate._SendOptionalData          = Selectedstate._SendOptionalData;
            Dynamicstate._SendOptionalDataAH        = Selectedstate._SendOptionalDataAH;
            Dynamicstate._SendOptionalDataIL        = Selectedstate._SendOptionalDataIL;
            Dynamicstate._SendOptionalDataQV        = Selectedstate._SendOptionalDataQV;
            Dynamicstate._sendPinBuffData           = Selectedstate._sendPinBuffData;
            Dynamicstate.Send_Track1Track3_Data     = Selectedstate.Send_Track1Track3_Data;
            Dynamicstate._sendTrack2Data            = Selectedstate._sendTrack2Data;
            //Dynamicstate._timeoutnextState = Selectedstate._timeoutnextState;
            return(Dynamicstate);
        }
Esempio n. 2
0
        public override object CreateInsertCommandScript(PropertyGrid SelectedPgrid, string ProjectName, string TransactionName, int ExtensionStateNumber)
        {
            StateI State = new StateI();

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

            string sql = SqlStr;

            State.SendGenPurpDataOrExtState = State.SendGenPurpData;
            if ((State.SendPinBuffData == "128" || State.SendPinBuffData == "129"))
            {
                string exsql = sql;
                if (State.ExtensionStateNumber1 != "255")
                {
                    exsql = string.Format(exsql, Guid, Status, DateTime.Now.ToString("yyyyMMddHHmmss"), State.ExtensionStateNumber1,
                                          State.ExtensionDescription1, State.ExtensionType, ProjectName, TransactionName, State.SendGenPurpData_extension,
                                          State.SendOptionalDataAH, State.SendOptionalDataIL, State.SendOptionalDataQV, State.SendOptionalData, State.Reserved,
                                          State.EMVCAMProcessing, State.ExtensionStateNumber2, State.ConfigId, State.BrandId, State.ConfigVersion);
                    SqlStringList.Add(exsql);
                    State.SendGenPurpDataOrExtState = State.ExtensionStateNumber1;

                    if (State.OfflineDeclineNextState != "255")
                    {
                        string exsql1 = sql;
                        if (State.ExtensionStateNumber2 == "255")
                        {
                            exsql1 = string.Format(exsql1, Guid, Status, DateTime.Now.ToString("yyyyMMddHHmmss"), State.ExtensionStateNumber2,
                                                   State.ExtensionDescription2, State.ExtensionType, ProjectName, TransactionName,
                                                   State.OfflineDeclineNextState, State.Reserved, State.Reserved, State.Reserved, State.Reserved, State.Reserved,
                                                   State.Reserved, State.Reserved, State.ConfigId, State.BrandId, State.ConfigVersion);
                            SqlStringList.Add(exsql1);
                        }
                    }
                }
            }


            sql = string.Format(sql, Guid, Status, DateTime.Now.ToString("yyyyMMddHHmmss"), State.StateNumber, State.StateDescription,
                                State.StateType, ProjectName, TransactionName, State.ScreenNumber, State.TimeoutNextState, State.SendTrack2Data,
                                State.Send_Track1Track3_Data, State.SendOpCodeData, State.SendAmntData, State.SendPinBuffData, State.SendGenPurpDataOrExtState,
                                State.ConfigId, State.BrandId, State.ConfigVersion);
            SqlStringList.Add(sql);

            return(SqlStringList);
        }
Esempio n. 3
0
        private static StateI FillStateFromPropertyGrid(Object ClassInstance, PropertyGrid SelectedPgrid)
        {
            StateI Selectedstate = new StateI();

            Selectedstate = (StateI)SelectedPgrid.SelectedObject;
            StateI Dynamicstate = new StateI();

            Dynamicstate = (StateI)ClassInstance;

            Dynamicstate._EMVCAMProcessing = "000";
            if (Selectedstate._EMVCAMProcessingFlag == "1")
            {
                Dynamicstate.EMVCAMProcessing = "001";
                if (Dynamicstate._PerformEMVCAMProcessingFlag == "1")
                {
                    Dynamicstate.EMVCAMProcessing = "003";
                }
            }

            Dynamicstate._Description           = Selectedstate.StateDescription;
            Dynamicstate.BrandId                = Selectedstate.BrandId;
            Dynamicstate.ConfigId               = Selectedstate.ConfigId;
            Dynamicstate._ExtensionDescription1 = Selectedstate.ExtensionDescription1;
            Dynamicstate._ExtensionDescription2 = Selectedstate.ExtensionDescription2;

            Dynamicstate._OfflineDeclineNextState = Selectedstate._OfflineDeclineNextState;
            Dynamicstate._screen                    = Selectedstate._screen;
            Dynamicstate._sendAmntData              = Selectedstate._sendAmntData;
            Dynamicstate._SendGenPurpData_Ex        = Selectedstate._SendGenPurpData_Ex;
            Dynamicstate._sendGenPurpDataOrExtState = Selectedstate._sendGenPurpDataOrExtState;
            Dynamicstate._sendOpCodeData            = Selectedstate._sendOpCodeData;
            Dynamicstate._SendOptionalData          = Selectedstate._SendOptionalData;
            Dynamicstate._SendOptionalDataAH        = Selectedstate._SendOptionalDataAH;
            Dynamicstate._SendOptionalDataIL        = Selectedstate._SendOptionalDataIL;
            Dynamicstate._SendOptionalDataQV        = Selectedstate._SendOptionalDataQV;
            Dynamicstate._sendPinBuffData           = Selectedstate._sendPinBuffData;
            Dynamicstate.Send_Track1Track3_Data     = Selectedstate.Send_Track1Track3_Data;
            Dynamicstate._sendTrack2Data            = Selectedstate._sendTrack2Data;
            Dynamicstate._timeoutNextState          = Selectedstate._timeoutNextState;
            return(Dynamicstate);
        }
Esempio n. 4
0
        public override object FillStatesFromDB(object[] processRow, ArrayList StateList)
        {
            StateI state = new StateI();
            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.StateDescription = processRow[4].ToString();
            state.StateType        = processRow[5].ToString();

            state._screen                    = processRow[8].ToString();
            state._timeoutNextState          = processRow[9].ToString();
            state._sendTrack2Data            = processRow[10].ToString();
            state._send_Track1Track3_Data    = processRow[11].ToString();
            state._sendOpCodeData            = processRow[12].ToString();
            state._sendAmntData              = processRow[13].ToString();
            state._sendPinBuffData           = processRow[14].ToString();
            state._sendGenPurpDataOrExtState = processRow[15].ToString();

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

            //Extension State Kontrolu
            if (state.SendPinBuffData == "128" || state.SendPinBuffData == "129")
            {
                object[] ExtensionState = GetExtensionState(ref StateList, state.SendGenPurpDataOrExtState);
                state._sendGenPurpDataOrExtState = ExtensionState[3].ToString();
                state._ExtensionDescription1     = ExtensionState[4].ToString();

                state._SendGenPurpData_Ex    = ExtensionState[8].ToString();
                state._SendOptionalDataAH    = ExtensionState[9].ToString();
                state._SendOptionalDataIL    = ExtensionState[10].ToString();
                state._SendOptionalDataQV    = ExtensionState[11].ToString();
                state._SendOptionalData      = ExtensionState[12].ToString();
                state._Reserved              = ExtensionState[13].ToString();
                state._EMVCAMProcessing      = ExtensionState[14].ToString();
                state._ExtensionStateNumber2 = ExtensionState[15].ToString();

                if (state.ExtensionStateNumber2 != "255")
                {
                    object[] ExtensionStates2 = GetExtensionState(ref StateList, state.ExtensionStateNumber2);
                    state._ExtensionDescription2 = ExtensionStates2[4].ToString();

                    state._OfflineDeclineNextState = ExtensionStates2[8].ToString();
                }
            }

            //NextState Kontrolu
            if (state.TimeoutNextState != "255")
            {
                ChildobjList.Add(GetChildState("TimeoutNextState", state.TimeoutNextState, 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);
        }