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 Pur.Entity; using Core.Mes.Client.Comm.Server; using Core.Mes.Client.Comm.Control; using Pur.Entity; namespace Pur.Pop_upWindow { public partial class FrmPopFileShow : FrmPmsBase { 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; } } //public ctrlFileDown ctrlFileDown2 //{ // get { return this.ctrlFileDown1; } //} private string flag = "0"; public FrmPopFileShow() { InitializeComponent(); } /// /// 单个下载 /// /// /// public FrmPopFileShow(OpeBase Ob,string picFile) { InitializeComponent(); this.ob = Ob; this.pic = picFile; this.ctrlFileDown1.FileChangeEvent += ctrlFileDown1_FileChangeEvent; } ///// ///// 批量下载 ///// ///// ///// //public FrmPopFileShow(OpeBase Ob, List list) //{ // this.ob = Ob; // 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; //} private void FrmPopFileShow_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; } } }