| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- 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.Plan.Order
- {
- public partial class dlgOrderAskLook : Form
- {
- private OpeBase ob = new OpeBase();
- private ArrayList listPath = new ArrayList();
- public dlgOrderAskLook()
- {
- InitializeComponent();
- }
- /// <summary>
- /// 构造
- /// </summary>
- /// <returns></returns>
- public dlgOrderAskLook(OpeBase ops, ArrayList path)
- {
- this.ob = ops;
- listPath = path;
- InitializeComponent();
- ctrlFileDown1.Button3.Visible = false;
- }
- public List<FileBean> FlileDownd(string pathName)
- {
- if (pathName == "") return null;
- List<FileBean> list = Core.Mes.Client.Comm.Server.FileHelper.Download(pathName);
- return list;
- }
- private void dlgOrderAskLook_Load(object sender, EventArgs e)
- {
- try
- {
- List<FileBean> list = new List<FileBean>();
- for (int i = 0; i < listPath.Count; i++)
- {
- List<FileBean> 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);
- }
- }
- }
- }
- }
|