修正子程序调用:用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));
|
||||
|
||||
// 调用子程序 "over",传参 files 为输出文件路径
|
||||
_context.SetVarValue("files", outputPath);
|
||||
_context.SetVarValue("over", true);
|
||||
this.Close();
|
||||
var param = new Dictionary<string, object>();
|
||||
param.Add("files", outputPath);
|
||||
_context.RunSpAsync("over", param);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user