master
11 months ago
parent a1de882869
commit 53b1e21447

@ -274,7 +274,7 @@ where res.taskcode = '0' and equipmentCode = 'C6' and res.OrderCode is not null
('{CommonFunc.Common.GetUUID()}', '{LoginUser.UserId}', '{LoginUser.UserName}', '{type}', GetDate(),
'-', 'w2', '{status}', '{deviceCode}','{remark}','{orderCode}');";
}
sqlList.Add(logSql);
bool issucc = Utils.netClientDBHelper.executeBatchSql(sqlList);
@ -1667,7 +1667,7 @@ where machine_code = 'X1' and bind_status = '0' order by update_time DESC";
return Utils.netClientDBHelper.executeUpdate(sql) > 0;
}
public bool UpdateProWorkBatchInWorkBatchCode(string lineCode, string batchCode, string status,string productCode,string productName)
public bool UpdateProWorkBatchInWorkBatchCode(string lineCode, string batchCode, string status, string productCode, string productName)
{
string sql = $@"update pro_workbatch_inwork set batch='{batchCode}',product_code='{productCode}',product_name='{productName}',status='{status}' where line_code='{lineCode}' ";
return Utils.netClientDBHelper.executeUpdate(sql) > 0;

@ -329,7 +329,7 @@ namespace XGL.Data
//待补充班组班次
LoginUser.ShiftCode = shiftID;
LoginUser.TeamCode = teamID;
LoginUser.WorkDate = workDate;
LoginUser.WorkDate = DateTime.Parse(workDate).ToString("yyyy-MM-dd");
LoginUser.Start_Time = startTime;
LoginUser.End_Time = endTime;
LoginUser.CurrDeviceIP = Common.GetLocationHostAddress();

@ -122,7 +122,7 @@ namespace XGL.Views
currShiftDate = DateTime.Now.Date.AddDays(-1);
}
DataTable dt = formingMachineService.GetInOutHistoryList(_workOrderCode, _deviceCode, currShiftDate.ToString());
DataTable dt = formingMachineService.GetInOutHistoryList(_workOrderCode, _deviceCode, currShiftDate.ToString("yyyy-MM-dd H:mm:ss"));
if (dt == null) return;
foreach (DataRow i in dt.Rows)
{

Loading…
Cancel
Save