生产执行时班组长未打卡提醒

main
yinq 5 days ago
parent 2bebf36edb
commit e83910ef8a

@ -588,6 +588,11 @@ namespace SlnMesnac.WPF.ViewModel
// 向detail表里插入一条数据 // 向detail表里插入一条数据
//当前班长 //当前班长
var monitor = _databaseHandleBusniess.GetMonitor(RfidHandleBusniess.stationCode); var monitor = _databaseHandleBusniess.GetMonitor(RfidHandleBusniess.stationCode);
if(monitor == null)
{
MessageBox.Show("班组长未打卡!");
return;
}
if (pLanInfo.CompleteAmount == "0.00") if (pLanInfo.CompleteAmount == "0.00")
{ {
ProdPlanDetail prodPlanDetail = new ProdPlanDetail ProdPlanDetail prodPlanDetail = new ProdPlanDetail

@ -1,70 +1,74 @@
{ {
"Logging": { "Logging": {
"LogLevel": { "LogLevel": {
"Default": "Information", "Default": "Information",
"Microsoft": "Warning", "Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information" "Microsoft.Hosting.Lifetime": "Information"
} }
}, },
"AllowedHosts": "*", "AllowedHosts": "*",
"AppConfig": { "AppConfig": {
"logPath": "E:\\桌面\\SlnMesnac\\SlnMesnac.WPF\\bin\\Debug\\net6.0-windows", "logPath": "E:\\桌面\\SlnMesnac\\SlnMesnac.WPF\\bin\\Debug\\net6.0-windows",
"SqlConfig": [ "SqlConfig": [
{ {
"configId": "mes", "configId": "mes",
"dbType": 1, "dbType": 1,
"connStr": "server=119.45.202.115;uid=sa;pwd=haiwei@123;database=xmxs_os;Encrypt=True;TrustServerCertificate=True;" "connStr": "server=119.45.202.115;uid=sa;pwd=haiwei@123;database=xmxs_os;Encrypt=True;TrustServerCertificate=True;"
} }
//{ //{
// "configId": "mcs", // "configId": "mcs",
// "dbType": 3, // "dbType": 3,
// "connStr": "Data Source=121.37.164.0/helowin;User ID=aucma_scada;Password=aucma" // "connStr": "server=10.tcp.cpolar.top,10218;uid=sa;pwd=xmxs@2024;database=xmxs_os;Encrypt=True;TrustServerCertificate=True;"
//} //}
], ],
"PlcConfig": [ "PlcConfig": [
{ {
"configId": 1, "configId": 1,
"plcType": "MelsecBinaryPlc", "plcType": "MelsecBinaryPlc",
"plcIp": "127.0.0.1", "plcIp": "127.0.0.1",
"plcPort": 6000, "plcPort": 6000,
"plcKey": "mcs", "plcKey": "mcs",
"isFlage": true "isFlage": true
}, },
{ {
"configId": 2, "configId": 2,
"plcType": "MelsecBinaryPlc", "plcType": "MelsecBinaryPlc",
"plcIp": "127.0.0.1", "plcIp": "127.0.0.1",
"plcPort": 6001, "plcPort": 6001,
"plcKey": "cwss", "plcKey": "cwss",
"isFlage": true "isFlage": true
} }
], ],
"RfidConfig": [ "RfidConfig": [
{ {
"configId": 1, "configId": 1,
"equipIp": "127.0.0.1", "equipIp": "127.0.0.1",
"equipPort": 6003, "equipPort": 6003,
"equipKey": "test1", "equipKey": "test1",
"isFlage": true "isFlage": true
}, },
{ {
"configId": 2, "configId": 2,
"equipIp": "127.0.0.1", "equipIp": "127.0.0.1",
"equipPort": 6004, "equipPort": 6004,
"equipKey": "test2", "equipKey": "test2",
"isFlage": true "isFlage": true
} }
], ],
"serialPort": "COM3", "serialPort": "COM3",
"baudRate": 9600, "baudRate": 9600,
"dataBits": 8, "dataBits": 8,
"stopBits": 1, "stopBits": 1,
"parity": 0, "parity": 0,
"redisConfig": "175.27.215.92:6379,password=redis@2023", "redisConfig": "175.27.215.92:6379,password=redis@2023",
"StationCode": "1012-压延一出布,1013-压延一成型,1014-压延一包胶", // "StationCode": "1012-压延一出布,1013-压延一成型,1014-压延一包胶",
"DeviceCode": "XMGR0004", // "DeviceCode": "XMGR0004",
"ProcessCode": "1002", // "ProcessCode": "1002",
"ProductLineName": "压延一工位" // "ProductLineName": "压延一工位"
} "StationCode": "1023-硫化十一工位",
"DeviceCode": "XMGR0030",
"ProcessCode": "1023",
"ProductLineName": "硫化十一工位"
}
} }

Loading…
Cancel
Save