示例#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)
     {
         MessageBox.Show("���˳�ScanNewBill�������ݳ����ԭ��" + e.Message);
     }
     return list;
 }
示例#2
0
 public DataSet ImportData(string billString, string orderId)
 {
     DataSet ds = GenerateEmptyTables();
     try
     {
         DzInspurWarehouseOperationService.WarehouseOperationServiceService ops = new DzInspurWarehouseOperationService.WarehouseOperationServiceService();
         string xml = "";
         switch (billString)
         {
             case "HITSHELF": //�ϼ�
                 xml = ops.HitShelf(orderId);
                 break;
             case "STOCKTAKE": //�̵�
                 xml = ops.StockTake(orderId);
                 break;
             case "STOCKMOVE": //�¼�
                 xml = ops.StockOut(orderId);
                 break;
             case "STOCKOUT": //��λ
                 xml = ops.StockMove(orderId);
                 break;
         }
         ds = ParseData(xml, ds);
     }
     catch (Exception e)
     {
         MessageBox.Show("���˳��������ݳ����ԭ��" + e.Message);
     }
     return ds;
 }
示例#3
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;
 }
示例#4
0
 public void confirmData(DataTable dataTable, string billType)
 {
     string stateDesc = string.Empty;
     if (dataTable.Rows.Count > 0)
     {
         foreach (DataRow row in dataTable.Rows)
         {
             DzInspurWarehouseOperationService.WarehouseOperationServiceService ops = new DzInspurWarehouseOperationService.WarehouseOperationServiceService();
             url = string.Format(returnMsg,
                                 row["bb_result_info"],
                                 row["bb_type"],
                                 row["bb_order_id"],
                                 row["bb_pda_device_id"],
                                 row["bb_confirmor_name"],
                                 row["bb_confirm_date"],
                                 row["bb_corporation_id"],
                                 row["bb_corporation_name"],
                                 row["bb_detail_id"],
                                 row["bb_operate_type"],
                                 row["bb_cargo_no"],
                                 row["bb_pallet_no"],
                                 row["bb_pallet_move_flg"],
                                 row["bb_brand_id"],
                                 row["bb_brand_name"],
                                 row["bb_handle_num"],
                                 row["bb_inventory_num"],
                                 row["bb_unit"],
                                 row["bb_operator_name"],
                                 row["bb_operate_date"]);
             string xml = "";
             switch (billType)
             {
                 case "1": //�ϼܵ�ȷ��
                     xml = ops.HitShelfConfirm(url);
                     break;
                 case "2": //�̵㵥ȷ��
                     xml = ops.StockTakeConfirm(url);
                     break;
                 case "3": //��λ��ȷ��
                     xml = ops.StockMoveConfirm(url);
                     break;
                 case "5": //�¼ܵ�ȷ��
                     xml = ops.StockOutConfirm(url);
                     break;
             }
         }
     }
 }
示例#5
0
 /// <summary>
 /// 查询单据数据 zxl 2013-12-19 
 /// </summary>
 /// <param name="billString">方法名</param>
 /// <param name="orderId">订单号</param>
 /// <returns>返回数据表集合</returns>
 //public DataSet ImportData(string billString, string orderId)
 //{
 //    DataSet ds = GenerateEmptyTables();
 //    try
 //    {
 //        url = configUtil.GetConfig("URL")["URL"] + "WarehouseOperationService/" + billString + "?orderID=" + orderId;
 //        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);
 //        ds = ParseData(xml, ds);
 //    }
 //    catch (Exception e)
 //    {
 //        THOKUtil.ShowError("从浪潮下载数据出错,原因:" + e.Message);
 //    }
 //    return ds;
 //}
 public DataSet ImportData(string billString, string orderId)
 {
     DataSet ds = GenerateEmptyTables();
     try
     {
         DzInspurWarehouseOperationService.WarehouseOperationServiceService ops = new DzInspurWarehouseOperationService.WarehouseOperationServiceService();
         string xml = "";
         switch (billString)
         {
             case "HITSHELF": //上架
                 xml = ops.HitShelf(orderId);
                 break;
             case "STOCKTAKE": //盘点
                 xml = ops.StockTake(orderId);
                 break;
             case "STOCKMOVE": //下架
                 xml = ops.StockOut(orderId);
                 break;
             case "STOCKOUT": //移位
                 xml = ops.StockMove(orderId);
                 break;
         }
         file.logInfo(DateTime.Now.ToString("yyyy-MM-dd"), "[订单数据][" + DateTime.Now + "]:" + xml);
         ds = ParseData(xml, ds);
     }
     catch (Exception e)
     {
         THOKUtil.ShowError("从浪潮下载数据出错,原因:" + e.Message);
     }
     return ds;
 }