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

            State = (Statee003)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.Nextstate, State.ISOTransactionType,
                                State.ISOCurrencyCode, State.ISOCurrencyExponent, State.Amountsourcebuffer,
                                "000", "000", State.ConfigId, State.BrandId, State.ConfigVersion);
            SqlStringList.Add(sql);

            return(SqlStringList);
        }
Exemplo n.º 2
0
        public override Object FillStatesFromDB(object[] processRow, ArrayList StateList)
        {
            Statee003 state = new Statee003();
            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._Nextstate           = processRow[9].ToString();
            state._ISOTransactionType  = processRow[10].ToString();
            state._ISOCurrencyCode     = processRow[11].ToString();
            state._ISOCurrencyExponent = processRow[12].ToString();
            state._Amountsourcebuffer  = processRow[13].ToString();


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

            ////NextState Kontrolu
            if (state.Nextstate != "255")
            {
                ChildobjList.Add(GetChildState("Nextstate", state.Nextstate, 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);
        }
Exemplo n.º 3
0
        public override Object FillPropertyGridFromState(Object ClassInstance, PropertyGrid SelectedPgrid)
        {
            Statee003 Selectedstate = new Statee003();
            Statee003 Dynamicstate  = new Statee003();

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

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

            Dynamicstate._Description       = Selectedstate.StateDescription;
            Dynamicstate._ChipCardOperation = Selectedstate.ChipCardOperation;
            //Dynamicstate._Nextstate = Selectedstate._Nextstate;
            Dynamicstate._ISOTransactionType  = Selectedstate.ISOTransactionType;
            Dynamicstate._ISOCurrencyCode     = Selectedstate.ISOCurrencyCode;
            Dynamicstate._ISOCurrencyExponent = Selectedstate.ISOCurrencyExponent;
            Dynamicstate._Amountsourcebuffer  = Selectedstate.Amountsourcebuffer;

            return(Dynamicstate);
        }