同步 ERP 经营办理与验收站工具、MES 制造执行及 PLM 页面更新

This commit is contained in:
Developer
2026-12-06 16:19:58 +08:00
parent cde72c1163
commit b209487661
234 changed files with 41794 additions and 258 deletions

View File

@@ -20,12 +20,12 @@ namespace Jingyao.AIEmployee
return name == DraftList || name == DraftDetail || name == DraftSave || name == DraftRehearsal;
}
static void BindIdempotency(SqlCommand command, Dictionary<string,object> inputs)
static void BindIdempotency(SqlCommand command, Dictionary<string,object> inputs, bool useParameterScale=false)
{
string key = Text(inputs, "幂等键", 100, null);
if (!Regex.IsMatch(key, @"\A[A-Za-z0-9_.:-]+\z")) throw BadInput();
command.Parameters.Add("@幂等键", SqlDbType.VarChar, 100).Value = key;
string fingerprint = RequestFingerprint(command);
string fingerprint = RequestFingerprint(command,useParameterScale);
command.Parameters.Add("@请求指纹", SqlDbType.Char, 64).Value = fingerprint;
}