From 511d159574c3de94d8d3e43da9f5485f764fa7c8 Mon Sep 17 00:00:00 2001 From: hudong <Administrator@PC-20250329JZUF> Date: 星期四, 19 六月 2025 17:22:35 +0800 Subject: [PATCH] 平高项目 生成出库单逻辑修改 --- process/TaskProcess.cs | 31 +++++++++++++++++++++++++------ 1 files changed, 25 insertions(+), 6 deletions(-) diff --git a/process/TaskProcess.cs b/process/TaskProcess.cs index 31ea7fe..bf342fc 100644 --- a/process/TaskProcess.cs +++ b/process/TaskProcess.cs @@ -588,12 +588,7 @@ DateTime currentDate = DateTime.Now; // 鏍煎紡鍖栬緭鍑烘椂鍒嗛儴鍒� string currentHourMinute = currentDate.ToString("HH:mm"); - if (currentHourMinute == "00:00") - { - - dstart.N_STATE = 0; - db.Updateable<TN_CD>(dstart).UpdateColumns(a => new { a.N_STATE }).ExecuteCommand(); - } + if (dstart.S_TIME == currentHourMinute) { var dic = new Dictionary<string, string>(); @@ -636,6 +631,30 @@ return result; } + + public static bool SendCZ() + { + var db = new SqlHelper<object>().GetInstance(); + var dstart = db.Queryable<TN_CD>().Where(s => s.N_STATE == 1).First(); + + var result = false; + if (dstart != null) + { + DateTime currentDate = DateTime.Now; + // 鏍煎紡鍖栬緭鍑烘椂鍒嗛儴鍒�+ string currentHourMinute = currentDate.ToString("HH:mm"); + if (currentHourMinute == "00:00") + { + + dstart.N_STATE = 0; + db.Updateable<TN_CD>(dstart).UpdateColumns(a => new { a.N_STATE }).ExecuteCommand(); + } + result = true; + + } + + return result; + } /// <summary> /// 鎺ㄩ�浠诲姟 /// </summary> -- Gitblit v1.9.1