12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.IO;
- using System.Linq;
- using System.Text;
- using System.Windows.Forms;
- namespace LYFZ.Software.MainBusiness.MultipleFileImport
- {
- public partial class frmMultipleFileImportDetail : LYFZ.ComponentLibrary.BaseContentsFormMain
- {
- public frmMultipleFileImportDetail()
- {
- InitializeComponent();
- }
- public void BindImportModel(frmFileImportModel mod)
- {
- lab_title.Text = "订单号:" + mod.erpOrder.Ord_Number + " [" + mod.cusName + "] " + mod.takenName + "[" + mod.directoryTypeDis() + "]" + "";
- lab_msg.Text = mod.errorMsg;
- foreach (var item in mod.local_Path)
- {
- listViewEx1.Items.Add(
- new ListViewItem(new string[] {
- item.local_Path,
- item.code == 0 ? "未上传" : item.code == 1 ? "成功" : item.code == -1 ? "失败" : "" ,
- item.upload_Msg
- })
- );
- }
-
- }
- private void btn_Log_Click(object sender, EventArgs e)
- {
- string[] files = Directory.GetFiles(Path.GetDirectoryName(System.Windows.Forms.Application.ExecutablePath) + "/Logs/ImportThread/");
- frmMultipleFileLogs frmLog = new frmMultipleFileLogs();
- frmLog.LoadFileList(files);
- frmLog.Show();
- }
- }
- }
|