修正子程序调用:用RunSpAsync传Dictionary参数,窗口不关闭
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1043,9 +1043,9 @@ public class ScannerForm : Form
|
|||||||
lblStatus.Text = string.Format("完成!已保存: {0}", Path.GetFileName(outputPath));
|
lblStatus.Text = string.Format("完成!已保存: {0}", Path.GetFileName(outputPath));
|
||||||
|
|
||||||
// 调用子程序 "over",传参 files 为输出文件路径
|
// 调用子程序 "over",传参 files 为输出文件路径
|
||||||
_context.SetVarValue("files", outputPath);
|
var param = new Dictionary<string, object>();
|
||||||
_context.SetVarValue("over", true);
|
param.Add("files", outputPath);
|
||||||
this.Close();
|
_context.RunSpAsync("over", param);
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user