private void UploadBidFile() { try { string sourcePath = AppDirectory.Temp_Dir(this.gptp.gpId); string destPath = Path.Combine(AppDirectory.Temp(), this.gptp.gpId + ".zip"); Compress.CreateZipFile(sourcePath, destPath); baseUserWebDO loginResponse = Cache.GetInstance().GetValue <baseUserWebDO>("login"); bool result = gpTenderFileService.UploadFile(destPath, loginResponse.auID, this.gptp.gtpId, this.gptp.gpId); if (result) { MetroMessageBox.Show(this, "上传成功!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information); } else { MetroMessageBox.Show(this, "上传失败!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Error); } } catch (Exception ex) { log.Error(ex); MetroMessageBox.Show(this, "上传失败!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Error); } }