示例#1
0
        public List <string> ScanNewBill(string billString, string billType)
        {
            List <string> list = new List <string>();

            try
            {
                DzInspurWarehouseOperationService.WarehouseOperationServiceService ops = new DzInspurWarehouseOperationService.WarehouseOperationServiceService();
                string xml = ops.ScanNewBill();
                list = ParsDateBill(xml, billType, list);
            }
            catch (Exception e)
            {
                THOKUtil.ShowError("从浪潮ScanNewBill下载数据出错,原因:" + e.Message);
            }
            return(list);
        }
示例#2
0
        /// <summary>
        /// 查询单据号 zxl 2013-12-19
        /// </summary>
        /// <param name="billString">查询方法名</param>
        /// <param name="billType">订单类型</param>
        /// <returns>返回单据集合</returns>
        //public List<string> ScanNewBill(string billString,string billType)
        //{
        //    List<string> list = new List<string>();
        //    try
        //    {
        //        url = configUtil.GetConfig("URL")["URL"] + "WarehouseOperationService/ScanNewBill";
        //        WebClient client = new WebClient();
        //        byte[] data = client.DownloadData(url);
        //        string xml = System.Text.Encoding.GetEncoding("GB2312").GetString(data);

        //        file.logInfo(DateTime.Now.ToString("yyyy-MM-dd"), "[单号数据][" + DateTime.Now + "]:" + xml);
        //        list = ParsDateBill(xml, billType, list);
        //    }
        //    catch (Exception e)
        //    {
        //        THOKUtil.ShowError("从浪潮下载数据出错,原因:" + e.Message);
        //    }
        //    return list;
        //}
        public List <string> ScanNewBill(string billString, string billType)
        {
            List <string> list = new List <string>();

            try
            {
                DzInspurWarehouseOperationService.WarehouseOperationServiceService ops = new DzInspurWarehouseOperationService.WarehouseOperationServiceService();
                string xml = ops.ScanNewBill();
                file.logInfo(DateTime.Now.ToString("yyyy-MM-dd"), "[单号数据][" + DateTime.Now + "]:" + xml);
                list = ParsDateBill(xml, billType, list);
            }
            catch (Exception e)
            {
                THOKUtil.ShowError("从浪潮ScanNewBill下载数据出错,原因:" + e.Message);
            }
            return(list);
        }
示例#3
0
 public List<string> ScanNewBill(string billString, string billType)
 {
     List<string> list = new List<string>();
     try
     {
         DzInspurWarehouseOperationService.WarehouseOperationServiceService ops = new DzInspurWarehouseOperationService.WarehouseOperationServiceService();
         string xml = ops.ScanNewBill();
         list = ParsDateBill(xml, billType, list);
     }
     catch (Exception e)
     {
         MessageBox.Show("���˳�ScanNewBill�������ݳ����ԭ��" + e.Message);
     }
     return list;
 }
示例#4
0
 /// <summary>
 /// 查询单据号 zxl 2013-12-19 
 /// </summary>
 /// <param name="billString">查询方法名</param>
 /// <param name="billType">订单类型</param>
 /// <returns>返回单据集合</returns>
 //public List<string> ScanNewBill(string billString,string billType)
 //{
 //    List<string> list = new List<string>();
 //    try
 //    {
 //        url = configUtil.GetConfig("URL")["URL"] + "WarehouseOperationService/ScanNewBill";
 //        WebClient client = new WebClient();
 //        byte[] data = client.DownloadData(url);
 //        string xml = System.Text.Encoding.GetEncoding("GB2312").GetString(data);
 //        file.logInfo(DateTime.Now.ToString("yyyy-MM-dd"), "[单号数据][" + DateTime.Now + "]:" + xml);
 //        list = ParsDateBill(xml, billType, list);
 //    }
 //    catch (Exception e)
 //    {
 //        THOKUtil.ShowError("从浪潮下载数据出错,原因:" + e.Message);
 //    }
 //    return list;
 //}
 public List<string> ScanNewBill(string billString, string billType)
 {
     List<string> list = new List<string>();
     try
     {
         DzInspurWarehouseOperationService.WarehouseOperationServiceService ops = new DzInspurWarehouseOperationService.WarehouseOperationServiceService();
         string xml = ops.ScanNewBill();
         file.logInfo(DateTime.Now.ToString("yyyy-MM-dd"), "[单号数据][" + DateTime.Now + "]:" + xml);
         list = ParsDateBill(xml, billType, list);
     }
     catch (Exception e)
     {
         THOKUtil.ShowError("从浪潮ScanNewBill下载数据出错,原因:" + e.Message);
     }
     return list;
 }