public void ConfirmTask(string billID, string detailID, string confirmState, int piece, int item, string state, string msg, string operater) { try { dao.ConfirmTask(billID, detailID, confirmState, piece, item, state, msg, operater); if (confirmState == "3") { dao.SetTaskUpload(billID, detailID); } } catch (Exception) { xmlBillDao.SaveBill(billID, detailID); throw new Exception("网络连接出错!请使用usb连接电脑上传数据"); } }