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 Core.StlMes.Client.SaleComm; using Core.Mes.Client.Comm.Server; namespace Core.StlMes.Client.SaleOrder { public partial class dlgOrderAskDown : Form { OpeBase ob = new OpeBase(); /// /// 客户编号 /// private string pic = ""; public string Pic { get { return pic; } set { pic = value; } } private List pathList = new List(); public List PathList { get { return pathList; } set { pathList = value; } } public Button DeleteButton { get { return ctrlFileDown1.Button3; } } private string flag = "0"; public dlgOrderAskDown() { InitializeComponent(); } public dlgOrderAskDown(OpeBase ops, string pic) { this.ob = ops; this.pic = pic; InitializeComponent(); this.ctrlFileDown1.FileChangeEvent += ctrlFileDown1_FileChangeEvent; } /// /// 批量下载 /// /// /// public dlgOrderAskDown(OpeBase ops, List list) { this.ob = ops; this.pathList = list; InitializeComponent(); flag = "1"; this.ctrlFileDown1.FileChangeEvent += ctrlFileDown1_FileChangeEvent; this.ctrlFileDown1.FileCloseEvent += ctrlFileDown1_FileCloseEvent; } void ctrlFileDown1_FileCloseEvent(string path) { this.pic = path; this.Close(); } void ctrlFileDown1_FileChangeEvent(string fileName) { this.Text = "文件浏览:" + fileName; } private void dlgOrderAskDown_Load(object sender, EventArgs e) { this.Cursor = Cursors.WaitCursor; if (flag == "0") { ctrlFileDown1.FilePath = pic; } else if (flag == "1") { ctrlFileDown1.SetPathList(pathList); this.ctrlFileDown1.BatchFlag = "1"; } this.Cursor = Cursors.Default; } } }