예제 #1
0
        public void Test_RC_Ways(int id_way)
        {
            RC_Ways ws  = new RC_Ways();
            WAYS    way = ws.GetWays(id_way);

            WL(way);
        }
예제 #2
0
        public void Test_RC_WaysToStations(int id_station, string num)
        {
            RC_Ways ws = new RC_Ways();
            WAYS    w  = ws.GetWaysOfStations(id_station, num);
            int?    nw = ws.GetIDWaysToStations(id_station, num);

            WL(w);
            Console.WriteLine(" id: {0}", nw);
        }
예제 #3
0
        public void Test_RC_Ways()
        {
            RC_Ways ws = new RC_Ways();

            foreach (WAYS t in ws.GetWays())
            {
                WL(t);
            }
        }
예제 #4
0
        public void Test_RC_WaysToStations(int id_station)
        {
            RC_Ways           ws   = new RC_Ways();
            IQueryable <WAYS> list = ws.GetWaysOfStations(id_station);

            foreach (WAYS t in list)
            {
                WL(t);
            }
            Console.WriteLine(" количество: {0}", list.Count());
        }
예제 #5
0
        public void Test_SUD_RC_Ways()
        {
            RC_Ways ws = new RC_Ways();
            WAYS    w1 = new WAYS()
            {
                id_way       = 0,
                id_stat      = 4,
                id_park      = null,
                num          = "0",
                name         = "Тест",
                vag_capacity = 7,
                order        = null,
                bind_id_cond = null,
                for_rospusk  = null,
            };
            int id_new = ws.SaveWays(w1);

            Test_RC_Ways(id_new);
            WAYS w2 = new WAYS()
            {
                id_way       = id_new,
                id_stat      = 4,
                id_park      = null,
                num          = "0",
                name         = "Тест11111",
                vag_capacity = 9,
                order        = null,
                bind_id_cond = null,
                for_rospusk  = null,
            };
            int id_ch = ws.SaveWays(w2);

            Test_RC_Ways(id_ch);
            WAYS del = ws.DeleteWays(id_ch);

            WL(del);
        }