zrg
2025-11-12 0a3000811b5d67ca94339af621e1f2ca176763a8
WFormSynchronizeData_SMR/EquipmentCollectionForm/EquipmentCollectionForm.cs
@@ -687,8 +687,8 @@
            // 准备要发送的表单数据
            var formData = new FormUrlEncodedContent(new[]
            {
                    new KeyValuePair<string, string>("userName", "admin"),
                    new KeyValuePair<string, string>("password", "admin")
                    new KeyValuePair<string, string>("userName", "mes"),
                    new KeyValuePair<string, string>("password", "MesApi123")
                    // 添加更多键值对,根据您的需要
                });
            JsonResult jsonResult = await getUrl(urls, formData);
@@ -843,8 +843,8 @@
            // 准备要发送的表单数据
            var formData = new FormUrlEncodedContent(new[]
            {
                    new KeyValuePair<string, string>("userName", "admin"),
                    new KeyValuePair<string, string>("password", "admin")
                    new KeyValuePair<string, string>("userName", "mes"),
                    new KeyValuePair<string, string>("password", "MesApi123")
                    // 添加更多键值对,根据您的需要
                });
            JsonResult jsonResult = await getUrl(urls, formData);
@@ -1137,7 +1137,11 @@
                            staus = "告警";
                            break;
                    }
                    if (jsonEquipment.data.Count > 0)
                    if (jsonEquipment == null || jsonEquipment.data == null)
                    {
                        JsonData += "{\"HDate\":\"" + time + "\",\"HTechParamName\":\"开关机状态\",\"HResult\":\"" + staus + "\",\"HCount\":0,\"HSourceCode\":\"" + EquipmentStaus.data[i].no + "\"},";
                    }
                    else if (jsonEquipment.data.Count > 0)
                    {
                        JsonData += "{\"HDate\":\"" + time + "\",\"HTechParamName\":\"开关机状态\",\"HResult\":\"" + staus + "\",\"HCount\":1,\"HSourceCode\":\"" + EquipmentStaus.data[i].no + "\"},";
                    }
@@ -1202,8 +1206,8 @@
            // 准备要发送的表单数据
            var formData = new FormUrlEncodedContent(new[]
            {
                    new KeyValuePair<string, string>("userName", "admin"),
                    new KeyValuePair<string, string>("password", "admin")
                    new KeyValuePair<string, string>("userName", "mes"),
                    new KeyValuePair<string, string>("password", "MesApi123")
                    // 添加更多键值对,根据您的需要
                });
            JsonResult jsonResult = await getUrl(urls, formData);