Example #1
0
        //生成XML文件
        public XmlDocument createXml(string kid, string username, string password, string kct_uuid)
        {
            DataTable            dt      = CSVFileHelper.OpenCSV(textBox1.Text);
            List <KCT_CASE_INFO> kctList = CSVFileHelper.ToKctList(dt);

            dic = CSVFileHelper.Group(kctList);
            XmlDocument xmlStr = CSVFileHelper.CreateXml(dic, kid, username, password, kct_uuid);

            if (xmlStr == null)
            {
                Console.WriteLine("f1null");
            }
            else
            {
                Console.WriteLine("f1ookokok");
            }
            return(xmlStr);
            //  return CSVFileHelper.CreateXml(dic, "K3101150000002011080064", "admin", "d54335949bd2b7f43bca357350e164ed", "52813100500148620140730230647098");
            //if (a)
            //{
            //    //MessageBox.Show("XML文件已生成!");
            //    return true;
            //}
            //else
            //{
            //    return false;
            //}
        }
Example #2
0
        public XmlDocument createXml(string kid, string username, string password, string kct_uuid)
        {
            DataTable            dt      = CSVFileHelper.OpenCSV(txtfile.Text.Trim());
            List <KCT_CASE_INFO> kctList = CSVFileHelper.ToKctList(dt);

            dic = CSVFileHelper.Group(kctList);
            XmlDocument xmlStr = CSVFileHelper.CreateXml(dic, kid, username, password, kct_uuid);

            return(xmlStr);
        }