using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using CoreFS.CA06; using System.Collections; using Core.Mes.Client.Comm.Server; using Core.Mes.Client.Comm; namespace Core.StlMes.Client.PlnSaleOrd { public partial class dlgOrderAskLook : Form { private OpeBase ob = new OpeBase(); private ArrayList listPath = new ArrayList(); public dlgOrderAskLook() { InitializeComponent(); } /// /// 构造 /// /// public dlgOrderAskLook(OpeBase ops, ArrayList path) { this.ob = ops; listPath = path; InitializeComponent(); ctrlFileDown1.Button3.Visible = false; } public List FlileDownd(string pathName) { if (pathName == "") return null; List list = Core.Mes.Client.Comm.Server.FileHelper.Download(pathName); return list; } private void dlgOrderAskLook_Load(object sender, EventArgs e) { try { List list = new List(); for (int i = 0; i < listPath.Count; i++) { List param = FlileDownd(listPath[i].ToString()); if (param != null && param.Count > 0) { list.AddRange(param); } } ctrlFileDown1.ShowByListFileBean(list); } catch (Exception ex) { if (ex is MESException) { MessageBox.Show(((MESException)ex).ExceptionInfo); } else { MessageBox.Show(ex.Message); } } } } }