예제 #1
0
        static void load_tags_from_CSV(ref Inventory_System_API x)
        {
            CDF_to_DataTable y          = new CDF_to_DataTable(',', "tags.csv", true);
            DataTable        TicketTags = new DataTable();
            List <TicketTag> L          = new List <TicketTag>();

            TicketTags = y.Start_Conversion();
            foreach (DataRow R in TicketTags.Rows)
            {
                //L.Add(TicketTagLogic.DataRow2Tag(R));
                L.Add(Inventory_System_API.TicketTag_DataRow2Tag(R));
            }
            for (int j = 0; j < L.Count; j++)
            {
                x.CreateCountTiket(L[j]);
            }
        }
예제 #2
0
        static void load_MOtags_from_CSV(ref Inventory_System_API x)
        {
            CDF_to_DataTable y      = new CDF_to_DataTable(',', "MO tags Headers.csv", true);
            DataTable        MOTags = new DataTable();
            List <MOTag>     L      = new List <MOTag>();

            MOTags = y.Start_Conversion();

            foreach (DataRow R in MOTags.Rows)
            {
                //L.Add(TicketTagLogic.DataRow2Tag(R));
                L.Add(Inventory_System_API.MOTag_DataRow2Tag(R));
            }

            //x.CreateMOHeaderTag(L[0]);
            for (int j = 0; j < L.Count; j++)
            {
                x.CreateMOHeaderTag(L[j]);
            }
        }