| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- 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.Mes.Client.Comm.Server;
- namespace Core.StlMes.Client.GlBusiness
- {
- public partial class dlgOrderAskDown : Form
- {
- OpeBase ob = new OpeBase();
- /// <summary>
- /// 客户编号
- /// </summary>
- 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; }
- }
- 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;
- }
- /// <summary>
- /// 批量下载
- /// </summary>
- /// <param name="ops"></param>
- /// <param name="list"></param>
- public dlgOrderAskDown(OpeBase ops, List<string> 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;
- }
- }
- }
|