SVN-Revision: r575
This commit is contained in:
tdx
2025-05-12 10:21:25 +00:00
parent df771ebf88
commit 388166e858
2 changed files with 136 additions and 161 deletions
+8 -35
View File
@@ -24,7 +24,9 @@ namespace Lskj.Control
public string FileName = string.Empty;
public string URL = string.Empty;
public bool isBatchDownLoad = false;
public bool isprompt = true;
public bool isMultiple = false;//是否为忽略多选
public bool isOpenvisble = false;//是否为忽略多选
public string ModelId= string.Empty;//菜单名称
public string MenuName = string.Empty;//右键名称
public string MenuId = string.Empty;//菜单ID
@@ -53,7 +55,8 @@ namespace Lskj.Control
{
try
{
if (!isBatchDownLoad) this.Opacity = 100D;
if (!isBatchDownLoad && !isMultiple) this.Opacity = 100D;
if (isOpenvisble) this.btnOpen.Visible = false;
this.labUrl.EditText = URL;
this.labName.EditText = FileName;
string FOLDER_NAME = isBatchDownLoad ? ConstModel.Batch_FOLDER_NAME : ConstModel.TEMP_FOLDER_NAME;
@@ -67,6 +70,7 @@ namespace Lskj.Control
if (isBatchDownLoad) this.btnDownload.PerformClick();
if (isMultiple) this.btnDownload.PerformClick();
if (SystemInfo.Instance.HiddenUrl)
{
this.labUrl.Visible = false;
@@ -145,7 +149,7 @@ namespace Lskj.Control
MessageUtil.Show("请选择下载路径!");
return;
}
FrmDownload frm = new FrmDownload(labUrl.EditText, labName.EditText, labAddress.EditText);
FrmDownload frm = new FrmDownload(labUrl.EditText, labName.EditText, labAddress.EditText,false, isprompt);
frm.isBatchPrind = isBatchDownLoad;
if (frm.ShowDialog() == DialogResult.OK)
@@ -321,35 +325,4 @@ namespace Lskj.Control
}
if (string.IsNullOrEmpty(FileName))
{
MessageUtil.Show("请填写下载的文件名称!");
return;
}
if (string.IsNullOrEmpty(DownloadPath))
{
MessageUtil.Show("请选择下载路径!");
return;
}
FrmDownload frm = new FrmDownload(URL, FileName, DownloadPath);
frm.RightDisplay = RightDisplay;
if (frm.ShowDialog() == DialogResult.OK)
{
frm.Dispose();
if (isBatchDownLoad)
{
PrintFile(labAddress.EditText);
File.Delete(labAddress.EditText);
}
this.Close();
}
}
catch (Exception ex)
{
this.Close();
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show("下载附件出错!" + Message);
}
}
}
}
MessageUtil.Show("请填写下载的文件名