Ejemplo n.º 1
0
 public HandicapEN(int id, PickadosGenNHibernate.Enumerated.Pickados.ResultEnum result
                   , PickadosGenNHibernate.Enumerated.Pickados.LineEnum line, double quantity, bool asian
                   , double odd, string description, PickadosGenNHibernate.Enumerated.Pickados.PickResultEnum pickResult, string bookie, System.Collections.Generic.IList <PickadosGenNHibernate.EN.Pickados.PostEN> post, PickadosGenNHibernate.EN.Pickados.Event_EN event_rel
                   )
 {
     this.init(Id, result, line, quantity, asian, odd, description, pickResult, bookie, post, event_rel);
 }
Ejemplo n.º 2
0
        private void init(int id
                          , PickadosGenNHibernate.Enumerated.Pickados.LineEnum line, double quantity, bool asian, double odd, string description, PickadosGenNHibernate.Enumerated.Pickados.PickResultEnum pickResult, string bookie, System.Collections.Generic.IList <PickadosGenNHibernate.EN.Pickados.PostEN> post, PickadosGenNHibernate.EN.Pickados.Event_EN event_rel)
        {
            this.Id = id;


            this.Line = line;

            this.Quantity = quantity;

            this.Asian = asian;

            this.Odd = odd;

            this.Description = description;

            this.PickResult = pickResult;

            this.Bookie = bookie;

            this.Post = post;

            this.Event_rel = event_rel;
        }
Ejemplo n.º 3
0
        public void ModifyGoal(int p_Goal_OID, double p_odd, string p_description, PickadosGenNHibernate.Enumerated.Pickados.PickResultEnum p_pickResult, string p_bookie, PickadosGenNHibernate.Enumerated.Pickados.LineEnum p_line, double p_quantity, bool p_asian)
        {
            GoalEN goalEN = null;

            //Initialized GoalEN
            goalEN             = new GoalEN();
            goalEN.Id          = p_Goal_OID;
            goalEN.Odd         = p_odd;
            goalEN.Description = p_description;
            goalEN.PickResult  = p_pickResult;
            goalEN.Bookie      = p_bookie;
            goalEN.Line        = p_line;
            goalEN.Quantity    = p_quantity;
            goalEN.Asian       = p_asian;
            //Call to GoalCAD

            _IGoalCAD.ModifyGoal(goalEN);
        }
Ejemplo n.º 4
0
        public int NewGoal(double p_odd, string p_description, PickadosGenNHibernate.Enumerated.Pickados.PickResultEnum p_pickResult, string p_bookie, int p_event_rel, PickadosGenNHibernate.Enumerated.Pickados.LineEnum p_line, double p_quantity, bool p_asian)
        {
            GoalEN goalEN = null;
            int    oid;

            //Initialized GoalEN
            goalEN     = new GoalEN();
            goalEN.Odd = p_odd;

            goalEN.Description = p_description;

            goalEN.PickResult = p_pickResult;

            goalEN.Bookie = p_bookie;


            if (p_event_rel != -1)
            {
                // El argumento p_event_rel -> Property event_rel es oid = false
                // Lista de oids id
                goalEN.Event_rel    = new PickadosGenNHibernate.EN.Pickados.Event_EN();
                goalEN.Event_rel.Id = p_event_rel;
            }

            goalEN.Line = p_line;

            goalEN.Quantity = p_quantity;

            goalEN.Asian = p_asian;

            //Call to GoalCAD

            oid = _IGoalCAD.NewGoal(goalEN);
            return(oid);
        }
Ejemplo n.º 5
0
        public void ModifyHandicap(int p_Handicap_OID, double p_odd, string p_description, PickadosGenNHibernate.Enumerated.Pickados.PickResultEnum p_pickResult, string p_bookie, PickadosGenNHibernate.Enumerated.Pickados.LineEnum p_line, double p_quantity, bool p_asian, PickadosGenNHibernate.Enumerated.Pickados.ResultEnum p_result)
        {
            HandicapEN handicapEN = null;

            //Initialized HandicapEN
            handicapEN             = new HandicapEN();
            handicapEN.Id          = p_Handicap_OID;
            handicapEN.Odd         = p_odd;
            handicapEN.Description = p_description;
            handicapEN.PickResult  = p_pickResult;
            handicapEN.Bookie      = p_bookie;
            handicapEN.Line        = p_line;
            handicapEN.Quantity    = p_quantity;
            handicapEN.Asian       = p_asian;
            handicapEN.Result      = p_result;
            //Call to HandicapCAD

            _IHandicapCAD.ModifyHandicap(handicapEN);
        }
Ejemplo n.º 6
0
        public int NewHandicap(double p_odd, string p_description, PickadosGenNHibernate.Enumerated.Pickados.PickResultEnum p_pickResult, string p_bookie, int p_event_rel, PickadosGenNHibernate.Enumerated.Pickados.LineEnum p_line, double p_quantity, bool p_asian, PickadosGenNHibernate.Enumerated.Pickados.ResultEnum p_result)
        {
            HandicapEN handicapEN = null;
            int        oid;

            //Initialized HandicapEN
            handicapEN     = new HandicapEN();
            handicapEN.Odd = p_odd;

            handicapEN.Description = p_description;

            handicapEN.PickResult = p_pickResult;

            handicapEN.Bookie = p_bookie;


            if (p_event_rel != -1)
            {
                // El argumento p_event_rel -> Property event_rel es oid = false
                // Lista de oids id
                handicapEN.Event_rel    = new PickadosGenNHibernate.EN.Pickados.Event_EN();
                handicapEN.Event_rel.Id = p_event_rel;
            }

            handicapEN.Line = p_line;

            handicapEN.Quantity = p_quantity;

            handicapEN.Asian = p_asian;

            handicapEN.Result = p_result;

            //Call to HandicapCAD

            oid = _IHandicapCAD.NewHandicap(handicapEN);
            return(oid);
        }