| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117 |
- 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<string> pathList = new List<string>();
- public List<string> 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();
- }
- /// <summary>
- /// 单个下载
- /// </summary>
- /// <param name="Ob"></param>
- /// <param name="picFile"></param>
- public FrmPopFileShow(OpeBase Ob,string picFile)
- {
- InitializeComponent();
- this.ob = Ob;
- this.pic = picFile;
- this.ctrlFileDown1.FileChangeEvent += ctrlFileDown1_FileChangeEvent;
- }
- ///// <summary>
- ///// 批量下载
- ///// </summary>
- ///// <param name="ops"></param>
- ///// <param name="list"></param>
- //public FrmPopFileShow(OpeBase Ob, List<string> 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;
- }
- }
- }
|