commit 65876dff52218181414be535e5e13e082f174130
Author: 北风 <2452618307@qq.com>
Date: Tue Jan 30 11:12:47 2024 +0800
蒙城自动化小程序第一次提交
diff --git a/pom.xml b/pom.xml
new file mode 100644
index 0000000..f443f27
--- /dev/null
+++ b/pom.xml
@@ -0,0 +1,94 @@
+
+
+ 4.0.0
+
+ autoWebForSuZhou
+ autoWebForSuZhou
+ 1.0-SNAPSHOT
+
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+
+ 8
+ 8
+
+
+
+
+
+
+
+ org.seleniumhq.selenium
+ selenium-java
+ 3.141.59
+
+
+
+
+ com.google.code.gson
+ gson
+ 2.2.4
+
+
+ com.thoughtworks.xstream
+ xstream
+ 1.4.9
+
+
+ org.codehaus.jettison
+ jettison
+ 1.3.7
+
+
+ org.projectlombok
+ lombok
+ 1.18.26
+ compile
+
+
+
+ org.quartz-scheduler
+ quartz
+ 2.2.1
+
+
+
+ com.hynnet
+ jacob
+ 1.18
+
+
+
+ commons-logging
+ commons-logging-api
+ 1.1
+
+
+
+ org.slf4j
+ slf4j-api
+ 1.7.26
+
+
+
+ org.slf4j
+ slf4j-log4j12
+ 1.7.26
+
+
+ org.apache.poi
+ poi
+ 4.1.2
+
+
+ org.apache.poi
+ poi-ooxml
+ 4.1.2
+
+
+
+
\ No newline at end of file
diff --git a/src/main/java/META-INF/MANIFEST.MF b/src/main/java/META-INF/MANIFEST.MF
new file mode 100644
index 0000000..1d285bc
--- /dev/null
+++ b/src/main/java/META-INF/MANIFEST.MF
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Main-Class: com.bonus.autoweb.TestMain
+
diff --git a/src/main/java/com/bonus/autoweb/DateTimeUtils.java b/src/main/java/com/bonus/autoweb/DateTimeUtils.java
new file mode 100644
index 0000000..abcc636
--- /dev/null
+++ b/src/main/java/com/bonus/autoweb/DateTimeUtils.java
@@ -0,0 +1,253 @@
+package com.bonus.autoweb;
+
+import com.bonus.autoweb.base.DataConfig;
+
+import java.text.ParseException;
+import java.text.SimpleDateFormat;
+import java.time.LocalDate;
+import java.util.*;
+
+/**
+ * 日期操作工具类
+ */
+public class DateTimeUtils {
+
+
+
+ /**
+ * 获取当前时间是本周第几天,从周一开始计算
+ * @return
+ */
+ public static int getWeekOfDate(String dateString ) throws ParseException {
+ SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
+ Date dt= sdf.parse(dateString);
+ int[] weekDays = {7, 1, 2, 3, 4,5, 6};
+ Calendar cal = Calendar.getInstance();
+ cal.setTime(dt);
+ int w = cal.get(Calendar.DAY_OF_WEEK) - 1;
+ if (w < 0){
+ w = 0;
+ }
+ return weekDays[w];
+ }
+
+ /**'
+ *获取当前时间是本月第几周
+ * @return
+ */
+ public static int getWeekNum(String dateString ) throws ParseException {
+ SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
+ Date date= sdf.parse(dateString);
+ Calendar calendar = Calendar.getInstance();
+ calendar.setTime(date);
+ int weekOfMonth = calendar.get(Calendar.WEEK_OF_MONTH);
+ if (getWeekOfDate(dateString) == 7){
+ weekOfMonth = weekOfMonth - 1;
+ }
+ return weekOfMonth;
+ }
+
+ /**
+ * 获取本月第一天在第几周
+ * @return true 0 false >0
+ * @throws ParseException
+ */
+ public static boolean getMonthOneDayIs0() throws ParseException {
+ LocalDate firstDayOfMonth = LocalDate.now().withDayOfMonth(1);
+ int t=getWeekNum(firstDayOfMonth.toString());
+// int t=getWeekNum(day);
+ if(t>0){
+ return false;
+ }
+ return true;
+ }
+
+ /**
+ * 获取上个月的最后一天
+ */
+ public static String getBeforeLastMonthdate(){
+ SimpleDateFormat sf=new SimpleDateFormat("yyyy-MM-dd");
+ Calendar calendar=Calendar.getInstance();
+ int month=calendar.get(Calendar.MONTH);
+ calendar.set(Calendar.MONTH, month-1);
+ calendar.set(Calendar.DAY_OF_MONTH, calendar.getActualMaximum(Calendar.DAY_OF_MONTH));
+ String format = sf.format(calendar.getTime());
+ return format;
+ }
+
+ /**
+ * 获取当前日期
+ * @return
+ */
+ public static String getCurrentDay(){
+ Date date=new Date();
+ SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");
+ return formatter.format(date);
+ }
+
+ /**
+ * 获取昨天的日期
+ * @return
+ */
+ public static String getLastDayYYYYMMDD(){
+ SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
+ Calendar c = Calendar.getInstance();
+ c.add(Calendar.DATE, -1);//-1.昨天时间 0.当前时间 1.明天时间 *以此类推
+ String time = sdf.format(c.getTime());
+ System.out.println("昨天的时间时间是:" + time);//20190704
+ return time;
+ }
+ private static List getARandomCollectionOfData() {
+ Random random = new Random();
+ int minCount = 3; // 最小数量
+ int maxCount = 5; // 最大数量
+ int count = random.nextInt(maxCount - minCount + 1) + minCount; // 随机生成数量
+ List numbers = new ArrayList<>();
+ while (numbers.size() < count) {
+ int randomNumber = random.nextInt(6) + 2; // 随机生成1到7的数字
+ if (!numbers.contains(randomNumber)) {
+ numbers.add(randomNumber);
+ }
+ }
+ Collections.shuffle(numbers);
+ System.out.println(numbers);
+ return numbers;
+ }
+
+ public static void main(String[] args) throws ParseException {
+// System.out.println(getMMDDByNow());
+ //获取一个随机数据集合
+ compareDate("2024-01-18","2024-01-24");
+ }
+ public static String getCurrentDay2(){
+ Date date=new Date();
+ SimpleDateFormat formatter = new SimpleDateFormat("MM月dd日");
+ return formatter.format(date);
+ }
+
+ /**
+ * 获取昨天的日期
+ * @return
+ */
+ public static String getLastDay(){
+ SimpleDateFormat sdf = new SimpleDateFormat("MM月dd日");
+ Calendar c = Calendar.getInstance();
+ c.add(Calendar.DATE, -1);//-1.昨天时间 0.当前时间 1.明天时间 *以此类推
+ String time = sdf.format(c.getTime());
+ System.out.println("昨天的时间时间是:" + time);//20190704
+ return time;
+ }
+ /**
+ * 获取明天的日期
+ * @return
+ */
+ public static String getTomorrowDate() {
+ SimpleDateFormat sdf = new SimpleDateFormat("MM月dd日");
+ Calendar c = Calendar.getInstance();
+ c.add(Calendar.DATE, 1);//-1.昨天时间 0.当前时间 1.明天时间 *以此类推
+ String time = sdf.format(c.getTime());
+ System.out.println("昨天的时间时间是:" + time);//20190704
+ return time;
+ }
+ /**
+ * 获取当前月日
+ * @return
+ */
+ public static String getCurrentDayByMonth(){
+ Date date=new Date();
+ SimpleDateFormat formatter = new SimpleDateFormat("MM月dd日");
+ return formatter.format(date);
+ }
+ public static String getMMDDByNow(){
+ Date date=new Date();
+ SimpleDateFormat formatter = new SimpleDateFormat("MMdd");
+ return formatter.format(date);
+ }
+
+ /**
+ * 判断当前日期是否为本月第一天
+ * @return
+ */
+ public static boolean isOneDay(){
+ // TODO Auto-generated method stub
+ Date now = new Date();
+ SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd");//可以方便地修改日期格式
+ String curr = dateFormat.format( now );
+ System.out.println("当前日期:" + curr);
+
+ Calendar c = Calendar.getInstance();//可以对每个时间域单独修改
+
+ int year = c.get(Calendar.YEAR);
+ int month = c.get(Calendar.MONTH);
+ int date = c.get(Calendar.DATE);
+ if(date == 1){
+ System.out.println(curr + "是第一天");
+ return true;
+ }
+ else{
+ System.out.println(curr + "不是第一天");
+ return false;
+ }
+ }
+
+ /**
+ * 判断当前时间是否在[startTime, endTime]区间,注意三个参数的时间格式要一致
+ * @param startTime
+ * @param endTime
+ * @return 在时间段内返回true,不在返回false
+ */
+ public static boolean isEffectiveDate(String startTime, String endTime){
+ /**
+ * 判断当前时间是否在一个时间段内 HH:mm 格式
+ */
+ SimpleDateFormat sdf = new SimpleDateFormat("HH:mm");
+ String now = sdf.format(new Date());
+ Date nowTime;
+ try{
+ nowTime = sdf.parse(now);
+ Date startTime1 = sdf.parse(startTime);
+ Date endTime1 = sdf.parse(endTime);
+ if (nowTime.getTime() == startTime1.getTime()
+ || nowTime.getTime() == endTime1.getTime()) {
+ return true;
+ }
+
+ Calendar date = Calendar.getInstance();
+ date.setTime(nowTime);
+
+ Calendar begin = Calendar.getInstance();
+ begin.setTime(startTime1);
+
+ Calendar end = Calendar.getInstance();
+ end.setTime(endTime1);
+
+ return date.after(begin) && date.before(end);
+ }catch (Exception e){
+ e.printStackTrace();
+ }
+ return false;
+ }
+
+ public static boolean compareDate(String date1, String date2) throws ParseException {
+ boolean tf = false;
+ SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
+
+ // 定义起始日期和结束日期
+ Date startDate = dateFormat.parse(date1 + " 00:00:00");
+ Date endDate = dateFormat.parse(date2 + " 23:59:59");
+
+ // 定义要判断的日期
+ Date dateToCheck = new Date();
+
+ // 判断日期是否在范围内
+ if (startDate.compareTo(dateToCheck) <= 0 && endDate.compareTo(dateToCheck) >= 0) {
+ System.out.println("日期在范围内");
+ tf = true;
+ } else {
+ tf = false;
+ System.out.println("日期不在范围内");
+ }
+ return tf;
+ }
+
+}
diff --git a/src/main/java/com/bonus/autoweb/GetBasicData.java b/src/main/java/com/bonus/autoweb/GetBasicData.java
new file mode 100644
index 0000000..74c9372
--- /dev/null
+++ b/src/main/java/com/bonus/autoweb/GetBasicData.java
@@ -0,0 +1,1245 @@
+package com.bonus.autoweb;
+
+import com.bonus.autoweb.UI.entity.DailyBean;
+import com.bonus.autoweb.UI.entity.LogBean;
+import com.bonus.autoweb.UI.frame.StringHelper;
+import com.bonus.autoweb.base.AutoMain;
+import com.bonus.autoweb.base.AutoUtils;
+import com.bonus.autoweb.base.DataConfig;
+import com.thoughtworks.xstream.XStream;
+import com.thoughtworks.xstream.io.json.JettisonMappedXmlDriver;
+import org.openqa.selenium.By;
+import org.openqa.selenium.WebDriver;
+import org.openqa.selenium.WebElement;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import javax.activation.DataHandler;
+import java.io.*;
+import java.nio.charset.Charset;
+import java.text.ParseException;
+import java.text.SimpleDateFormat;
+import java.util.*;
+
+import static java.lang.Integer.parseInt;
+
+/**
+ * 项目名称: autoWebForSuZhou
+ * 文件名称: getBasicData
+ * 文件描述: @Description: 定时获取新一代应急系统内的数据
+ * 创建人: @author tqzhang
+ * 创建时间: 2023年07月31日 10:21
+ */
+public class GetBasicData {
+ private Logger log = LoggerFactory.getLogger(GetBasicData.class);
+ private WebDriver webDriver;
+
+ public GetBasicData(WebDriver webDriver) {
+ this.webDriver = webDriver;
+ }
+
+ /**
+ * 解决乱码问题
+ *
+ * @param path
+ * @return
+ */
+ public static String resolveGarbledCode(String path) {
+ StringBuffer sb = new StringBuffer();
+ try {
+ FileInputStream fis = new FileInputStream(path);
+ InputStreamReader isr = new InputStreamReader(fis, "UTF-8");
+ BufferedReader reader = new BufferedReader(isr);
+ String line;
+ while ((line = reader.readLine()) != null) {
+ sb.append(line);
+ }
+
+ reader.close();
+ } catch (Exception e) {
+ sb = new StringBuffer();
+ sb.append("error");
+ e.printStackTrace();
+ }
+ return sb.toString();
+ }
+
+
+ /**
+ * 类方法说明: TODO 获取预警基础数据
+ *
+ * @param classes 1 早 2 晚
+ * @author tqzhang
+ * @data 2024/01/16
+ */
+ public static void getYuJingActionBasicData(int classes) throws ParseException, InterruptedException {
+ Thread.sleep(5000);
+// webDriver.findElement(By.xpath("//*[@id=\"app\"]/section/header/form/div/div[2]/button[1]")).click();
+// Thread.sleep(300);
+// String date1 = DateTimeUtils.getLastDayYYYYMMDD() + " 00:00";
+// String date2 = DateTimeUtils.getLastDayYYYYMMDD() + " 23:59";
+// if (classes == 2) {
+// date1 = DateTimeUtils.getCurrentDay() + " 00:00";
+// date2 = DateTimeUtils.getCurrentDay() + " 23:59";
+// }
+// webDriver.findElement(By.xpath("//*[@id=\"app\"]/section/header/form/div/div[1]/div[3]/div[1]/div/div/div/input[1]")).sendKeys(date1);
+// Thread.sleep(300);
+// webDriver.findElement(By.xpath("//*[@id=\"app\"]/section/header/form/div/div[1]/div[3]/div[1]/div/div/div/input[2]")).sendKeys(date2);
+// Thread.sleep(300);
+// webDriver.findElement(By.xpath("//*[@id=\"app\"]/section/header/form/div/div[2]/button[2]")).click();
+// Thread.sleep(1000);
+// WebElement numEle = webDriver.findElement(By.xpath("//*[@id=\"tab-已完工\"]/div/span"));
+ DailyBean dailyBean = readDailyBean("morning_daily");
+ DailyBean dailyBean2 = readDailyBean("evening_daily");
+ LogBean logBean = readDutyBean();
+// if (!"0".equals(numEle.getText())) {
+// int num = parseInt(numEle.getText());
+// if (num > 10) {
+// num = 10;
+// }
+// webDriver.findElement(By.xpath("//*[@id=\"tab-已完工\"]")).click();
+// Thread.sleep(2000);
+// String[] strings = new String[num];
+// for (int i = 1; i <= num; i++) {
+// WebElement companyElem = webDriver.findElement(By.xpath("//*[@id=\"app\"]/section/main/main/div/div[3]/table/tbody/tr[" + i + "]/td[5]/div/div"));
+// String name = getDailyName(companyElem.getText());
+// strings[i - 1] = name;
+// }
+// Map countMap = new HashMap<>();
+// for (String str : strings) {
+// if (countMap.containsKey(str)) {
+// countMap.put(str, countMap.get(str) + 1);
+// } else {
+// countMap.put(str, 1);
+// }
+// }
+// String codeYuJing = "(8)针对预警,公司各单位开展预警响应,对线路、变电站进行特巡,共计开展特巡" + numEle.getText() + "次,";
+// if (num > 0) {
+// codeYuJing += "其中:";
+// for (Map.Entry entry : countMap.entrySet()) {
+// codeYuJing += entry.getKey() + "公司特巡" + entry.getValue() + "次,";
+// }
+// }
+// dailyBean.setPersonnel_daily_work(dailyBean.getPersonnel_daily_work() + codeYuJing);
+// dailyBean2.setPersonnel_daily_work(dailyBean.getPersonnel_daily_work() + codeYuJing);
+// logBean.setGeneral_chronicles_content(logBean.getGeneral_chronicles_content() + codeYuJing);
+// }
+ String month = DateTimeUtils.getCurrentDay().substring(5, 7);
+ if ("11".equals(month) || "12".equals(month) || "01".equals(month) || "02".equals(month) || "03".equals(month)) {
+ dailyBean.getTenBean().setUhv("0");
+ dailyBean.getTenBean().setFiveHundredKv("0");
+ dailyBean.getTenBean().setTwoHundredTwentyKv("0");
+ dailyBean.getTenBean().setOneHundredTenKv("0");
+ dailyBean.getTenBean().setThirtyFiveKv("0");
+ dailyBean.getTenBean().setTenKv("0");
+ dailyBean.getTenBean().setAverageWaterLevel("0");
+ dailyBean.getTenBean().setDesignValues("0");
+ dailyBean.getTenBean().setMeasuredValue("0");
+ dailyBean.getTenBean().setActionHasBeenTaken("0");
+
+ dailyBean.getElevenBean().setUhv("0");
+ dailyBean.getElevenBean().setFiveHundredKv("0");
+ dailyBean.getElevenBean().setTwoHundredTwentyKv("0");
+ dailyBean.getElevenBean().setOneHundredTenKv("0");
+ dailyBean.getElevenBean().setThirtyFiveKv("0");
+ dailyBean.getElevenBean().setTenKv("0");
+ dailyBean.getElevenBean().setAverageWaterLevel("0");
+ dailyBean.getElevenBean().setMeasuredValue("0");
+ dailyBean.getElevenBean().setActionHasBeenTaken("0");
+
+ dailyBean2.getTenBean().setUhv("0");
+ dailyBean2.getTenBean().setFiveHundredKv("0");
+ dailyBean2.getTenBean().setTwoHundredTwentyKv("0");
+ dailyBean2.getTenBean().setOneHundredTenKv("0");
+ dailyBean2.getTenBean().setThirtyFiveKv("0");
+ dailyBean2.getTenBean().setTenKv("0");
+ dailyBean2.getTenBean().setAverageWaterLevel("0");
+ dailyBean2.getTenBean().setDesignValues("0");
+ dailyBean2.getTenBean().setMeasuredValue("0");
+ dailyBean2.getTenBean().setActionHasBeenTaken("0");
+
+ dailyBean2.getElevenBean().setUhv("0");
+ dailyBean2.getElevenBean().setFiveHundredKv("0");
+ dailyBean2.getElevenBean().setTwoHundredTwentyKv("0");
+ dailyBean2.getElevenBean().setOneHundredTenKv("0");
+ dailyBean2.getElevenBean().setThirtyFiveKv("0");
+ dailyBean2.getElevenBean().setTenKv("0");
+ dailyBean2.getElevenBean().setAverageWaterLevel("0");
+ dailyBean2.getElevenBean().setMeasuredValue("0");
+ dailyBean2.getElevenBean().setActionHasBeenTaken("0");
+ } else {
+ dailyBean.getTenBean().setUhv("");
+ dailyBean.getTenBean().setFiveHundredKv("");
+ dailyBean.getTenBean().setTwoHundredTwentyKv("");
+ dailyBean.getTenBean().setOneHundredTenKv("");
+ dailyBean.getTenBean().setThirtyFiveKv("");
+ dailyBean.getTenBean().setTenKv("");
+ dailyBean.getTenBean().setAverageWaterLevel("");
+ dailyBean.getTenBean().setDesignValues("");
+ dailyBean.getTenBean().setMeasuredValue("");
+ dailyBean.getTenBean().setActionHasBeenTaken("");
+
+ dailyBean.getElevenBean().setUhv("");
+ dailyBean.getElevenBean().setFiveHundredKv("");
+ dailyBean.getElevenBean().setTwoHundredTwentyKv("");
+ dailyBean.getElevenBean().setOneHundredTenKv("");
+ dailyBean.getElevenBean().setThirtyFiveKv("");
+ dailyBean.getElevenBean().setTenKv("");
+ dailyBean.getElevenBean().setAverageWaterLevel("");
+ dailyBean.getElevenBean().setMeasuredValue("");
+ dailyBean.getElevenBean().setActionHasBeenTaken("");
+
+ dailyBean2.getTenBean().setUhv("");
+ dailyBean2.getTenBean().setFiveHundredKv("");
+ dailyBean2.getTenBean().setTwoHundredTwentyKv("");
+ dailyBean2.getTenBean().setOneHundredTenKv("");
+ dailyBean2.getTenBean().setThirtyFiveKv("");
+ dailyBean2.getTenBean().setTenKv("");
+ dailyBean2.getTenBean().setAverageWaterLevel("");
+ dailyBean2.getTenBean().setDesignValues("");
+ dailyBean2.getTenBean().setMeasuredValue("");
+ dailyBean2.getTenBean().setActionHasBeenTaken("");
+
+ dailyBean2.getElevenBean().setUhv("");
+ dailyBean2.getElevenBean().setFiveHundredKv("");
+ dailyBean2.getElevenBean().setTwoHundredTwentyKv("");
+ dailyBean2.getElevenBean().setOneHundredTenKv("");
+ dailyBean2.getElevenBean().setThirtyFiveKv("");
+ dailyBean2.getElevenBean().setTenKv("");
+ dailyBean2.getElevenBean().setAverageWaterLevel("");
+ dailyBean2.getElevenBean().setMeasuredValue("");
+ dailyBean2.getElevenBean().setActionHasBeenTaken("");
+ }
+ if ("06".equals(month) || "07".equals(month) || "08".equals(month) || "09".equals(month)) {
+ dailyBean.getTwelveBean().setUhv("0");
+ dailyBean.getTwelveBean().setFiveHundredKv("0");
+ dailyBean.getTwelveBean().setTwoHundredTwentyKv("0");
+ dailyBean.getTwelveBean().setOneHundredTenKv("0");
+ dailyBean.getTwelveBean().setThirtyFiveKv("0");
+ dailyBean.getTwelveBean().setTenKv("0");
+ dailyBean.getTwelveBean().setAverageWaterLevel("0");
+ dailyBean.getTwelveBean().setDesignValues("0");
+ dailyBean.getTwelveBean().setMeasuredValue("0");
+ dailyBean.getTwelveBean().setActionHasBeenTaken("0");
+
+ dailyBean.getThirteenBean().setUhv("0");
+ dailyBean.getThirteenBean().setFiveHundredKv("0");
+ dailyBean.getThirteenBean().setTwoHundredTwentyKv("0");
+ dailyBean.getThirteenBean().setOneHundredTenKv("0");
+ dailyBean.getThirteenBean().setThirtyFiveKv("0");
+ dailyBean.getThirteenBean().setTenKv("0");
+ dailyBean.getThirteenBean().setAverageWaterLevel("0");
+ dailyBean.getThirteenBean().setDesignValues("0");
+ dailyBean.getThirteenBean().setMeasuredValue("0");
+ dailyBean.getThirteenBean().setActionHasBeenTaken("0");
+
+ dailyBean2.getTwelveBean().setUhv("0");
+ dailyBean2.getTwelveBean().setFiveHundredKv("0");
+ dailyBean2.getTwelveBean().setTwoHundredTwentyKv("0");
+ dailyBean2.getTwelveBean().setOneHundredTenKv("0");
+ dailyBean2.getTwelveBean().setThirtyFiveKv("0");
+ dailyBean2.getTwelveBean().setTenKv("0");
+ dailyBean2.getTwelveBean().setAverageWaterLevel("0");
+ dailyBean2.getTwelveBean().setDesignValues("0");
+ dailyBean2.getTwelveBean().setMeasuredValue("0");
+ dailyBean2.getTwelveBean().setActionHasBeenTaken("0");
+
+ dailyBean2.getThirteenBean().setUhv("0");
+ dailyBean2.getThirteenBean().setFiveHundredKv("0");
+ dailyBean2.getThirteenBean().setTwoHundredTwentyKv("0");
+ dailyBean2.getThirteenBean().setOneHundredTenKv("0");
+ dailyBean2.getThirteenBean().setThirtyFiveKv("0");
+ dailyBean2.getThirteenBean().setTenKv("0");
+ dailyBean2.getThirteenBean().setAverageWaterLevel("0");
+ dailyBean2.getThirteenBean().setDesignValues("0");
+ dailyBean2.getThirteenBean().setMeasuredValue("0");
+ dailyBean2.getThirteenBean().setActionHasBeenTaken("0");
+ } else {
+ dailyBean.getTwelveBean().setUhv("");
+ dailyBean.getTwelveBean().setFiveHundredKv("");
+ dailyBean.getTwelveBean().setTwoHundredTwentyKv("");
+ dailyBean.getTwelveBean().setOneHundredTenKv("");
+ dailyBean.getTwelveBean().setThirtyFiveKv("");
+ dailyBean.getTwelveBean().setTenKv("");
+ dailyBean.getTwelveBean().setAverageWaterLevel("");
+ dailyBean.getTwelveBean().setDesignValues("");
+ dailyBean.getTwelveBean().setMeasuredValue("");
+ dailyBean.getTwelveBean().setActionHasBeenTaken("");
+
+ dailyBean.getThirteenBean().setUhv("");
+ dailyBean.getThirteenBean().setFiveHundredKv("");
+ dailyBean.getThirteenBean().setTwoHundredTwentyKv("");
+ dailyBean.getThirteenBean().setOneHundredTenKv("");
+ dailyBean.getThirteenBean().setThirtyFiveKv("");
+ dailyBean.getThirteenBean().setTenKv("");
+ dailyBean.getThirteenBean().setAverageWaterLevel("");
+ dailyBean.getThirteenBean().setDesignValues("");
+ dailyBean.getThirteenBean().setMeasuredValue("");
+ dailyBean.getThirteenBean().setActionHasBeenTaken("");
+
+ dailyBean2.getTwelveBean().setUhv("");
+ dailyBean2.getTwelveBean().setFiveHundredKv("");
+ dailyBean2.getTwelveBean().setTwoHundredTwentyKv("");
+ dailyBean2.getTwelveBean().setOneHundredTenKv("");
+ dailyBean2.getTwelveBean().setThirtyFiveKv("");
+ dailyBean2.getTwelveBean().setTenKv("");
+ dailyBean2.getTwelveBean().setAverageWaterLevel("");
+ dailyBean2.getTwelveBean().setDesignValues("");
+ dailyBean2.getTwelveBean().setMeasuredValue("");
+ dailyBean2.getTwelveBean().setActionHasBeenTaken("");
+
+ dailyBean2.getThirteenBean().setUhv("");
+ dailyBean2.getThirteenBean().setFiveHundredKv("");
+ dailyBean2.getThirteenBean().setTwoHundredTwentyKv("");
+ dailyBean2.getThirteenBean().setOneHundredTenKv("");
+ dailyBean2.getThirteenBean().setThirtyFiveKv("");
+ dailyBean2.getThirteenBean().setTenKv("");
+ dailyBean2.getThirteenBean().setAverageWaterLevel("");
+ dailyBean2.getThirteenBean().setDesignValues("");
+ dailyBean2.getThirteenBean().setMeasuredValue("");
+ dailyBean2.getThirteenBean().setActionHasBeenTaken("");
+ }
+ insertData(dailyBean, null, "morning_daily");
+ insertData(dailyBean2, null, "evening_daily");
+ insertData(null, logBean, "log");
+ }
+
+ public void getYuJingBasicData(int classes) throws ParseException, InterruptedException {
+ Thread.sleep(5000);
+ String code = "";
+ //判断是否有发布数据
+ WebElement numClasses = webDriver.findElement(By.xpath("//*[@id=\"tab-3\"]/div/span"));
+ if ("0".equals(numClasses.getText())) {
+ code = "亳州市未发布预警,";
+ } else {
+ WebElement weatherEle = webDriver.findElement(By.xpath("/html/body/div[1]/div/section/main/div[1]/div[2]/div[1]/section/main/div/div[3]/table/tbody/tr[1]/td[6]/div/div"));
+ Thread.sleep(300);
+ log.info("天气:" + weatherEle.getText());
+ WebElement time1Ele = webDriver.findElement(By.xpath("/html/body/div[1]/div/section/main/div[1]/div[2]/div[1]/section/main/div/div[3]/table/tbody/tr[1]/td[8]/div/div/div[1]"));
+ Thread.sleep(300);
+ log.info("时间1:" + time1Ele.getText());
+ WebElement time2Ele = webDriver.findElement(By.xpath("/html/body/div[1]/div/section/main/div[1]/div[2]/div[1]/section/main/div/div[3]/table/tbody/tr[1]/td[8]/div/div/div[2]"));
+ Thread.sleep(300);
+ log.info("时间2:" + time2Ele.getText());
+ //判断当前日期是否在此之间
+ String startTime = time1Ele.getText().substring(0, 10);
+ String endTime = time2Ele.getText().substring(0, 10);
+ boolean tf = DateTimeUtils.compareDate(startTime, endTime);
+ SimpleDateFormat inputFormat = new SimpleDateFormat("yyyy-MM-dd");
+ Date date = inputFormat.parse(startTime);
+ Date date1 = inputFormat.parse(endTime);
+
+ SimpleDateFormat outputFormat = new SimpleDateFormat("MM月dd日");
+ code = "亳州及所属三县公司同步发布" + weatherEle.getText() + "预警各1项,";
+ }
+
+ log.info("code:" + code);
+ DailyBean dailyBean = readDailyBean("morning_daily");
+ DailyBean dailyBean2 = readDailyBean("evening_daily");
+ LogBean logBean = readDutyBean();
+ String dailyContent = resolveGarbledCode("E:\\bns\\config\\日报基本信息.txt");
+ String logContent = resolveGarbledCode("E:\\bns\\config\\日志基本信息.txt");
+ String[] dailyContentArrayArray = dailyContent.split("--头部不可修改--");
+ String[] logContentArrayArray = logContent.split("--头部不可修改--");
+ log.info("dailyContent:" + dailyContent);
+ log.info("logContent:" + logContent);
+ log.info("logContentArrayArray[18]:" + logContentArrayArray[18]);
+ //一、总体情况
+ //昨天的日期
+ String data1 = DateTimeUtils.getLastDay();
+ //今天的日期
+ String data2 = DateTimeUtils.getCurrentDay2();
+ //明天的日期
+ String data3 = DateTimeUtils.getTomorrowDate();
+ //日志时间
+ String logData = data2 + "08:30至" + data3 + "8:30,";
+ //日报时间
+ String data = "";
+ if (classes == 1) {
+ data = data2 + "17:30至" + data3 + "08:30,";
+
+ //一、总体情况
+ dailyBean.setOverall(data + dailyContentArrayArray[2].trim());
+ dailyBean.setWarning_company(code + dailyContentArrayArray[19]);
+ } else {
+ data = data2 + "08:30至" + data2 + "17:30,";
+
+ dailyBean2.setOverall(data + dailyContentArrayArray[2].trim());
+ dailyBean2.setWarning_company(code + dailyContentArrayArray[19]);
+ }
+
+ logBean.setWarning_disposal_title("亳州市未发布预警,".equals(code) ? "今日预警情况" : "预警四项");
+ logBean.setWarning_disposal_content(logData + code + logContentArrayArray[20]);
+ insertData(null, logBean, "log");
+ log.info("天气预警日志更新完成");
+
+ insertData(dailyBean, null, "morning_daily");
+ insertData(dailyBean2, null, "evening_daily");
+ log.info("日志内容:" + readDutyBean());
+ log.info("天气预警日报更新完成");
+ }
+
+ public void getCaoLianBasicData(int classes) throws InterruptedException, ParseException {
+ Thread.sleep(5000);
+ DailyBean dailyBean = readDailyBean("morning_daily");
+ DailyBean dailyBean2 = readDailyBean("evening_daily");
+ LogBean logBean = readDutyBean();
+ String dailyContent = resolveGarbledCode("E:\\bns\\config\\日报基本信息.txt");
+ String checkContent = resolveGarbledCode("E:\\bns\\config\\资源核查情况.txt");
+ String logContent = resolveGarbledCode("E:\\bns\\config\\日志基本信息.txt");
+ String[] dailyContentArrayArray = dailyContent.split("--头部不可修改--");
+ String[] logContentArrayArray = logContent.split("--头部不可修改--");
+ String[] checkContentArrayArray = checkContent.split("资源核查情况:");
+ log.info("读取本地模板数据成功");
+ //昨天的日期
+ String data1 = DateTimeUtils.getLastDay();
+ log.info("昨天的日期:" + data1);
+ //今天的日期
+ String data2 = DateTimeUtils.getCurrentDay2();
+ log.info("今天的日期:" + data2);
+ //明天的日期
+ String data3 = DateTimeUtils.getTomorrowDate();
+ log.info("明天的日期:" + data2);
+ //日志时间
+ String logData = data2 + "08:30至" + data3 + "8:30,";
+ /**
+ * 获取指定位置标签的值
+ */
+ boolean tf = true;
+ int communicationTestNum = 0;
+ String communicationTestName = "";
+ String communicationTestName1 = "";
+ int dailyExercisesNum = 0;
+ String dailyExercisesName = "";
+ String dailyExercisesName1 = "";
+ String dailyExercisesName2 = "";
+ String contingentName = "";
+ String carName = "";
+ String materialName = "";
+ String time = "";
+ if (classes == 1) {
+ //zao
+ time = DateTimeUtils.getCurrentDay();
+ } else {
+ time = DateTimeUtils.getCurrentDay();
+ }
+
+ webDriver.findElement(By.xpath("/html/body/div/div/header/form/div[4]/div/button[1]")).click();
+ Thread.sleep(800);
+ webDriver.findElement(By.xpath("/html/body/div[1]/div/header/form/div[6]/div/div/input[1]")).sendKeys(DateTimeUtils.getCurrentDay());
+ Thread.sleep(800);
+ webDriver.findElement(By.xpath("/html/body/div[1]/div/header/form/div[6]/div/div/input[2]")).sendKeys(DateTimeUtils.getCurrentDay());
+ Thread.sleep(800);
+ webDriver.findElement(By.xpath("/html/body/div[1]/div/header/form/div[8]/div/button[2]")).click();
+ Thread.sleep(2000);
+ int i = 1;
+ while (tf) {
+ Thread.sleep(10000);
+ WebElement numberEle = webDriver.findElement(By.xpath("/html/body/div[1]/div/main/div/div/footer/span"));
+ log.info("numberEle:" + numberEle.getText());
+// String num = numberEle.getText().substring(2, 3);
+ String num1 = numberEle.getText().substring(2, numberEle.getText().length());
+ String num = num1.substring(0, num1.length() - 2);
+ log.info("num:" + num);
+ if ("0".equals(num)) {
+ tf = false;
+ } else {
+ WebElement timeEle;
+// if ("1".equals(num)) {
+// timeEle = webDriver.findElement(By.xpath("/html/body/div/div/main/div/div/div[2]/div/div[3]/table/tbody/tr/td[8]/div"));
+// } else {
+ timeEle = webDriver.findElement(By.xpath("/html/body/div[1]/div/main/div/div/div[2]/div/div[3" +
+ "]/table/tbody/tr[" + i + "]/td[8]/div"));
+// }
+
+ System.out.println(timeEle.getText());
+ if (time.equals(timeEle.getText())) {
+ //操练环节 -通信测试 日常操练
+ WebElement drillSessionEle;
+// if ("1".equals(num)) {
+// drillSessionEle = webDriver.findElement(By.xpath("/html/body/div/div/main/div/div/div[2]/div/div[3]/table/tbody/tr/td[6]/div"));
+// } else {
+ drillSessionEle = webDriver.findElement(By.xpath("/html/body/div[1]/div/main/div/div/div[2" +
+ "]/div/div[3]/table/tbody/tr[" + i + "]/td[6]/div"));
+// }
+ log.info("操练环节:" + drillSessionEle.getText());
+ //供电公司
+ WebElement powerSupplyCompaniesEle;
+// if ("1".equals(num)) {
+// powerSupplyCompaniesEle = webDriver.findElement(By.xpath("/html/body/div/div/main/div/div/div[2]/div/div[3]/table/tbody/tr/td[5]/div"));
+// } else {
+ powerSupplyCompaniesEle = webDriver.findElement(By.xpath("/html/body/div[1]/div/main/div/div" +
+ "/div[2]/div/div[3]/table/tbody/tr[" + i + "]/td[5]/div"));
+// }
+ log.info("供电公司:" + powerSupplyCompaniesEle.getText());
+ if ("通信测试".equals(drillSessionEle.getText())) {
+ communicationTestNum++;
+ communicationTestName1 += getDailyName(powerSupplyCompaniesEle.getText()) + "、";
+ } else if ("重要站线视频连线检查".equals(drillSessionEle.getText())) {
+ dailyExercisesNum++;
+// dailyExercisesName1 += powerSupplyCompaniesEle.getText().substring(0, powerSupplyCompaniesEle.getText().length() - 4) + "、";
+ dailyExercisesName1 += getDailyName(powerSupplyCompaniesEle.getText()) + "、";
+ } else {
+ dailyExercisesNum++;
+// dailyExercisesName2 += powerSupplyCompaniesEle.getText().substring(0, powerSupplyCompaniesEle.getText().length() - 4) + "、";
+ WebElement ele = webDriver.findElement(By.xpath("/html/body/div[1]/div/main/div/div/div[2" +
+ "]/div/div[3]/table/tbody/tr[" + i + "]/td[7]/div"));
+ if ("物资".equals(ele.getText()))
+ materialName += getDailyName(powerSupplyCompaniesEle.getText()) + "、";
+ if ("车辆".equals(ele.getText()))
+ carName += getDailyName(powerSupplyCompaniesEle.getText()) + "、";
+ if ("队伍".equals(ele.getText()))
+ contingentName += getDailyName(powerSupplyCompaniesEle.getText()) + "、";
+ dailyExercisesName2 += getDailyName(powerSupplyCompaniesEle.getText()) + "、";
+ }
+ int x = parseInt(num);
+ if (i == parseInt(num)) {
+ tf = false;
+ }
+ i++;
+ } else {
+ tf = false;
+ }
+ }
+ }
+ log.info("communicationTestName1:" + communicationTestName1);
+ if (communicationTestNum > 0) {
+ communicationTestName = "今日市公司本部对所属" + communicationTestNum + "家县公司(" + communicationTestName1.substring(0, communicationTestName1.length() - 1) + ")进行通信测试";
+ } else {
+ communicationTestName = "今日市公司本部对所属县公司无通信测试";
+ }
+ if (dailyExercisesName1.length() > 0) {
+ dailyExercisesName1 = dailyExercisesName1.substring(0, dailyExercisesName1.length() - 1);
+ }
+ if (dailyExercisesName2.length() > 0) {
+ dailyExercisesName2 = dailyExercisesName2.substring(0, dailyExercisesName2.length() - 1);
+ }
+ String fourElementVerification = "";
+ if (materialName.length() > 0) {
+ materialName = materialName.substring(0, materialName.length() - 1);
+ fourElementVerification += materialName + "公司四要素物资核查、";
+ }
+ if (carName.length() > 0) {
+ carName = carName.substring(0, carName.length() - 1);
+ fourElementVerification += carName + "公司四要素车辆核查、";
+ }
+ if (contingentName.length() > 0) {
+ contingentName = contingentName.substring(0, contingentName.length() - 1);
+ fourElementVerification += contingentName + "公司四要素队伍核查、";
+ }
+ if (dailyExercisesName1.length() > 0 && dailyExercisesName2.length() > 0) {
+ dailyExercisesName = "今日市公司本部对所属" + dailyExercisesNum + "家县公司进行日常操练(" + fourElementVerification + dailyExercisesName1 + "公司重要站连线检查)";
+ } else if (dailyExercisesName1.length() == 0 && dailyExercisesName2.length() > 0) {
+ dailyExercisesName = "今日市公司本部对所属" + dailyExercisesNum + "家县公司进行日常操练(" + fourElementVerification + ")";
+ } else if (dailyExercisesName1.length() > 0 && fourElementVerification.length() == 0) {
+ dailyExercisesName = "今日市公司本部对所属" + dailyExercisesNum + "家县公司进行日常操练(" + dailyExercisesName1 + "公司重要站连线检查)";
+ } else {
+ dailyExercisesName = "今日市公司本部对所属" + dailyExercisesNum + "家县公司进行日常操练";
+ }
+// dailyExercisesName = "今日市公司本部对所属" + 0 + "家县公司进行日常操练";
+ log.info("communicationTestName:" + communicationTestName);
+ log.info("dailyExercisesName:" + dailyExercisesName);
+ log.info("communicationTestNum:" + communicationTestNum);
+ log.info("dailyExercisesNum:" + dailyExercisesNum);
+ String type = "";
+ if (classes == 1) {
+ type = "morning_daily";
+ //早报
+ boolean t = true;
+ int num = getRandom(1, 3);
+ String data = data2 + "17:30至" + data3 + "08:30,";
+
+ //二、重要事项
+ dailyBean.setImportant_matters(data + dailyContentArrayArray[4].trim());
+ //三、安全生产情况
+ dailyBean.setSafety_production(data + dailyContentArrayArray[6].trim());
+ //四、值班员日常工作情况
+ dailyBean.setPersonnel_daily_work(data + dailyContentArrayArray[8].trim() + "(4)资源核查情况:" + checkContentArrayArray[num].trim()
+ + dailyContentArrayArray[9].trim());
+ //五、供电保障情况
+ //(一)今日重大活动保电情况
+ dailyBean.setPower_guarantee_today_work(dailyContentArrayArray[12]);
+ //(二)明日重大活动保电安排
+ dailyBean.setPower_guarantee_tomorrow_work(dailyContentArrayArray[14]);
+ //(三)今日疫情防控应急保电情况
+ dailyBean.setPower_guarantee_today_pestilence(dailyContentArrayArray[16]);
+ //六、预警及应急响应情况
+ //(一)公司预警情况 --另外一个方法使用
+
+ //(二)公司应急响应情况
+ dailyBean.setWarning_company_impatient(data + dailyContentArrayArray[21]);
+ //(三)社会突发事件救援及处置情况
+ dailyBean.setWarning_society_emergency(data + dailyContentArrayArray[23]);
+ //七、其他情况说明
+ dailyBean.setOther_situations(data + dailyContentArrayArray[25]);
+ //附件表一
+ dailyBean.getOneBean().setExercise_person_num(getRandom(1, 50) + "");
+ dailyBean.getOneBean().setExercise_vehicle_num(getRandom(1, 20) + "");
+ dailyBean.getOneBean().setExercise_power_vehicle_num(getRandom(1, 3) + "");
+ dailyBean.getOneBean().setExercise_dynamo_num(getRandom(1, 10) + "");
+ dailyBean.getOneBean().setExercise_find_problems("0");
+
+ insertData(dailyBean, null, type);
+
+ log.info("日报数据更新完成");
+ //事件监测内容
+ logBean.setEvent_detection_content(logData + logContentArrayArray[3].trim());
+ logBean.setEvent_detection_title(logContentArrayArray[2].trim());
+// logBean.setEvent_detection_content(data + logContentArrayArray[3].trim() + data2 + logContentArrayArray[4].trim());
+ logBean.setPower_work_title(logContentArrayArray[5]);
+ logBean.setPower_work_content(logData + logContentArrayArray[6]);
+ logBean.setResource_check_title(logContentArrayArray[8]);
+ logBean.setResource_check_content(logData + checkContentArrayArray[num]);
+ logBean.setCommunications_test_title(logContentArrayArray[10]);
+ logBean.setCommunications_test_content(logContentArrayArray[11]);
+ logBean.setDaily_operation_title(logContentArrayArray[13]);
+ logBean.setDaily_operation_content(logContentArrayArray[14]);
+ logBean.setDaily_submission_title(logContentArrayArray[16]);
+ logBean.setDaily_submission_content(logData + logContentArrayArray[17]);
+ logBean.setGeneral_chronicles_title(logContentArrayArray[22]);
+ logBean.setGeneral_chronicles_content(logContentArrayArray[23]);
+ insertData(null, logBean, "log");
+ log.info("日志数据更新完成");
+ log.info("日报数据:" + dailyBean);
+ log.info("日志数据:" + logBean);
+ } else {
+ type = "evening_daily";
+ //晚报
+ boolean t = true;
+ int num = getRandom(1, 3);
+ String data = data2 + "08:30至" + data2 + "17:30,";
+ //一、总体情况
+// dailyBean2.setOverall(data + dailyContentArrayArray[2].trim() + data2 + "17:30," + dailyContentArrayArray[3].trim());
+ //二、重要事项
+ dailyBean2.setImportant_matters(data + dailyContentArrayArray[4].trim());
+ //三、安全生产情况
+ dailyBean2.setSafety_production(data + dailyContentArrayArray[6].trim());
+ //四、值班员日常工作情况
+ dailyBean2.setPersonnel_daily_work(data + dailyContentArrayArray[8].trim() + "(4)资源核查情况:" + checkContentArrayArray[num].trim()
+ + dailyContentArrayArray[9].trim());
+ //五、供电保障情况
+ //(一)今日重大活动保电情况
+ dailyBean2.setPower_guarantee_today_work(dailyContentArrayArray[12]);
+ //(二)明日重大活动保电安排
+ dailyBean2.setPower_guarantee_tomorrow_work(dailyContentArrayArray[14]);
+ //(三)今日疫情防控应急保电情况
+ dailyBean2.setPower_guarantee_today_pestilence(dailyContentArrayArray[16]);
+ //六、预警及应急响应情况
+ //(一)公司预警情况 --另外一个方法使用
+
+ //(二)公司应急响应情况
+ dailyBean2.setWarning_company_impatient(data + dailyContentArrayArray[21]);
+ //(三)社会突发事件救援及处置情况
+ dailyBean2.setWarning_society_emergency(data + dailyContentArrayArray[23]);
+ //七、其他情况说明
+ dailyBean2.setOther_situations(data + dailyContentArrayArray[25]);
+ //附件表一
+ dailyBean2.getOneBean().setExercise_person_num(getRandom(1, 50) + "");
+ dailyBean2.getOneBean().setExercise_vehicle_num(getRandom(1, 20) + "");
+ dailyBean2.getOneBean().setExercise_power_vehicle_num(getRandom(1, 3) + "");
+ dailyBean2.getOneBean().setExercise_dynamo_num(getRandom(1, 10) + "");
+ dailyBean2.getOneBean().setExercise_find_problems("0");
+
+ insertData(dailyBean2, null, type);
+
+ log.info("日报数据更新完成");
+ logBean.setEvent_detection_title(logContentArrayArray[2].trim());
+ //事件监测内容
+ logBean.setEvent_detection_content(logData + logContentArrayArray[3].trim());
+// logBean.setEvent_detection_content(data + logContentArrayArray[3].trim() + data2 + logContentArrayArray[4].trim());
+ logBean.setPower_work_title(logContentArrayArray[5]);
+ logBean.setPower_work_content(logData + logContentArrayArray[6]);
+ logBean.setResource_check_title(logContentArrayArray[8]);
+ logBean.setResource_check_content(logData + checkContentArrayArray[num]);
+ logBean.setCommunications_test_title(logContentArrayArray[10]);
+ logBean.setCommunications_test_content(logContentArrayArray[11]);
+ logBean.setDaily_operation_title(logContentArrayArray[13]);
+ logBean.setDaily_operation_content(logContentArrayArray[14]);
+ logBean.setDaily_submission_title(logContentArrayArray[16]);
+ logBean.setDaily_submission_content(logData + logContentArrayArray[17]);
+ logBean.setGeneral_chronicles_title(logContentArrayArray[22]);
+ logBean.setGeneral_chronicles_content(logContentArrayArray[23]);
+ insertData(null, logBean, "log");
+ }
+ }
+
+ /**
+ * 读取日报xml的内容
+ *
+ * @param type 早报 morning_daily 晚报 evening_daily
+ * @return
+ */
+ public static DailyBean readDailyBean(String type) {
+ DailyBean bean;
+ XStream xstream = new XStream(new JettisonMappedXmlDriver());
+ String path = DataConfig.filePath + "\\" + type + ".xml";
+ File file = new File(path);
+ InputStreamReader in = null;
+ String xml = null;
+ try {
+ //主要就是这里的设置
+ in = new InputStreamReader(new FileInputStream(file), Charset.forName("gbk"));
+ StringBuffer sb = new StringBuffer();
+ char[] array = new char[1024];
+ int length = -1;
+ while ((length = in.read(array)) != -1) {
+ sb.append(array, 0, length);
+ }
+ in.close();
+ xml = sb.toString().trim();
+ } catch (Exception e) {
+ // TODO: handle exception
+ }
+ xstream.alias(type, DailyBean.class);
+ bean = (DailyBean) xstream.fromXML(xml);
+ return bean;
+ }
+
+ /**
+ * 读取日志xml的内容
+ *
+ * @return
+ */
+ public static LogBean readDutyBean() {
+ LogBean bean;
+ XStream xstream = new XStream(new JettisonMappedXmlDriver());
+ File file = new File(DataConfig.filePath + "\\log.xml");
+ InputStreamReader in = null;
+ String xml = null;
+ try {
+ //主要就是这里的设置
+ in = new InputStreamReader(new FileInputStream(file), Charset.forName("gbk"));
+ StringBuffer sb = new StringBuffer();
+ char[] array = new char[1024];
+ int length = -1;
+ while ((length = in.read(array)) != -1) {
+ sb.append(array, 0, length);
+ }
+ in.close();
+ xml = sb.toString().trim();
+ } catch (Exception e) {
+ // TODO: handle exception
+ }
+ xstream.alias("log", LogBean.class);
+ bean = (LogBean) xstream.fromXML(xml);
+ return bean;
+ }
+
+
+ private static void insertData(DailyBean dailyBean, LogBean logBean, String type) {
+ String path = DataConfig.filePath + "\\" + type + ".xml";
+ String xml = null;
+ XStream xstream = new XStream(new JettisonMappedXmlDriver());
+ xstream.setMode(XStream.NO_REFERENCES);
+ xstream.alias(type, DailyBean.class);
+ try {
+ if ("log".equals(type)) {
+ xml = xstream.toXML(logBean);
+ } else {
+ xml = xstream.toXML(dailyBean);
+ }
+ // 将XML字符串写入文件,并指定字符编码为UTF-8
+ FileOutputStream fos = new FileOutputStream(path);
+ OutputStreamWriter writer = new OutputStreamWriter(fos, "GBK");
+ writer.write(xml);
+ writer.close();
+ System.out.println("文件保存成功");
+ } catch (IOException e) {
+ throw new RuntimeException(e);
+ }
+ if (new File(path).exists()) {
+ System.out.println("文件存在,数据保存成功");
+// System.exit(0);
+ }
+ }
+
+ public static void main(String[] args) throws ParseException, InterruptedException {
+
+ int num = getRandom(1, 3);
+ DailyBean dailyBean = readDailyBean("morning_daily");
+ DailyBean dailyBean2 = readDailyBean("evening_daily");
+ LogBean logBean = readDutyBean();
+ String dailyContent = resolveGarbledCode("E:\\bns2\\config\\日报基本数据.txt");
+ String checkContent = resolveGarbledCode("E:\\bns2\\config\\资源核查情况.txt");
+ String logContent = resolveGarbledCode("E:\\bns2\\config\\日志基本数据.txt");
+ String[] dailyContentArrayArray = dailyContent.split("--头部不可修改--");
+ String[] logContentArrayArray = logContent.split("--头部不可修改--");
+ String[] checkContentArrayArray = checkContent.split("资源核查情况:");
+ //昨天的日期
+ String data1 = DateTimeUtils.getLastDay();
+ //今天的日期
+ String data2 = DateTimeUtils.getCurrentDay2();
+ //明天的日期
+ String data3 = DateTimeUtils.getTomorrowDate();
+ //日志时间
+ String logData = data2 + "08:30至" + data3 + "8:30,";
+ String data = data2 + "17:30至" + data3 + "08:30,";
+
+ //二、重要事项
+ dailyBean.setImportant_matters(data + dailyContentArrayArray[4].trim());
+ //三、安全生产情况
+ dailyBean.setSafety_production(data + dailyContentArrayArray[6].trim());
+ //四、值班员日常工作情况
+ dailyBean.setPersonnel_daily_work(data + dailyContentArrayArray[8].trim() + "(4)资源核查情况:" + checkContentArrayArray[num].trim()
+ + dailyContentArrayArray[9].trim());
+ //五、供电保障情况
+ //(一)今日重大活动保电情况
+ dailyBean.setPower_guarantee_today_work(dailyContentArrayArray[12]);
+ //(二)明日重大活动保电安排
+ dailyBean.setPower_guarantee_tomorrow_work(dailyContentArrayArray[14]);
+ //(三)今日疫情防控应急保电情况
+ dailyBean.setPower_guarantee_today_pestilence(dailyContentArrayArray[16]);
+ //六、预警及应急响应情况
+ //(一)公司预警情况 --另外一个方法使用
+
+ //(二)公司应急响应情况
+ dailyBean.setWarning_company_impatient(data + dailyContentArrayArray[21]);
+ //(三)社会突发事件救援及处置情况
+ dailyBean.setWarning_society_emergency(data + dailyContentArrayArray[23]);
+ //七、其他情况说明
+ dailyBean.setOther_situations(data + dailyContentArrayArray[25]);
+ //附件表一
+ dailyBean.getOneBean().setExercise_person_num(getRandom(1, 50) + "");
+ dailyBean.getOneBean().setExercise_vehicle_num(getRandom(1, 20) + "");
+ dailyBean.getOneBean().setExercise_power_vehicle_num(getRandom(1, 3) + "");
+ dailyBean.getOneBean().setExercise_dynamo_num(getRandom(1, 10) + "");
+ dailyBean.getOneBean().setExercise_find_problems("0");
+
+ insertData(dailyBean, null, "morning_daily");
+
+ logBean.setEvent_detection_title(logContentArrayArray[2].trim());
+// logBean.setEvent_detection_content(data + logContentArrayArray[3].trim() + data2 + logContentArrayArray[4].trim());
+ logBean.setPower_work_title(logContentArrayArray[5]);
+ logBean.setPower_work_content(logData + logContentArrayArray[6]);
+ logBean.setResource_check_title(logContentArrayArray[8]);
+ logBean.setResource_check_content(logData + checkContentArrayArray[num]);
+ logBean.setCommunications_test_title(logContentArrayArray[10]);
+ logBean.setCommunications_test_content(logContentArrayArray[11]);
+ logBean.setDaily_operation_title(logContentArrayArray[13]);
+ logBean.setDaily_operation_content(logContentArrayArray[14]);
+ logBean.setDaily_submission_title(logContentArrayArray[16]);
+ logBean.setDaily_submission_content(data + logContentArrayArray[17]);
+ logBean.setGeneral_chronicles_title(logContentArrayArray[22]);
+ logBean.setGeneral_chronicles_content(logContentArrayArray[23]);
+ insertData(null, logBean, "log");
+ }
+
+ private String getDailyName(String text) {
+ String name = "";
+ switch (text) {
+ case "蒙城县供电公司":
+ name = "蒙城";
+ break;
+ case "利辛县供电公司":
+ name = "利辛";
+ break;
+ case "涡阳县供电公司":
+ name = "涡阳";
+ break;
+ }
+ return name;
+ }
+
+ public static int getRandom(int start, int end) {
+ int number = new Random().nextInt(end - start + 1) + start;
+ return number;
+ }
+//
+// public void addExercisePlan(String type, String company, int code) throws InterruptedException {
+// Thread.sleep(3000);
+// //添加计划
+// String projectName = addPlan(type, company, code);
+// //审核计划
+// auditPlan(type, company);
+//// String projectName = "通信";
+// //执行计划
+//// try {
+// executePlan(type, company, projectName);
+//// }catch (Exception e){
+//// while (true){
+//// WebElement webElement = webDriver.findElement(By.xpath("/html/body/div/div/div/div[2]/div[1]/section/div/section/section/div/div[3]/table/tbody/tr[1]/td[9]/div"));
+//// if (!StringHelper.isEmptyAndNull(webElement.getText())){
+//// executePlan("","","");
+//// }
+//// }
+//// }
+// }
+//
+// private void executePlan(String type, String company, String projectName) throws InterruptedException {
+// Thread.sleep(2000);
+// String checkContent = resolveGarbledCode("E:\\bns\\config\\检查计划评价.txt");
+// String[] checkContentArrayArray = checkContent.split("检查评价:");
+//// //点击已审核按钮
+//// webDriver.findElement(By.xpath("/html/body/div/div/div/div[1]/div/div/div/div[2]")).click();
+//// Thread.sleep(1500);
+// //勾选计划
+// webDriver.findElement(By.xpath("/html/body/div[1]/div/main/div/div/div[2]/div/div[3]/table/tbody/tr[1]/td[1]/div/label")).click();
+// Thread.sleep(800);
+// //点击执行按钮--打开选择被检查对象
+// webDriver.findElement(By.xpath("/html/body/div/div/main/div/div/div[1]/button[7]")).click();
+// Thread.sleep(2000);
+// //获取首页数据量 随机获取一个数据量内的数字 进行勾选相应的内容
+//// int randomNumber = 1;
+//// WebElement numberEle = webDriver.findElement(By.xpath("/html/body/div[3]/div/div[2]/section/footer/div/span[1]"));
+//// WebElement tableBody = webDriver.findElement(By.tagName("tbody")); // 获取tbody元素
+//
+//// int rowCount = tableBody.findElements(By.tagName("tr")).size(); // 查询tbody下所有tr元素的数量
+//// log.info("numberEle:" + numberEle.getText());
+//// String num1 = numberEle.getText().substring(2, numberEle.getText().length());
+//// String num = num1.substring(0, num1.length() - 2);
+//// log.info("num:" + rowCount);
+//// Random rand = new Random();
+//// if(rowCount > 6) {
+//// rowCount = 6;
+//// }
+//// randomNumber = rand.nextInt(rowCount)+1;
+//// Thread.sleep(3000);
+// webDriver.findElement(By.xpath("/html/body/div[4]/div/div[2]/section/main/div/div[3]/table/tbody/tr[1]")).click();
+// Thread.sleep(800);
+// //点击确定按钮 延迟5s
+// webDriver.findElement(By.xpath("/html/body/div[4]/div/div[3]/div/button[2]")).click();
+// Thread.sleep(3000);
+// //点击项目评价按钮
+// //定位检查计划iframe的标签
+//
+// webDriver.switchTo().defaultContent(); // 退出第一个同级 iframe
+// WebElement body = webDriver.findElement(By.tagName("body")); // 定位主文档的 body 元素
+// WebElement dutyIframe = body.findElement(By.id("plancheck-to-rccl"));
+// webDriver.switchTo().frame(dutyIframe);
+// log.info("定位到检查计划iframe-----------");
+// Thread.sleep(1500);
+// WebElement p = webDriver.findElement(By.xpath("/html/body/div/section/aside/section/div[2]/span[2]"));
+// if ("队伍".equals(p.getText())) {
+// webDriver.findElement(By.xpath("/html/body/div/section/main/header/div/div[1]/div/div/div/div[4]")).click();
+// } else {
+// webDriver.findElement(By.xpath("/html/body/div/section/main/header/div/div[1]/div/div/div/div[3]")).click();
+// }
+// Thread.sleep(800);
+// //填写发现的问题
+// webDriver.findElement(By.xpath("/html/body/div/section/main/section/form/div[2]/div[1]/div/div/textarea")).sendKeys("未发现问题");
+// Thread.sleep(500);
+// //填写项目评分
+// webDriver.findElement(By.xpath("/html/body/div/section/main/section/form/div[3]/div[1]/div/div/div/input")).sendKeys(getRandom(85, 100) + "");
+// Thread.sleep(500);
+// //填写项目评价
+// String appraise = "";
+// log.info("appraise:" + appraise);
+// if ("各级应急指挥中心音视频连通".equals(p.getText())) appraise = checkContentArrayArray[4].trim();
+// if ("物资".equals(p.getText())) appraise = checkContentArrayArray[1].trim();
+// if ("队伍".equals(p.getText())) appraise = checkContentArrayArray[3].trim();
+// if ("车辆".equals(p.getText())) appraise = checkContentArrayArray[2].trim();
+// log.info("appraise:" + appraise);
+// Thread.sleep(1000);
+// webDriver.findElement(By.xpath("/html/body/div/section/main/section/form/div[3]/div[2]/div/div/textarea")).sendKeys(appraise);
+// Thread.sleep(500);
+// //点击提交按钮
+// webDriver.findElement(By.xpath("/html/body/div/section/main/section/form/div[4]/button[2]")).click();
+// Thread.sleep(1500);
+//
+// // /html/body/div/div/div/div[2]/div[1]/section/div/section/section/div/div[3]/table/tbody/tr[1]/td[9]/div
+//
+// }
+//
+// private void auditPlan(String type, String company) throws InterruptedException {
+// log.info("开始审核操作---");
+//// //点击待审核按钮
+//// webDriver.findElement(By.xpath("/html/body/div/div/div/div[1]/div/div/div/div[3]")).click();
+//// log.info("点击待审核按钮");
+// Thread.sleep(6000);
+// //勾选计划
+// webDriver.findElement(By.xpath("/html/body/div[1]/div/main/div/div/div[2]/div/div[3]/table/tbody/tr[1]/td[1" +
+// "]/div/label")).click();
+// log.info("点击勾选计划");
+// Thread.sleep(800);
+// //点击审核按钮---打开审核页面
+// webDriver.findElement(By.xpath("/html/body/div[1]/div/main/div/div/div[1]/button[5]")).click();
+// log.info("打开审核页面");
+// Thread.sleep(1500);
+// //选择同意按钮
+// webDriver.findElement(By.xpath("/html/body/div[4]/div/div[2]/div/form/div/div/div/div")).click();
+// log.info("选择同意按钮");
+// Thread.sleep(300);
+// webDriver.findElement(By.xpath("/html/body/div[5]/div[1]/div[1]/ul/li[1]")).click();
+// Thread.sleep(300);
+// //点击提交按钮
+// webDriver.findElement(By.xpath("/html/body/div[4]/div/div[3]/div/button[2]")).click();
+// log.info("点击提交按钮");
+// Thread.sleep(5000);
+// //勾选计划
+// webDriver.findElement(By.xpath("/html/body/div[1]/div/main/div/div/div[2]/div/div[3]/table/tbody/tr[1]/td[1" +
+// "]/div/label")).click();
+// log.info("点击勾选计划");
+// Thread.sleep(800);
+// //点击审核按钮---打开审核页面
+// webDriver.findElement(By.xpath("/html/body/div[1]/div/main/div/div/div[1]/button[5]")).click();
+// log.info("打开审核页面");
+// Thread.sleep(1500);
+// //选择同意按钮
+// webDriver.findElement(By.xpath("/html/body/div[4]/div/div[2]/div/form/div/div/div/div")).click();
+// log.info("选择同意按钮");
+// Thread.sleep(300);
+// webDriver.findElement(By.xpath("/html/body/div[5]/div[1]/div[1]/ul/li[1]")).click();
+// Thread.sleep(300);
+// //点击提交按钮
+// webDriver.findElement(By.xpath("/html/body/div[4]/div/div[3]/div/button[2]")).click();
+// log.info("点击提交按钮");
+// Thread.sleep(5000);
+// log.info("结束审核操作---");
+// }
+//
+// private String addPlan(String type, String company, int code) throws InterruptedException {
+// log.info("开始执行操作---");
+// String projectName = "通信";
+//// //点击草稿按钮
+//// webDriver.findElement(By.xpath("/html/body/div/div/div/div[1]/div/div/div/div[4]")).click();
+//// Thread.sleep(1500);
+// //点击新增按钮 --- 打开新增页面
+// webDriver.findElement(By.xpath("/html/body/div[1]/div/main/div/div/div[1]/button[1]")).click();
+// Thread.sleep(1000);
+// //填写主题
+// webDriver.findElement(By.xpath("/html/body/div[3]/div/div[2]/div/form/div[1]/div/div[1]/input")).sendKeys(company + "公司日常操练" + DateTimeUtils.getMMDDByNow());
+// Thread.sleep(500);
+// //选择操练环节
+// webDriver.findElement(By.xpath("/html/body/div[3]/div/div[2]/div/form/div[2]/div/div")).click();
+// log.info("点击检查类型选择框-----------");
+// Thread.sleep(1000);
+// if ("通信测试".equals(type)) {
+// webDriver.findElement(By.xpath("/html/body/div[4]/div[1]/div[1]/ul/li[1]")).click();
+// log.info("选择操作内容 通信测试----------");
+// Thread.sleep(500);
+// } else {
+// webDriver.findElement(By.xpath("/html/body/div[4]/div[1]/div[1]/ul/li[2]")).click();
+// log.info("选择操作内容 四要素检查----------");
+// Thread.sleep(500);
+// }
+//
+// //选择检查操练项目
+// webDriver.findElement(By.xpath("/html/body/div[3]/div/div[2]/div/form/div[3]/div/div")).click();
+// log.info("点击操练项目选择框-----------");
+// Thread.sleep(1000);
+// if ("通信测试".equals(type)) {
+// webDriver.findElement(By.xpath("/html/body/div[5]/div[1]/div[1]/ul/li[1]")).click();
+// log.info("选择操作内容 各级应急指挥中心音视频连通----------");
+// Thread.sleep(500);
+// } else {
+// Random random = new Random();
+// // 生成一个0或1的随机数
+// int randomNumber = random.nextInt(2);
+// // 根据随机数进行逻辑判断
+// if (randomNumber == 0) {
+// System.out.println("随机数为0,获取到了1");
+// webDriver.findElement(By.xpath("/html/body/div[5]/div[1]/div[1]/ul/li[1]")).click();
+// log.info("选择操作内容----------");
+// Thread.sleep(500);
+// projectName = "队伍";
+// } else {
+// System.out.println("随机数为1,获取到了3");
+// webDriver.findElement(By.xpath("/html/body/div[5]/div[1]/div[1]/ul/li[3]")).click();
+// log.info("选择操作内容----------");
+// Thread.sleep(500);
+// projectName = "车辆";
+// }
+//// int i =getRandom(1,3);
+//// webDriver.findElement(By.xpath("/html/body/div[5]/div[1]/div[1]/ul/li[" + i + "]")).click();
+//// log.info("选择操作内容----------");
+//// Thread.sleep(500);
+//// if (i == 1) projectName = "队伍";
+//// if (i == 2) projectName = "装备";
+//// if (i == 3) projectName = "车辆";
+//// Thread.sleep(300);
+// }
+// //选择被检查单位
+// webDriver.findElement(By.xpath("/html/body/div[3]/div/div[2]/div/form/div[4]/div/div")).click();
+// log.info("点击选择被检查单位型选择框-----------");
+// Thread.sleep(1000);
+// webDriver.findElement(By.xpath("/html/body/div[6]/div[1]/div[1]/ul/li[" + code + "]")).click();
+// log.info("选择操作内容----------");
+// Thread.sleep(500);
+// //填写计划检查日期
+// webDriver.findElement(By.xpath("/html/body/div[3]/div/div[2]/div/form/div[5]/div/div/input")).sendKeys(DateTimeUtils.getCurrentDay());
+// Thread.sleep(1500);
+// //点击提交按钮
+// webDriver.findElement(By.xpath("/html/body/div[3]/div/div[3]/div/button[3]")).click();
+// Thread.sleep(1000);
+// //点击确定按钮
+// webDriver.findElement(By.xpath("/html/body/div[7]/div/div[3]/button[2]")).click();
+// Thread.sleep(1000);
+//
+// return projectName;
+// }
+
+ public void addExercisePlan(String type, String company, int code) throws InterruptedException {
+ Thread.sleep(3000);
+ //添加计划
+ addPlan(type, company, code);
+ //审核计划
+// auditPlan(type, company);
+// String projectName = "通信";
+ //执行计划
+// try {
+ executePlan(type, company, "");
+// }catch (Exception e){
+// while (true){
+// WebElement webElement = webDriver.findElement(By.xpath("/html/body/div/div/div/div[2]/div[1]/section/div/section/section/div/div[3]/table/tbody/tr[1]/td[9]/div"));
+// if (!StringHelper.isEmptyAndNull(webElement.getText())){
+// executePlan("","","");
+// }
+// }
+// }
+ }
+
+ private void executePlan(String type, String company, String projectName) throws InterruptedException {
+ Thread.sleep(2000);
+ String checkContent = resolveGarbledCode("E:\\bns\\config\\检查计划评价.txt");
+ String[] checkContentArrayArray = checkContent.split("检查评价:");
+ //勾选计划
+ webDriver.findElement(By.xpath("/html/body/div[1]/section/div[1]/div[2]/div[2]/section/main/section/main/div/div[3]/table/tbody/tr[1]")).click();
+ Thread.sleep(800);
+ //点击执行按钮--打开选择被检查对象
+ webDriver.findElement(By.xpath("/html/body/div[1]/section/div[1]/div[2]/div[2]/section/main/section/header/button[4]")).click();
+ Thread.sleep(2000);
+
+
+ webDriver.switchTo().defaultContent(); // 退出第一个同级 iframe
+ WebElement body = webDriver.findElement(By.tagName("body")); // 定位主文档的 body 元素
+ WebElement dutyIframe = body.findElement(By.id("plancheck-to-rccl"));
+ webDriver.switchTo().frame(dutyIframe);
+ log.info("定位到检查计划iframe-----------");
+ Thread.sleep(1500);
+ //填写项目评价
+ String appraise = "";
+ if("日常操练".equals(type)){
+ webDriver.findElement(By.xpath("/html/body/div/section/main/header/div/div[1]/div/div/div/div[4]")).click();
+ appraise = checkContentArrayArray[3].trim();
+ }else{
+ webDriver.findElement(By.xpath("/html/body/div/section/main/header/div/div[1]/div/div/div/div[3]")).click();
+ appraise = checkContentArrayArray[4].trim();
+ }
+ Thread.sleep(800);
+ //填写发现的问题
+ webDriver.findElement(By.xpath("/html/body/div/section/main/section/form/div[2]/div[1]/div/div/textarea")).sendKeys("未发现问题");
+ Thread.sleep(500);
+ //填写项目评分
+ webDriver.findElement(By.xpath("/html/body/div/section/main/section/form/div[3]/div[1]/div/div/div/input")).sendKeys(getRandom(95, 100) + "");
+ Thread.sleep(500);
+
+ log.info("appraise:" + appraise);
+ Thread.sleep(1000);
+ webDriver.findElement(By.xpath("/html/body/div/section/main/section/form/div[3]/div[2]/div/div/textarea")).sendKeys(appraise);
+ Thread.sleep(500);
+ //点击提交按钮
+ webDriver.findElement(By.xpath("/html/body/div/section/main/section/form/div[4]/button[2]")).click();
+ Thread.sleep(1500);
+
+ // /html/body/div/div/div/div[2]/div[1]/section/div/section/section/div/div[3]/table/tbody/tr[1]/td[9]/div
+
+ }
+
+ private void auditPlan(String type, String company) throws InterruptedException {
+ log.info("开始审核操作---");
+ //点击待审核按钮
+ webDriver.findElement(By.xpath("/html/body/div/div/div/div[1]/div/div/div/div[3]")).click();
+ log.info("点击待审核按钮");
+ Thread.sleep(1500);
+ //勾选计划
+ webDriver.findElement(By.xpath("/html/body/div/div/div/div[2]/div[2]/section/div/section/section/div/div[3]/table/tbody/tr/td[1]/div/label")).click();
+ log.info("点击勾选计划");
+ Thread.sleep(800);
+ //点击审核按钮---打开审核页面
+ webDriver.findElement(By.xpath("/html/body/div/div/div/div[2]/div[2]/section/div/section/header/button")).click();
+ log.info("打开审核页面");
+ Thread.sleep(1500);
+ //选择同意按钮
+ webDriver.findElement(By.xpath("/html/body/div[3]/div/div[2]/div/form/div/div/div/div")).click();
+ log.info("选择同意按钮");
+ Thread.sleep(300);
+ webDriver.findElement(By.xpath("/html/body/div[4]/div[1]/div[1]/ul/li[1]")).click();
+ Thread.sleep(300);
+ //点击提交按钮
+ webDriver.findElement(By.xpath("/html/body/div[3]/div/div[3]/div/button[2]")).click();
+ log.info("点击提交按钮");
+ Thread.sleep(5000);
+ //勾选计划
+ webDriver.findElement(By.xpath("/html/body/div/div/div/div[2]/div[2]/section/div/section/section/div/div[3]/table/tbody/tr/td[1]/div/label/span/span")).click();
+ log.info("点击勾选计划");
+ Thread.sleep(800);
+ //点击审核按钮---打开审核页面
+ webDriver.findElement(By.xpath("/html/body/div/div/div/div[2]/div[2]/section/div/section/header/button")).click();
+ log.info("打开审核页面");
+ Thread.sleep(1500);
+ //选择同意按钮
+ webDriver.findElement(By.xpath("/html/body/div[3]/div/div[2]/div/form/div/div/div/div")).click();
+ log.info("选择同意按钮");
+ Thread.sleep(300);
+ webDriver.findElement(By.xpath("/html/body/div[4]/div[1]/div[1]/ul/li[1]")).click();
+ Thread.sleep(300);
+ //点击提交按钮
+ webDriver.findElement(By.xpath("/html/body/div[3]/div/div[3]/div/button[2]")).click();
+ log.info("点击提交按钮");
+ Thread.sleep(5000);
+ log.info("结束审核操作---");
+ }
+
+ private void addPlan(String type, String company, int code) throws InterruptedException {
+ log.info("开始执行操作---");
+ String projectName = "通信";
+ //点击新增按钮 --- 打开新增页面
+ webDriver.findElement(By.xpath("/html/body/div[1]/section/div[1]/div[2]/div[2]/section/main/section/header" +
+ "/button[1]")).click();
+ Thread.sleep(2000);
+ //填写主题
+ if("通信测试".equals(type)){
+ webDriver.findElement(By.xpath("/html/body/div[3]/div/div[2]/section/header/form/div/div[1]/div/div[2]/div[1" +
+ "]/input")).sendKeys("对"+company+"公司开展通信测试");
+ }else {
+ webDriver.findElement(By.xpath("/html/body/div[3]/div/div[2]/section/header/form/div/div[1]/div/div[2]/div[1" +
+ "]/input")).sendKeys("对"+company+"公司开展日常操练");
+ }
+ Thread.sleep(500);
+ //选择操练环节
+ webDriver.findElement(By.xpath("/html/body/div[3]/div/div[2]/section/header/form/div/div[2]/div/div[2]")).click();
+ log.info("选择操练环节-----------");
+ Thread.sleep(1000);
+ webDriver.findElement(By.xpath("通信测试".equals(type) ? "/html/body/div[4]/div[1]/div[1]/ul/li[1]" : "/html/body" +
+ "/div[4]/div[1]/div[1]/ul/li[2]")).click();
+ log.info("选择操练环节----------");
+ Thread.sleep(500);
+ //选择检查操练项目
+ webDriver.findElement(By.xpath("/html/body/div[3]/div/div[2]/section/header/form/div/div[3]/div/div[2]")).click();
+ log.info("点击检查操练项目选择框-----------");
+ Thread.sleep(1000);
+ webDriver.findElement(By.xpath("/html/body/div[5]/div[1]/div[1]/ul/li[1]")).click();
+ log.info("选择操作内容----------");
+ Thread.sleep(1000);
+ //选择被检查单位
+ webDriver.findElement(By.xpath("/html/body/div[3]/div/div[2]/section/header/form/div/div[4]/div/div[2]")).click();
+ log.info("点击选择被检查单位型选择框-----------");
+ Thread.sleep(1000);
+ webDriver.findElement(By.xpath("/html/body/div[6]/div[1]/div/div/div[1]/div[2]/div["+code+"]/div/span[2]")).click();
+ log.info("选择被检查单位----------");
+ Thread.sleep(500);
+ //选择被检查对象
+ webDriver.findElement(By.xpath("/html/body/div[3]/div/div[2]/section/header/form/div/div[5]/div/div[2]")).click();
+ Thread.sleep(3000);
+ if("通信测试".equals(type)){
+ webDriver.findElement(By.xpath("/html/body/div[7]/div/div[2]/section/section/main/div/div[3]/table/tbody" +
+ "/tr[1]")).click();
+ Thread.sleep(500);
+ webDriver.findElement(By.xpath("/html/body/div[7]/div/div[2]/section/section/main/div/div[3]/table/tbody" +
+ "/tr[2]")).click();
+ Thread.sleep(1000);
+ }else {
+ for (int i = 1; i < 9; i++) {
+ webDriver.findElement(By.xpath("/html/body/div[7]/div/div[2]/section/section/main/div/div[3]/table" +
+ "/tbody/tr["+i+"]")).click();
+ Thread.sleep(1000);
+ }
+ }
+ Thread.sleep(3000);
+ webDriver.findElement(By.xpath("/html/body/div[7]/div/div[2]/section/footer/button[2]")).click();
+ Thread.sleep(2000);
+ //提交
+ webDriver.findElement(By.xpath("/html/body/div[2]/div/div[2]/section/div/button[3]")).click();
+ Thread.sleep(3000);
+ }
+}
diff --git a/src/main/java/com/bonus/autoweb/TestMain.java b/src/main/java/com/bonus/autoweb/TestMain.java
new file mode 100644
index 0000000..69b11e5
--- /dev/null
+++ b/src/main/java/com/bonus/autoweb/TestMain.java
@@ -0,0 +1,452 @@
+package com.bonus.autoweb;
+
+import com.bonus.autoweb.base.AutoUtils;
+import com.bonus.autoweb.base.DataConfig;
+import com.bonus.autoweb.task.AutoWebTask;
+import com.jacob.activeX.ActiveXComponent;
+import com.jacob.com.ComFailException;
+import com.jacob.com.Dispatch;
+import com.jacob.com.Variant;
+import lombok.SneakyThrows;
+import org.apache.poi.ss.usermodel.Cell;
+import org.apache.poi.ss.usermodel.Row;
+import org.apache.poi.ss.usermodel.Sheet;
+import org.apache.poi.ss.usermodel.Workbook;
+import org.apache.poi.xssf.usermodel.XSSFWorkbook;
+import org.openqa.selenium.By;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.IOException;
+import java.text.ParseException;
+import java.util.*;
+import javax.sound.sampled.*;
+import javax.sound.sampled.AudioInputStream;
+import javax.sound.sampled.AudioSystem;
+
+/**
+ * 系统测试
+ * @author 24526
+ */
+public class TestMain {
+ private static Logger log = LoggerFactory.getLogger(TestMain.class);
+
+ public static void main(String[] args) throws Exception {
+ log.info("执行任务开始。。。。。。");
+// testqd();
+// testjjb();
+// testGetData();
+// testAccounters();
+// testDailrb();
+// testRCCL();
+// testLog();
+ new Thread(new Runnable() {
+ @SneakyThrows
+ @Override
+ public void run() {
+ try {
+ new TestMain().autoJob();
+ } catch (Exception e) {
+ e.printStackTrace();
+ log.error("错误信息", e);
+ }
+ }
+ }).start();
+ }
+
+ private static void testAccounters() {
+ try {
+ AutoWebTask autoWebTask = new AutoWebTask();
+ String content = GetBasicData.resolveGarbledCode("E:\\bns\\config\\值班账号.txt");
+ // 应急值班账号
+ String emergencyPerson = content.toString().split(";")[0].split(":")[1];
+ String emergencyPersonPassword = content.toString().split(";")[1].split(":")[1];
+ autoWebTask.changeTodayPersonaTask(1,emergencyPerson,emergencyPersonPassword);
+ //TODO 昨日的账号在今日的签退任务完成后,拿取今天的打卡人员数据放入昨日值班账号txt即可
+
+ } catch (IOException e) {
+ e.printStackTrace();
+ }
+ }
+
+ //签到签退测试
+ private static void testqd() {
+ String content = GetBasicData.resolveGarbledCode("E:\\bns\\config\\account.txt");
+ String date = content.toString().split(";")[0].split(":")[1];
+ String num = content.toString().split(";")[1].split(":")[1];
+ if("1".equals(num)){
+ log.info("xgd,yj签到签退任务");
+ }else {
+ log.info("zkj,zh签到签退任务");
+ }
+// AutoWebTask autoWebTask = new AutoWebTask();
+// autoWebTask.dutyClockTask(2);
+ }
+
+ //交接班测试
+ private static void testjjb() {
+ AutoWebTask autoWebTask = new AutoWebTask();
+ autoWebTask.dutyChangeTask1(2,DataConfig.USER_NAME1,DataConfig.PASS1);
+ }
+
+ private static void testRCCL() throws InterruptedException {
+ AutoWebTask autoWebTask = new AutoWebTask();
+ String content = GetBasicData.resolveGarbledCode("E:\\bns\\config\\值班账号.txt");
+ // 应急值班账号
+ String emergencyPerson = content.toString().split(";")[0].split(":")[1];
+ String emergencyPersonPassword = content.toString().split(";")[1].split(":")[1];
+ String[] array = {"蒙城","利辛","涡阳"};
+ Random random = new Random();
+ int index = random.nextInt(array.length);
+ log.info("随机值为:" + index);
+ log.info("随机值为:" + array[index]);
+ Thread.sleep(2000);
+ autoWebTask.addExercisePlan("通信测试", array[index], index+1, emergencyPerson,
+ emergencyPersonPassword);
+ Thread.sleep(1000 * 700);
+ autoWebTask.addExercisePlan("日常操练", array[index], index+1, emergencyPerson,
+ emergencyPersonPassword);
+ Thread.sleep(2000);
+ }
+
+ //自动获取数据测试
+ private static void testGetData() throws ParseException, InterruptedException {
+ AutoWebTask autoWebTask = new AutoWebTask();
+ String content = GetBasicData.resolveGarbledCode("E:\\bns\\config\\值班账号.txt");
+ // 应急值班账号
+ String emergencyPerson = content.toString().split(";")[0].split(":")[1];
+ String emergencyPersonPassword = content.toString().split(";")[1].split(":")[1];
+ Thread.sleep(2000);
+ autoWebTask.getYuJingData(2,emergencyPerson,emergencyPersonPassword);
+ Thread.sleep(2000);
+ autoWebTask.getCaoLianData(2,emergencyPerson,emergencyPersonPassword);
+ Thread.sleep(2000);
+// GetBasicData.getYuJingActionBasicData(1);
+//登录操作---杨军账号
+// autoWebTask.addExercisePlan("日常操练","灵璧",5,DataConfig.USER_NAME3,DataConfig.PASS3);
+// Thread.sleep(2000);
+// autoWebTask.addExercisePlan("日常操练","城郊",6,DataConfig.USER_NAME3,DataConfig.PASS3);
+//// Thread.sleep(2000);
+// autoWebTask.addExercisePlan("日常操练","砀山",3,DataConfig.USER_NAME3,DataConfig.PASS3);
+// autoWebTask.addExercisePlan("通信测试","城郊",6,DataConfig.USER_NAME3,DataConfig.PASS3);
+ }
+
+ //日报填写测试
+ private static void testDailrb() {
+ try {
+ //操作日报
+ //日报审核工作
+ AutoWebTask autoWebTask = new AutoWebTask();
+ autoWebTask.dutyAddDailyLogsTask(1,DataConfig.USER_NAME4,DataConfig.PASS4);
+ Thread.sleep(1000);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+
+ //日志填写测试
+ private static int testLog() {
+ int count = 0;
+ try {
+ //操作日志
+ AutoWebTask autoWebTask = new AutoWebTask();
+ autoWebTask.dutyAddLogsTask(2,DataConfig.USER_NAME1,DataConfig.PASS1);
+ count = 1;
+ Thread.sleep(1000);
+ log.info("count",count);
+ System.out.println(count);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ return count;
+ }
+
+
+ /**
+ * 自动化任务
+ *
+ * @throws Exception
+ */
+ private void autoJob() throws InterruptedException {
+ AutoWebTask autoWebTask = new AutoWebTask();
+
+ int logGatherCount = 0;
+ int dailyGatherCount = 0;
+ int logGatherCount1 = 0;
+ int dailyGatherCount1 = 0;
+
+ int signInzao = 0;
+ int signInzao2 = 0;
+ int dailyzao = 0;
+ int dailywan = 0;
+ int jjbzao = 0;
+ int jjbzao2 = 0;
+ int signOutzao = 0;
+ int signOutzao2 = 0;
+ int logzao = 0;
+ int resetCode = 0;
+
+ int changeTodayPerson = 0;
+
+ int addExercisePlan = 0;
+
+ while (true) {
+ //延迟30s---120s
+ int time = randNum(30, 120);
+ log.info("随机时间为:" + time);
+ try {
+ Thread.sleep(1000 * time);
+ } catch (Exception e) {
+ log.error("时间", e);
+ }
+ log.info("服务正在运行。。。" + new Date());
+ String content = GetBasicData.resolveGarbledCode("E:\\bns\\config\\值班账号.txt");
+ String todayContent = GetBasicData.resolveGarbledCode("E:\\bns\\config\\今日值班账号.txt");
+ String yesterdayContent = GetBasicData.resolveGarbledCode("E:\\bns\\config\\昨日值班账号.txt");
+ // 应急值班账号
+ String emergencyPerson = content.toString().split(";")[0].split(":")[1];
+ String emergencyPersonPassword = content.toString().split(";")[1].split(":")[1];
+ //今日签到值班人员
+ String todaySignInPerson = todayContent.toString().split(";")[0].split(":")[1];
+ String todaySignInPersonPassword = todayContent.toString().split(";")[1].split(":")[1];
+ //昨日签退人员
+ String yesterdaySignOutPerson = yesterdayContent.toString().split(";")[0].split(":")[1];
+ String yesterdaySignOutPersonPassword = yesterdayContent.toString().split(";")[1].split(":")[1];
+
+ if(DateTimeUtils.isEffectiveDate("17:46", "17:55")){
+ //进行日报信息系统采集及获取工作
+ try {
+ if (logGatherCount == 0){
+ logGatherCount = autoWebTask.getYuJingData(1,emergencyPerson,emergencyPersonPassword);
+ }
+ Thread.sleep(3000);
+ if (dailyGatherCount == 0){
+ dailyGatherCount = autoWebTask.getCaoLianData(1,emergencyPerson,emergencyPersonPassword);
+ Thread.sleep(2000);
+ }
+ }catch (Exception e) {
+ log.error("信息采集工作", e);
+ }
+ }else if (DateTimeUtils.isEffectiveDate("05:00", "05:30")) {
+ //TODO 更新今日
+ try {
+ if (changeTodayPerson == 0){
+ changeTodayPerson = autoWebTask.changeTodayPersonaTask(1,emergencyPerson,emergencyPersonPassword);
+ }
+ } catch (IOException e) {
+ log.error("更新早上打卡人员", e);
+ }
+ }else if (DateTimeUtils.isEffectiveDate("06:00", "06:30")) {
+ //自动完成当值值班日报(早报)填写上报
+ if (dailyzao == 0) {
+ getTime(1100);
+ try {
+ dailyzao = autoWebTask.dutyAddDailyLogsTask(1,emergencyPerson,emergencyPersonPassword);
+
+
+ }catch (Exception e){
+ log.error("日报工作", e);
+ }
+ }
+ }else if (DateTimeUtils.isEffectiveDate("06:31", "06:50")) {
+ //完成值班日志填写提交(晚班日志,此次值班日志为总结前一天晚上的情况)
+ if (logzao == 0) {
+ getTime(600);
+ try {
+ logzao = autoWebTask.dutyAddLogsTask(1,emergencyPerson,emergencyPersonPassword);
+ }catch (Exception e){
+ log.error("日志工作", e);
+ }
+ }
+ }else if (DateTimeUtils.isEffectiveDate("07:20", "07:50")) {
+ //自动完成当值值班签到(值班主任、值班人员都要签到)
+ if ("error".equals(content)) {
+ log.error("读取打卡人员数据错误");
+ }else {
+ if (signInzao == 0 && signInzao2 == 0){
+ getTime(1100);
+ }
+ if (signInzao == 0) {
+ log.info("应急值班账号开始打卡任务---------------------");
+ //使用应急值班账号签到
+ try {
+ signInzao = autoWebTask.dutySigin(1, 1, emergencyPerson, emergencyPersonPassword);
+
+
+ } catch (Exception e) {
+ log.error("应急值班打卡任务", e);
+ }
+ }
+ try {
+ Thread.sleep(1000 * 2);
+ } catch (Exception e) {
+ log.error("打卡任务", e);
+ }
+ if (signInzao2 == 0) {
+ //使用其他账号签到
+ log.info("其他账号开始打卡任务---------------------");
+ try {
+ signInzao2 = autoWebTask.dutySigin(1, 1,todaySignInPerson , todaySignInPersonPassword);
+ } catch (Exception e) {
+ log.error("其他账号打卡任务", e);
+ }
+ }
+ }
+ }else if (DateTimeUtils.isEffectiveDate("08:05", "08:20")) {
+ if (jjbzao == 0 && jjbzao2 == 0){
+ getTime(600);
+ }
+ //自动在系统内完成接班(上一值完成交班后)
+ if (jjbzao == 0 || jjbzao2 == 0){
+ try {
+ if (jjbzao == 0){
+ jjbzao = autoWebTask.dutyChangeTask1(1,emergencyPerson,emergencyPersonPassword);
+ }
+ if (jjbzao2 == 0){
+ jjbzao2 = autoWebTask.dutyChangeTask2(2,emergencyPerson,emergencyPersonPassword);
+ }
+ }catch (Exception e){
+ log.error("接接班任务", e);
+ }
+ }
+ }else if (DateTimeUtils.isEffectiveDate("08:35", "09:00")) {
+ if(signOutzao == 0 && signOutzao2 == 0){
+ getTime(1100);
+ }
+ //自动在系统内完成签退
+ try {
+ if (signOutzao == 0) {
+ try {
+ signOutzao = autoWebTask.dutySignOutTask(1,emergencyPerson,emergencyPersonPassword);
+ }catch (Exception e){
+ log.error("签退",e);
+ }
+ }
+ try {
+ Thread.sleep(1000 * 3);
+ } catch (Exception e) {
+ log.error("时间", e);
+ }
+ if (signOutzao2 == 0){
+ try {
+ signOutzao2 = autoWebTask.dutySignOutTask(1, yesterdaySignOutPerson, yesterdaySignOutPersonPassword);
+ if (signOutzao2 == 1){
+ // TODO 更新昨日签退人员账号
+ String value = GetBasicData.resolveGarbledCode("E:\\bns\\config\\今日值班账号.txt");
+ AutoUtils.write("E:\\bns\\config\\昨日值班账号.txt", value.replace("今日","昨日"));
+ }
+ }catch (Exception e){
+ log.error("签退",e);
+ }
+ }
+ }catch (Exception e){
+ log.error("签退", e);
+ }
+ } else if (DateTimeUtils.isEffectiveDate("09:05", "10:00")) {
+ if(addExercisePlan == 0){
+ getTime(1200);
+ }
+ if(addExercisePlan == 0) {
+ String[] array = {"蒙城","利辛","涡阳"};
+ Random random = new Random();
+ int index = random.nextInt(array.length);
+ log.info("随机值为:" + index);
+ log.info("随机值为:" + array[index]);
+ Thread.sleep(2000);
+ addExercisePlan = autoWebTask.addExercisePlan("通信测试", array[index], index+1, emergencyPerson,
+ emergencyPersonPassword);
+ Thread.sleep(1000 * 700);
+ addExercisePlan = autoWebTask.addExercisePlan("日常操练", array[index], index+1, emergencyPerson,
+ emergencyPersonPassword);
+ Thread.sleep(2000);
+ }
+ }else if (DateTimeUtils.isEffectiveDate("12:30", "14:30")) {
+ //进行日志信息系统采集及获取工作
+ try {
+ if (logGatherCount1 == 0){
+ logGatherCount1= autoWebTask.getYuJingData(2,emergencyPerson,emergencyPersonPassword);
+ }
+ Thread.sleep(3000);
+ if (dailyGatherCount1 == 0){
+ dailyGatherCount1 = autoWebTask.getCaoLianData(2,emergencyPerson,emergencyPersonPassword);
+ Thread.sleep(2000);
+ }
+ }catch (Exception e) {
+ log.error("信息采集工作", e);
+ }
+ }else if (DateTimeUtils.isEffectiveDate("17:00", "17:40")) {
+ //自动完成当值值班日报(晚报)填写上报
+ if (dailywan == 0) {
+ getTime(1500);
+ try {
+ dailywan = autoWebTask.dutyAddDailyLogsTask(2,emergencyPerson,emergencyPersonPassword);
+ }catch (Exception e){
+ log.error("日报工作", e);
+ }
+ }
+ } else if (DateTimeUtils.isEffectiveDate("20:05", "20:08")) {//重置标识
+ log.info("-----开始重置各标识符-----");
+ logGatherCount = 0;
+ logGatherCount1 = 0;
+ dailyGatherCount = 0;
+ dailyGatherCount1 = 0;
+ signInzao = 0;
+ signInzao2 = 0;
+ dailyzao = 0;
+ dailywan = 0;
+ jjbzao = 0;
+ jjbzao2 = 0;
+ signOutzao = 0;
+ signOutzao2 = 0;
+ logzao = 0;
+ addExercisePlan = 0;
+ changeTodayPerson = 0;
+ } else {
+ continue;
+ }
+ }
+ }
+
+ private static List getARandomCollectionOfData() {
+ Random random = new Random();
+ int minCount = 3; // 最小数量
+ int maxCount = 5; // 最大数量
+ int count = random.nextInt(maxCount - minCount + 1) + minCount; // 随机生成数量
+ List numbers = new ArrayList<>();
+ while (numbers.size() < count) {
+ int randomNumber = random.nextInt(6) + 2; // 随机生成2到7的数字
+ if (!numbers.contains(randomNumber)) {
+ numbers.add(randomNumber);
+ }
+ }
+ Collections.shuffle(numbers);
+ return numbers;
+ }
+
+ private void getTime(int code){
+ int time = randNum(0, code);
+ log.info("随机时间为:" + time);
+ try {
+ Thread.sleep(1000 * time);
+ } catch (Exception e) {
+ log.error("时间", e);
+ }
+ }
+
+ /**
+ * 随机产生随机数,包含num1和num2
+ *
+ * @param num1
+ * @param num2
+ * @return
+ */
+ private int randNum(int num1, int num2) {
+ int result = (int) (num1 + Math.random() * (num2 - num1 + 1));
+ return result;
+ }
+}
+
+
+
diff --git a/src/main/java/com/bonus/autoweb/UI/entity/AnnexEightBean.java b/src/main/java/com/bonus/autoweb/UI/entity/AnnexEightBean.java
new file mode 100644
index 0000000..1447f4d
--- /dev/null
+++ b/src/main/java/com/bonus/autoweb/UI/entity/AnnexEightBean.java
@@ -0,0 +1,78 @@
+package com.bonus.autoweb.UI.entity;
+
+import lombok.Data;
+
+/**
+ * 日报实体类
+ * 附件八-输配电线停运及恢复
+ * @author ztq
+ */
+@Data
+public class AnnexEightBean {
+
+ /**
+ * 特高压
+ */
+ private String transmit_electricity_add_outage_uvh;
+ private String transmit_electricity_add_repair_uvh;
+ private String transmit_electricity_add_no_repair_uvh;
+
+ private String transmit_electricity_cumulative_outage_uvh;
+ private String transmit_electricity_cumulative_repair_uvh;
+ private String transmit_electricity_cumulative_no_repair_uvh;
+
+ /**
+ * 500kv
+ */
+ private String transmit_electricity_add_outage_five;
+ private String transmit_electricity_add_repair_five;
+ private String transmit_electricity_add_no_repair_five;
+
+ private String transmit_electricity_cumulative_outage_five;
+ private String transmit_electricity_cumulative_repair_five;
+ private String transmit_electricity_cumulative_no_repair_five;
+
+ /**
+ * 220/300kv
+ */
+ private String transmit_electricity_add_outage_two;
+ private String transmit_electricity_add_repair_two;
+ private String transmit_electricity_add_no_repair_two;
+
+ private String transmit_electricity_cumulative_outage_two;
+ private String transmit_electricity_cumulative_repair_two;
+ private String transmit_electricity_cumulative_no_repair_two;
+
+ /**
+ * 110/66kv
+ */
+ private String transmit_electricity_add_outage_one;
+ private String transmit_electricity_add_repair_one;
+ private String transmit_electricity_add_no_repair_one;
+
+ private String transmit_electricity_cumulative_outage_one;
+ private String transmit_electricity_cumulative_repair_one;
+ private String transmit_electricity_cumulative_no_repair_one;
+
+ /**
+ * 35kv
+ */
+ private String transmit_electricity_add_outage_three;
+ private String transmit_electricity_add_repair_three;
+ private String transmit_electricity_add_no_repair_three;
+
+ private String transmit_electricity_cumulative_outage_three;
+ private String transmit_electricity_cumulative_repair_three;
+ private String transmit_electricity_cumulative_no_repair_three;
+
+ /**
+ * 10kv
+ */
+ private String transmit_electricity_add_outage_ten;
+ private String transmit_electricity_add_repair_ten;
+ private String transmit_electricity_add_no_repair_ten;
+
+ private String transmit_electricity_cumulative_outage_ten;
+ private String transmit_electricity_cumulative_repair_ten;
+ private String transmit_electricity_cumulative_no_repair_ten;
+}
diff --git a/src/main/java/com/bonus/autoweb/UI/entity/AnnexElevenBean.java b/src/main/java/com/bonus/autoweb/UI/entity/AnnexElevenBean.java
new file mode 100644
index 0000000..83a4192
--- /dev/null
+++ b/src/main/java/com/bonus/autoweb/UI/entity/AnnexElevenBean.java
@@ -0,0 +1,23 @@
+package com.bonus.autoweb.UI.entity;
+
+import lombok.Data;
+
+/**
+ * 包名称:com.bonus.autoweb.UI.entity
+ * 类名称:AnnexTenBean
+ * 类描述:附件十一
+ * 创建人:@author tqzhang
+ * 创建时间:2023年08月01日 13:23
+ */
+@Data
+public class AnnexElevenBean {
+ private String uhv;
+ private String fiveHundredKv;
+ private String twoHundredTwentyKv;
+ private String oneHundredTenKv;
+ private String thirtyFiveKv;
+ private String tenKv;
+ private String averageWaterLevel;
+ private String measuredValue;
+ private String actionHasBeenTaken;
+}
diff --git a/src/main/java/com/bonus/autoweb/UI/entity/AnnexFiveBean.java b/src/main/java/com/bonus/autoweb/UI/entity/AnnexFiveBean.java
new file mode 100644
index 0000000..d0b01bc
--- /dev/null
+++ b/src/main/java/com/bonus/autoweb/UI/entity/AnnexFiveBean.java
@@ -0,0 +1,26 @@
+package com.bonus.autoweb.UI.entity;
+
+import lombok.Data;
+
+/**
+ * 包名称:com.bonus.autoweb.UI.entity
+ * 类名称:AnnexFiveBean
+ * 类描述:附件五 入境筛查和集中观察场所供电保障情况表
+ * 创建人:@author tqzhang
+ * 创建时间:2023年07月27日 11:29
+ */
+
+@Data
+public class AnnexFiveBean {
+ //入境筛选和集中观察场所数量
+ private String airportPort;
+ private String venueHospital;
+ private String guesthouseHotel;
+ private String safeguardPersonnel;
+ //投入力量
+ private String electricallyGuaranteedVehicles;
+ private String powerGenerationVehicles;
+ private String dynamo;
+ private String remark;
+
+}
diff --git a/src/main/java/com/bonus/autoweb/UI/entity/AnnexFourBean.java b/src/main/java/com/bonus/autoweb/UI/entity/AnnexFourBean.java
new file mode 100644
index 0000000..d3ee2cd
--- /dev/null
+++ b/src/main/java/com/bonus/autoweb/UI/entity/AnnexFourBean.java
@@ -0,0 +1,58 @@
+package com.bonus.autoweb.UI.entity;
+
+import lombok.Data;
+
+/**
+ * 日报实体类
+ * 附件四-疫情防控供电保障情况统计表
+ * @author zys
+ */
+@Data
+public class AnnexFourBean {
+
+ /**
+ * 定点医院
+ */
+ private String designated_hospitals;
+
+ /**
+ * 发热门诊
+ */
+ private String fever_clinic;
+
+ /**
+ * 防疫用品企业
+ */
+ private String epidemic_enterprise;
+
+ /**
+ * 其他重要用户
+ */
+ private String other_important_users;
+
+ /**
+ * 客户用电保障人员
+ */
+ private String customer_power_personnel;
+
+ /**
+ * 电网运维保障人员
+ */
+ private String power_devops_personnel;
+
+ /**
+ * 保电车辆
+ */
+ private String electrically_vehicles;
+
+ /**
+ * 应急发电车
+ */
+ private String emergency_power_vehicles;
+
+ /**
+ * 应急发电机
+ */
+ private String emergency_generator;
+
+}
diff --git a/src/main/java/com/bonus/autoweb/UI/entity/AnnexFourteenBean.java b/src/main/java/com/bonus/autoweb/UI/entity/AnnexFourteenBean.java
new file mode 100644
index 0000000..4b8ad7e
--- /dev/null
+++ b/src/main/java/com/bonus/autoweb/UI/entity/AnnexFourteenBean.java
@@ -0,0 +1,24 @@
+package com.bonus.autoweb.UI.entity;
+
+import lombok.Data;
+
+/**
+ * 包名称:com.bonus.autoweb.UI.entity
+ * 类名称:AnnexTwelveBean
+ * 类描述:附件十四 超设计风力线路数量统计表
+ * 创建人:@author tqzhang
+ * 创建时间:2023年07月27日 13:15
+ */
+@Data
+public class AnnexFourteenBean {
+ private String uhv;
+ private String fiveHundredKv;
+ private String twoHundredTwentyKv;
+ private String oneHundredTenKv;
+ private String thirtyFiveKv;
+ private String tenKv;
+ private String averageWaterLevel;
+ private String measuredValue;
+ private String designValues;
+ private String actionHasBeenTaken;
+}
diff --git a/src/main/java/com/bonus/autoweb/UI/entity/AnnexNineBean.java b/src/main/java/com/bonus/autoweb/UI/entity/AnnexNineBean.java
new file mode 100644
index 0000000..e053cef
--- /dev/null
+++ b/src/main/java/com/bonus/autoweb/UI/entity/AnnexNineBean.java
@@ -0,0 +1,45 @@
+package com.bonus.autoweb.UI.entity;
+
+/**
+ * 日报实体类
+ * 附件九-台区用户停电及恢复
+ * @author ztq
+ */
+
+import lombok.Data;
+
+@Data
+public class AnnexNineBean {
+
+ /**
+ * 台区
+ */
+ private String add_blackout_tai_district;
+ private String add_repair_tai_district;
+ private String add_no_repair_tai_district;
+
+ private String cumulative_blackout_tai_district;
+ private String cumulative_repair_tai_district;
+ private String cumulative_no_repair_tai_district;
+
+ /**
+ * 用户
+ */
+ private String add_blackout_user;
+ private String add_repair_user;
+ private String add_no_repair_user;
+
+ private String cumulative_blackout_user;
+ private String cumulative_repair_user;
+ private String cumulative_no_repair_user;
+
+ /**
+ * 出动抢修力量
+ * 人员 车辆
+ */
+ private String add_power_personnel;
+ private String add_power_vehicle;
+
+ private String cumulative_power_personnel;
+ private String cumulative_power_vehicle;
+}
diff --git a/src/main/java/com/bonus/autoweb/UI/entity/AnnexOneBean.java b/src/main/java/com/bonus/autoweb/UI/entity/AnnexOneBean.java
new file mode 100644
index 0000000..bba1bbf
--- /dev/null
+++ b/src/main/java/com/bonus/autoweb/UI/entity/AnnexOneBean.java
@@ -0,0 +1,55 @@
+package com.bonus.autoweb.UI.entity;
+
+import lombok.Data;
+
+/**
+ * 日报实体类
+ * 附件一-操练情况统计表
+ * @author zys
+ */
+@Data
+public class AnnexOneBean {
+
+ /**
+ * 操练内容(选择框)
+ * “四要素”检查
+ * 通信测试
+ * 重要站线视频连线检查
+ */
+ private String exercise_content;
+
+ /**
+ * 操练数量
+ * 人员
+ */
+ private String exercise_person_num;
+
+ /**
+ * 操练数量
+ * 车辆
+ */
+ private String exercise_vehicle_num;
+
+ /**
+ * 操练数量
+ * 发电车
+ */
+ private String exercise_power_vehicle_num;
+
+ /**
+ * 操练数量
+ * 发电机
+ */
+ private String exercise_dynamo_num;
+
+ /**
+ * 操练发现的问题
+ */
+ private String exercise_find_problems;
+
+ /**
+ * 备注
+ */
+ private String remark;
+
+}
diff --git a/src/main/java/com/bonus/autoweb/UI/entity/AnnexSevenBean.java b/src/main/java/com/bonus/autoweb/UI/entity/AnnexSevenBean.java
new file mode 100644
index 0000000..01fdaf4
--- /dev/null
+++ b/src/main/java/com/bonus/autoweb/UI/entity/AnnexSevenBean.java
@@ -0,0 +1,69 @@
+package com.bonus.autoweb.UI.entity;
+
+import lombok.Data;
+
+/**
+ * 日报实体类
+ * 附件七-变电站停运及恢复
+ * @author ztq
+ */
+@Data
+public class AnnexSevenBean {
+
+ /**
+ * 特高压
+ */
+ private String power_substation_add_outage_uvh;
+ private String power_substation_add_repair_uvh;
+ private String power_substation_add_no_repair_uvh;
+
+ private String power_substation_cumulative_outage_uvh;
+ private String power_substation_cumulative_repair_uvh;
+ private String power_substation_cumulative_no_repair_uvh;
+
+ /**
+ * 500kv
+ */
+ private String power_substation_add_outage_five;
+ private String power_substation_add_repair_five;
+ private String power_substation_add_no_repair_five;
+
+ private String power_substation_cumulative_outage_five;
+ private String power_substation_cumulative_repair_five;
+ private String power_substation_cumulative_no_repair_five;
+
+ /**
+ * 220/300kv
+ */
+ private String power_substation_add_outage_two;
+ private String power_substation_add_repair_two;
+ private String power_substation_add_no_repair_two;
+
+ private String power_substation_cumulative_outage_two;
+ private String power_substation_cumulative_repair_two;
+ private String power_substation_cumulative_no_repair_two;
+
+ /**
+ * 110/66kv
+ */
+ private String power_substation_add_outage_one;
+ private String power_substation_add_repair_one;
+ private String power_substation_add_no_repair_one;
+
+ private String power_substation_cumulative_outage_one;
+ private String power_substation_cumulative_repair_one;
+ private String power_substation_cumulative_no_repair_one;
+
+ /**
+ * 35kv
+ */
+ private String power_substation_add_outage_three;
+ private String power_substation_add_repair_three;
+ private String power_substation_add_no_repair_three;
+
+ private String power_substation_cumulative_outage_three;
+ private String power_substation_cumulative_repair_three;
+ private String power_substation_cumulative_no_repair_three;
+
+
+}
diff --git a/src/main/java/com/bonus/autoweb/UI/entity/AnnexSixBean.java b/src/main/java/com/bonus/autoweb/UI/entity/AnnexSixBean.java
new file mode 100644
index 0000000..31a363e
--- /dev/null
+++ b/src/main/java/com/bonus/autoweb/UI/entity/AnnexSixBean.java
@@ -0,0 +1,47 @@
+package com.bonus.autoweb.UI.entity;
+
+import lombok.Data;
+
+/**
+ * 日报实体类
+ * 附件六-预警及应急响应情况跟踪表
+ * @author zys
+ */
+@Data
+public class AnnexSixBean {
+
+ /**
+ * 领导及指挥人员
+ */
+ private String leaders_command_staff;
+
+ /**
+ * 投入力量
+ * 人员
+ */
+ private String input_amount_person;
+
+ /**
+ * 投入力量
+ * 车辆
+ */
+ private String input_amount_vehicle;
+
+ /**
+ * 投入力量
+ * 发电车
+ */
+ private String input_amount_power_vehicle;
+
+ /**
+ * 投入力量
+ * 发电机
+ */
+ private String input_amount_dynamo;
+
+ /**
+ * 备注
+ */
+ private String remark;
+
+}
diff --git a/src/main/java/com/bonus/autoweb/UI/entity/AnnexTenBean.java b/src/main/java/com/bonus/autoweb/UI/entity/AnnexTenBean.java
new file mode 100644
index 0000000..626c4b6
--- /dev/null
+++ b/src/main/java/com/bonus/autoweb/UI/entity/AnnexTenBean.java
@@ -0,0 +1,24 @@
+package com.bonus.autoweb.UI.entity;
+
+import lombok.Data;
+
+/**
+ * 包名称:com.bonus.autoweb.UI.entity
+ * 类名称:AnnexTenBean
+ * 类描述:附件十
+ * 创建人:@author tqzhang
+ * 创建时间:2023年08月01日 13:23
+ */
+@Data
+public class AnnexTenBean {
+ private String uhv;
+ private String fiveHundredKv;
+ private String twoHundredTwentyKv;
+ private String oneHundredTenKv;
+ private String thirtyFiveKv;
+ private String tenKv;
+ private String averageWaterLevel;
+ private String measuredValue;
+ private String designValues;
+ private String actionHasBeenTaken;
+}
diff --git a/src/main/java/com/bonus/autoweb/UI/entity/AnnexThirteenBean.java b/src/main/java/com/bonus/autoweb/UI/entity/AnnexThirteenBean.java
new file mode 100644
index 0000000..040084d
--- /dev/null
+++ b/src/main/java/com/bonus/autoweb/UI/entity/AnnexThirteenBean.java
@@ -0,0 +1,24 @@
+package com.bonus.autoweb.UI.entity;
+
+import lombok.Data;
+
+/**
+ * 包名称:com.bonus.autoweb.UI.entity
+ * 类名称:AnnexTwelveBean
+ * 类描述:附件十三 超设计水位线路数量统计表(仅6月-9月报送)
+ * 创建人:@author tqzhang
+ * 创建时间:2023年07月27日 13:15
+ */
+@Data
+public class AnnexThirteenBean {
+ private String uhv;
+ private String fiveHundredKv;
+ private String twoHundredTwentyKv;
+ private String oneHundredTenKv;
+ private String thirtyFiveKv;
+ private String tenKv;
+ private String averageWaterLevel;
+ private String measuredValue;
+ private String designValues;
+ private String actionHasBeenTaken;
+}
diff --git a/src/main/java/com/bonus/autoweb/UI/entity/AnnexThreeBean.java b/src/main/java/com/bonus/autoweb/UI/entity/AnnexThreeBean.java
new file mode 100644
index 0000000..be67744
--- /dev/null
+++ b/src/main/java/com/bonus/autoweb/UI/entity/AnnexThreeBean.java
@@ -0,0 +1,55 @@
+package com.bonus.autoweb.UI.entity;
+
+import lombok.Data;
+
+/**
+ * 包名称:com.bonus.autoweb.UI.entity
+ * 类名称:AnnexThreeBean
+ * 类描述:附件三 电网生产相关专业员工感染情况统计表
+ * 创建人:@author tqzhang
+ * 创建时间:2023年07月27日 11:18
+ */
+
+@Data
+public class AnnexThreeBean {
+ //合计 新增
+ private String totalAddDiagnosed;
+ private String totalAddHeal;
+ private String totalAddSuspected;
+ //合计 现有
+ private String totalExistingDiagnosed;
+ private String totalExistingHeal;
+ private String totalExistingSuspected;
+ //电网调度 新增
+ private String dispatchAddDiagnosed;
+ private String dispatchAddHeal;
+ private String dispatchAddSuspected;
+ //电网调度 现有
+ private String dispatchExistingDiagnosed;
+ private String dispatchExistingHeal;
+ private String dispatchExistingSuspected;
+ //运维维修 新增
+ private String repairAddDiagnosed;
+ private String repairAddHeal;
+ private String repairAddSuspected;
+ //运维维修 现有
+ private String repairExistingDiagnosed;
+ private String repairExistingHeal;
+ private String repairExistingSuspected;
+ //营销服务 新增
+ private String marketingAddDiagnosed;
+ private String marketingAddHeal;
+ private String marketingAddSuspected;
+ //营销服务 现有
+ private String marketingExistingDiagnosed;
+ private String marketingExistingHeal;
+ private String marketingExistingSuspected;
+ //电网建设 新增
+ private String constructionAddDiagnosed;
+ private String constructionAddHeal;
+ private String constructionAddSuspected;
+ //电网建设 现有
+ private String constructionExistingDiagnosed;
+ private String constructionExistingHeal;
+ private String constructionExistingSuspected;
+}
diff --git a/src/main/java/com/bonus/autoweb/UI/entity/AnnexTwelveBean.java b/src/main/java/com/bonus/autoweb/UI/entity/AnnexTwelveBean.java
new file mode 100644
index 0000000..06dc1d8
--- /dev/null
+++ b/src/main/java/com/bonus/autoweb/UI/entity/AnnexTwelveBean.java
@@ -0,0 +1,24 @@
+package com.bonus.autoweb.UI.entity;
+
+import lombok.Data;
+
+/**
+ * 包名称:com.bonus.autoweb.UI.entity
+ * 类名称:AnnexTwelveBean
+ * 类描述:附件十二 超设计水位变电站数量统计表(仅6月-9月报送)
+ * 创建人:@author tqzhang
+ * 创建时间:2023年07月27日 13:15
+ */
+@Data
+public class AnnexTwelveBean {
+ private String uhv;
+ private String fiveHundredKv;
+ private String twoHundredTwentyKv;
+ private String oneHundredTenKv;
+ private String thirtyFiveKv;
+ private String tenKv;
+ private String averageWaterLevel;
+ private String measuredValue;
+ private String designValues;
+ private String actionHasBeenTaken;
+}
diff --git a/src/main/java/com/bonus/autoweb/UI/entity/AnnexTwoBean.java b/src/main/java/com/bonus/autoweb/UI/entity/AnnexTwoBean.java
new file mode 100644
index 0000000..00ed292
--- /dev/null
+++ b/src/main/java/com/bonus/autoweb/UI/entity/AnnexTwoBean.java
@@ -0,0 +1,53 @@
+package com.bonus.autoweb.UI.entity;
+
+import lombok.Data;
+
+/**
+ * 日报实体类
+ * 附件二-资源核查问题数量统计表
+ * @author zys
+ */
+@Data
+public class AnnexTwoBean {
+
+ /**
+ * 核查数量
+ * 人员
+ */
+ private String verification_person_num;
+
+ /**
+ * 核查数量
+ * 队伍
+ */
+ private String verification_team_num;
+
+ /**
+ * 核查数量
+ * 装备
+ */
+ private String verification_equip_num;
+
+ /**
+ * 核查数量
+ * 物资
+ */
+ private String verification_material_num;
+
+ /**
+ * 核查数量
+ * 车辆
+ */
+ private String verification_vehicle_num;
+
+ /**
+ * 核查发现的问题
+ */
+ private String verification_find_problems;
+
+ /**
+ * 备注
+ */
+ private String remark;
+
+}
diff --git a/src/main/java/com/bonus/autoweb/UI/entity/DailyBean.java b/src/main/java/com/bonus/autoweb/UI/entity/DailyBean.java
new file mode 100644
index 0000000..d184521
--- /dev/null
+++ b/src/main/java/com/bonus/autoweb/UI/entity/DailyBean.java
@@ -0,0 +1,140 @@
+package com.bonus.autoweb.UI.entity;
+
+import lombok.Data;
+
+/**
+ * 日报实体类
+ * @author zys
+ */
+@Data
+public class DailyBean {
+
+ /**
+ * 总体情况
+ */
+ private String overall;
+
+ /**
+ * 重要事项
+ */
+ private String important_matters;
+
+ /**
+ * 安全生产情况
+ */
+ private String safety_production;
+
+ /**
+ * 值班员日常工作情况
+ */
+ private String personnel_daily_work;
+
+ /**
+ * 供电保障情况
+ * 今日重大活动保电情况
+ */
+ private String power_guarantee_today_work;
+
+ /**
+ * 供电保障情况
+ * 明日重大保电情况
+ */
+ private String power_guarantee_tomorrow_work;
+
+ /**
+ * 供电保障情况
+ * 今日疫情防控应急保电情况
+ */
+ private String power_guarantee_today_pestilence;
+
+ /**
+ * 预警及应急响应情况
+ * 公司预警情况
+ */
+ private String warning_company;
+
+ /**
+ * 预警及应急响应情况
+ * 公司应急响应情况
+ */
+ private String warning_company_impatient;
+
+ /**
+ * 预警及应急响应情况
+ * 社会突发事件救援及处置情况
+ */
+ private String warning_society_emergency;
+
+ /**
+ * 其他情况说明
+ */
+ private String other_situations;
+
+ /**
+ * 附件一
+ */
+ private AnnexOneBean oneBean;
+
+ /**
+ * 附件二
+ */
+ private AnnexTwoBean twoBean;
+
+ /**
+ * 附件三
+ */
+ private AnnexThreeBean threeBean;
+
+ /**
+ * 附件四
+ */
+ private AnnexFourBean fourBean;
+
+ /**
+ * 附件五
+ */
+ private AnnexFiveBean fiveBean;
+
+ /**
+ * 附件六
+ */
+ private AnnexSixBean sixBean;
+
+ /**
+ * 附件七
+ */
+ private AnnexSevenBean sevenBean;
+
+ /**
+ * 附件八
+ */
+ private AnnexEightBean eightBean;
+
+ /**
+ * 附件九
+ */
+ private AnnexNineBean nineBean;
+
+ /**
+ * 附件十
+ */
+ private AnnexTenBean tenBean;
+ /**
+ * 附件十一
+ */
+ private AnnexElevenBean elevenBean;
+ /**
+ * 附件十二
+ */
+ private AnnexTwelveBean twelveBean;
+
+ /**
+ * 附件十三
+ */
+ private AnnexThirteenBean thirteenBean;
+
+ /**
+ * 附件十四
+ */
+ private AnnexFourteenBean fourteenBean;
+}
diff --git a/src/main/java/com/bonus/autoweb/UI/entity/LogBean.java b/src/main/java/com/bonus/autoweb/UI/entity/LogBean.java
new file mode 100644
index 0000000..ea92ad7
--- /dev/null
+++ b/src/main/java/com/bonus/autoweb/UI/entity/LogBean.java
@@ -0,0 +1,108 @@
+package com.bonus.autoweb.UI.entity;
+
+import lombok.Data;
+
+import java.io.Serializable;
+
+/**
+ * 日志实体类
+ * @author zys
+ */
+@Data
+public class LogBean implements Serializable {
+
+ /**
+ * 天气
+ */
+ private String weather;
+ /**
+ * 最低气温 0/10
+ */
+ private String min_temperature;
+
+ /**
+ * 最高气温 0/10
+ */
+ private String max_temperature;
+
+ /**
+ * 事件检测标题
+ */
+ private String event_detection_title;
+
+ /**
+ * 事件检测内容
+ */
+ private String event_detection_content;
+
+ /**
+ * 保电工作标题
+ */
+ private String power_work_title;
+
+ /**
+ * 保电工作内容
+ */
+ private String power_work_content;
+
+ /**
+ * 资源核查情况标题
+ */
+ private String resource_check_title;
+
+ /**
+ * 资源核查情况内容
+ */
+ private String resource_check_content;
+
+ /**
+ * 通信测试标题
+ */
+ private String communications_test_title;
+
+ /**
+ * 通信测试内容
+ */
+ private String communications_test_content;
+
+ /**
+ * 日常操作情况标题
+ */
+ private String daily_operation_title;
+
+ /**
+ * 日常操作情况内容
+ */
+ private String daily_operation_content;
+
+ /**
+ * 日报提报情况标题
+ */
+ private String daily_submission_title;
+
+ /**
+ * 日报提报情况内容
+ */
+ private String daily_submission_content;
+
+ /**
+ * 预警处置标题
+ */
+ private String warning_disposal_title;
+
+ /**
+ * 预警处置内容
+ */
+ private String warning_disposal_content;
+
+ /**
+ * 一般记事标题
+ */
+ private String general_chronicles_title;
+
+ /**
+ * 一般记事内容
+ */
+ private String general_chronicles_content;
+
+}
diff --git a/src/main/java/com/bonus/autoweb/UI/frame/DailyAction.java b/src/main/java/com/bonus/autoweb/UI/frame/DailyAction.java
new file mode 100644
index 0000000..3ff2a68
--- /dev/null
+++ b/src/main/java/com/bonus/autoweb/UI/frame/DailyAction.java
@@ -0,0 +1,5705 @@
+package com.bonus.autoweb.UI.frame;
+
+import com.bonus.autoweb.UI.entity.*;
+import com.bonus.autoweb.base.DataConfig;
+import com.thoughtworks.xstream.XStream;
+import com.thoughtworks.xstream.io.json.JettisonMappedXmlDriver;
+
+import javax.swing.*;
+import java.awt.*;
+import java.awt.event.FocusEvent;
+import java.awt.event.FocusListener;
+import java.awt.event.MouseEvent;
+import java.awt.event.MouseListener;
+import java.io.*;
+import java.nio.charset.Charset;
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * 日报页面
+ * @author zys
+ */
+public class DailyAction extends JFrame implements MouseListener {
+
+ private static final long serialVersionUID = 1L;
+
+ JPanel jp;
+
+ JTextArea overallJt, importantMattersJt, safetyProductionJt, personnelDailyWorkJt,
+ powerGuaranteeTodayWorkJt, powerGuaranteeTomorrowWorkJt, powerGuaranteeTodayPestilenceJt,
+ warningCompanyJt, warningCompanyImpatientJt, warningSocietyEmergencyJt, otherSituationsJt;
+
+ JTextField
+ exercisePersonNumJt, exerciseVehicleNumJt, exercisePowerVehicleNumJt, exerciseDynamoNumJt,
+ exerciseFindProblemsJt, exerciseRemarkJt, verificationPersonNumJt, verificationTeamNumJt,
+ verificationEquipNumJt, verificationMaterialNumJt, verificationVehicleNumJt,
+ verificationFindProblemsJt, verificationRemarkJt, designatedHospitalsJt, feverClinicJt,
+ epidemicEnterpriseJt, otherImportantUsersJt, customerPowerPersonnelJt, powerDevopsPersonnelJt,
+ electricallyVehiclesJt, emergencyPowerVehiclesJt, emergencyGeneratorJt, leadersCommandStaffJt,
+ inputAmountPersonJt, inputAmountVehicleJt, inputAmountPowerVehicleJt, inputAmountDynamoJt, inputAmountRemarkJt,
+ powerSubstationAddOutageUvhJt,powerSubstationAddOutageFiveJt,powerSubstationAddOutageTwoJt,powerSubstationAddOutageOneJt,powerSubstationAddOutageThreeJt,
+ powerSubstationAddRepairOutageUvhJt,powerSubstationAddRepairOutageFiveJt,powerSubstationAddRepairOutageTwoJt,powerSubstationAddRepairOutageOneJt,powerSubstationAddRepairOutageThreeJt,
+ powerSubstationAddNoRepairOutageUvhJt,powerSubstationAddNoRepairOutageFiveJt,powerSubstationAddNoRepairOutageTwoJt,powerSubstationAddNoRepairOutageOneJt,powerSubstationAddNoRepairOutageThreeJt,
+ powerSubstationCumulativeOutageUvhJt,powerSubstationCumulativeOutageFiveJt,powerSubstationCumulativeOutageTwoJt,powerSubstationCumulativeOutageOneJt,powerSubstationCumulativeOutageThreeJt,
+ powerSubstationCumulativeRepairOutageUvhJt,powerSubstationCumulativeRepairOutageFiveJt,powerSubstationCumulativeRepairOutageTwoJt,powerSubstationCumulativeRepairOutageOneJt,powerSubstationCumulativeRepairOutageThreeJt,
+ powerSubstationCumulativeNoRepairOutageUvhJt,powerSubstationCumulativeNoRepairOutageFiveJt,powerSubstationCumulativeNoRepairOutageTwoJt,powerSubstationCumulativeNoRepairOutageOneJt,powerSubstationCumulativeNoRepairOutageThreeJt,
+ transmitElectricityAddOutageUvhJt,transmitElectricityAddOutageFiveJt,transmitElectricityAddOutageTwoJt,transmitElectricityAddOutageOneJt,transmitElectricityAddOutageThreeJt,transmitElectricityAddOutageTenJt,
+ transmitElectricityAddRepairOutageUvhJt,transmitElectricityAddRepairOutageFiveJt,transmitElectricityAddRepairOutageTwoJt,transmitElectricityAddRepairOutageOneJt,transmitElectricityAddRepairOutageThreeJt,transmitElectricityAddRepairOutageTenJt,
+ transmitElectricityAddNoRepairOutageUvhJt,transmitElectricityAddNoRepairOutageFiveJt,transmitElectricityAddNoRepairOutageTwoJt,transmitElectricityAddNoRepairOutageOneJt,transmitElectricityAddNoRepairOutageThreeJt,transmitElectricityAddNoRepairOutageTenJt,
+ transmitElectricityCumulativeOutageUvhJt,transmitElectricityCumulativeOutageFiveJt,transmitElectricityCumulativeOutageTwoJt,transmitElectricityCumulativeOutageOneJt,transmitElectricityCumulativeOutageThreeJt,transmitElectricityCumulativeOutageTenJt,
+ transmitElectricityCumulativeRepairOutageUvhJt,transmitElectricityCumulativeRepairOutageFiveJt,transmitElectricityCumulativeRepairOutageTwoJt,transmitElectricityCumulativeRepairOutageOneJt,transmitElectricityCumulativeRepairOutageThreeJt,transmitElectricityCumulativeRepairOutageTenJt,
+ transmitElectricityCumulativeNoRepairOutageUvhJt,transmitElectricityCumulativeNoRepairOutageFiveJt,transmitElectricityCumulativeNoRepairOutageTwoJt,transmitElectricityCumulativeNoRepairOutageOneJt,transmitElectricityCumulativeNoRepairOutageThreeJt,transmitElectricityCumulativeNoRepairOutageTenJt,
+ nineAddTaiDistrictDisasterJt,nineAddPersonnelDisasterJt,nineAddTaiDistrictRepairJt,nineAddPersonnelRepairJt,nineAddTaiDistrictNoRepairJt,nineAddPersonnelNoRepairJt,powerPersonnelAddNineJt,powerVehicleAddNineJt,
+ nineCumulativeTaiDistrictDisasterJt,nineCumulativePersonnelDisasterJt,nineCumulativeTaiDistrictRepairJt,nineCumulativePersonnelRepairJt,nineCumulativeTaiDistrictNoRepairJt,nineCumulativePersonnelNoRepairJt,powerPersonnelCumulativeNineJt,powerVehicleCumulativeNineJt,
+ totalAddDiagnosedJt, totalAddHealJt , totalAddSuspectedJt,totalExistingDiagnosedJt, totalExistingHealJt , totalExistingSuspectedJt,
+ dispatchAddDiagnosedJt, dispatchAddHealJt , dispatchAddSuspectedJt,dispatchExistingDiagnosedJt, dispatchExistingHealJt , dispatchExistingSuspectedJt,
+ repairAddDiagnosedJt, repairAddHealJt , repairAddSuspectedJt,repairExistingDiagnosedJt, repairExistingHealJt , repairExistingSuspectedJt,
+ marketingAddDiagnosedJt, marketingAddHealJt , marketingAddSuspectedJt,marketingExistingDiagnosedJt, marketingExistingHealJt , marketingExistingSuspectedJt,
+ constructionAddDiagnosedJt, constructionAddHealJt , constructionAddSuspectedJt,constructionExistingDiagnosedJt, constructionExistingHealJt , constructionExistingSuspectedJt,
+ airportPortJt,venueHospitalJt,guesthouseHotelJt,safeguardPersonnelJt, electricallyGuaranteedVehiclesJt,powerGenerationVehiclesJt,dynamoJt,fiveRemarkJt,
+
+ tenUhvJt,tenFiveHundredKvJt,tenTwoHundredTwentyKvJt,tenOneHundredTenKvJt,tenThirtyFiveKvJt,tenTenKvJt,tenAverageWaterLevelJt,tenMeasuredValueJt,tenDesignValuesJt,tenActionHasBeenTakenJt,
+
+ elevenUhvJt,elevenFiveHundredKvJt,elevenTwoHundredTwentyKvJt,elevenOneHundredTenKvJt,elevenThirtyFiveKvJt,elevenTenKvJt,elevenAverageWaterLevelJt,elevenMeasuredValueJt,elevenActionHasBeenTakenJt,
+ twelveUhvJt,twelveFiveHundredKvJt,twelveTwoHundredTwentyKvJt,twelveOneHundredTenKvJt,twelveThirtyFiveKvJt,twelveTenKvJt,twelveAverageWaterLevelJt,twelveMeasuredValueJt,twelveDesignValuesJt,twelveActionHasBeenTakenJt,
+ thirteenUhvJt,thirteenFiveHundredKvJt,thirteenTwoHundredTwentyKvJt,thirteenOneHundredTenKvJt,thirteenThirtyFiveKvJt,thirteenTenKvJt,thirteenAverageWaterLevelJt,thirteenMeasuredValueJt,thirteenDesignValuesJt,thirteenActionHasBeenTakenJt,
+ fourteenUhvJt,fourteenFiveHundredKvJt,fourteenTwoHundredTwentyKvJt,fourteenOneHundredTenKvJt,fourteenThirtyFiveKvJt,fourteenTenKvJt,fourteenAverageWaterLevelJt,fourteenMeasuredValueJt,fourteenDesignValuesJt,fourteenActionHasBeenTakenJt;
+
+ String[] strArray = {"“四要素”检查", "通信测试", "重要站线视频连线检查"};
+
+ String type;
+ JComboBox exerciseContentBox;
+ JButton btn;
+
+ public static void main(String[] args) {
+ /**
+ * morning_daily
+ * evening_daily
+ */
+ new DailyAction("evening_daily");
+ }
+
+ public DailyAction(String value) {
+ type = value;
+ String val = "日报填报";
+ if(value.equals("morning_daily")){
+ val = "早报填报";
+ }else{
+ val = "晚报填报";
+ }
+ //设置显示窗口标题
+ setTitle(val);
+ Dimension dimension = Toolkit.getDefaultToolkit().getScreenSize();
+// //设置窗口显示尺寸
+ setSize((dimension.width + 420) / 2, dimension.height);
+ Point p = GraphicsEnvironment.getLocalGraphicsEnvironment().getCenterPoint();
+ setBounds(p.x - (dimension.width + 180) / 3 * 2 / 2-180, p.y - dimension.height / 2 + 25,
+ (dimension.width + 720) / 3 * 2, dimension.height - 50);
+ setResizable(false);
+// //设置窗口是否可以关闭
+ setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
+ //获取本窗口的内容窗格
+ Container c = getContentPane();
+ JPanel jPanel = initMainJpanel();
+ JScrollPane jScroller = new JScrollPane(jPanel,ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS,
+ ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS);
+ //设置滚轮速度
+ jScroller.getVerticalScrollBar().setUnitIncrement(20);
+ c.add(jScroller);
+ //设置本窗口是否可见
+ setVisible(true);
+ initData();
+ }
+
+ private void initData() {
+ String path = DataConfig.filePath+"\\" + type + ".xml";
+ if(new File(path).exists()){
+ File file = new File(path);
+ InputStreamReader in = null;
+ String xml = null;
+ try {
+ //主要就是这里的设置
+ in = new InputStreamReader(new FileInputStream(file), Charset.forName("gbk") );
+ StringBuffer sb = new StringBuffer();
+ char[] array= new char[1024];
+ int length = -1;
+ while((length=in.read(array))!= -1){
+ sb.append(array, 0, length);
+ }
+ in.close();
+ xml=sb.toString().trim();
+ System.out.println(xml);
+ } catch (Exception e) {
+ // TODO: handle exception
+ }
+
+ XStream xstream = new XStream(new JettisonMappedXmlDriver());
+ xstream.alias(type, DailyBean.class);
+ DailyBean bean = (DailyBean) xstream.fromXML(xml);
+ AnnexOneBean oneBean = bean.getOneBean();
+ AnnexTwoBean twoBean = bean.getTwoBean();
+ AnnexFourBean fourBean = bean.getFourBean();
+ AnnexSixBean sixBean = bean.getSixBean();
+ AnnexSevenBean sevenBean = bean.getSevenBean();
+ AnnexEightBean eightBean = bean.getEightBean();
+ AnnexNineBean nineBean = bean.getNineBean();
+ AnnexThreeBean threeBean = bean.getThreeBean();
+ AnnexFiveBean fiveBean = bean.getFiveBean();
+ AnnexTenBean tenBean = bean.getTenBean();
+ AnnexElevenBean elevenBean = bean.getElevenBean();
+ AnnexTwelveBean twelveBean = bean.getTwelveBean();
+ AnnexThirteenBean thirteenBean = bean.getThirteenBean();
+ AnnexFourteenBean fourteenBean = bean.getFourteenBean();
+ overallJt.setText(bean.getOverall());
+ importantMattersJt.setText(bean.getImportant_matters());
+ safetyProductionJt.setText(bean.getSafety_production());
+ personnelDailyWorkJt.setText(bean.getPersonnel_daily_work());
+ powerGuaranteeTodayWorkJt.setText(bean.getPower_guarantee_today_work());
+ powerGuaranteeTomorrowWorkJt.setText(bean.getPower_guarantee_tomorrow_work());
+ powerGuaranteeTodayPestilenceJt.setText(bean.getPower_guarantee_today_pestilence());
+ warningCompanyJt.setText(bean.getWarning_company());
+ warningCompanyImpatientJt.setText(bean.getWarning_company_impatient());
+ warningSocietyEmergencyJt.setText(bean.getWarning_society_emergency());
+ otherSituationsJt.setText(bean.getOther_situations());
+ int index = 0;
+ for (int i = 0; i < strArray.length; i++) {
+ if(oneBean.getExercise_content().equals(strArray[i])){
+ index = i;
+ }
+ }
+ exerciseContentBox.setSelectedIndex(index);
+ exercisePersonNumJt.setText(oneBean.getExercise_person_num());
+ exerciseVehicleNumJt.setText(oneBean.getExercise_vehicle_num());
+ exercisePowerVehicleNumJt.setText(oneBean.getExercise_power_vehicle_num());
+ exerciseDynamoNumJt.setText(oneBean.getExercise_dynamo_num());
+ exerciseFindProblemsJt.setText(oneBean.getExercise_find_problems());
+ exerciseRemarkJt.setText(oneBean.getRemark());
+ verificationPersonNumJt.setText(twoBean.getVerification_person_num());
+ verificationTeamNumJt.setText(twoBean.getVerification_team_num());
+ verificationEquipNumJt.setText(twoBean.getVerification_equip_num());
+ verificationMaterialNumJt.setText(twoBean.getVerification_material_num());
+ verificationVehicleNumJt.setText(twoBean.getVerification_vehicle_num());
+ verificationFindProblemsJt.setText(twoBean.getVerification_find_problems());
+ verificationRemarkJt.setText(twoBean.getRemark());
+ designatedHospitalsJt.setText(fourBean.getDesignated_hospitals());
+ feverClinicJt.setText(fourBean.getFever_clinic());
+ epidemicEnterpriseJt.setText(fourBean.getEpidemic_enterprise());
+ otherImportantUsersJt.setText(fourBean.getOther_important_users());
+ customerPowerPersonnelJt.setText(fourBean.getCustomer_power_personnel());
+ powerDevopsPersonnelJt.setText(fourBean.getPower_devops_personnel());
+ electricallyVehiclesJt.setText(fourBean.getElectrically_vehicles());
+ emergencyPowerVehiclesJt.setText(fourBean.getEmergency_power_vehicles());
+ emergencyGeneratorJt.setText(fourBean.getEmergency_generator());
+ leadersCommandStaffJt.setText(sixBean.getLeaders_command_staff());
+ inputAmountPersonJt.setText(sixBean.getInput_amount_person());
+ inputAmountVehicleJt.setText(sixBean.getInput_amount_vehicle());
+ inputAmountPowerVehicleJt.setText(sixBean.getInput_amount_power_vehicle());
+ inputAmountDynamoJt.setText(sixBean.getInput_amount_dynamo());
+ inputAmountRemarkJt.setText(sixBean.getRemark());
+
+ powerSubstationAddOutageUvhJt.setText(sevenBean.getPower_substation_add_outage_uvh());
+ powerSubstationAddOutageFiveJt.setText(sevenBean.getPower_substation_add_outage_five());
+ powerSubstationAddOutageTwoJt.setText(sevenBean.getPower_substation_add_outage_two());
+ powerSubstationAddOutageOneJt.setText(sevenBean.getPower_substation_add_outage_one());
+ powerSubstationAddOutageThreeJt.setText(sevenBean.getPower_substation_add_outage_three());
+ powerSubstationAddRepairOutageUvhJt.setText(sevenBean.getPower_substation_add_repair_uvh());
+ powerSubstationAddRepairOutageFiveJt.setText(sevenBean.getPower_substation_add_repair_five());
+ powerSubstationAddRepairOutageTwoJt.setText(sevenBean.getPower_substation_add_repair_two());
+ powerSubstationAddRepairOutageOneJt.setText(sevenBean.getPower_substation_add_repair_one());
+ powerSubstationAddRepairOutageThreeJt.setText(sevenBean.getPower_substation_add_repair_three());
+ powerSubstationAddNoRepairOutageUvhJt.setText(sevenBean.getPower_substation_add_no_repair_uvh());
+ powerSubstationAddNoRepairOutageFiveJt.setText(sevenBean.getPower_substation_add_no_repair_five());
+ powerSubstationAddNoRepairOutageTwoJt.setText(sevenBean.getPower_substation_add_no_repair_two());
+ powerSubstationAddNoRepairOutageOneJt.setText(sevenBean.getPower_substation_add_no_repair_one());
+ powerSubstationAddNoRepairOutageThreeJt.setText(sevenBean.getPower_substation_add_no_repair_three());
+ powerSubstationCumulativeOutageUvhJt.setText(sevenBean.getPower_substation_cumulative_outage_uvh());
+ powerSubstationCumulativeOutageFiveJt.setText(sevenBean.getPower_substation_cumulative_outage_five());
+ powerSubstationCumulativeOutageTwoJt.setText(sevenBean.getPower_substation_cumulative_outage_two());
+ powerSubstationCumulativeOutageOneJt.setText(sevenBean.getPower_substation_cumulative_outage_one());
+ powerSubstationCumulativeOutageThreeJt.setText(sevenBean.getPower_substation_cumulative_outage_three());
+ powerSubstationCumulativeRepairOutageUvhJt.setText(sevenBean.getPower_substation_cumulative_repair_uvh());
+ powerSubstationCumulativeRepairOutageFiveJt.setText(sevenBean.getPower_substation_cumulative_repair_five());
+ powerSubstationCumulativeRepairOutageTwoJt.setText(sevenBean.getPower_substation_cumulative_repair_two());
+ powerSubstationCumulativeRepairOutageOneJt.setText(sevenBean.getPower_substation_cumulative_repair_one());
+ powerSubstationCumulativeRepairOutageThreeJt.setText(sevenBean.getPower_substation_cumulative_repair_three());
+ powerSubstationCumulativeNoRepairOutageUvhJt.setText(sevenBean.getPower_substation_cumulative_no_repair_uvh());
+ powerSubstationCumulativeNoRepairOutageFiveJt.setText(sevenBean.getPower_substation_cumulative_no_repair_five());
+ powerSubstationCumulativeNoRepairOutageTwoJt.setText(sevenBean.getPower_substation_cumulative_no_repair_two());
+ powerSubstationCumulativeNoRepairOutageOneJt.setText(sevenBean.getPower_substation_cumulative_no_repair_one());
+ powerSubstationCumulativeNoRepairOutageThreeJt.setText(sevenBean.getPower_substation_cumulative_no_repair_three());
+
+ transmitElectricityAddOutageUvhJt.setText(eightBean.getTransmit_electricity_add_outage_uvh());
+ transmitElectricityAddOutageFiveJt.setText(eightBean.getTransmit_electricity_add_outage_five());
+ transmitElectricityAddOutageTwoJt.setText(eightBean.getTransmit_electricity_add_outage_two());
+ transmitElectricityAddOutageOneJt.setText(eightBean.getTransmit_electricity_add_outage_one());
+ transmitElectricityAddOutageThreeJt.setText(eightBean.getTransmit_electricity_add_outage_three());
+ transmitElectricityAddOutageTenJt.setText(eightBean.getTransmit_electricity_add_outage_ten());
+ transmitElectricityAddRepairOutageUvhJt.setText(eightBean.getTransmit_electricity_add_repair_uvh());
+ transmitElectricityAddRepairOutageFiveJt.setText(eightBean.getTransmit_electricity_add_repair_five());
+ transmitElectricityAddRepairOutageTwoJt.setText(eightBean.getTransmit_electricity_add_repair_two());
+ transmitElectricityAddRepairOutageOneJt.setText(eightBean.getTransmit_electricity_add_repair_one());
+ transmitElectricityAddRepairOutageThreeJt.setText(eightBean.getTransmit_electricity_add_repair_three());
+ transmitElectricityAddRepairOutageTenJt.setText(eightBean.getTransmit_electricity_add_repair_ten());
+ transmitElectricityAddNoRepairOutageUvhJt.setText(eightBean.getTransmit_electricity_add_no_repair_uvh());
+ transmitElectricityAddNoRepairOutageFiveJt.setText(eightBean.getTransmit_electricity_add_no_repair_five());
+ transmitElectricityAddNoRepairOutageTwoJt.setText(eightBean.getTransmit_electricity_add_no_repair_two());
+ transmitElectricityAddNoRepairOutageOneJt.setText(eightBean.getTransmit_electricity_add_no_repair_one());
+ transmitElectricityAddNoRepairOutageThreeJt.setText(eightBean.getTransmit_electricity_add_no_repair_three());
+ transmitElectricityAddNoRepairOutageTenJt.setText(eightBean.getTransmit_electricity_add_no_repair_ten());
+ transmitElectricityCumulativeOutageUvhJt.setText(eightBean.getTransmit_electricity_cumulative_outage_uvh());
+ transmitElectricityCumulativeOutageFiveJt.setText(eightBean.getTransmit_electricity_cumulative_outage_five());
+ transmitElectricityCumulativeOutageTwoJt.setText(eightBean.getTransmit_electricity_cumulative_outage_two());
+ transmitElectricityCumulativeOutageOneJt.setText(eightBean.getTransmit_electricity_cumulative_outage_one());
+ transmitElectricityCumulativeOutageThreeJt.setText(eightBean.getTransmit_electricity_cumulative_outage_three());
+ transmitElectricityCumulativeOutageTenJt.setText(eightBean.getTransmit_electricity_cumulative_outage_ten());
+ transmitElectricityCumulativeRepairOutageUvhJt.setText(eightBean.getTransmit_electricity_cumulative_repair_uvh());
+ transmitElectricityCumulativeRepairOutageFiveJt.setText(eightBean.getTransmit_electricity_cumulative_repair_five());
+ transmitElectricityCumulativeRepairOutageTwoJt.setText(eightBean.getTransmit_electricity_cumulative_repair_two());
+ transmitElectricityCumulativeRepairOutageOneJt.setText(eightBean.getTransmit_electricity_cumulative_repair_one());
+ transmitElectricityCumulativeRepairOutageThreeJt.setText(eightBean.getTransmit_electricity_cumulative_repair_three());
+ transmitElectricityCumulativeRepairOutageTenJt.setText(eightBean.getTransmit_electricity_cumulative_repair_ten());
+ transmitElectricityCumulativeNoRepairOutageUvhJt.setText(eightBean.getTransmit_electricity_cumulative_no_repair_uvh());
+ transmitElectricityCumulativeNoRepairOutageFiveJt.setText(eightBean.getTransmit_electricity_cumulative_no_repair_five());
+ transmitElectricityCumulativeNoRepairOutageTwoJt.setText(eightBean.getTransmit_electricity_cumulative_no_repair_two());
+ transmitElectricityCumulativeNoRepairOutageOneJt.setText(eightBean.getTransmit_electricity_cumulative_no_repair_one());
+ transmitElectricityCumulativeNoRepairOutageThreeJt.setText(eightBean.getTransmit_electricity_cumulative_no_repair_three());
+ transmitElectricityCumulativeNoRepairOutageTenJt.setText(eightBean.getTransmit_electricity_cumulative_no_repair_ten());
+
+ nineAddTaiDistrictDisasterJt.setText(nineBean.getAdd_blackout_tai_district());
+ nineAddPersonnelDisasterJt.setText(nineBean.getAdd_blackout_user());
+ nineAddTaiDistrictRepairJt.setText(nineBean.getAdd_repair_tai_district());
+ nineAddPersonnelRepairJt.setText(nineBean.getAdd_repair_user());
+ nineAddTaiDistrictNoRepairJt.setText(nineBean.getAdd_no_repair_tai_district());
+ nineAddPersonnelNoRepairJt.setText(nineBean.getAdd_no_repair_user());
+ powerPersonnelAddNineJt.setText(nineBean.getAdd_power_personnel());
+ powerVehicleAddNineJt.setText(nineBean.getAdd_power_vehicle());
+ nineCumulativeTaiDistrictDisasterJt.setText(nineBean.getCumulative_blackout_tai_district());
+ nineCumulativePersonnelDisasterJt.setText(nineBean.getCumulative_blackout_user());
+ nineCumulativeTaiDistrictRepairJt.setText(nineBean.getCumulative_repair_tai_district());
+ nineCumulativePersonnelRepairJt.setText(nineBean.getCumulative_repair_user());
+ nineCumulativeTaiDistrictNoRepairJt.setText(nineBean.getCumulative_no_repair_tai_district());
+ nineCumulativePersonnelNoRepairJt.setText(nineBean.getCumulative_no_repair_user());
+ powerPersonnelCumulativeNineJt.setText(nineBean.getCumulative_power_personnel());
+ powerVehicleCumulativeNineJt.setText(nineBean.getCumulative_power_vehicle());
+
+ /**
+ * 附件三 五 十二 十三 十四 赋值
+ */
+ totalAddDiagnosedJt.setText(threeBean.getTotalAddDiagnosed());
+ totalAddHealJt.setText(threeBean.getTotalAddHeal());
+ totalAddSuspectedJt.setText(threeBean.getTotalAddSuspected());
+ totalExistingDiagnosedJt.setText(threeBean.getTotalExistingDiagnosed());
+ totalExistingHealJt.setText(threeBean.getTotalExistingHeal());
+ totalExistingSuspectedJt.setText(threeBean.getTotalExistingSuspected());
+
+ dispatchAddDiagnosedJt.setText(threeBean.getDispatchAddDiagnosed());
+ dispatchAddHealJt.setText(threeBean.getDispatchAddHeal());
+ dispatchAddSuspectedJt.setText(threeBean.getDispatchAddSuspected());
+ dispatchExistingDiagnosedJt.setText(threeBean.getDispatchExistingDiagnosed());
+ dispatchExistingHealJt.setText(threeBean.getDispatchExistingHeal());
+ dispatchExistingSuspectedJt.setText(threeBean.getDispatchExistingSuspected());
+
+ repairAddDiagnosedJt.setText(threeBean.getRepairAddDiagnosed());
+ repairAddHealJt.setText(threeBean.getRepairAddHeal());
+ repairAddSuspectedJt.setText(threeBean.getRepairAddSuspected());
+ repairExistingDiagnosedJt.setText(threeBean.getRepairExistingDiagnosed());
+ repairExistingHealJt.setText(threeBean.getRepairExistingHeal());
+ repairExistingSuspectedJt.setText(threeBean.getRepairExistingSuspected());
+
+ marketingAddDiagnosedJt.setText(threeBean.getMarketingAddDiagnosed());
+ marketingAddHealJt.setText(threeBean.getMarketingAddHeal());
+ marketingAddSuspectedJt.setText(threeBean.getMarketingAddSuspected());
+ marketingExistingDiagnosedJt.setText(threeBean.getMarketingExistingDiagnosed());
+ marketingExistingHealJt.setText(threeBean.getMarketingExistingHeal());
+ marketingExistingSuspectedJt.setText(threeBean.getMarketingExistingSuspected());
+
+ constructionAddDiagnosedJt.setText(threeBean.getConstructionAddDiagnosed());
+ constructionAddHealJt.setText(threeBean.getConstructionAddHeal());
+ constructionAddSuspectedJt.setText(threeBean.getConstructionAddSuspected());
+ constructionExistingDiagnosedJt.setText(threeBean.getConstructionExistingDiagnosed());
+ constructionExistingHealJt.setText(threeBean.getConstructionExistingHeal());
+ constructionExistingSuspectedJt.setText(threeBean.getConstructionExistingSuspected());
+
+ airportPortJt.setText(fiveBean.getAirportPort());
+ venueHospitalJt.setText(fiveBean.getVenueHospital());
+ guesthouseHotelJt.setText(fiveBean.getGuesthouseHotel());
+ safeguardPersonnelJt.setText(fiveBean.getSafeguardPersonnel());
+ electricallyGuaranteedVehiclesJt.setText(fiveBean.getElectricallyGuaranteedVehicles());
+ powerGenerationVehiclesJt.setText(fiveBean.getPowerGenerationVehicles());
+ dynamoJt.setText(fiveBean.getDynamo());
+ fiveRemarkJt.setText(fiveBean.getRemark());
+
+ tenUhvJt.setText(tenBean.getUhv());
+ tenFiveHundredKvJt.setText(tenBean.getFiveHundredKv());
+ tenTwoHundredTwentyKvJt.setText(tenBean.getTwoHundredTwentyKv());
+ tenOneHundredTenKvJt.setText(tenBean.getOneHundredTenKv());
+ tenThirtyFiveKvJt.setText(tenBean.getThirtyFiveKv());
+ tenTenKvJt.setText(tenBean.getTenKv());
+ tenAverageWaterLevelJt.setText(tenBean.getAverageWaterLevel());
+ tenMeasuredValueJt.setText(tenBean.getMeasuredValue());
+ tenDesignValuesJt.setText(tenBean.getDesignValues());
+ tenActionHasBeenTakenJt.setText(tenBean.getActionHasBeenTaken());
+
+ elevenUhvJt.setText(elevenBean.getUhv());
+ elevenFiveHundredKvJt.setText(elevenBean.getFiveHundredKv());
+ elevenTwoHundredTwentyKvJt.setText(elevenBean.getTwoHundredTwentyKv());
+ elevenOneHundredTenKvJt.setText(elevenBean.getOneHundredTenKv());
+ elevenThirtyFiveKvJt.setText(elevenBean.getThirtyFiveKv());
+ elevenTenKvJt.setText(elevenBean.getTenKv());
+ elevenAverageWaterLevelJt.setText(elevenBean.getAverageWaterLevel());
+ elevenMeasuredValueJt.setText(elevenBean.getMeasuredValue());
+ elevenActionHasBeenTakenJt.setText(elevenBean.getActionHasBeenTaken());
+
+ twelveUhvJt.setText(twelveBean.getUhv());
+ twelveFiveHundredKvJt.setText(twelveBean.getFiveHundredKv());
+ twelveTwoHundredTwentyKvJt.setText(twelveBean.getTwoHundredTwentyKv());
+ twelveOneHundredTenKvJt.setText(twelveBean.getOneHundredTenKv());
+ twelveThirtyFiveKvJt.setText(twelveBean.getThirtyFiveKv());
+ twelveTenKvJt.setText(twelveBean.getTenKv());
+ twelveAverageWaterLevelJt.setText(twelveBean.getAverageWaterLevel());
+ twelveMeasuredValueJt.setText(twelveBean.getMeasuredValue());
+ twelveDesignValuesJt.setText(twelveBean.getDesignValues());
+ twelveActionHasBeenTakenJt.setText(twelveBean.getActionHasBeenTaken());
+
+ thirteenUhvJt.setText(thirteenBean.getUhv());
+ thirteenFiveHundredKvJt.setText(thirteenBean.getFiveHundredKv());
+ thirteenTwoHundredTwentyKvJt.setText(thirteenBean.getTwoHundredTwentyKv());
+ thirteenOneHundredTenKvJt.setText(thirteenBean.getOneHundredTenKv());
+ thirteenThirtyFiveKvJt.setText(thirteenBean.getThirtyFiveKv());
+ thirteenTenKvJt.setText(thirteenBean.getTenKv());
+ thirteenAverageWaterLevelJt.setText(thirteenBean.getAverageWaterLevel());
+ thirteenMeasuredValueJt.setText(thirteenBean.getMeasuredValue());
+ thirteenDesignValuesJt.setText(thirteenBean.getDesignValues());
+ thirteenActionHasBeenTakenJt.setText(thirteenBean.getActionHasBeenTaken());
+
+ fourteenUhvJt.setText(fourteenBean.getUhv());
+ fourteenFiveHundredKvJt.setText(fourteenBean.getFiveHundredKv());
+ fourteenTwoHundredTwentyKvJt.setText(fourteenBean.getTwoHundredTwentyKv());
+ fourteenOneHundredTenKvJt.setText(fourteenBean.getOneHundredTenKv());
+ fourteenThirtyFiveKvJt.setText(fourteenBean.getThirtyFiveKv());
+ fourteenTenKvJt.setText(fourteenBean.getTenKv());
+ fourteenAverageWaterLevelJt.setText(fourteenBean.getAverageWaterLevel());
+ fourteenMeasuredValueJt.setText(fourteenBean.getMeasuredValue());
+ fourteenDesignValuesJt.setText(fourteenBean.getDesignValues());
+ fourteenActionHasBeenTakenJt.setText(fourteenBean.getActionHasBeenTaken());
+ }
+ }
+
+ private JPanel initMainJpanel() {
+ int height = 176 * 156 + 120; //此处调节整个长度,可适当增大或减小70
+ Dimension dimension = Toolkit.getDefaultToolkit().getScreenSize();
+ jp = new JPanel();
+ jp.setOpaque(false);
+ jp.setLayout(null);
+ jp.setSize(dimension);
+ jp.setPreferredSize(new Dimension((dimension.width + 100) / 2, height));
+ int oneLabelY = 20;
+
+ /**
+ * 一、总体情况
+ */
+ JLabel overallLabel = new JLabel("一、总体情况");
+ overallLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ overallLabel.setForeground(new Color(11, 24, 76));
+ int overallJlx = 30;
+ int overallJly = oneLabelY;
+ overallLabel.setBounds(overallJlx, overallJly, 500, 100);
+ /**
+ * 总体情况输入框
+ */
+// overallJt = new JTextField();
+// setTextFiledColor(overallJt);
+// int overallJtY = overallJly + 120;
+// overallJt.setBounds(overallJlx, overallJtY, 1310, 120);
+// if(StringHelper.isEmptyAndNull(overallJt.getText())) {
+// overallJt.addFocusListener(new MyFocusListener("请输入总体情况", overallJt));
+// }
+ overallJt=new JTextArea(7,26);
+ Placeholder placeholder0 = new Placeholder(overallJt, "请输入总体情况...");
+ overallJt.setLineWrap(true); //设置文本域中的文本为自动换行
+ overallJt.setForeground(Color.BLACK); //设置组件的背景色
+ overallJt.setFont(new Font("微软雅黑",Font.PLAIN,40)); //修改字体样式
+ overallJt.setBackground(Color.WHITE); //设置按钮背景色
+ JScrollPane overallJtJsp=new JScrollPane(overallJt); //将文本域放入滚动窗口
+ Dimension overallJtSize=overallJt.getPreferredSize(); //获得文本域的首选大小
+ int overallJtY = overallJly + 120;
+ overallJtJsp.setBounds(overallJlx,overallJtY,1310,overallJtSize.height+20);
+ jp.add(overallJtJsp);
+
+ /**
+ * 二、重要事项
+ */
+ JLabel importantMattersLabel = new JLabel("二、重要事项");
+ importantMattersLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ importantMattersLabel.setForeground(new Color(11, 24, 76));
+ int importantMattersJlx = 30;
+ int importantMattersJly = overallJtY + 450;
+ importantMattersLabel.setBounds(importantMattersJlx, importantMattersJly, 500, 100);
+ /**
+ * 重要事项输入框
+ */
+// importantMattersJt = new JTextField();
+// setTextFiledColor(importantMattersJt);
+// int importantMattersJtY = importantMattersJly + 120;
+// importantMattersJt.setBounds(importantMattersJlx, importantMattersJtY, 1310, 120);
+// if(StringHelper.isEmptyAndNull(importantMattersJt.getText())) {
+// importantMattersJt.addFocusListener(new MyFocusListener("请输入重要事项", importantMattersJt));
+// }
+ importantMattersJt=new JTextArea(7,26);
+ Placeholder placeholder1 = new Placeholder(importantMattersJt, "请输入重要事项...");
+ importantMattersJt.setLineWrap(true); //设置文本域中的文本为自动换行
+ importantMattersJt.setForeground(Color.BLACK); //设置组件的背景色
+ importantMattersJt.setFont(new Font("微软雅黑",Font.PLAIN,40)); //修改字体样式
+ importantMattersJt.setBackground(Color.WHITE); //设置按钮背景色
+ JScrollPane importantMattersJtJsp=new JScrollPane(importantMattersJt); //将文本域放入滚动窗口
+ Dimension importantMattersJtSize=importantMattersJt.getPreferredSize(); //获得文本域的首选大小
+ int importantMattersJtY = importantMattersJly + 120;
+ importantMattersJtJsp.setBounds(overallJlx,importantMattersJtY,1310,importantMattersJtSize.height+20);
+ jp.add(importantMattersJtJsp);
+ /**
+ * 三、安全生产情况
+ */
+ JLabel safetyProductionLabel = new JLabel("三、安全生产情况");
+ safetyProductionLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ safetyProductionLabel.setForeground(new Color(11, 24, 76));
+ int safetyProductionJlx = 30;
+ int safetyProductionJly = importantMattersJtY + 450;
+ safetyProductionLabel.setBounds(safetyProductionJlx, safetyProductionJly, 500, 100);
+ /**
+ * 安全生产情况输入框
+ */
+// safetyProductionJt = new JTextField();
+// setTextFiledColor(safetyProductionJt);
+// int safetyProductionJtY = safetyProductionJly + 120;
+// safetyProductionJt.setBounds(safetyProductionJlx, safetyProductionJtY, 1310, 120);
+// if(StringHelper.isEmptyAndNull(safetyProductionJt.getText())) {
+// safetyProductionJt.addFocusListener(new MyFocusListener("请输入安全生产情况", safetyProductionJt));
+// }
+ safetyProductionJt=new JTextArea(7,26);
+ Placeholder placeholder2 = new Placeholder(safetyProductionJt, "请输入安全生产情况...");
+ safetyProductionJt.setLineWrap(true); //设置文本域中的文本为自动换行
+ safetyProductionJt.setForeground(Color.BLACK); //设置组件的背景色
+ safetyProductionJt.setFont(new Font("微软雅黑",Font.PLAIN,40)); //修改字体样式
+ safetyProductionJt.setBackground(Color.WHITE); //设置按钮背景色
+ JScrollPane safetyProductionJtJsp=new JScrollPane(safetyProductionJt); //将文本域放入滚动窗口
+ Dimension safetyProductionJtSize=safetyProductionJt.getPreferredSize(); //获得文本域的首选大小
+ int safetyProductionJtY = safetyProductionJly + 120;
+ safetyProductionJtJsp.setBounds(overallJlx,safetyProductionJtY,1310,safetyProductionJtSize.height+20);
+ jp.add(safetyProductionJtJsp);
+ /**
+ * 四、值班员日常工作情况
+ */
+ JLabel personnelDailyWorkLabel = new JLabel("四、值班员日常工作情况");
+ personnelDailyWorkLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ personnelDailyWorkLabel.setForeground(new Color(11, 24, 76));
+ int personnelDailyWorkJlx = 30;
+ int personnelDailyWorkJly = safetyProductionJtY + 450;
+ personnelDailyWorkLabel.setBounds(personnelDailyWorkJlx, personnelDailyWorkJly, 800, 100);
+ /**
+ * 值班员日常工作情况输入框
+ */
+// personnelDailyWorkJt = new JTextField();
+// setTextFiledColor(personnelDailyWorkJt);
+// int personnelDailyWorkJtY = personnelDailyWorkJly + 120;
+// personnelDailyWorkJt.setBounds(personnelDailyWorkJlx, personnelDailyWorkJtY, 1310, 120);
+// if(StringHelper.isEmptyAndNull(personnelDailyWorkJt.getText())) {
+// personnelDailyWorkJt.addFocusListener(new MyFocusListener("请输入值班员日常工作情况", personnelDailyWorkJt));
+// }
+ personnelDailyWorkJt=new JTextArea(7,26);
+ Placeholder placeholder3 = new Placeholder(personnelDailyWorkJt, "请输入值班员日常工作情况...");
+ personnelDailyWorkJt.setLineWrap(true); //设置文本域中的文本为自动换行
+ personnelDailyWorkJt.setForeground(Color.BLACK); //设置组件的背景色
+ personnelDailyWorkJt.setFont(new Font("微软雅黑",Font.PLAIN,40)); //修改字体样式
+ personnelDailyWorkJt.setBackground(Color.WHITE); //设置按钮背景色
+ JScrollPane personnelDailyWorkJtJsp=new JScrollPane(personnelDailyWorkJt); //将文本域放入滚动窗口
+ Dimension personnelDailyWorkJtSize=personnelDailyWorkJt.getPreferredSize(); //获得文本域的首选大小
+ int personnelDailyWorkJtY = personnelDailyWorkJly + 120;
+ personnelDailyWorkJtJsp.setBounds(overallJlx,personnelDailyWorkJtY,1310,personnelDailyWorkJtSize.height+20);
+ jp.add(personnelDailyWorkJtJsp);
+ /**
+ * 五、供电保障情况
+ */
+ JLabel powerGuaranteeLabel = new JLabel("五、供电保障情况");
+ powerGuaranteeLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ powerGuaranteeLabel.setForeground(new Color(11, 24, 76));
+ int powerGuaranteeWorkJlx = 30;
+ int powerGuaranteeWorkJly = personnelDailyWorkJtY + 450;
+ powerGuaranteeLabel.setBounds(powerGuaranteeWorkJlx, powerGuaranteeWorkJly, 500, 100);
+
+ /**
+ * (一)今日重大活动保电情况
+ */
+ JLabel powerGuaranteeTodayWorkLabel = new JLabel("(一)今日重大活动保电情况");
+ powerGuaranteeTodayWorkLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ powerGuaranteeTodayWorkLabel.setForeground(new Color(11, 24, 76));
+ int powerGuaranteeTodayWorkJlx = 30;
+ int powerGuaranteeTodayWorkJly = powerGuaranteeWorkJly + 120;
+ powerGuaranteeTodayWorkLabel.setBounds(powerGuaranteeTodayWorkJlx, powerGuaranteeTodayWorkJly, 800, 100);
+ /**
+ * 今日重大活动保电情况输入框
+ */
+// powerGuaranteeTodayWorkJt = new JTextField();
+// setTextFiledColor(powerGuaranteeTodayWorkJt);
+// int powerGuaranteeTodayWorkJtY = powerGuaranteeTodayWorkJly + 120;
+// powerGuaranteeTodayWorkJt.setBounds(powerGuaranteeTodayWorkJlx, powerGuaranteeTodayWorkJtY, 1310, 120);
+// if(StringHelper.isEmptyAndNull(powerGuaranteeTodayWorkJt.getText())) {
+// powerGuaranteeTodayWorkJt.addFocusListener(new MyFocusListener("请输入今日重大活动保电情况", powerGuaranteeTodayWorkJt));
+// }
+ powerGuaranteeTodayWorkJt=new JTextArea(7,26);
+ Placeholder placeholder4 = new Placeholder(powerGuaranteeTodayWorkJt, "请输入今日重大活动保电情况...");
+ powerGuaranteeTodayWorkJt.setLineWrap(true); //设置文本域中的文本为自动换行
+ powerGuaranteeTodayWorkJt.setForeground(Color.BLACK); //设置组件的背景色
+ powerGuaranteeTodayWorkJt.setFont(new Font("微软雅黑",Font.PLAIN,40)); //修改字体样式
+ powerGuaranteeTodayWorkJt.setBackground(Color.WHITE); //设置按钮背景色
+ JScrollPane powerGuaranteeTodayWorkJtJsp=new JScrollPane(powerGuaranteeTodayWorkJt); //将文本域放入滚动窗口
+ Dimension powerGuaranteeTodayWorkJtSize=powerGuaranteeTodayWorkJt.getPreferredSize(); //获得文本域的首选大小
+ int powerGuaranteeTodayWorkJtY = powerGuaranteeTodayWorkJly + 120;
+ powerGuaranteeTodayWorkJtJsp.setBounds(overallJlx,powerGuaranteeTodayWorkJtY,1310,powerGuaranteeTodayWorkJtSize.height+20);
+ jp.add(powerGuaranteeTodayWorkJtJsp);
+ /**
+ * (二)明日重大保电情况
+ */
+ JLabel powerGuaranteeTomorrowWorkLabel = new JLabel("(二)明日重大保电情况");
+ powerGuaranteeTomorrowWorkLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ powerGuaranteeTomorrowWorkLabel.setForeground(new Color(11, 24, 76));
+ int powerGuaranteeTomorrowWorkJlx = 30;
+ int powerGuaranteeTomorrowWorkJly = powerGuaranteeTodayWorkJtY + 450;
+ powerGuaranteeTomorrowWorkLabel.setBounds(powerGuaranteeTomorrowWorkJlx, powerGuaranteeTomorrowWorkJly, 500, 100);
+ /**
+ * 明日重大保电情况输入框
+ */
+// powerGuaranteeTomorrowWorkJt = new JTextField();
+// setTextFiledColor(powerGuaranteeTomorrowWorkJt);
+// int powerGuaranteeTomorrowWorkJtY = powerGuaranteeTomorrowWorkJly + 120;
+// powerGuaranteeTomorrowWorkJt.setBounds(powerGuaranteeTomorrowWorkJlx, powerGuaranteeTomorrowWorkJtY, 1310, 120);
+// if(StringHelper.isEmptyAndNull(powerGuaranteeTomorrowWorkJt.getText())) {
+// powerGuaranteeTomorrowWorkJt.addFocusListener(new MyFocusListener("请输入明日重大保电情况", powerGuaranteeTomorrowWorkJt));
+// }
+ powerGuaranteeTomorrowWorkJt=new JTextArea(7,26);
+ Placeholder placeholder5 = new Placeholder(powerGuaranteeTomorrowWorkJt, "请输入明日重大保电情况...");
+ powerGuaranteeTomorrowWorkJt.setLineWrap(true); //设置文本域中的文本为自动换行
+ powerGuaranteeTomorrowWorkJt.setForeground(Color.BLACK); //设置组件的背景色
+ powerGuaranteeTomorrowWorkJt.setFont(new Font("微软雅黑",Font.PLAIN,40)); //修改字体样式
+ powerGuaranteeTomorrowWorkJt.setBackground(Color.WHITE); //设置按钮背景色
+ JScrollPane powerGuaranteeTomorrowWorkJtJsp=new JScrollPane(powerGuaranteeTomorrowWorkJt); //将文本域放入滚动窗口
+ Dimension powerGuaranteeTomorrowWorkJtSize=powerGuaranteeTomorrowWorkJt.getPreferredSize(); //获得文本域的首选大小
+ int powerGuaranteeTomorrowWorkJtY = powerGuaranteeTomorrowWorkJly + 120;
+ powerGuaranteeTomorrowWorkJtJsp.setBounds(overallJlx,powerGuaranteeTomorrowWorkJtY,1310,powerGuaranteeTomorrowWorkJtSize.height+20);
+ jp.add(powerGuaranteeTomorrowWorkJtJsp);
+ /**
+ * (三)今日疫情防控应急保电情况
+ */
+ JLabel powerGuaranteeTodayPestilenceLabel = new JLabel("(三)今日疫情防控应急保电情况");
+ powerGuaranteeTodayPestilenceLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ powerGuaranteeTodayPestilenceLabel.setForeground(new Color(11, 24, 76));
+ int powerGuaranteeTodayPestilenceJlx = 30;
+ int powerGuaranteeTodayPestilenceJly = powerGuaranteeTomorrowWorkJtY + 450;
+ powerGuaranteeTodayPestilenceLabel.setBounds(powerGuaranteeTodayPestilenceJlx, powerGuaranteeTodayPestilenceJly, 800, 100);
+ /**
+ * 今日疫情防控应急保电情况输入框
+ */
+// powerGuaranteeTodayPestilenceJt = new JTextField();
+// setTextFiledColor(powerGuaranteeTodayPestilenceJt);
+// int powerGuaranteeTodayPestilenceJtY = powerGuaranteeTodayPestilenceJly + 120;
+// powerGuaranteeTodayPestilenceJt.setBounds(powerGuaranteeTodayPestilenceJlx, powerGuaranteeTodayPestilenceJtY, 1310, 120);
+// if(StringHelper.isEmptyAndNull(powerGuaranteeTodayPestilenceJt.getText())) {
+// powerGuaranteeTodayPestilenceJt.addFocusListener(new MyFocusListener("请输入今日疫情防控应急保电情况", powerGuaranteeTodayPestilenceJt));
+// }
+ powerGuaranteeTodayPestilenceJt=new JTextArea(7,26);
+ Placeholder placeholder6 = new Placeholder(powerGuaranteeTodayPestilenceJt, "请输入今日疫情防控应急保电情况...");
+ powerGuaranteeTodayPestilenceJt.setLineWrap(true); //设置文本域中的文本为自动换行
+ powerGuaranteeTodayPestilenceJt.setForeground(Color.BLACK); //设置组件的背景色
+ powerGuaranteeTodayPestilenceJt.setFont(new Font("微软雅黑",Font.PLAIN,40)); //修改字体样式
+ powerGuaranteeTodayPestilenceJt.setBackground(Color.WHITE); //设置按钮背景色
+ JScrollPane powerGuaranteeTodayPestilenceJtJsp=new JScrollPane(powerGuaranteeTodayPestilenceJt); //将文本域放入滚动窗口
+ Dimension powerGuaranteeTodayPestilenceJtSize=powerGuaranteeTodayPestilenceJt.getPreferredSize(); //获得文本域的首选大小
+ int powerGuaranteeTodayPestilenceJtY = powerGuaranteeTodayPestilenceJly + 120;
+ powerGuaranteeTodayPestilenceJtJsp.setBounds(overallJlx,powerGuaranteeTodayPestilenceJtY,1310,powerGuaranteeTodayPestilenceJtSize.height+20);
+ jp.add(powerGuaranteeTodayPestilenceJtJsp);
+ /**
+ * 六、预警及应急响应情况
+ */
+ JLabel warningLabel = new JLabel("六、预警及应急响应情况");
+ warningLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ warningLabel.setForeground(new Color(11, 24, 76));
+ int warningWorkJlx = 30;
+ int warningWorkJly = powerGuaranteeTodayPestilenceJtY + 450;
+ warningLabel.setBounds(warningWorkJlx, warningWorkJly, 800, 100);
+
+ /**
+ * (一)公司预警情况
+ */
+ JLabel warningCompanyLabel = new JLabel("(一)公司预警情况");
+ warningCompanyLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ warningCompanyLabel.setForeground(new Color(11, 24, 76));
+ int warningCompanyJlx = 30;
+ int warningCompanyJly = warningWorkJly + 120;
+ warningCompanyLabel.setBounds(warningCompanyJlx, warningCompanyJly, 800, 100);
+ /**
+ * 公司预警情况输入框
+ */
+// warningCompanyJt = new JTextField();
+// setTextFiledColor(warningCompanyJt);
+// int warningCompanyJtY = warningCompanyJly + 120;
+// warningCompanyJt.setBounds(warningCompanyJlx, warningCompanyJtY, 1310, 120);
+// if(StringHelper.isEmptyAndNull(warningCompanyJt.getText())) {
+// warningCompanyJt.addFocusListener(new MyFocusListener("请输入公司预警情况", warningCompanyJt));
+// }
+ warningCompanyJt=new JTextArea(7,26);
+ Placeholder placeholder7 = new Placeholder(warningCompanyJt, "请输入公司预警情况...");
+ warningCompanyJt.setLineWrap(true); //设置文本域中的文本为自动换行
+ warningCompanyJt.setForeground(Color.BLACK); //设置组件的背景色
+ warningCompanyJt.setFont(new Font("微软雅黑",Font.PLAIN,40)); //修改字体样式
+ warningCompanyJt.setBackground(Color.WHITE); //设置按钮背景色
+ JScrollPane warningCompanyJtJsp=new JScrollPane(warningCompanyJt); //将文本域放入滚动窗口
+ Dimension warningCompanyJtSize=warningCompanyJt.getPreferredSize(); //获得文本域的首选大小
+ int warningCompanyJtY = warningCompanyJly + 120;
+ warningCompanyJtJsp.setBounds(overallJlx,warningCompanyJtY,1310,warningCompanyJtSize.height+20);
+ jp.add(warningCompanyJtJsp);
+ /**
+ * (二)公司应急响应情况
+ */
+ JLabel warningCompanyImpatientLabel = new JLabel("(二)公司应急响应情况");
+ warningCompanyImpatientLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ warningCompanyImpatientLabel.setForeground(new Color(11, 24, 76));
+ int warningCompanyImpatientJlx = 30;
+ int warningCompanyImpatientJly = warningCompanyJtY + 450;
+ warningCompanyImpatientLabel.setBounds(warningCompanyImpatientJlx, warningCompanyImpatientJly, 500, 100);
+ /**
+ * 公司应急响应情况输入框
+ */
+// warningCompanyImpatientJt = new JTextField();
+// setTextFiledColor(warningCompanyImpatientJt);
+// int warningCompanyImpatientJtY = warningCompanyImpatientJly + 120;
+// warningCompanyImpatientJt.setBounds(warningCompanyImpatientJlx, warningCompanyImpatientJtY, 1310, 120);
+// if(StringHelper.isEmptyAndNull(warningCompanyImpatientJt.getText())) {
+// warningCompanyImpatientJt.addFocusListener(new MyFocusListener("请输入公司应急响应情况", warningCompanyImpatientJt));
+// }
+ warningCompanyImpatientJt=new JTextArea(7,26);
+ Placeholder placeholder8 = new Placeholder(warningCompanyImpatientJt, "请输入公司应急响应情况...");
+ warningCompanyImpatientJt.setLineWrap(true); //设置文本域中的文本为自动换行
+ warningCompanyImpatientJt.setForeground(Color.BLACK); //设置组件的背景色
+ warningCompanyImpatientJt.setFont(new Font("微软雅黑",Font.PLAIN,40)); //修改字体样式
+ warningCompanyImpatientJt.setBackground(Color.WHITE); //设置按钮背景色
+ JScrollPane warningCompanyImpatientJtJsp=new JScrollPane(warningCompanyImpatientJt); //将文本域放入滚动窗口
+ Dimension warningCompanyImpatientJtSize=warningCompanyImpatientJt.getPreferredSize(); //获得文本域的首选大小
+ int warningCompanyImpatientJtY = warningCompanyImpatientJly + 120;
+ warningCompanyImpatientJtJsp.setBounds(overallJlx,warningCompanyImpatientJtY,1310,warningCompanyImpatientJtSize.height+20);
+ jp.add(warningCompanyImpatientJtJsp);
+ /**
+ * (三)社会突发事件救援及处置情况
+ */
+ JLabel warningSocietyEmergencyLabel = new JLabel("(三)社会突发事件救援及处置情况");
+ warningSocietyEmergencyLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ warningSocietyEmergencyLabel.setForeground(new Color(11, 24, 76));
+ int warningSocietyEmergencyJlx = 30;
+ int warningSocietyEmergencyJly = warningCompanyImpatientJtY + 450;
+ warningSocietyEmergencyLabel.setBounds(warningSocietyEmergencyJlx, warningSocietyEmergencyJly, 800, 100);
+ /**
+ * 社会突发事件救援及处置情况输入框
+ */
+// warningSocietyEmergencyJt = new JTextField();
+// setTextFiledColor(warningSocietyEmergencyJt);
+// int warningSocietyEmergencyJtY = warningSocietyEmergencyJly + 120;
+// warningSocietyEmergencyJt.setBounds(warningSocietyEmergencyJlx, warningSocietyEmergencyJtY, 1310, 120);
+// if(StringHelper.isEmptyAndNull(warningSocietyEmergencyJt.getText())) {
+// warningSocietyEmergencyJt.addFocusListener(new MyFocusListener("请输入社会突发事件救援及处置情况", warningSocietyEmergencyJt));
+// }
+ warningSocietyEmergencyJt=new JTextArea(7,26);
+ Placeholder placeholder9 = new Placeholder(warningSocietyEmergencyJt, "请输入社会突发事件救援及处置情况...");
+ warningSocietyEmergencyJt.setLineWrap(true); //设置文本域中的文本为自动换行
+ warningSocietyEmergencyJt.setForeground(Color.BLACK); //设置组件的背景色
+ warningSocietyEmergencyJt.setFont(new Font("微软雅黑",Font.PLAIN,40)); //修改字体样式
+ warningSocietyEmergencyJt.setBackground(Color.WHITE); //设置按钮背景色
+ JScrollPane warningSocietyEmergencyJtJsp=new JScrollPane(warningSocietyEmergencyJt); //将文本域放入滚动窗口
+ Dimension warningSocietyEmergencyJtSize=warningSocietyEmergencyJt.getPreferredSize(); //获得文本域的首选大小
+ int warningSocietyEmergencyJtY = warningSocietyEmergencyJly + 120;
+ warningSocietyEmergencyJtJsp.setBounds(overallJlx,warningSocietyEmergencyJtY,1310,warningSocietyEmergencyJtSize.height+20);
+ jp.add(warningSocietyEmergencyJtJsp);
+ /**
+ * 七、其他情况说明
+ */
+ JLabel otherSituationsLabel = new JLabel("七、其他情况说明");
+ otherSituationsLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ otherSituationsLabel.setForeground(new Color(11, 24, 76));
+ int otherSituationsJlx = 30;
+ int otherSituationsJly = warningSocietyEmergencyJtY + 450;
+ otherSituationsLabel.setBounds(otherSituationsJlx, otherSituationsJly, 800, 100);
+ /**
+ * 其他情况说明输入框
+ */
+// otherSituationsJt = new JTextField();
+// setTextFiledColor(otherSituationsJt);
+// int otherSituationsJtY = otherSituationsJly + 120;
+// otherSituationsJt.setBounds(otherSituationsJlx, otherSituationsJtY, 1310, 120);
+// if(StringHelper.isEmptyAndNull(otherSituationsJt.getText())) {
+// otherSituationsJt.addFocusListener(new MyFocusListener("请输入其他情况说明", otherSituationsJt));
+// }
+ otherSituationsJt=new JTextArea(7,26);
+ Placeholder placeholder10 = new Placeholder(otherSituationsJt, "请输入其他情况说明...");
+ otherSituationsJt.setLineWrap(true); //设置文本域中的文本为自动换行
+ otherSituationsJt.setForeground(Color.BLACK); //设置组件的背景色
+ otherSituationsJt.setFont(new Font("微软雅黑",Font.PLAIN,40)); //修改字体样式
+ otherSituationsJt.setBackground(Color.WHITE); //设置按钮背景色
+ JScrollPane otherSituationsJtJsp=new JScrollPane(otherSituationsJt); //将文本域放入滚动窗口
+ Dimension otherSituationsJtSize=otherSituationsJt.getPreferredSize(); //获得文本域的首选大小
+ int otherSituationsJtY = otherSituationsJly + 120;
+ otherSituationsJtJsp.setBounds(overallJlx,otherSituationsJtY,1310,otherSituationsJtSize.height+20);
+ jp.add(otherSituationsJtJsp);
+ /**
+ * 附件一-操练情况统计表
+ */
+ JLabel annexOneLabel = new JLabel("附件一-操练情况统计表");
+ annexOneLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ annexOneLabel.setForeground(new Color(11, 24, 76));
+ int annexOneJlx = 30;
+ int annexOneJly = otherSituationsJtY + 450;
+ annexOneLabel.setBounds(annexOneJlx, annexOneJly, 1000, 100);
+
+ /**
+ * 操练内容
+ */
+ JLabel exerciseContentLabel = new JLabel("操练内容");
+ exerciseContentLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ exerciseContentLabel.setForeground(new Color(11, 24, 76));
+ int exerciseContentJlx = 30;
+ int exerciseContentJly = annexOneJly + 120;
+ exerciseContentLabel.setBounds(exerciseContentJlx, exerciseContentJly, 800, 100);
+
+ /**
+ * 操练内容下拉框
+ */
+ exerciseContentBox = new JComboBox();
+ // 绑定下拉框选项
+ for (String item : strArray) {
+ exerciseContentBox.addItem(item);
+ }
+ exerciseContentBox.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ exerciseContentBox.setForeground(new Color(11, 24, 76));
+ exerciseContentBox.setBounds(30, exerciseContentJly + 120, 800, 100);
+
+ /**
+ * 操练数量
+ */
+ JLabel exerciseNumLabel = new JLabel("操练数量");
+ exerciseNumLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ exerciseNumLabel.setForeground(new Color(11, 24, 76));
+ int exerciseNumJlx = 30;
+ int exerciseNumJly = exerciseContentJly + 240;
+ exerciseNumLabel.setBounds(exerciseNumJlx, exerciseNumJly, 800, 100);
+
+ /**
+ * 操练数量-人员
+ */
+ JLabel exercisePersonNumLabel = new JLabel("人员数量");
+ exercisePersonNumLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ exercisePersonNumLabel.setForeground(new Color(11, 24, 76));
+ int exercisePersonNumJlx = 30;
+ int exercisePersonNumJly = exerciseNumJly + 120;
+ exercisePersonNumLabel.setBounds(exercisePersonNumJlx, exercisePersonNumJly, 800, 100);
+ /**
+ * 操练数量-车辆
+ */
+ JLabel exerciseVehicleNumLabel = new JLabel("车辆数量");
+ exerciseVehicleNumLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ exerciseVehicleNumLabel.setForeground(new Color(11, 24, 76));
+ int exerciseVehicleNumJlx = exercisePersonNumJlx + 350;
+ int exerciseVehicleNumJly = exerciseNumJly + 120;
+ exerciseVehicleNumLabel.setBounds(exerciseVehicleNumJlx, exerciseVehicleNumJly, 800, 100);
+
+ /**
+ * 操练数量-发电车
+ */
+ JLabel exercisePowerVehicleNumLabel = new JLabel("发电车数量");
+ exercisePowerVehicleNumLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ exercisePowerVehicleNumLabel.setForeground(new Color(11, 24, 76));
+ int exercisePowerVehicleNumJlx = exerciseVehicleNumJlx + 300;
+ int exercisePowerVehicleNumJly = exerciseNumJly + 120;
+ exercisePowerVehicleNumLabel.setBounds(exercisePowerVehicleNumJlx, exercisePowerVehicleNumJly, 800, 100);
+
+ /**
+ * 操练数量-发电机
+ */
+ JLabel exerciseDynamoNumLabel = new JLabel("发电车数量");
+ exerciseDynamoNumLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ exerciseDynamoNumLabel.setForeground(new Color(11, 24, 76));
+ int exerciseDynamoNumJlx = exercisePowerVehicleNumJlx + 350;
+ int exerciseDynamoNumJly = exerciseNumJly + 120;
+ exerciseDynamoNumLabel.setBounds(exerciseDynamoNumJlx, exerciseDynamoNumJly, 800, 100);
+
+ /**
+ * 操练数量-人员输入框
+ */
+ exercisePersonNumJt = new JTextField();
+ setTextFiledColor(exercisePersonNumJt);
+ int exercisePersonNumJtY = exercisePersonNumJly + 120;
+ exercisePersonNumJt.setBounds(exercisePersonNumJlx, exercisePersonNumJtY, 260, 120);
+
+ /**
+ * 操练数量-车辆输入框
+ */
+ exerciseVehicleNumJt = new JTextField();
+ setTextFiledColor(exerciseVehicleNumJt);
+ int exerciseVehicleNumJtY = exercisePersonNumJly + 120;
+ exerciseVehicleNumJt.setBounds(exercisePersonNumJlx + 350, exerciseVehicleNumJtY, 260, 120);
+
+ /**
+ * 操练数量-发电车输入框
+ */
+ exercisePowerVehicleNumJt = new JTextField();
+ setTextFiledColor(exercisePowerVehicleNumJt);
+ int exercisePowerVehicleNumJtY = exercisePersonNumJly + 120;
+ exercisePowerVehicleNumJt.setBounds(exercisePersonNumJlx + 650, exercisePowerVehicleNumJtY, 260, 120);
+
+ /**
+ * 操练数量-发电机输入框
+ */
+ exerciseDynamoNumJt = new JTextField();
+ setTextFiledColor(exerciseDynamoNumJt);
+ int exerciseDynamoNumJtY = exercisePersonNumJly + 120;
+ exerciseDynamoNumJt.setBounds(exercisePersonNumJlx + 1000, exerciseDynamoNumJtY, 260, 120);
+
+ /**
+ * 操练发现的问题
+ */
+ JLabel exerciseFindProblemsLabel = new JLabel("操练发现的问题");
+ exerciseFindProblemsLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ exerciseFindProblemsLabel.setForeground(new Color(11, 24, 76));
+ int exerciseFindProblemsJlx = 30;
+ int exerciseFindProblemsJly = exerciseDynamoNumJtY + 120;
+ exerciseFindProblemsLabel.setBounds(exerciseFindProblemsJlx, exerciseFindProblemsJly, 800, 100);
+ /**
+ * 操练发现的问题
+ */
+ exerciseFindProblemsJt = new JTextField();
+ setTextFiledColor(exerciseFindProblemsJt);
+ int exerciseFindProblemsJtY = exerciseFindProblemsJly + 120;
+ exerciseFindProblemsJt.setBounds(30, exerciseFindProblemsJtY, 1310, 120);
+ if(StringHelper.isEmptyAndNull(exerciseFindProblemsJt.getText())) {
+ exerciseFindProblemsJt.addFocusListener(new MyFocusListener("请输入操练发现的问题", exerciseFindProblemsJt));
+ }
+
+ /**
+ * 操练备注
+ */
+ JLabel exerciseRemarkLabel = new JLabel("备注");
+ exerciseRemarkLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ exerciseRemarkLabel.setForeground(new Color(11, 24, 76));
+ int exerciseRemarkJlx = 30;
+ int exerciseRemarkJly = exerciseFindProblemsJtY + 120;
+ exerciseRemarkLabel.setBounds(exerciseRemarkJlx, exerciseRemarkJly, 800, 100);
+ /**
+ * 操练备注
+ */
+ exerciseRemarkJt = new JTextField();
+ setTextFiledColor(exerciseRemarkJt);
+ int exerciseRemarkJtY = exerciseRemarkJly + 120;
+ exerciseRemarkJt.setBounds(30, exerciseRemarkJtY, 1310, 120);
+ if(StringHelper.isEmptyAndNull(exerciseRemarkJt.getText())) {
+ exerciseRemarkJt.addFocusListener(new MyFocusListener("请输入操练备注", exerciseRemarkJt));
+ }
+
+ /**
+ * 附件二-资源核查问题数量统计表
+ */
+ JLabel annexTwoLabel = new JLabel("附件二-资源核查问题数量统计表");
+ annexTwoLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ annexTwoLabel.setForeground(new Color(11, 24, 76));
+ int annexTwoJlx = 30;
+ int annexTwoJly = exerciseRemarkJtY + 120;
+ annexTwoLabel.setBounds(annexTwoJlx, annexTwoJly, 1000, 100);
+
+ /**
+ * 核查数量
+ */
+ JLabel verificationNumLabel = new JLabel("核查数量");
+ verificationNumLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ verificationNumLabel.setForeground(new Color(11, 24, 76));
+ int verificationNumJlx = 30;
+ int verificationNumJly = annexTwoJly + 120;
+ verificationNumLabel.setBounds(verificationNumJlx, verificationNumJly, 800, 100);
+
+ /**
+ * 核查数量-人员
+ */
+ JLabel verificationPersonNumLabel = new JLabel("人员数量");
+ verificationPersonNumLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ verificationPersonNumLabel.setForeground(new Color(11, 24, 76));
+ int verificationPersonNumJlx = 30;
+ int verificationPersonNumJly = verificationNumJly + 120;
+ verificationPersonNumLabel.setBounds(verificationPersonNumJlx, verificationPersonNumJly, 800, 100);
+ /**
+ * 核查数量-车辆
+ */
+ JLabel verificationVehicleNumLabel = new JLabel("车辆数量");
+ verificationVehicleNumLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ verificationVehicleNumLabel.setForeground(new Color(11, 24, 76));
+ int verificationVehicleNumJlx = verificationPersonNumJlx + 250;
+ int verificationVehicleNumJly = verificationNumJly + 120;
+ verificationVehicleNumLabel.setBounds(verificationVehicleNumJlx, verificationVehicleNumJly, 800, 100);
+
+ /**
+ * 核查数量-队伍
+ */
+ JLabel verificationTeamNumLabel = new JLabel("队伍数量");
+ verificationTeamNumLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ verificationTeamNumLabel.setForeground(new Color(11, 24, 76));
+ int verificationTeamNumJlx = verificationVehicleNumJlx + 250;
+ int verificationTeamNumJly = verificationNumJly + 120;
+ verificationTeamNumLabel.setBounds(verificationTeamNumJlx, verificationTeamNumJly, 800, 100);
+
+ /**
+ * 核查数量-装备
+ */
+ JLabel verificationEquipNumLabel = new JLabel("装备数量");
+ verificationEquipNumLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ verificationEquipNumLabel.setForeground(new Color(11, 24, 76));
+ int verificationEquipNumJlx = verificationTeamNumJlx + 250;
+ int verificationEquipNumJly = verificationNumJly + 120;
+ verificationEquipNumLabel.setBounds(verificationEquipNumJlx, verificationEquipNumJly, 800, 100);
+
+ /**
+ * 核查数量-物资
+ */
+ JLabel verificationMaterialNumLabel = new JLabel("物资数量");
+ verificationMaterialNumLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ verificationMaterialNumLabel.setForeground(new Color(11, 24, 76));
+ int verificationMaterialNumJlx = verificationEquipNumJlx + 250;
+ int verificationMaterialNumJly = verificationNumJly + 120;
+ verificationMaterialNumLabel.setBounds(verificationMaterialNumJlx, verificationMaterialNumJly, 800, 100);
+
+
+ /**
+ * 核查数量-人员输入框
+ */
+ verificationPersonNumJt = new JTextField();
+ setTextFiledColor(verificationPersonNumJt);
+ int verificationPersonNumJtY = verificationPersonNumJly + 120;
+ verificationPersonNumJt.setBounds(verificationPersonNumJlx, verificationPersonNumJtY, 240, 120);
+
+ /**
+ * 核查数量-车辆输入框
+ */
+ verificationVehicleNumJt = new JTextField();
+ setTextFiledColor(verificationVehicleNumJt);
+ int verificationVehicleNumJtY = verificationPersonNumJly + 120;
+ verificationVehicleNumJt.setBounds(verificationPersonNumJlx + 250, verificationVehicleNumJtY, 240, 120);
+
+ /**
+ * 核查数量-队伍输入框
+ */
+ verificationTeamNumJt = new JTextField();
+ setTextFiledColor(verificationTeamNumJt);
+ int verificationTeamNumJtY = verificationPersonNumJly + 120;
+ verificationTeamNumJt.setBounds(verificationPersonNumJlx + 500, verificationTeamNumJtY, 240, 120);
+
+ /**
+ * 核查数量-装备输入框
+ */
+ verificationEquipNumJt = new JTextField();
+ setTextFiledColor(verificationEquipNumJt);
+ int verificationEquipNumJtY = verificationPersonNumJly + 120;
+ verificationEquipNumJt.setBounds(verificationPersonNumJlx + 750, verificationEquipNumJtY, 240, 120);
+
+ /**
+ * 核查数量-装备输入框
+ */
+ verificationMaterialNumJt = new JTextField();
+ setTextFiledColor(verificationMaterialNumJt);
+ int verificationMaterialNumJtY = verificationPersonNumJly + 120;
+ verificationMaterialNumJt.setBounds(verificationPersonNumJlx + 1000, verificationMaterialNumJtY, 240, 120);
+
+ /**
+ * 核查发现的问题
+ */
+ JLabel verificationFindProblemsLabel = new JLabel("核查发现的问题");
+ verificationFindProblemsLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ verificationFindProblemsLabel.setForeground(new Color(11, 24, 76));
+ int verificationFindProblemsJlx = 30;
+ int verificationFindProblemsJly = verificationMaterialNumJtY + 120;
+ verificationFindProblemsLabel.setBounds(verificationFindProblemsJlx, verificationFindProblemsJly, 800, 100);
+ /**
+ * 核查发现的问题
+ */
+ verificationFindProblemsJt = new JTextField();
+ setTextFiledColor(verificationFindProblemsJt);
+ int verificationFindProblemsJtY = verificationFindProblemsJly + 120;
+ verificationFindProblemsJt.setBounds(30, verificationFindProblemsJtY, 1310, 120);
+ if(StringHelper.isEmptyAndNull(verificationFindProblemsJt.getText())) {
+ verificationFindProblemsJt.addFocusListener(new MyFocusListener("请输入核查发现的问题", verificationFindProblemsJt));
+ }
+
+ /**
+ * 核查备注
+ */
+ JLabel verificationRemarkLabel = new JLabel("备注");
+ verificationRemarkLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ verificationRemarkLabel.setForeground(new Color(11, 24, 76));
+ int verificationRemarkJlx = 30;
+ int verificationRemarkJly = verificationFindProblemsJtY + 120;
+ verificationRemarkLabel.setBounds(verificationRemarkJlx, verificationRemarkJly, 800, 100);
+ /**
+ * 核查备注
+ */
+ verificationRemarkJt = new JTextField();
+ setTextFiledColor(verificationRemarkJt);
+ int verificationRemarkJtY = verificationRemarkJly + 120;
+ verificationRemarkJt.setBounds(30, verificationRemarkJtY, 1310, 120);
+ if(StringHelper.isEmptyAndNull(verificationRemarkJt.getText())) {
+ verificationRemarkJt.addFocusListener(new MyFocusListener("请输入核查备注", verificationRemarkJt));
+ }
+
+ /**
+ * 附件三-电网生产相关专业员工感染情况统计
+ */
+ JLabel annexThreeLabel = new JLabel("附件三-电网生产相关专业员工感染情况统计");
+ annexThreeLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ annexThreeLabel.setForeground(new Color(11, 24, 76));
+ int annexThreeJlx = 30;
+ int annexThreeJly = verificationRemarkJtY + 150;
+ annexThreeLabel.setBounds(annexThreeJlx, annexThreeJly, 1000, 100);
+
+ /**
+ * 合计 - 新增
+ */
+ JLabel totalAddition = new JLabel("合计-新增");
+ totalAddition.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ totalAddition.setForeground(new Color(11, 24, 76));
+ int totalAdditionJlx = 30;
+ int totalAdditionJly = annexThreeJly + 120;
+ totalAddition.setBounds(totalAdditionJlx, totalAdditionJly, 800, 100);
+
+ /**
+ * 确诊
+ */
+ JLabel totalAddDiagnosedLabel = new JLabel("确诊");
+ totalAddDiagnosedLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ totalAddDiagnosedLabel.setForeground(new Color(11, 24, 76));
+ int totalAddDiagnosedJlx = 30;
+ int totalAddDiagnosedJly = totalAdditionJly + 120;
+ totalAddDiagnosedLabel.setBounds(totalAddDiagnosedJlx, totalAddDiagnosedJly, 800, 100);
+ /**
+ * 治愈
+ */
+ JLabel totalAddHealLabel = new JLabel("治愈");
+ totalAddHealLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ totalAddHealLabel.setForeground(new Color(11, 24, 76));
+ int totalAddHealJlx = totalAddDiagnosedJlx + 350;
+ int totalAddHealJly = totalAdditionJly + 120;
+ totalAddHealLabel.setBounds(totalAddHealJlx, totalAddHealJly, 800, 100);
+
+ /**
+ * 疑似
+ */
+ JLabel totalAddSuspectedLabel = new JLabel("疑似");
+ totalAddSuspectedLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ totalAddSuspectedLabel.setForeground(new Color(11, 24, 76));
+ int totalAddSuspectedJlx = totalAddHealJlx + 350;
+ int totalAddSuspectedJly = totalAdditionJly + 120;
+ totalAddSuspectedLabel.setBounds(totalAddSuspectedJlx, totalAddSuspectedJly, 800, 100);
+
+ /**
+ * 确诊
+ */
+ totalAddDiagnosedJt = new JTextField();
+ setTextFiledColor(totalAddDiagnosedJt);
+ int totalAddDiagnosedJtY = totalAddSuspectedJly + 120;
+ totalAddDiagnosedJt.setBounds(totalAdditionJlx, totalAddDiagnosedJtY, 300, 120);
+
+ /**
+ * 治愈
+ */
+ totalAddHealJt = new JTextField();
+ setTextFiledColor(totalAddHealJt);
+ int totalAddHealJtY = totalAddSuspectedJly + 120;
+ totalAddHealJt.setBounds(totalAdditionJlx + 350, totalAddHealJtY, 300, 120);
+
+ /**
+ * 疑似
+ */
+ totalAddSuspectedJt = new JTextField();
+ setTextFiledColor(totalAddSuspectedJt);
+ int totalAddSuspectedJtY = totalAddSuspectedJly + 120;
+ totalAddSuspectedJt.setBounds(totalAdditionJlx + 700, totalAddSuspectedJtY, 300, 120);
+
+ /**
+ * 合计 - 现有
+ */
+ JLabel totalExisting = new JLabel("合计-现有");
+ totalExisting.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ totalExisting.setForeground(new Color(11, 24, 76));
+ int totalExistingJlx = 30;
+ int totalExistingJly = totalAddSuspectedJtY + 120;
+ totalExisting.setBounds(totalExistingJlx, totalExistingJly, 800, 100);
+
+ /**
+ * 确诊
+ */
+ JLabel totalExistingDiagnosedLabel = new JLabel("确诊");
+ totalExistingDiagnosedLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ totalExistingDiagnosedLabel.setForeground(new Color(11, 24, 76));
+ int totalExistingDiagnosedJlx = 30;
+ int totalExistingDiagnosedJly = totalExistingJly + 120;
+ totalExistingDiagnosedLabel.setBounds(totalExistingDiagnosedJlx, totalExistingDiagnosedJly, 800, 100);
+ /**
+ * 治愈
+ */
+ JLabel totalExistingHealLabel = new JLabel("治愈");
+ totalExistingHealLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ totalExistingHealLabel.setForeground(new Color(11, 24, 76));
+ int totalExistingHealJlx = totalExistingDiagnosedJlx + 350;
+ int totalExistingHealJly = totalExistingJly + 120;
+ totalExistingHealLabel.setBounds(totalExistingHealJlx, totalExistingHealJly, 800, 100);
+
+ /**
+ * 疑似
+ */
+ JLabel totalExistingSuspectedLabel = new JLabel("疑似");
+ totalExistingSuspectedLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ totalExistingSuspectedLabel.setForeground(new Color(11, 24, 76));
+ int totalExistingSuspectedJlx = totalExistingHealJlx + 350;
+ int totalExistingSuspectedJly = totalExistingJly + 120;
+ totalExistingSuspectedLabel.setBounds(totalExistingSuspectedJlx, totalExistingSuspectedJly, 800, 100);
+
+ /**
+ * 确诊
+ */
+ totalExistingDiagnosedJt = new JTextField();
+ setTextFiledColor(totalExistingDiagnosedJt);
+ int totalExistingDiagnosedJtY = totalExistingSuspectedJly + 120;
+ totalExistingDiagnosedJt.setBounds(totalExistingDiagnosedJlx, totalExistingDiagnosedJtY, 300, 120);
+
+ /**
+ * 治愈
+ */
+ totalExistingHealJt = new JTextField();
+ setTextFiledColor(totalExistingHealJt);
+ int totalExistingHealJtY = totalExistingSuspectedJly + 120;
+ totalExistingHealJt.setBounds(totalExistingDiagnosedJlx + 350, totalExistingHealJtY, 300, 120);
+
+ /**
+ * 疑似
+ */
+ totalExistingSuspectedJt = new JTextField();
+ setTextFiledColor(totalExistingSuspectedJt);
+ int totalExistingSuspectedJtY = totalExistingSuspectedJly + 120;
+ totalExistingSuspectedJt.setBounds(totalExistingDiagnosedJlx + 700, totalExistingSuspectedJtY, 300, 120);
+
+ /**
+ * 电网调度 - 新增
+ */
+ JLabel dispatchAddition = new JLabel("电网调度-新增");
+ dispatchAddition.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ dispatchAddition.setForeground(new Color(11, 24, 76));
+ int dispatchAdditionJlx = 30;
+ int dispatchAdditionJly = totalExistingSuspectedJtY + 120;
+ dispatchAddition.setBounds(dispatchAdditionJlx, dispatchAdditionJly, 800, 100);
+
+ /**
+ * 确诊
+ */
+ JLabel dispatchAddDiagnosedLabel = new JLabel("确诊");
+ dispatchAddDiagnosedLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ dispatchAddDiagnosedLabel.setForeground(new Color(11, 24, 76));
+ int dispatchAddDiagnosedJlx = 30;
+ int dispatchAddDiagnosedJly = dispatchAdditionJly + 120;
+ dispatchAddDiagnosedLabel.setBounds(dispatchAddDiagnosedJlx, dispatchAddDiagnosedJly, 800, 100);
+ /**
+ * 治愈
+ */
+ JLabel dispatchAddHealLabel = new JLabel("治愈");
+ dispatchAddHealLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ dispatchAddHealLabel.setForeground(new Color(11, 24, 76));
+ int dispatchAddHealJlx = dispatchAddDiagnosedJlx + 350;
+ int dispatchAddHealJly = dispatchAdditionJly + 120;
+ dispatchAddHealLabel.setBounds(dispatchAddHealJlx, dispatchAddHealJly, 800, 100);
+
+ /**
+ * 疑似
+ */
+ JLabel dispatchAddSuspectedLabel = new JLabel("疑似");
+ dispatchAddSuspectedLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ dispatchAddSuspectedLabel.setForeground(new Color(11, 24, 76));
+ int dispatchAddSuspectedJlx = dispatchAddHealJlx + 350;
+ int dispatchAddSuspectedJly = dispatchAdditionJly + 120;
+ dispatchAddSuspectedLabel.setBounds(dispatchAddSuspectedJlx, dispatchAddSuspectedJly, 800, 100);
+
+ /**
+ * 确诊
+ */
+ dispatchAddDiagnosedJt = new JTextField();
+ setTextFiledColor(dispatchAddDiagnosedJt);
+ int dispatchAddDiagnosedJtY = dispatchAddSuspectedJly + 120;
+ dispatchAddDiagnosedJt.setBounds(dispatchAdditionJlx, dispatchAddDiagnosedJtY, 300, 120);
+
+ /**
+ * 治愈
+ */
+ dispatchAddHealJt = new JTextField();
+ setTextFiledColor(dispatchAddHealJt);
+ int dispatchAddHealJtY = dispatchAddSuspectedJly + 120;
+ dispatchAddHealJt.setBounds(dispatchAdditionJlx + 350, dispatchAddHealJtY, 300, 120);
+
+ /**
+ * 疑似
+ */
+ dispatchAddSuspectedJt = new JTextField();
+ setTextFiledColor(dispatchAddSuspectedJt);
+ int dispatchAddSuspectedJtY = dispatchAddSuspectedJly + 120;
+ dispatchAddSuspectedJt.setBounds(dispatchAdditionJlx + 700,dispatchAddSuspectedJtY, 300, 120);
+
+ /**
+ * 电网调度 - 现有
+ */
+ JLabel dispatchExisting = new JLabel("电网调度-现有");
+ dispatchExisting.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ dispatchExisting.setForeground(new Color(11, 24, 76));
+ int dispatchExistingJlx = 30;
+ int dispatchExistingJly = dispatchAddSuspectedJtY + 120;
+ dispatchExisting.setBounds(dispatchExistingJlx, dispatchExistingJly, 800, 100);
+
+ /**
+ * 确诊
+ */
+ JLabel dispatchExistingDiagnosedLabel = new JLabel("确诊");
+ dispatchExistingDiagnosedLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ dispatchExistingDiagnosedLabel.setForeground(new Color(11, 24, 76));
+ int dispatchExistingDiagnosedJlx = 30;
+ int dispatchExistingDiagnosedJly = dispatchExistingJly + 120;
+ dispatchExistingDiagnosedLabel.setBounds(dispatchExistingDiagnosedJlx, dispatchExistingDiagnosedJly, 800, 100);
+ /**
+ * 治愈
+ */
+ JLabel dispatchExistingHealLabel = new JLabel("治愈");
+ dispatchExistingHealLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ dispatchExistingHealLabel.setForeground(new Color(11, 24, 76));
+ int dispatchExistingHealJlx = dispatchExistingDiagnosedJlx + 350;
+ int dispatchExistingHealJly = dispatchExistingJly + 120;
+ dispatchExistingHealLabel.setBounds(dispatchExistingHealJlx, dispatchExistingHealJly, 800, 100);
+
+ /**
+ * 疑似
+ */
+ JLabel dispatchExistingSuspectedLabel = new JLabel("疑似");
+ dispatchExistingSuspectedLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ dispatchExistingSuspectedLabel.setForeground(new Color(11, 24, 76));
+ int dispatchExistingSuspectedJlx = dispatchExistingHealJlx + 350;
+ int dispatchExistingSuspectedJly = dispatchExistingJly + 120;
+ dispatchExistingSuspectedLabel.setBounds(dispatchExistingSuspectedJlx, dispatchExistingSuspectedJly, 800, 100);
+
+ /**
+ * 确诊
+ */
+ dispatchExistingDiagnosedJt = new JTextField();
+ setTextFiledColor(dispatchExistingDiagnosedJt);
+ int dispatchExistingDiagnosedJtY = dispatchExistingSuspectedJly + 120;
+ dispatchExistingDiagnosedJt.setBounds(dispatchExistingDiagnosedJlx, dispatchExistingDiagnosedJtY, 300, 120);
+
+ /**
+ * 治愈
+ */
+ dispatchExistingHealJt = new JTextField();
+ setTextFiledColor(dispatchExistingHealJt);
+ int dispatchExistingHealJtY = dispatchExistingSuspectedJly + 120;
+ dispatchExistingHealJt.setBounds(dispatchExistingDiagnosedJlx + 350, dispatchExistingHealJtY, 300, 120);
+
+ /**
+ * 疑似
+ */
+ dispatchExistingSuspectedJt = new JTextField();
+ setTextFiledColor(dispatchExistingSuspectedJt);
+ int dispatchExistingSuspectedJtY = dispatchExistingSuspectedJly + 120;
+ dispatchExistingSuspectedJt.setBounds(dispatchExistingDiagnosedJlx + 700, dispatchExistingSuspectedJtY, 300, 120);
+ /**
+ * 运维检修 - 新增
+ */
+ JLabel repairAddition = new JLabel("运维检修-新增");
+ repairAddition.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ repairAddition.setForeground(new Color(11, 24, 76));
+ int repairAdditionJlx = 30;
+ int repairAdditionJly = dispatchExistingSuspectedJtY + 120;
+ repairAddition.setBounds(repairAdditionJlx, repairAdditionJly, 800, 100);
+
+ /**
+ * 确诊
+ */
+ JLabel repairAddDiagnosedLabel = new JLabel("确诊");
+ repairAddDiagnosedLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ repairAddDiagnosedLabel.setForeground(new Color(11, 24, 76));
+ int repairAddDiagnosedJlx = 30;
+ int repairAddDiagnosedJly = repairAdditionJly + 120;
+ repairAddDiagnosedLabel.setBounds(repairAddDiagnosedJlx, repairAddDiagnosedJly, 800, 100);
+ /**
+ * 治愈
+ */
+ JLabel repairAddHealLabel = new JLabel("治愈");
+ repairAddHealLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ repairAddHealLabel.setForeground(new Color(11, 24, 76));
+ int repairAddHealJlx = repairAddDiagnosedJlx + 350;
+ int repairAddHealJly = repairAdditionJly + 120;
+ repairAddHealLabel.setBounds(repairAddHealJlx, repairAddHealJly, 800, 100);
+
+ /**
+ * 疑似
+ */
+ JLabel repairAddSuspectedLabel = new JLabel("疑似");
+ repairAddSuspectedLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ repairAddSuspectedLabel.setForeground(new Color(11, 24, 76));
+ int repairAddSuspectedJlx = repairAddHealJlx + 350;
+ int repairAddSuspectedJly = repairAdditionJly + 120;
+ repairAddSuspectedLabel.setBounds(repairAddSuspectedJlx, repairAddSuspectedJly, 800, 100);
+
+ /**
+ * 确诊
+ */
+ repairAddDiagnosedJt = new JTextField();
+ setTextFiledColor(repairAddDiagnosedJt);
+ int repairAddDiagnosedJtY = repairAddSuspectedJly + 120;
+ repairAddDiagnosedJt.setBounds(repairAdditionJlx, repairAddDiagnosedJtY, 300, 120);
+
+ /**
+ * 治愈
+ */
+ repairAddHealJt = new JTextField();
+ setTextFiledColor(repairAddHealJt);
+ int repairAddHealJtY = repairAddSuspectedJly + 120;
+ repairAddHealJt.setBounds(repairAdditionJlx + 350, repairAddHealJtY, 300, 120);
+
+ /**
+ * 疑似
+ */
+ repairAddSuspectedJt = new JTextField();
+ setTextFiledColor(repairAddSuspectedJt);
+ int repairAddSuspectedJtY = repairAddSuspectedJly + 120;
+ repairAddSuspectedJt.setBounds(repairAdditionJlx + 700,repairAddSuspectedJtY, 300, 120);
+
+ /**
+ * 运维检修 - 现有
+ */
+ JLabel repairExisting = new JLabel("运维检修-现有");
+ repairExisting.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ repairExisting.setForeground(new Color(11, 24, 76));
+ int repairExistingJlx = 30;
+ int repairExistingJly = repairAddSuspectedJtY + 120;
+ repairExisting.setBounds(repairExistingJlx, repairExistingJly, 800, 100);
+
+ /**
+ * 确诊
+ */
+ JLabel repairExistingDiagnosedLabel = new JLabel("确诊");
+ repairExistingDiagnosedLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ repairExistingDiagnosedLabel.setForeground(new Color(11, 24, 76));
+ int repairExistingDiagnosedJlx = 30;
+ int repairExistingDiagnosedJly = repairExistingJly + 120;
+ repairExistingDiagnosedLabel.setBounds(repairExistingDiagnosedJlx, repairExistingDiagnosedJly, 800, 100);
+ /**
+ * 治愈
+ */
+ JLabel repairExistingHealLabel = new JLabel("治愈");
+ repairExistingHealLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ repairExistingHealLabel.setForeground(new Color(11, 24, 76));
+ int repairExistingHealJlx = repairExistingDiagnosedJlx + 350;
+ int repairExistingHealJly = repairExistingJly + 120;
+ repairExistingHealLabel.setBounds(repairExistingHealJlx, repairExistingHealJly, 800, 100);
+
+ /**
+ * 疑似
+ */
+ JLabel repairExistingSuspectedLabel = new JLabel("疑似");
+ repairExistingSuspectedLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ repairExistingSuspectedLabel.setForeground(new Color(11, 24, 76));
+ int repairExistingSuspectedJlx = repairExistingHealJlx + 350;
+ int repairExistingSuspectedJly = repairExistingJly + 120;
+ repairExistingSuspectedLabel.setBounds(repairExistingSuspectedJlx, repairExistingSuspectedJly, 800, 100);
+
+ /**
+ * 确诊
+ */
+ repairExistingDiagnosedJt = new JTextField();
+ setTextFiledColor(repairExistingDiagnosedJt);
+ int repairExistingDiagnosedJtY = repairExistingSuspectedJly + 120;
+ repairExistingDiagnosedJt.setBounds(repairExistingDiagnosedJlx, repairExistingDiagnosedJtY, 300, 120);
+
+ /**
+ * 治愈
+ */
+ repairExistingHealJt = new JTextField();
+ setTextFiledColor(repairExistingHealJt);
+ int repairExistingHealJtY = repairExistingSuspectedJly + 120;
+ repairExistingHealJt.setBounds(repairExistingDiagnosedJlx + 350, repairExistingHealJtY, 300, 120);
+
+ /**
+ * 疑似
+ */
+ repairExistingSuspectedJt = new JTextField();
+ setTextFiledColor(repairExistingSuspectedJt);
+ int repairExistingSuspectedJtY = repairExistingSuspectedJly + 120;
+ repairExistingSuspectedJt.setBounds(repairExistingDiagnosedJlx + 700, repairExistingSuspectedJtY, 300, 120);
+
+/**
+ * 营销服务 - 新增
+ */
+ JLabel marketingAddition = new JLabel("营销服务-新增");
+ marketingAddition.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ marketingAddition.setForeground(new Color(11, 24, 76));
+ int marketingAdditionJlx = 30;
+ int marketingAdditionJly = repairExistingSuspectedJtY + 120;
+ marketingAddition.setBounds(marketingAdditionJlx, marketingAdditionJly, 800, 100);
+
+ /**
+ * 确诊
+ */
+ JLabel marketingAddDiagnosedLabel = new JLabel("确诊");
+ marketingAddDiagnosedLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ marketingAddDiagnosedLabel.setForeground(new Color(11, 24, 76));
+ int marketingAddDiagnosedJlx = 30;
+ int marketingAddDiagnosedJly = marketingAdditionJly + 120;
+ marketingAddDiagnosedLabel.setBounds(marketingAddDiagnosedJlx, marketingAddDiagnosedJly, 800, 100);
+ /**
+ * 治愈
+ */
+ JLabel marketingAddHealLabel = new JLabel("治愈");
+ marketingAddHealLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ marketingAddHealLabel.setForeground(new Color(11, 24, 76));
+ int marketingAddHealJlx = marketingAddDiagnosedJlx + 350;
+ int marketingAddHealJly = marketingAdditionJly + 120;
+ marketingAddHealLabel.setBounds(marketingAddHealJlx, marketingAddHealJly, 800, 100);
+
+ /**
+ * 疑似
+ */
+ JLabel marketingAddSuspectedLabel = new JLabel("疑似");
+ marketingAddSuspectedLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ marketingAddSuspectedLabel.setForeground(new Color(11, 24, 76));
+ int marketingAddSuspectedJlx = marketingAddHealJlx + 350;
+ int marketingAddSuspectedJly = marketingAdditionJly + 120;
+ marketingAddSuspectedLabel.setBounds(marketingAddSuspectedJlx, marketingAddSuspectedJly, 800, 100);
+
+ /**
+ * 确诊
+ */
+ marketingAddDiagnosedJt = new JTextField();
+ setTextFiledColor(marketingAddDiagnosedJt);
+ int marketingAddDiagnosedJtY = marketingAddSuspectedJly + 120;
+ marketingAddDiagnosedJt.setBounds(marketingAdditionJlx, marketingAddDiagnosedJtY, 300, 120);
+
+ /**
+ * 治愈
+ */
+ marketingAddHealJt = new JTextField();
+ setTextFiledColor(marketingAddHealJt);
+ int marketingAddHealJtY = marketingAddSuspectedJly + 120;
+ marketingAddHealJt.setBounds(marketingAdditionJlx + 350, marketingAddHealJtY, 300, 120);
+
+ /**
+ * 疑似
+ */
+ marketingAddSuspectedJt = new JTextField();
+ setTextFiledColor(marketingAddSuspectedJt);
+ int marketingAddSuspectedJtY = marketingAddSuspectedJly + 120;
+ marketingAddSuspectedJt.setBounds(marketingAdditionJlx + 700,marketingAddSuspectedJtY, 300, 120);
+
+ /**
+ * 营销服务 - 现有
+ */
+ JLabel marketingExisting = new JLabel("营销服务-现有");
+ marketingExisting.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ marketingExisting.setForeground(new Color(11, 24, 76));
+ int marketingExistingJlx = 30;
+ int marketingExistingJly = marketingAddSuspectedJtY + 120;
+ marketingExisting.setBounds(marketingExistingJlx, marketingExistingJly, 800, 100);
+
+ /**
+ * 确诊
+ */
+ JLabel marketingExistingDiagnosedLabel = new JLabel("确诊");
+ marketingExistingDiagnosedLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ marketingExistingDiagnosedLabel.setForeground(new Color(11, 24, 76));
+ int marketingExistingDiagnosedJlx = 30;
+ int marketingExistingDiagnosedJly = marketingExistingJly + 120;
+ marketingExistingDiagnosedLabel.setBounds(marketingExistingDiagnosedJlx, marketingExistingDiagnosedJly, 800, 100);
+ /**
+ * 治愈
+ */
+ JLabel marketingExistingHealLabel = new JLabel("治愈");
+ marketingExistingHealLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ marketingExistingHealLabel.setForeground(new Color(11, 24, 76));
+ int marketingExistingHealJlx = marketingExistingDiagnosedJlx + 350;
+ int marketingExistingHealJly = marketingExistingJly + 120;
+ marketingExistingHealLabel.setBounds(marketingExistingHealJlx, marketingExistingHealJly, 800, 100);
+
+ /**
+ * 疑似
+ */
+ JLabel marketingExistingSuspectedLabel = new JLabel("疑似");
+ marketingExistingSuspectedLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ marketingExistingSuspectedLabel.setForeground(new Color(11, 24, 76));
+ int marketingExistingSuspectedJlx = marketingExistingHealJlx + 350;
+ int marketingExistingSuspectedJly = marketingExistingJly + 120;
+ marketingExistingSuspectedLabel.setBounds(marketingExistingSuspectedJlx, marketingExistingSuspectedJly, 800, 100);
+
+ /**
+ * 确诊
+ */
+ marketingExistingDiagnosedJt = new JTextField();
+ setTextFiledColor(marketingExistingDiagnosedJt);
+ int marketingExistingDiagnosedJtY = marketingExistingSuspectedJly + 120;
+ marketingExistingDiagnosedJt.setBounds(marketingExistingDiagnosedJlx, marketingExistingDiagnosedJtY, 300, 120);
+
+ /**
+ * 治愈
+ */
+ marketingExistingHealJt = new JTextField();
+ setTextFiledColor(marketingExistingHealJt);
+ int marketingExistingHealJtY = marketingExistingSuspectedJly + 120;
+ marketingExistingHealJt.setBounds(marketingExistingDiagnosedJlx + 350, marketingExistingHealJtY, 300, 120);
+
+ /**
+ * 疑似
+ */
+ marketingExistingSuspectedJt = new JTextField();
+ setTextFiledColor(marketingExistingSuspectedJt);
+ int marketingExistingSuspectedJtY = marketingExistingSuspectedJly + 120;
+ marketingExistingSuspectedJt.setBounds(marketingExistingDiagnosedJlx + 700, marketingExistingSuspectedJtY, 300, 120);
+
+ /**
+ * 电网建设 - 新增
+ */
+ JLabel constructionAddition = new JLabel("电网建设-新增");
+ constructionAddition.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ constructionAddition.setForeground(new Color(11, 24, 76));
+ int constructionAdditionJlx = 30;
+ int constructionAdditionJly = marketingExistingSuspectedJtY + 120;
+ constructionAddition.setBounds(constructionAdditionJlx, constructionAdditionJly, 800, 100);
+
+ /**
+ * 确诊
+ */
+ JLabel constructionAddDiagnosedLabel = new JLabel("确诊");
+ constructionAddDiagnosedLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ constructionAddDiagnosedLabel.setForeground(new Color(11, 24, 76));
+ int constructionAddDiagnosedJlx = 30;
+ int constructionAddDiagnosedJly = constructionAdditionJly + 120;
+ constructionAddDiagnosedLabel.setBounds(constructionAddDiagnosedJlx, constructionAddDiagnosedJly, 800, 100);
+ /**
+ * 治愈
+ */
+ JLabel constructionAddHealLabel = new JLabel("治愈");
+ constructionAddHealLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ constructionAddHealLabel.setForeground(new Color(11, 24, 76));
+ int constructionAddHealJlx = constructionAddDiagnosedJlx + 350;
+ int constructionAddHealJly = constructionAdditionJly + 120;
+ constructionAddHealLabel.setBounds(constructionAddHealJlx, constructionAddHealJly, 800, 100);
+
+ /**
+ * 疑似
+ */
+ JLabel constructionAddSuspectedLabel = new JLabel("疑似");
+ constructionAddSuspectedLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ constructionAddSuspectedLabel.setForeground(new Color(11, 24, 76));
+ int constructionAddSuspectedJlx = constructionAddHealJlx + 350;
+ int constructionAddSuspectedJly = constructionAdditionJly + 120;
+ constructionAddSuspectedLabel.setBounds(constructionAddSuspectedJlx, constructionAddSuspectedJly, 800, 100);
+
+ /**
+ * 确诊
+ */
+ constructionAddDiagnosedJt = new JTextField();
+ setTextFiledColor(constructionAddDiagnosedJt);
+ int constructionAddDiagnosedJtY = constructionAddSuspectedJly + 120;
+ constructionAddDiagnosedJt.setBounds(constructionAdditionJlx, constructionAddDiagnosedJtY, 300, 120);
+
+ /**
+ * 治愈
+ */
+ constructionAddHealJt = new JTextField();
+ setTextFiledColor(constructionAddHealJt);
+ int constructionAddHealJtY = constructionAddSuspectedJly + 120;
+ constructionAddHealJt.setBounds(constructionAdditionJlx + 350, constructionAddHealJtY, 300, 120);
+
+ /**
+ * 疑似
+ */
+ constructionAddSuspectedJt = new JTextField();
+ setTextFiledColor(constructionAddSuspectedJt);
+ int constructionAddSuspectedJtY = constructionAddSuspectedJly + 120;
+ constructionAddSuspectedJt.setBounds(constructionAdditionJlx + 700,constructionAddSuspectedJtY, 300, 120);
+
+ /**
+ * 电网建设 - 现有
+ */
+ JLabel constructionExisting = new JLabel("电网建设-现有");
+ constructionExisting.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ constructionExisting.setForeground(new Color(11, 24, 76));
+ int constructionExistingJlx = 30;
+ int constructionExistingJly = constructionAddSuspectedJtY + 120;
+ constructionExisting.setBounds(constructionExistingJlx, constructionExistingJly, 800, 100);
+
+ /**
+ * 确诊
+ */
+ JLabel constructionExistingDiagnosedLabel = new JLabel("确诊");
+ constructionExistingDiagnosedLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ constructionExistingDiagnosedLabel.setForeground(new Color(11, 24, 76));
+ int constructionExistingDiagnosedJlx = 30;
+ int constructionExistingDiagnosedJly = constructionExistingJly + 120;
+ constructionExistingDiagnosedLabel.setBounds(constructionExistingDiagnosedJlx, constructionExistingDiagnosedJly, 800, 100);
+ /**
+ * 治愈
+ */
+ JLabel constructionExistingHealLabel = new JLabel("治愈");
+ constructionExistingHealLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ constructionExistingHealLabel.setForeground(new Color(11, 24, 76));
+ int constructionExistingHealJlx = constructionExistingDiagnosedJlx + 350;
+ int constructionExistingHealJly = constructionExistingJly + 120;
+ constructionExistingHealLabel.setBounds(constructionExistingHealJlx, constructionExistingHealJly, 800, 100);
+
+ /**
+ * 疑似
+ */
+ JLabel constructionExistingSuspectedLabel = new JLabel("疑似");
+ constructionExistingSuspectedLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ constructionExistingSuspectedLabel.setForeground(new Color(11, 24, 76));
+ int constructionExistingSuspectedJlx = constructionExistingHealJlx + 350;
+ int constructionExistingSuspectedJly = constructionExistingJly + 120;
+ constructionExistingSuspectedLabel.setBounds(constructionExistingSuspectedJlx, constructionExistingSuspectedJly, 800, 100);
+
+ /**
+ * 确诊
+ */
+ constructionExistingDiagnosedJt = new JTextField();
+ setTextFiledColor(constructionExistingDiagnosedJt);
+ int constructionExistingDiagnosedJtY = constructionExistingSuspectedJly + 120;
+ constructionExistingDiagnosedJt.setBounds(constructionExistingDiagnosedJlx, constructionExistingDiagnosedJtY, 300, 120);
+
+ /**
+ * 治愈
+ */
+ constructionExistingHealJt = new JTextField();
+ setTextFiledColor(constructionExistingHealJt);
+ int constructionExistingHealJtY = constructionExistingSuspectedJly + 120;
+ constructionExistingHealJt.setBounds(constructionExistingDiagnosedJlx + 350, constructionExistingHealJtY, 300, 120);
+
+ /**
+ * 疑似
+ */
+ constructionExistingSuspectedJt = new JTextField();
+ setTextFiledColor(constructionExistingSuspectedJt);
+ int constructionExistingSuspectedJtY = constructionExistingSuspectedJly + 120;
+ constructionExistingSuspectedJt.setBounds(constructionExistingDiagnosedJlx + 700, constructionExistingSuspectedJtY, 300, 120);
+
+
+ /**
+ * 附件四-疫情防控供电保障情况统计表
+ */
+ JLabel annexFourLabel = new JLabel("附件四-疫情防控供电保障情况统计表");
+ annexFourLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ annexFourLabel.setForeground(new Color(11, 24, 76));
+ int annexFourJlx = 30;
+ int annexFourJly = constructionExistingSuspectedJtY + 120;
+ annexFourLabel.setBounds(annexFourJlx, annexFourJly, 1000, 100);
+
+ /**
+ * 定点医院
+ */
+ JLabel designatedHospitalsLabel = new JLabel("定点医院");
+ designatedHospitalsLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ designatedHospitalsLabel.setForeground(new Color(11, 24, 76));
+ int designatedHospitalsJlx = 30;
+ int designatedHospitalsJly = annexFourJly + 120;
+ designatedHospitalsLabel.setBounds(designatedHospitalsJlx, designatedHospitalsJly, 800, 100);
+ /**
+ * 发热门诊
+ */
+ JLabel feverClinicLabel = new JLabel("发热门诊");
+ feverClinicLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ feverClinicLabel.setForeground(new Color(11, 24, 76));
+ int feverClinicJlx = designatedHospitalsJlx + 350;
+ int feverClinicJly = annexFourJly + 120;
+ feverClinicLabel.setBounds(feverClinicJlx, feverClinicJly, 800, 100);
+
+ /**
+ * 防疫用品企业
+ */
+ JLabel epidemicEnterpriseLabel = new JLabel("防疫用品企业");
+ epidemicEnterpriseLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ epidemicEnterpriseLabel.setForeground(new Color(11, 24, 76));
+ int epidemicEnterpriseJlx = feverClinicJlx + 350;
+ int epidemicEnterpriseJly = annexFourJly + 120;
+ epidemicEnterpriseLabel.setBounds(epidemicEnterpriseJlx, epidemicEnterpriseJly, 800, 100);
+
+
+ /**
+ * 定点医院输入框
+ */
+ designatedHospitalsJt = new JTextField();
+ setTextFiledColor(designatedHospitalsJt);
+ int designatedHospitalsJtY = designatedHospitalsJly + 120;
+ designatedHospitalsJt.setBounds(designatedHospitalsJlx, designatedHospitalsJtY, 300, 120);
+
+ /**
+ * 发热门诊输入框
+ */
+ feverClinicJt = new JTextField();
+ setTextFiledColor(feverClinicJt);
+ int feverClinicJtY = designatedHospitalsJly + 120;
+ feverClinicJt.setBounds(verificationPersonNumJlx + 350, feverClinicJtY, 300, 120);
+
+ /**
+ * 防疫用品企业输入框
+ */
+ epidemicEnterpriseJt = new JTextField();
+ setTextFiledColor(epidemicEnterpriseJt);
+ int epidemicEnterpriseJtY = designatedHospitalsJly + 120;
+ epidemicEnterpriseJt.setBounds(verificationPersonNumJlx + 700, epidemicEnterpriseJtY, 300, 120);
+
+ /**
+ * 其他重要用户
+ */
+ JLabel otherImportantUsersLabel = new JLabel("其他重要用户");
+ otherImportantUsersLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ otherImportantUsersLabel.setForeground(new Color(11, 24, 76));
+ int otherImportantUsersJlx = 30;
+ int otherImportantUsersJly = epidemicEnterpriseJtY + 120;
+ otherImportantUsersLabel.setBounds(otherImportantUsersJlx, otherImportantUsersJly, 800, 100);
+ /**
+ * 客户用电保障人员
+ */
+ JLabel customerPowerPersonnelLabel = new JLabel("客户用电保障人员");
+ customerPowerPersonnelLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ customerPowerPersonnelLabel.setForeground(new Color(11, 24, 76));
+ int customerPowerPersonnelJlx = otherImportantUsersJlx + 350;
+ int customerPowerPersonnelJly = epidemicEnterpriseJtY + 120;
+ customerPowerPersonnelLabel.setBounds(customerPowerPersonnelJlx, customerPowerPersonnelJly, 800, 100);
+
+ /**
+ * 电网运维保障人员
+ */
+ JLabel powerDevopsPersonnelLabel = new JLabel("电网运维保障人员");
+ powerDevopsPersonnelLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ powerDevopsPersonnelLabel.setForeground(new Color(11, 24, 76));
+ int powerDevopsPersonnelJlx = customerPowerPersonnelJlx + 450;
+ int powerDevopsPersonnelJly = epidemicEnterpriseJtY + 120;
+ powerDevopsPersonnelLabel.setBounds(powerDevopsPersonnelJlx, powerDevopsPersonnelJly, 800, 100);
+
+
+ /**
+ * 其他重要用户输入框
+ */
+ otherImportantUsersJt = new JTextField();
+ setTextFiledColor(otherImportantUsersJt);
+ int otherImportantUsersJtY = otherImportantUsersJly + 120;
+ otherImportantUsersJt.setBounds(otherImportantUsersJlx, otherImportantUsersJtY, 300, 120);
+
+ /**
+ * 客户用电保障人员输入框
+ */
+ customerPowerPersonnelJt = new JTextField();
+ setTextFiledColor(customerPowerPersonnelJt);
+ int customerPowerPersonnelJtY = otherImportantUsersJly + 120;
+ customerPowerPersonnelJt.setBounds(verificationPersonNumJlx + 350, customerPowerPersonnelJtY, 300, 120);
+
+ /**
+ * 电网运维保障人员输入框
+ */
+ powerDevopsPersonnelJt = new JTextField();
+ setTextFiledColor(powerDevopsPersonnelJt);
+ int powerDevopsPersonnelJtY = otherImportantUsersJly + 120;
+ powerDevopsPersonnelJt.setBounds(verificationPersonNumJlx + 800, powerDevopsPersonnelJtY, 300, 120);
+
+ /**
+ * 保电车辆
+ */
+ JLabel electricallyVehiclesLabel = new JLabel("保电车辆");
+ electricallyVehiclesLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ electricallyVehiclesLabel.setForeground(new Color(11, 24, 76));
+ int electricallyVehiclesJlx = 30;
+ int electricallyVehiclesJly = powerDevopsPersonnelJtY + 120;
+ electricallyVehiclesLabel.setBounds(electricallyVehiclesJlx, electricallyVehiclesJly, 800, 100);
+ /**
+ * 应急发电车
+ */
+ JLabel emergencyPowerVehiclesLabel = new JLabel("应急发电车");
+ emergencyPowerVehiclesLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ emergencyPowerVehiclesLabel.setForeground(new Color(11, 24, 76));
+ int emergencyPowerVehiclesJlx = electricallyVehiclesJlx + 350;
+ int emergencyPowerVehiclesJly = powerDevopsPersonnelJtY + 120;
+ emergencyPowerVehiclesLabel.setBounds(emergencyPowerVehiclesJlx, emergencyPowerVehiclesJly, 800, 100);
+
+ /**
+ * 应急发电机
+ */
+ JLabel emergencyGeneratorLabel = new JLabel("应急发电机");
+ emergencyGeneratorLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ emergencyGeneratorLabel.setForeground(new Color(11, 24, 76));
+ int emergencyGeneratorJlx = emergencyPowerVehiclesJlx + 350;
+ int emergencyGeneratorJly = powerDevopsPersonnelJtY + 120;
+ emergencyGeneratorLabel.setBounds(emergencyGeneratorJlx, emergencyGeneratorJly, 800, 100);
+
+
+ /**
+ * 保电车辆输入框
+ */
+ electricallyVehiclesJt = new JTextField();
+ setTextFiledColor(electricallyVehiclesJt);
+ int electricallyVehiclesJtY = electricallyVehiclesJly + 120;
+ electricallyVehiclesJt.setBounds(electricallyVehiclesJlx, electricallyVehiclesJtY, 300, 120);
+
+ /**
+ * 应急发电车输入框
+ */
+ emergencyPowerVehiclesJt = new JTextField();
+ setTextFiledColor(emergencyPowerVehiclesJt);
+ int emergencyPowerVehiclesJtY = electricallyVehiclesJly + 120;
+ emergencyPowerVehiclesJt.setBounds(verificationPersonNumJlx + 350, emergencyPowerVehiclesJtY, 300, 120);
+
+ /**
+ * 应急发电机输入框
+ */
+ emergencyGeneratorJt = new JTextField();
+ setTextFiledColor(emergencyGeneratorJt);
+ int emergencyGeneratorJtY = electricallyVehiclesJly + 120;
+ emergencyGeneratorJt.setBounds(verificationPersonNumJlx + 700, emergencyGeneratorJtY, 300, 120);
+
+ /**
+ * 附表五 入境筛查和集中观察场所供电保障情况表
+ */
+ JLabel annexFiveLabel = new JLabel("附表五-入境筛查和集中观察场所供电保障情况表");
+ annexFiveLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ annexFiveLabel.setForeground(new Color(11, 24, 76));
+ int annexFiveJlx = 30;
+ int annexFiveJly = emergencyGeneratorJtY + 120;
+ annexFiveLabel.setBounds(annexFiveJlx, annexFiveJly, 1000, 100);
+
+ /**
+ * 入境筛查和集中观察场所数量-机场/港口
+ */
+ JLabel airportPortLabel = new JLabel("机场/港口");
+ airportPortLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ airportPortLabel.setForeground(new Color(11, 24, 76));
+ int airportPortJlx = 30;
+ int airportPortJly = annexFiveJly + 120;
+ airportPortLabel.setBounds(airportPortJlx, airportPortJly, 800, 100);
+
+ /**
+ * 入境筛查和集中观察场所数量-场馆/医院
+ */
+ JLabel venueHospitalLabel = new JLabel("场馆/医院");
+ venueHospitalLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ venueHospitalLabel.setForeground(new Color(11, 24, 76));
+ int venueHospitalJlx = airportPortJlx + 350;
+ int venueHospitalJly = annexFiveJly + 120;
+ venueHospitalLabel.setBounds(venueHospitalJlx, venueHospitalJly, 800, 100);
+
+ /**
+ * 入境筛查和集中观察场所数量-宾馆酒店
+ */
+ JLabel guesthouseHotelLabel = new JLabel("宾馆酒店");
+ guesthouseHotelLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ guesthouseHotelLabel.setForeground(new Color(11, 24, 76));
+ int guesthouseHotelJlx = venueHospitalJlx + 300;
+ int guesthouseHotelJly = annexFiveJly + 120;
+ guesthouseHotelLabel.setBounds(guesthouseHotelJlx, guesthouseHotelJly, 800, 100);
+
+ /**
+ * 入境筛查和集中观察场所数量-保障人员
+ */
+ JLabel safeguardPersonnelLabel = new JLabel("保障人员");
+ safeguardPersonnelLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ safeguardPersonnelLabel.setForeground(new Color(11, 24, 76));
+ int safeguardPersonnelJlx = guesthouseHotelJlx + 350;
+ int safeguardPersonnelJly = annexFiveJly + 120;
+ safeguardPersonnelLabel.setBounds(safeguardPersonnelJlx, safeguardPersonnelJly, 800, 100);
+
+ /**
+ * 入境筛查和集中观察场所数量-机场/港口
+ */
+ airportPortJt = new JTextField();
+ setTextFiledColor(airportPortJt);
+ int airportPortJtY = safeguardPersonnelJly + 120;
+ airportPortJt.setBounds(airportPortJlx, airportPortJtY, 260, 120);
+
+ /**
+ * 入境筛查和集中观察场所数量-场馆/医院
+ */
+ venueHospitalJt = new JTextField();
+ setTextFiledColor(venueHospitalJt);
+ int venueHospitalJtY = safeguardPersonnelJly + 120;
+ venueHospitalJt.setBounds(airportPortJlx + 350, venueHospitalJtY, 260, 120);
+
+ /**
+ * 入境筛查和集中观察场所数量-场馆/医院
+ */
+ guesthouseHotelJt = new JTextField();
+ setTextFiledColor(guesthouseHotelJt);
+ int guesthouseHotelJtY = safeguardPersonnelJly + 120;
+ guesthouseHotelJt.setBounds(airportPortJlx + 650, guesthouseHotelJtY, 260, 120);
+
+ /**
+ * 入境筛查和集中观察场所数量-保障人员
+ */
+ safeguardPersonnelJt = new JTextField();
+ setTextFiledColor(safeguardPersonnelJt);
+ int safeguardPersonnelJtY = safeguardPersonnelJly + 120;
+ safeguardPersonnelJt.setBounds(airportPortJlx + 1000, safeguardPersonnelJtY, 260, 120);
+
+
+
+ /**
+ * 投入力量-保电车辆
+ */
+ JLabel electricallyGuaranteedVehiclesLabel = new JLabel("保电车辆");
+ electricallyGuaranteedVehiclesLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ electricallyGuaranteedVehiclesLabel.setForeground(new Color(11, 24, 76));
+ int electricallyGuaranteedVehiclesJlx = 30;
+ int electricallyGuaranteedVehiclesJly = safeguardPersonnelJtY + 120;
+ electricallyGuaranteedVehiclesLabel.setBounds(electricallyGuaranteedVehiclesJlx, electricallyGuaranteedVehiclesJly, 800, 100);
+
+ /**
+ * 投入力量-发电车
+ */
+ JLabel powerGenerationVehiclesLabel = new JLabel("发电车");
+ powerGenerationVehiclesLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ powerGenerationVehiclesLabel.setForeground(new Color(11, 24, 76));
+ int powerGenerationVehiclesJlx = electricallyGuaranteedVehiclesJlx + 350;
+ int powerGenerationVehiclesJly = safeguardPersonnelJtY + 120;
+ powerGenerationVehiclesLabel.setBounds(powerGenerationVehiclesJlx, powerGenerationVehiclesJly, 800, 100);
+
+ /**
+ * 投入力量-发电机
+ */
+ JLabel dynamoLabel = new JLabel("发电机");
+ dynamoLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ dynamoLabel.setForeground(new Color(11, 24, 76));
+ int dynamoJlx = powerGenerationVehiclesJlx + 300;
+ int dynamoJly = safeguardPersonnelJtY + 120;
+ dynamoLabel.setBounds(dynamoJlx, dynamoJly, 800, 100);
+
+
+ /**
+ * 投入力量-保电车辆
+ */
+ electricallyGuaranteedVehiclesJt = new JTextField();
+ setTextFiledColor(electricallyGuaranteedVehiclesJt);
+ int electricallyGuaranteedVehiclesJtY = dynamoJly + 120;
+ electricallyGuaranteedVehiclesJt.setBounds(airportPortJlx, electricallyGuaranteedVehiclesJtY, 260, 120);
+
+ /**
+ * 投入力量-发电车
+ */
+ powerGenerationVehiclesJt = new JTextField();
+ setTextFiledColor(powerGenerationVehiclesJt);
+ int powerGenerationVehiclesJtY = dynamoJly + 120;
+ powerGenerationVehiclesJt.setBounds(airportPortJlx + 350, powerGenerationVehiclesJtY, 260, 120);
+
+ /**
+ * 投入力量-发电机
+ */
+ dynamoJt = new JTextField();
+ setTextFiledColor(dynamoJt);
+ int dynamoJtY = dynamoJly + 120;
+ dynamoJt.setBounds(airportPortJlx + 650, dynamoJtY, 260, 120);
+
+ JLabel fiveRemarkLabel = new JLabel("备注");
+ fiveRemarkLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ fiveRemarkLabel.setForeground(new Color(11, 24, 76));
+ int fiveRemarkJlx = 30;
+ int fiveRemarkJly = dynamoJtY + 120;
+ fiveRemarkLabel.setBounds(fiveRemarkJlx, fiveRemarkJly, 800, 100);
+ /**
+ * 备注
+ */
+ fiveRemarkJt = new JTextField();
+ setTextFiledColor(fiveRemarkJt);
+ int fiveRemarkJtY = fiveRemarkJly + 120;
+ fiveRemarkJt.setBounds(30, fiveRemarkJtY, 1310, 120);
+
+ /**
+ * 附件六-预警及应急响应情况跟踪表
+ */
+ JLabel annexSixLabel = new JLabel("附件六-预警及应急响应情况跟踪表");
+ annexSixLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ annexSixLabel.setForeground(new Color(11, 24, 76));
+ int annexSixJlx = 30;
+ int annexSixJly = fiveRemarkJtY + 120;
+ annexSixLabel.setBounds(annexSixJlx, annexSixJly, 1000, 100);
+
+ /**
+ * 领导及指挥人员
+ */
+ JLabel leadersCommandStaffLabel = new JLabel("领导及指挥人员");
+ leadersCommandStaffLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ leadersCommandStaffLabel.setForeground(new Color(11, 24, 76));
+ int leadersCommandStaffJlx = 30;
+ int leadersCommandStaffJly = annexSixJly + 120;
+ leadersCommandStaffLabel.setBounds(leadersCommandStaffJlx, leadersCommandStaffJly, 800, 100);
+ /**
+ * 领导及指挥人员
+ */
+ leadersCommandStaffJt = new JTextField();
+ setTextFiledColor(leadersCommandStaffJt);
+ int leadersCommandStaffJtY = leadersCommandStaffJly + 120;
+ leadersCommandStaffJt.setBounds(leadersCommandStaffJlx, leadersCommandStaffJtY, 1310, 120);
+ if(StringHelper.isEmptyAndNull(leadersCommandStaffJt.getText())) {
+ leadersCommandStaffJt.addFocusListener(new MyFocusListener("请输入领导及指挥人员", leadersCommandStaffJt));
+ }
+
+ /**
+ * 投入力量-人员
+ */
+ JLabel inputAmountPersonLabel = new JLabel("人员数量");
+ inputAmountPersonLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ inputAmountPersonLabel.setForeground(new Color(11, 24, 76));
+ int inputAmountPersonJlx = 30;
+ int inputAmountPersonJly = leadersCommandStaffJtY + 120;
+ inputAmountPersonLabel.setBounds(inputAmountPersonJlx, inputAmountPersonJly, 800, 100);
+ /**
+ * 投入力量-车辆
+ */
+ JLabel inputAmountVehicleLabel = new JLabel("车辆数量");
+ inputAmountVehicleLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ inputAmountVehicleLabel.setForeground(new Color(11, 24, 76));
+ int inputAmountVehicleJlx = inputAmountPersonJlx + 350;
+ int inputAmountVehicleJly = leadersCommandStaffJtY + 120;
+ inputAmountVehicleLabel.setBounds(inputAmountVehicleJlx, inputAmountVehicleJly, 800, 100);
+
+ /**
+ * 投入力量-发电车
+ */
+ JLabel inputAmountPowerVehicleLabel = new JLabel("发电车数量");
+ inputAmountPowerVehicleLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ inputAmountPowerVehicleLabel.setForeground(new Color(11, 24, 76));
+ int inputAmountPowerVehicleJlx = inputAmountVehicleJlx + 300;
+ int inputAmountPowerVehicleJly = leadersCommandStaffJtY + 120;
+ inputAmountPowerVehicleLabel.setBounds(inputAmountPowerVehicleJlx, inputAmountPowerVehicleJly, 800, 100);
+
+ /**
+ * 投入力量-发电机
+ */
+ JLabel inputAmountDynamoLabel = new JLabel("发电车数量");
+ inputAmountDynamoLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ inputAmountDynamoLabel.setForeground(new Color(11, 24, 76));
+ int inputAmountDynamoJlx = inputAmountPowerVehicleJlx + 350;
+ int inputAmountDynamoJly = leadersCommandStaffJtY + 120;
+ inputAmountDynamoLabel.setBounds(inputAmountDynamoJlx, inputAmountDynamoJly, 800, 100);
+
+ /**
+ * 投入力量-人员输入框
+ */
+ inputAmountPersonJt = new JTextField();
+ setTextFiledColor(inputAmountPersonJt);
+ int inputAmountPersonJtY = inputAmountPersonJly + 120;
+ inputAmountPersonJt.setBounds(inputAmountPersonJlx, inputAmountPersonJtY, 260, 120);
+
+ /**
+ * 投入力量-车辆输入框
+ */
+ inputAmountVehicleJt = new JTextField();
+ setTextFiledColor(inputAmountVehicleJt);
+ int inputAmountVehicleJtY = inputAmountPersonJly + 120;
+ inputAmountVehicleJt.setBounds(inputAmountPersonJlx + 350, inputAmountVehicleJtY, 260, 120);
+
+ /**
+ * 投入力量-发电车输入框
+ */
+ inputAmountPowerVehicleJt = new JTextField();
+ setTextFiledColor(inputAmountPowerVehicleJt);
+ int inputAmountPowerVehicleJtY = inputAmountPersonJly + 120;
+ inputAmountPowerVehicleJt.setBounds(inputAmountPersonJlx + 650, inputAmountPowerVehicleJtY, 260, 120);
+
+ /**
+ * 投入力量-发电机输入框
+ */
+ inputAmountDynamoJt = new JTextField();
+ setTextFiledColor(inputAmountDynamoJt);
+ int inputAmountDynamoJtY = inputAmountPersonJly + 120;
+ inputAmountDynamoJt.setBounds(inputAmountPersonJlx + 1000, inputAmountDynamoJtY, 260, 120);
+
+ /**
+ * 投入备注
+ */
+ JLabel inputAmountRemarkLabel = new JLabel("备注");
+ inputAmountRemarkLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ inputAmountRemarkLabel.setForeground(new Color(11, 24, 76));
+ int inputAmountRemarkJlx = 30;
+ int inputAmountRemarkJly = inputAmountDynamoJtY + 120;
+ inputAmountRemarkLabel.setBounds(inputAmountRemarkJlx, inputAmountRemarkJly, 800, 100);
+ /**
+ * 投入备注
+ */
+ inputAmountRemarkJt = new JTextField();
+ setTextFiledColor(inputAmountRemarkJt);
+ int inputAmountRemarkJtY = inputAmountRemarkJly + 120;
+ inputAmountRemarkJt.setBounds(30, inputAmountRemarkJtY, 1310, 120);
+ if(StringHelper.isEmptyAndNull(inputAmountRemarkJt.getText())) {
+ inputAmountRemarkJt.addFocusListener(new MyFocusListener("请输入投入备注", inputAmountRemarkJt));
+ }
+
+
+ /**
+ * 附件七-变电站停运及恢复-新增情况
+ */
+ JLabel annexSevenLabel = new JLabel("附件七-变电站停运及恢复-新增情况");
+ annexSevenLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ annexSevenLabel.setForeground(new Color(11, 24, 76));
+ int annexSevenJlx = 30;
+ int annexSevenJly = inputAmountRemarkJtY + 150;
+ annexSevenLabel.setBounds(annexSevenJlx, annexSevenJly, 1000, 100);
+
+ /**
+ * 因灾停运
+ */
+ JLabel suspensionOfDisasterLabel = new JLabel("因灾停运");
+ suspensionOfDisasterLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ suspensionOfDisasterLabel.setForeground(new Color(11, 24, 76));
+ int suspensionOfDisasterJlx = 30;
+ int suspensionOfDisasterJly = annexSevenJly + 120;
+ suspensionOfDisasterLabel.setBounds(suspensionOfDisasterJlx, suspensionOfDisasterJly, 800, 100);
+
+ /**
+ * 因灾停运-特高压
+ */
+ JLabel uhvDisasterLabel = new JLabel("特高压");
+ uhvDisasterLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ uhvDisasterLabel.setForeground(new Color(11, 24, 76));
+ int uhvDisasterJlx = 30;
+ int uhvDisasterJly = suspensionOfDisasterJly + 120;
+ uhvDisasterLabel.setBounds(uhvDisasterJlx, uhvDisasterJly, 800, 100);
+ /**
+ * 因灾停运-500kv
+ */
+ JLabel fiveKVDisasterLabel = new JLabel("500kV");
+ fiveKVDisasterLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ fiveKVDisasterLabel.setForeground(new Color(11, 24, 76));
+ int fiveKVDisasterJlx = uhvDisasterJlx + 280;
+ int fiveKVDisasterJly = suspensionOfDisasterJly + 120;
+ fiveKVDisasterLabel.setBounds(fiveKVDisasterJlx, fiveKVDisasterJly, 800, 100);
+
+ /**
+ * 因灾停运-220/330kv
+ */
+ JLabel twoKVDisasterLabel = new JLabel("220/330kV");
+ twoKVDisasterLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ twoKVDisasterLabel.setForeground(new Color(11, 24, 76));
+ int twoKVDisasterJlx = fiveKVDisasterJlx + 200;
+ int twoKVDisasterJly = suspensionOfDisasterJly + 120;
+ twoKVDisasterLabel.setBounds(twoKVDisasterJlx, twoKVDisasterJly, 800, 100);
+
+ /**
+ * 因灾停运-110/66kv
+ */
+ JLabel oneKVDisasterLabel = new JLabel("110/66kv");
+ oneKVDisasterLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ oneKVDisasterLabel.setForeground(new Color(11, 24, 76));
+ int oneKVDisasterJlx = twoKVDisasterJlx + 270;
+ int oneKVDisasterJly = suspensionOfDisasterJly + 120;
+ oneKVDisasterLabel.setBounds(oneKVDisasterJlx, oneKVDisasterJly, 800, 100);
+
+ /**
+ * 因灾停运-35kv
+ */
+ JLabel threeKVDisasterLabel = new JLabel("35kv");
+ threeKVDisasterLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ threeKVDisasterLabel.setForeground(new Color(11, 24, 76));
+ int threeKVDisasterJlx = oneKVDisasterJlx + 300;
+ int threeKVDisasterJly = suspensionOfDisasterJly + 120;
+ threeKVDisasterLabel.setBounds(threeKVDisasterJlx, threeKVDisasterJly, 800, 100);
+
+
+ /**
+ * 变电站停运及恢复-新增-因灾停运-特高压
+ */
+
+ powerSubstationAddOutageUvhJt = new JTextField();
+ setTextFiledColor(powerSubstationAddOutageUvhJt);
+ int powerSubstationAddOutageUvhJtY = threeKVDisasterJly + 120;
+ powerSubstationAddOutageUvhJt.setBounds(annexSevenJlx, powerSubstationAddOutageUvhJtY, 240, 120);
+
+ /**
+ * 变电站停运及恢复-新增-因灾停运-500
+ */
+ powerSubstationAddOutageFiveJt = new JTextField();
+ setTextFiledColor(powerSubstationAddOutageFiveJt);
+ int powerSubstationAddOutageFiveJtY = threeKVDisasterJly + 120;
+ powerSubstationAddOutageFiveJt.setBounds(annexSevenJlx + 250, powerSubstationAddOutageFiveJtY, 240, 120);
+
+ /**
+ * 变电站停运及恢复-新增-因灾停运-300
+ */
+ powerSubstationAddOutageTwoJt = new JTextField();
+ setTextFiledColor(powerSubstationAddOutageTwoJt);
+ int powerSubstationAddOutageTwoJtY = threeKVDisasterJly + 120;
+ powerSubstationAddOutageTwoJt.setBounds(annexSevenJlx + 500, powerSubstationAddOutageTwoJtY, 240, 120);
+
+ /**
+ * 变电站停运及恢复-新增-因灾停运-110
+ */
+ powerSubstationAddOutageOneJt = new JTextField();
+ setTextFiledColor(powerSubstationAddOutageOneJt);
+ int powerSubstationAddOutageOneJtY = threeKVDisasterJly + 120;
+ powerSubstationAddOutageOneJt.setBounds(annexSevenJlx + 750, powerSubstationAddOutageOneJtY, 240, 120);
+
+ /**
+ * 变电站停运及恢复-新增-因灾停运-35
+ */
+ powerSubstationAddOutageThreeJt = new JTextField();
+ setTextFiledColor(powerSubstationAddOutageThreeJt);
+ int powerSubstationAddOutageThreeJtY = threeKVDisasterJly + 120;
+ powerSubstationAddOutageThreeJt.setBounds(annexSevenJlx + 1000, powerSubstationAddOutageThreeJtY, 240, 120);
+
+ /**
+ * 抢修恢复
+ */
+ JLabel emergencyRepairRecoveryLabel = new JLabel("抢修恢复");
+ emergencyRepairRecoveryLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ emergencyRepairRecoveryLabel.setForeground(new Color(11, 24, 76));
+ int emergencyRepairRecoveryJlx = 30;
+ int emergencyRepairRecoveryJly = powerSubstationAddOutageThreeJtY + 120;
+ emergencyRepairRecoveryLabel.setBounds(emergencyRepairRecoveryJlx, emergencyRepairRecoveryJly, 800, 100);
+
+ /**
+ * 抢修恢复-特高压
+ */
+ JLabel powerSubstationAddRepairUvhLabel = new JLabel("特高压");
+ powerSubstationAddRepairUvhLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ powerSubstationAddRepairUvhLabel.setForeground(new Color(11, 24, 76));
+ int powerSubstationAddRepairUvhJlx = 30;
+ int powerSubstationAddRepairUvhJly = emergencyRepairRecoveryJly + 120;
+ powerSubstationAddRepairUvhLabel.setBounds(powerSubstationAddRepairUvhJlx, powerSubstationAddRepairUvhJly, 800, 100);
+ /**
+ * 抢修恢复-500kv
+ */
+
+ JLabel powerSubstationAddRepairFiveLabel = new JLabel("500kV");
+ powerSubstationAddRepairFiveLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ powerSubstationAddRepairFiveLabel.setForeground(new Color(11, 24, 76));
+ int powerSubstationAddRepairFiveJlx = powerSubstationAddRepairUvhJlx + 280;
+ int powerSubstationAddRepairFiveJly = emergencyRepairRecoveryJly + 120;
+ powerSubstationAddRepairFiveLabel.setBounds(powerSubstationAddRepairFiveJlx, powerSubstationAddRepairFiveJly, 800, 100);
+ /**
+ * 抢修恢复-220/330kv
+ */
+ JLabel powerSubstationAddRepairTwoLabel = new JLabel("220/330kV");
+ powerSubstationAddRepairTwoLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ powerSubstationAddRepairTwoLabel.setForeground(new Color(11, 24, 76));
+ int powerSubstationAddRepairTwoJlx = powerSubstationAddRepairFiveJlx + 200;
+ int powerSubstationAddRepairTwoJly = emergencyRepairRecoveryJly + 120;
+ powerSubstationAddRepairTwoLabel.setBounds(powerSubstationAddRepairTwoJlx, powerSubstationAddRepairTwoJly, 800, 100);
+
+ /**
+ * 抢修恢复-110/66kv
+ */
+ JLabel powerSubstationAddRepairOneLabel = new JLabel("110/66kv");
+ powerSubstationAddRepairOneLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ powerSubstationAddRepairOneLabel.setForeground(new Color(11, 24, 76));
+ int powerSubstationAddRepairOneJlx = powerSubstationAddRepairTwoJlx + 270;
+ int powerSubstationAddRepairOneJly = emergencyRepairRecoveryJly + 120;
+ powerSubstationAddRepairOneLabel.setBounds(powerSubstationAddRepairOneJlx, powerSubstationAddRepairOneJly, 800, 100);
+
+ /**
+ * 抢修恢复-35kv
+ */
+ JLabel powerSubstationAddRepairThreeLabel = new JLabel("35kv");
+ powerSubstationAddRepairThreeLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ powerSubstationAddRepairThreeLabel.setForeground(new Color(11, 24, 76));
+ int powerSubstationAddRepairThreeJlx = powerSubstationAddRepairOneJlx + 300;
+ int powerSubstationAddRepairThreeJly = emergencyRepairRecoveryJly + 120;
+ powerSubstationAddRepairThreeLabel.setBounds(powerSubstationAddRepairThreeJlx, powerSubstationAddRepairThreeJly, 800, 100);
+
+
+ /**
+ * 变电站停运及恢复-新增-抢修恢复-特高压
+ */
+ powerSubstationAddRepairOutageUvhJt = new JTextField();
+ setTextFiledColor(powerSubstationAddRepairOutageUvhJt);
+ int powerSubstationRepairOutageUvhJtY = powerSubstationAddRepairThreeJly + 120;
+ powerSubstationAddRepairOutageUvhJt.setBounds(powerSubstationAddRepairUvhJlx, powerSubstationRepairOutageUvhJtY, 240, 120);
+
+ /**
+ * 变电站停运及恢复-新增-抢修恢复-500
+ */
+ powerSubstationAddRepairOutageFiveJt = new JTextField();
+ setTextFiledColor(powerSubstationAddRepairOutageFiveJt);
+ int powerSubstationRepairOutageFiveJtY = powerSubstationAddRepairThreeJly + 120;
+ powerSubstationAddRepairOutageFiveJt.setBounds(powerSubstationAddRepairUvhJlx + 250, powerSubstationRepairOutageFiveJtY, 240, 120);
+
+ /**
+ * 变电站停运及恢复-新增-抢修恢复-300
+ */
+ powerSubstationAddRepairOutageTwoJt = new JTextField();
+ setTextFiledColor(powerSubstationAddRepairOutageTwoJt);
+ int powerSubstationAddRepairOutageTwoJtY = powerSubstationAddRepairThreeJly + 120;
+ powerSubstationAddRepairOutageTwoJt.setBounds(powerSubstationAddRepairUvhJlx + 500, powerSubstationAddRepairOutageTwoJtY, 240, 120);
+
+ /**
+ * 变电站停运及恢复-新增-抢修恢复-110
+ */
+ powerSubstationAddRepairOutageOneJt = new JTextField();
+ setTextFiledColor(powerSubstationAddRepairOutageOneJt);
+ int powerSubstationAddRepairOutageOneJtY = powerSubstationAddRepairThreeJly + 120;
+ powerSubstationAddRepairOutageOneJt.setBounds(powerSubstationAddRepairUvhJlx + 750, powerSubstationAddRepairOutageOneJtY, 240, 120);
+
+ /**
+ * 变电站停运及恢复-新增-抢修恢复-35
+ */
+ powerSubstationAddRepairOutageThreeJt = new JTextField();
+ setTextFiledColor(powerSubstationAddRepairOutageThreeJt);
+ int powerSubstationAddRepairOutageThreeJtY = powerSubstationAddRepairThreeJly + 120;
+ powerSubstationAddRepairOutageThreeJt.setBounds(powerSubstationAddRepairUvhJlx + 1000, powerSubstationAddRepairOutageThreeJtY, 240, 120);
+
+ /**
+ * 尚未恢复
+ */
+ JLabel emergencyNoRepairRecoveryLabel = new JLabel("尚未恢复");
+ emergencyNoRepairRecoveryLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ emergencyNoRepairRecoveryLabel.setForeground(new Color(11, 24, 76));
+ int emergencyNoRepairRecoveryJlx = 30;
+ int emergencyNoRepairRecoveryJly = powerSubstationAddRepairOutageThreeJtY + 120;
+ emergencyNoRepairRecoveryLabel.setBounds(emergencyNoRepairRecoveryJlx, emergencyNoRepairRecoveryJly, 800, 100);
+
+ /**
+ * 抢修恢复-特高压
+ */
+ JLabel powerSubstationAddNoRepairUvhLabel = new JLabel("特高压");
+ powerSubstationAddNoRepairUvhLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ powerSubstationAddNoRepairUvhLabel.setForeground(new Color(11, 24, 76));
+ int powerSubstationAddNoRepairUvhJlx = 30;
+ int powerSubstationAddNoRepairUvhJly = emergencyNoRepairRecoveryJly + 120;
+ powerSubstationAddNoRepairUvhLabel.setBounds(powerSubstationAddNoRepairUvhJlx, powerSubstationAddNoRepairUvhJly, 800, 100);
+ /**
+ * 抢修恢复-500kv
+ */
+
+ JLabel powerSubstationAddNoRepairFiveLabel = new JLabel("500kV");
+ powerSubstationAddNoRepairFiveLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ powerSubstationAddNoRepairFiveLabel.setForeground(new Color(11, 24, 76));
+ int powerSubstationAddNoRepairFiveJlx = powerSubstationAddNoRepairUvhJlx + 280;
+ int powerSubstationAddNoRepairFiveJly = emergencyNoRepairRecoveryJly + 120;
+ powerSubstationAddNoRepairFiveLabel.setBounds(powerSubstationAddNoRepairFiveJlx, powerSubstationAddNoRepairFiveJly, 800, 100);
+ /**
+ * 抢修恢复-220/330kv
+ */
+ JLabel powerSubstationAddNoRepairTwoLabel = new JLabel("220/330kV");
+ powerSubstationAddNoRepairTwoLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ powerSubstationAddNoRepairTwoLabel.setForeground(new Color(11, 24, 76));
+ int powerSubstationAddNoRepairTwoJlx = powerSubstationAddNoRepairFiveJlx + 200;
+ int powerSubstationAddNoRepairTwoJly = emergencyNoRepairRecoveryJly + 120;
+ powerSubstationAddNoRepairTwoLabel.setBounds(powerSubstationAddNoRepairTwoJlx, powerSubstationAddNoRepairTwoJly, 800, 100);
+
+ /**
+ * 抢修恢复-110/66kv
+ */
+ JLabel powerSubstationAddNoRepairOneLabel = new JLabel("110/66kv");
+ powerSubstationAddNoRepairOneLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ powerSubstationAddNoRepairOneLabel.setForeground(new Color(11, 24, 76));
+ int powerSubstationAddNoRepairOneJlx = powerSubstationAddNoRepairTwoJlx + 270;
+ int powerSubstationAddNoRepairOneJly = emergencyNoRepairRecoveryJly + 120;
+ powerSubstationAddNoRepairOneLabel.setBounds(powerSubstationAddNoRepairOneJlx, powerSubstationAddNoRepairOneJly, 800, 100);
+
+ /**
+ * 抢修恢复-35kv
+ */
+ JLabel powerSubstationAddNoRepairThreeLabel = new JLabel("35kv");
+ powerSubstationAddNoRepairThreeLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ powerSubstationAddNoRepairThreeLabel.setForeground(new Color(11, 24, 76));
+ int powerSubstationAddNoRepairThreeJlx = powerSubstationAddNoRepairOneJlx + 300;
+ int powerSubstationAddNoRepairThreeJly = emergencyNoRepairRecoveryJly + 120;
+ powerSubstationAddNoRepairThreeLabel.setBounds(powerSubstationAddNoRepairThreeJlx, powerSubstationAddNoRepairThreeJly, 800, 100);
+
+
+ /**
+ * 变电站停运及恢复-新增-抢修恢复-特高压
+ */
+ powerSubstationAddNoRepairOutageUvhJt = new JTextField();
+ setTextFiledColor(powerSubstationAddNoRepairOutageUvhJt);
+ int powerSubstationNoRepairOutageUvhJtY = powerSubstationAddNoRepairThreeJly + 120;
+ powerSubstationAddNoRepairOutageUvhJt.setBounds(powerSubstationAddNoRepairUvhJlx, powerSubstationNoRepairOutageUvhJtY, 240, 120);
+
+ /**
+ * 变电站停运及恢复-新增-抢修恢复-500
+ */
+ powerSubstationAddNoRepairOutageFiveJt = new JTextField();
+ setTextFiledColor(powerSubstationAddNoRepairOutageFiveJt);
+ int powerSubstationNoRepairOutageFiveJtY = powerSubstationAddNoRepairThreeJly + 120;
+ powerSubstationAddNoRepairOutageFiveJt.setBounds(powerSubstationAddNoRepairUvhJlx + 250, powerSubstationNoRepairOutageFiveJtY, 240, 120);
+
+ /**
+ * 变电站停运及恢复-新增-抢修恢复-300
+ */
+ powerSubstationAddNoRepairOutageTwoJt = new JTextField();
+ setTextFiledColor(powerSubstationAddNoRepairOutageTwoJt);
+ int powerSubstationAddNoRepairOutageTwoJtY = powerSubstationAddNoRepairThreeJly + 120;
+ powerSubstationAddNoRepairOutageTwoJt.setBounds(powerSubstationAddNoRepairUvhJlx + 500, powerSubstationAddNoRepairOutageTwoJtY, 240, 120);
+
+ /**
+ * 变电站停运及恢复-新增-抢修恢复-110
+ */
+ powerSubstationAddNoRepairOutageOneJt = new JTextField();
+ setTextFiledColor(powerSubstationAddNoRepairOutageOneJt);
+ int powerSubstationAddNoRepairOutageOneJtY = powerSubstationAddNoRepairThreeJly + 120;
+ powerSubstationAddNoRepairOutageOneJt.setBounds(powerSubstationAddNoRepairUvhJlx + 750, powerSubstationAddNoRepairOutageOneJtY, 240, 120);
+
+ /**
+ * 变电站停运及恢复-新增-抢修恢复-35
+ */
+ powerSubstationAddNoRepairOutageThreeJt = new JTextField();
+ setTextFiledColor(powerSubstationAddNoRepairOutageThreeJt);
+ int powerSubstationAddNoRepairOutageThreeJtY = powerSubstationAddNoRepairThreeJly + 120;
+ powerSubstationAddNoRepairOutageThreeJt.setBounds(powerSubstationAddNoRepairUvhJlx + 1000, powerSubstationAddNoRepairOutageThreeJtY, 240, 120);
+
+
+ /**
+ * 附件七-变电站停运及恢复-累计情况
+ */
+ JLabel annexSevenCumulativeLabel = new JLabel("附件七-变电站停运及恢复-累计情况");
+ annexSevenCumulativeLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ annexSevenCumulativeLabel.setForeground(new Color(11, 24, 76));
+ int annexSevenCumulativeJlx = 30;
+ int annexSevenCumulativeJly = powerSubstationAddNoRepairOutageThreeJtY + 150;
+ annexSevenCumulativeLabel.setBounds(annexSevenCumulativeJlx, annexSevenCumulativeJly, 1000, 100);
+
+ /**
+ * 因灾停运
+ */
+ JLabel suspensionOfDisasterCumulativeLabel = new JLabel("因灾停运");
+ suspensionOfDisasterCumulativeLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ suspensionOfDisasterCumulativeLabel.setForeground(new Color(11, 24, 76));
+ int suspensionOfDisasterCumulativeJlx = 30;
+ int suspensionOfDisasterCumulativeJly = annexSevenCumulativeJly + 120;
+ suspensionOfDisasterCumulativeLabel.setBounds(suspensionOfDisasterCumulativeJlx, suspensionOfDisasterCumulativeJly, 800, 100);
+
+ /**
+ * 因灾停运-特高压
+ */
+ JLabel uhvDisasterCumulativeLabel = new JLabel("特高压");
+ uhvDisasterCumulativeLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ uhvDisasterCumulativeLabel.setForeground(new Color(11, 24, 76));
+ int uhvDisasterCumulativeJlx = 30;
+ int uhvDisasterCumulativeJly = suspensionOfDisasterCumulativeJly + 120;
+ uhvDisasterCumulativeLabel.setBounds(uhvDisasterCumulativeJlx, uhvDisasterCumulativeJly, 800, 100);
+ /**
+ * 因灾停运-500kv
+ */
+ JLabel fiveKVDisasterCumulativeLabel = new JLabel("500kV");
+ fiveKVDisasterCumulativeLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ fiveKVDisasterCumulativeLabel.setForeground(new Color(11, 24, 76));
+ int fiveKVDisasterCumulativeJlx = uhvDisasterCumulativeJlx + 280;
+ int fiveKVDisasterCumulativeJly = suspensionOfDisasterCumulativeJly + 120;
+ fiveKVDisasterCumulativeLabel.setBounds(fiveKVDisasterCumulativeJlx, fiveKVDisasterCumulativeJly, 800, 100);
+
+ /**
+ * 因灾停运-220/330kv
+ */
+ JLabel twoKVDisasterCumulativeLabel = new JLabel("220/330kV");
+ twoKVDisasterCumulativeLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ twoKVDisasterCumulativeLabel.setForeground(new Color(11, 24, 76));
+ int twoKVDisasterCumulativeJlx = fiveKVDisasterCumulativeJlx + 200;
+ int twoKVDisasterCumulativeJly = suspensionOfDisasterCumulativeJly + 120;
+ twoKVDisasterCumulativeLabel.setBounds(twoKVDisasterCumulativeJlx, twoKVDisasterCumulativeJly, 800, 100);
+
+ /**
+ * 因灾停运-110/66kv
+ */
+ JLabel oneKVDisasterCumulativeLabel = new JLabel("110/66kv");
+ oneKVDisasterCumulativeLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ oneKVDisasterCumulativeLabel.setForeground(new Color(11, 24, 76));
+ int oneKVDisasterCumulativeJlx = twoKVDisasterCumulativeJlx + 270;
+ int oneKVDisasterCumulativeJly = suspensionOfDisasterCumulativeJly + 120;
+ oneKVDisasterCumulativeLabel.setBounds(oneKVDisasterCumulativeJlx, oneKVDisasterCumulativeJly, 800, 100);
+
+ /**
+ * 因灾停运-35kv
+ */
+ JLabel threeKVDisasterCumulativeLabel = new JLabel("35kv");
+ threeKVDisasterCumulativeLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ threeKVDisasterCumulativeLabel.setForeground(new Color(11, 24, 76));
+ int threeKVDisasterCumulativeJlx = oneKVDisasterCumulativeJlx + 300;
+ int threeKVDisasterCumulativeJly = suspensionOfDisasterCumulativeJly + 120;
+ threeKVDisasterCumulativeLabel.setBounds(threeKVDisasterCumulativeJlx, threeKVDisasterCumulativeJly, 800, 100);
+
+
+ /**
+ * 变电站停运及恢复-新增-因灾停运-特高压
+ */
+
+ powerSubstationCumulativeOutageUvhJt = new JTextField();
+ setTextFiledColor(powerSubstationCumulativeOutageUvhJt);
+ int powerSubstationCumulativeOutageUvhJtY = threeKVDisasterCumulativeJly + 120;
+ powerSubstationCumulativeOutageUvhJt.setBounds(annexSevenCumulativeJlx, powerSubstationCumulativeOutageUvhJtY, 240, 120);
+
+ /**
+ * 变电站停运及恢复-新增-因灾停运-500
+ */
+ powerSubstationCumulativeOutageFiveJt = new JTextField();
+ setTextFiledColor(powerSubstationCumulativeOutageFiveJt);
+ int powerSubstationCumulativeOutageFiveJtY = threeKVDisasterCumulativeJly + 120;
+ powerSubstationCumulativeOutageFiveJt.setBounds(annexSevenCumulativeJlx + 250, powerSubstationCumulativeOutageFiveJtY, 240, 120);
+
+ /**
+ * 变电站停运及恢复-新增-因灾停运-300
+ */
+ powerSubstationCumulativeOutageTwoJt = new JTextField();
+ setTextFiledColor(powerSubstationCumulativeOutageTwoJt);
+ int powerSubstationCumulativeOutageTwoJtY = threeKVDisasterCumulativeJly + 120;
+ powerSubstationCumulativeOutageTwoJt.setBounds(annexSevenCumulativeJlx + 500, powerSubstationCumulativeOutageTwoJtY, 240, 120);
+
+ /**
+ * 变电站停运及恢复-新增-因灾停运-110
+ */
+ powerSubstationCumulativeOutageOneJt = new JTextField();
+ setTextFiledColor(powerSubstationCumulativeOutageOneJt);
+ int powerSubstationCumulativeOutageOneJtY = threeKVDisasterCumulativeJly + 120;
+ powerSubstationCumulativeOutageOneJt.setBounds(annexSevenCumulativeJlx + 750, powerSubstationCumulativeOutageOneJtY, 240, 120);
+
+ /**
+ * 变电站停运及恢复-新增-因灾停运-35
+ */
+ powerSubstationCumulativeOutageThreeJt = new JTextField();
+ setTextFiledColor(powerSubstationCumulativeOutageThreeJt);
+ int powerSubstationCumulativeOutageThreeJtY = threeKVDisasterCumulativeJly + 120;
+ powerSubstationCumulativeOutageThreeJt.setBounds(annexSevenCumulativeJlx + 1000, powerSubstationCumulativeOutageThreeJtY, 240, 120);
+
+ /**
+ * 抢修恢复
+ */
+ JLabel emergencyRepairRecoveryCumulativeLabel = new JLabel("抢修恢复");
+ emergencyRepairRecoveryCumulativeLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ emergencyRepairRecoveryCumulativeLabel.setForeground(new Color(11, 24, 76));
+ int emergencyRepairRecoveryCumulativeJlx = 30;
+ int emergencyRepairRecoveryCumulativeJly = powerSubstationCumulativeOutageThreeJtY + 120;
+ emergencyRepairRecoveryCumulativeLabel.setBounds(emergencyRepairRecoveryCumulativeJlx, emergencyRepairRecoveryCumulativeJly, 800, 100);
+
+ /**
+ * 抢修恢复-特高压
+ */
+ JLabel powerSubstationCumulativeRepairUvhLabel = new JLabel("特高压");
+ powerSubstationCumulativeRepairUvhLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ powerSubstationCumulativeRepairUvhLabel.setForeground(new Color(11, 24, 76));
+ int powerSubstationCumulativeRepairUvhJlx = 30;
+ int powerSubstationCumulativeRepairUvhJly = emergencyRepairRecoveryCumulativeJly + 120;
+ powerSubstationCumulativeRepairUvhLabel.setBounds(powerSubstationCumulativeRepairUvhJlx, powerSubstationCumulativeRepairUvhJly, 800, 100);
+ /**
+ * 抢修恢复-500kv
+ */
+
+ JLabel powerSubstationCumulativeRepairFiveLabel = new JLabel("500kV");
+ powerSubstationCumulativeRepairFiveLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ powerSubstationCumulativeRepairFiveLabel.setForeground(new Color(11, 24, 76));
+ int powerSubstationCumulativeRepairFiveJlx = powerSubstationCumulativeRepairUvhJlx + 280;
+ int powerSubstationCumulativeRepairFiveJly = emergencyRepairRecoveryCumulativeJly + 120;
+ powerSubstationCumulativeRepairFiveLabel.setBounds(powerSubstationCumulativeRepairFiveJlx, powerSubstationCumulativeRepairFiveJly, 800, 100);
+ /**
+ * 抢修恢复-220/330kv
+ */
+ JLabel powerSubstationCumulativeRepairTwoLabel = new JLabel("220/330kV");
+ powerSubstationCumulativeRepairTwoLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ powerSubstationCumulativeRepairTwoLabel.setForeground(new Color(11, 24, 76));
+ int powerSubstationCumulativeRepairTwoJlx = powerSubstationCumulativeRepairFiveJlx + 200;
+ int powerSubstationCumulativeRepairTwoJly = emergencyRepairRecoveryCumulativeJly + 120;
+ powerSubstationCumulativeRepairTwoLabel.setBounds(powerSubstationCumulativeRepairTwoJlx, powerSubstationCumulativeRepairTwoJly, 800, 100);
+
+ /**
+ * 抢修恢复-110/66kv
+ */
+ JLabel powerSubstationCumulativeRepairOneLabel = new JLabel("110/66kv");
+ powerSubstationCumulativeRepairOneLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ powerSubstationCumulativeRepairOneLabel.setForeground(new Color(11, 24, 76));
+ int powerSubstationCumulativeRepairOneJlx = powerSubstationCumulativeRepairTwoJlx + 270;
+ int powerSubstationCumulativeRepairOneJly = emergencyRepairRecoveryCumulativeJly + 120;
+ powerSubstationCumulativeRepairOneLabel.setBounds(powerSubstationCumulativeRepairOneJlx, powerSubstationCumulativeRepairOneJly, 800, 100);
+
+ /**
+ * 抢修恢复-35kv
+ */
+ JLabel powerSubstationCumulativeRepairThreeLabel = new JLabel("35kv");
+ powerSubstationCumulativeRepairThreeLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ powerSubstationCumulativeRepairThreeLabel.setForeground(new Color(11, 24, 76));
+ int powerSubstationCumulativeRepairThreeJlx = powerSubstationCumulativeRepairOneJlx + 300;
+ int powerSubstationCumulativeRepairThreeJly = emergencyRepairRecoveryCumulativeJly + 120;
+ powerSubstationCumulativeRepairThreeLabel.setBounds(powerSubstationCumulativeRepairThreeJlx, powerSubstationCumulativeRepairThreeJly, 800, 100);
+
+
+ /**
+ * 变电站停运及恢复-新增-抢修恢复-特高压
+ */
+ powerSubstationCumulativeRepairOutageUvhJt = new JTextField();
+ setTextFiledColor(powerSubstationCumulativeRepairOutageUvhJt);
+ int powerSubstationCumulativeRepairOutageUvhJtY = powerSubstationCumulativeRepairThreeJly + 120;
+ powerSubstationCumulativeRepairOutageUvhJt.setBounds(powerSubstationAddRepairUvhJlx, powerSubstationCumulativeRepairOutageUvhJtY, 240, 120);
+
+ /**
+ * 变电站停运及恢复-新增-抢修恢复-500
+ */
+ powerSubstationCumulativeRepairOutageFiveJt = new JTextField();
+ setTextFiledColor(powerSubstationCumulativeRepairOutageFiveJt);
+ int powerSubstationCumulativeRepairOutageFiveJtY = powerSubstationCumulativeRepairThreeJly + 120;
+ powerSubstationCumulativeRepairOutageFiveJt.setBounds(powerSubstationCumulativeRepairUvhJlx + 250, powerSubstationCumulativeRepairOutageFiveJtY, 240, 120);
+
+ /**
+ * 变电站停运及恢复-新增-抢修恢复-300
+ */
+ powerSubstationCumulativeRepairOutageTwoJt = new JTextField();
+ setTextFiledColor(powerSubstationCumulativeRepairOutageTwoJt);
+ int powerSubstationCumulativeRepairOutageTwoJtY = powerSubstationCumulativeRepairThreeJly + 120;
+ powerSubstationCumulativeRepairOutageTwoJt.setBounds(powerSubstationCumulativeRepairUvhJlx + 500, powerSubstationCumulativeRepairOutageTwoJtY, 240, 120);
+
+ /**
+ * 变电站停运及恢复-新增-抢修恢复-110
+ */
+ powerSubstationCumulativeRepairOutageOneJt = new JTextField();
+ setTextFiledColor(powerSubstationCumulativeRepairOutageOneJt);
+ int powerSubstationCumulativeRepairOutageOneJtY = powerSubstationCumulativeRepairThreeJly + 120;
+ powerSubstationCumulativeRepairOutageOneJt.setBounds(powerSubstationCumulativeRepairUvhJlx + 750, powerSubstationCumulativeRepairOutageOneJtY, 240, 120);
+
+ /**
+ * 变电站停运及恢复-新增-抢修恢复-35
+ */
+ powerSubstationCumulativeRepairOutageThreeJt = new JTextField();
+ setTextFiledColor(powerSubstationCumulativeRepairOutageThreeJt);
+ int powerSubstationCumulativeRepairOutageThreeJtY = powerSubstationCumulativeRepairThreeJly + 120;
+ powerSubstationCumulativeRepairOutageThreeJt.setBounds(powerSubstationCumulativeRepairUvhJlx + 1000, powerSubstationCumulativeRepairOutageThreeJtY, 240, 120);
+
+ /**
+ * 尚未恢复
+ */
+ JLabel emergencyCumulativeNoRepairRecoveryLabel = new JLabel("尚未恢复");
+ emergencyCumulativeNoRepairRecoveryLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ emergencyCumulativeNoRepairRecoveryLabel.setForeground(new Color(11, 24, 76));
+ int emergencyCumulativeNoRepairRecoveryJlx = 30;
+ int emergencyCumulativeNoRepairRecoveryJly = powerSubstationCumulativeRepairOutageThreeJtY + 120;
+ emergencyCumulativeNoRepairRecoveryLabel.setBounds(emergencyCumulativeNoRepairRecoveryJlx, emergencyCumulativeNoRepairRecoveryJly, 800, 100);
+
+ /**
+ * 抢修恢复-特高压
+ */
+ JLabel powerSubstationCumulativeNoRepairUvhLabel = new JLabel("特高压");
+ powerSubstationCumulativeNoRepairUvhLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ powerSubstationCumulativeNoRepairUvhLabel.setForeground(new Color(11, 24, 76));
+ int powerSubstationCumulativeNoRepairUvhJlx = 30;
+ int powerSubstationCumulativeNoRepairUvhJly = emergencyCumulativeNoRepairRecoveryJly + 120;
+ powerSubstationCumulativeNoRepairUvhLabel.setBounds(powerSubstationCumulativeNoRepairUvhJlx, powerSubstationCumulativeNoRepairUvhJly, 800, 100);
+ /**
+ * 抢修恢复-500kv
+ */
+
+ JLabel powerSubstationCumulativeNoRepairFiveLabel = new JLabel("500kV");
+ powerSubstationCumulativeNoRepairFiveLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ powerSubstationCumulativeNoRepairFiveLabel.setForeground(new Color(11, 24, 76));
+ int powerSubstationCumulativeNoRepairFiveJlx = powerSubstationCumulativeNoRepairUvhJlx + 280;
+ int powerSubstationCumulativeNoRepairFiveJly = emergencyCumulativeNoRepairRecoveryJly + 120;
+ powerSubstationCumulativeNoRepairFiveLabel.setBounds(powerSubstationCumulativeNoRepairFiveJlx, powerSubstationCumulativeNoRepairFiveJly, 800, 100);
+ /**
+ * 抢修恢复-220/330kv
+ */
+ JLabel powerSubstationCumulativeNoRepairTwoLabel = new JLabel("220/330kV");
+ powerSubstationCumulativeNoRepairTwoLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ powerSubstationCumulativeNoRepairTwoLabel.setForeground(new Color(11, 24, 76));
+ int powerSubstationCumulativeNoRepairTwoJlx = powerSubstationCumulativeNoRepairFiveJlx + 200;
+ int powerSubstationCumulativeNoRepairTwoJly = emergencyCumulativeNoRepairRecoveryJly + 120;
+ powerSubstationCumulativeNoRepairTwoLabel.setBounds(powerSubstationCumulativeNoRepairTwoJlx, powerSubstationCumulativeNoRepairTwoJly, 800, 100);
+
+ /**
+ * 抢修恢复-110/66kv
+ */
+ JLabel powerSubstationCumulativeNoRepairOneLabel = new JLabel("110/66kv");
+ powerSubstationCumulativeNoRepairOneLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ powerSubstationCumulativeNoRepairOneLabel.setForeground(new Color(11, 24, 76));
+ int powerSubstationCumulativeNoRepairOneJlx = powerSubstationCumulativeNoRepairTwoJlx + 270;
+ int powerSubstationCumulativeNoRepairOneJly = emergencyCumulativeNoRepairRecoveryJly + 120;
+ powerSubstationCumulativeNoRepairOneLabel.setBounds(powerSubstationCumulativeNoRepairOneJlx, powerSubstationCumulativeNoRepairOneJly, 800, 100);
+
+ /**
+ * 抢修恢复-35kv
+ */
+ JLabel powerSubstationCumulativeNoRepairThreeLabel = new JLabel("35kv");
+ powerSubstationCumulativeNoRepairThreeLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ powerSubstationCumulativeNoRepairThreeLabel.setForeground(new Color(11, 24, 76));
+ int powerSubstationCumulativeNoRepairThreeJlx = powerSubstationCumulativeNoRepairOneJlx + 300;
+ int powerSubstationCumulativeNoRepairThreeJly = emergencyCumulativeNoRepairRecoveryJly + 120;
+ powerSubstationCumulativeNoRepairThreeLabel.setBounds(powerSubstationCumulativeNoRepairThreeJlx, powerSubstationCumulativeNoRepairThreeJly, 800, 100);
+
+
+ /**
+ * 变电站停运及恢复-新增-抢修恢复-特高压
+ */
+ powerSubstationCumulativeNoRepairOutageUvhJt = new JTextField();
+ setTextFiledColor(powerSubstationCumulativeNoRepairOutageUvhJt);
+ int powerSubstationCumulativeNoRepairOutageUvhJtY = powerSubstationCumulativeNoRepairThreeJly + 120;
+ powerSubstationCumulativeNoRepairOutageUvhJt.setBounds(powerSubstationCumulativeNoRepairUvhJlx, powerSubstationCumulativeNoRepairOutageUvhJtY, 240, 120);
+
+ /**
+ * 变电站停运及恢复-新增-抢修恢复-500
+ */
+ powerSubstationCumulativeNoRepairOutageFiveJt = new JTextField();
+ setTextFiledColor(powerSubstationCumulativeNoRepairOutageFiveJt);
+ int powerSubstationCumulativeNoRepairOutageFiveJtY = powerSubstationCumulativeNoRepairThreeJly + 120;
+ powerSubstationCumulativeNoRepairOutageFiveJt.setBounds(powerSubstationCumulativeNoRepairUvhJlx + 250, powerSubstationCumulativeNoRepairOutageFiveJtY, 240, 120);
+
+ /**
+ * 变电站停运及恢复-新增-抢修恢复-300
+ */
+ powerSubstationCumulativeNoRepairOutageTwoJt = new JTextField();
+ setTextFiledColor(powerSubstationCumulativeNoRepairOutageTwoJt);
+ int powerSubstationCumulativeNoRepairOutageTwoJtY = powerSubstationCumulativeNoRepairThreeJly + 120;
+ powerSubstationCumulativeNoRepairOutageTwoJt.setBounds(powerSubstationCumulativeNoRepairUvhJlx + 500, powerSubstationCumulativeNoRepairOutageTwoJtY, 240, 120);
+
+ /**
+ * 变电站停运及恢复-新增-抢修恢复-110
+ */
+ powerSubstationCumulativeNoRepairOutageOneJt = new JTextField();
+ setTextFiledColor(powerSubstationCumulativeNoRepairOutageOneJt);
+ int powerSubstationCumulativeNoRepairOutageOneJtY = powerSubstationCumulativeNoRepairThreeJly + 120;
+ powerSubstationCumulativeNoRepairOutageOneJt.setBounds(powerSubstationCumulativeNoRepairUvhJlx + 750, powerSubstationCumulativeNoRepairOutageOneJtY, 240, 120);
+
+ /**
+ * 变电站停运及恢复-新增-抢修恢复-35
+ */
+ powerSubstationCumulativeNoRepairOutageThreeJt = new JTextField();
+ setTextFiledColor(powerSubstationCumulativeNoRepairOutageThreeJt);
+ int powerSubstationCumulativeNoRepairOutageThreeJtY = powerSubstationCumulativeNoRepairThreeJly + 120;
+ powerSubstationCumulativeNoRepairOutageThreeJt.setBounds(powerSubstationCumulativeNoRepairUvhJlx + 1000, powerSubstationCumulativeNoRepairOutageThreeJtY, 240, 120);
+
+ /**-----------------------------------------------------------------------------附件八----------------------------------------------------------------------------------------------------*/
+
+ /**
+ * 附件八-输配电线路停运及恢复-新增情况
+ */
+ JLabel annexEightLabel = new JLabel("附件八-输配电线路停运及恢复-新增情况");
+ annexEightLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ annexEightLabel.setForeground(new Color(11, 24, 76));
+ int annexEightJlx = 30;
+ int annexEightJly = powerSubstationCumulativeNoRepairOutageThreeJtY + 150;
+ annexEightLabel.setBounds(annexEightJlx, annexEightJly, 1000, 100);
+
+ /**
+ * 因灾停运
+ */
+ JLabel suspensionOfDisasterEightLabel = new JLabel("因灾停运");
+ suspensionOfDisasterEightLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ suspensionOfDisasterEightLabel.setForeground(new Color(11, 24, 76));
+ int suspensionOfDisasterEightJlx = 30;
+ int suspensionOfDisasterEightJly = annexEightJly + 120;
+ suspensionOfDisasterEightLabel.setBounds(suspensionOfDisasterEightJlx, suspensionOfDisasterEightJly, 800, 100);
+
+ /**
+ * 因灾停运-特高压
+ */
+ JLabel uhvDisasterEightLabel = new JLabel("特高压");
+ uhvDisasterEightLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ uhvDisasterEightLabel.setForeground(new Color(11, 24, 76));
+ int uhvDisasterEightJlx = 30;
+ int uhvDisasterEightJly = suspensionOfDisasterEightJly + 120;
+ uhvDisasterEightLabel.setBounds(uhvDisasterEightJlx, uhvDisasterEightJly, 800, 100);
+ /**
+ * 因灾停运-500kv
+ */
+ JLabel fiveKVDisasterEightLabel = new JLabel("500kV");
+ fiveKVDisasterEightLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ fiveKVDisasterEightLabel.setForeground(new Color(11, 24, 76));
+ int fiveKVDisasterEightJlx = uhvDisasterEightJlx + 280;
+ int fiveKVDisasterEightJly = suspensionOfDisasterEightJly + 120;
+ fiveKVDisasterEightLabel.setBounds(fiveKVDisasterEightJlx, fiveKVDisasterEightJly, 800, 100);
+
+ /**
+ * 因灾停运-220/330kv
+ */
+ JLabel twoKVDisasterEightLabel = new JLabel("220/330kV");
+ twoKVDisasterEightLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ twoKVDisasterEightLabel.setForeground(new Color(11, 24, 76));
+ int twoKVDisasterEightJlx = fiveKVDisasterEightJlx + 200;
+ int twoKVDisasterEightJly = suspensionOfDisasterEightJly + 120;
+ twoKVDisasterEightLabel.setBounds(twoKVDisasterEightJlx, twoKVDisasterEightJly, 800, 100);
+
+ /**
+ * 因灾停运-110/66kv
+ */
+ JLabel oneKVDisasterEightLabel = new JLabel("110/66kv");
+ oneKVDisasterEightLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ oneKVDisasterEightLabel.setForeground(new Color(11, 24, 76));
+ int oneKVDisasterEightJlx = twoKVDisasterEightJlx + 270;
+ int oneKVDisasterEightJly = suspensionOfDisasterEightJly + 120;
+ oneKVDisasterEightLabel.setBounds(oneKVDisasterEightJlx, oneKVDisasterEightJly, 800, 100);
+
+ /**
+ * 因灾停运-35kv
+ */
+ JLabel threeKVDisasterEightLabel = new JLabel("35kv");
+ threeKVDisasterEightLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ threeKVDisasterEightLabel.setForeground(new Color(11, 24, 76));
+ int threeKVDisasterEightJlx = oneKVDisasterEightJlx + 300;
+ int threeKVDisasterEightJly = suspensionOfDisasterEightJly + 120;
+ threeKVDisasterEightLabel.setBounds(threeKVDisasterEightJlx, threeKVDisasterEightJly, 800, 100);
+
+ JLabel tenKVDisasterEightLabel = new JLabel("10kv");
+ tenKVDisasterEightLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ tenKVDisasterEightLabel.setForeground(new Color(11, 24, 76));
+ int tenKVDisasterEightJlx = threeKVDisasterEightJlx + 250;
+ int tenKVDisasterEightJly = suspensionOfDisasterEightJly + 120;
+ tenKVDisasterEightLabel.setBounds(tenKVDisasterEightJlx, tenKVDisasterEightJly, 800, 100);
+
+
+ /**
+ * 输配电线路停运及恢复-新增-因灾停运-特高压
+ */
+ transmitElectricityAddOutageUvhJt = new JTextField();
+ setTextFiledColor(transmitElectricityAddOutageUvhJt);
+ int transmitElectricityAddOutageUvhJtY = threeKVDisasterEightJly + 120;
+ transmitElectricityAddOutageUvhJt.setBounds(annexEightJlx, transmitElectricityAddOutageUvhJtY, 240, 120);
+
+ /**
+ * 输配电线路停运及恢复-新增-因灾停运-500
+ */
+ transmitElectricityAddOutageFiveJt = new JTextField();
+ setTextFiledColor(transmitElectricityAddOutageFiveJt);
+ int transmitElectricityAddOutageFiveJtY = threeKVDisasterEightJly + 120;
+ transmitElectricityAddOutageFiveJt.setBounds(annexEightJlx + 250, transmitElectricityAddOutageFiveJtY, 240, 120);
+
+ /**
+ * 输配电线路停运及恢复-新增-因灾停运-300
+ */
+ transmitElectricityAddOutageTwoJt = new JTextField();
+ setTextFiledColor(transmitElectricityAddOutageTwoJt);
+ int transmitElectricityAddOutageTwoJtY = threeKVDisasterEightJly + 120;
+ transmitElectricityAddOutageTwoJt.setBounds(annexEightJlx + 500, transmitElectricityAddOutageTwoJtY, 240, 120);
+
+ /**
+ * 输配电线路停运及恢复-新增-因灾停运-110
+ */
+ transmitElectricityAddOutageOneJt = new JTextField();
+ setTextFiledColor(transmitElectricityAddOutageOneJt);
+ int transmitElectricityAddOutageOneJtY = threeKVDisasterEightJly + 120;
+ transmitElectricityAddOutageOneJt.setBounds(annexEightJlx + 750, transmitElectricityAddOutageOneJtY, 240, 120);
+
+ /**
+ * 输配电线路停运及恢复-新增-因灾停运-35
+ */
+ transmitElectricityAddOutageThreeJt = new JTextField();
+ setTextFiledColor(transmitElectricityAddOutageThreeJt);
+ int transmitElectricityAddOutageThreeJtY = threeKVDisasterEightJly + 120;
+ transmitElectricityAddOutageThreeJt.setBounds(annexEightJlx + 1000, transmitElectricityAddOutageThreeJtY, 240, 120);
+ /**
+ * 输配电线路停运及恢复-新增-因灾停运-10
+ */
+ transmitElectricityAddOutageTenJt = new JTextField();
+ setTextFiledColor(transmitElectricityAddOutageTenJt);
+ int transmitElectricityAddOutageTenJtY = threeKVDisasterEightJly + 120;
+ transmitElectricityAddOutageTenJt.setBounds(annexEightJlx + 1250, transmitElectricityAddOutageTenJtY, 240, 120);
+
+ /**
+ * 抢修恢复
+ */
+ JLabel emergencyRepairRecoveryEightLabel = new JLabel("抢修恢复");
+ emergencyRepairRecoveryEightLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ emergencyRepairRecoveryEightLabel.setForeground(new Color(11, 24, 76));
+ int emergencyRepairRecoveryEightJlx = 30;
+ int emergencyRepairRecoveryEightJly = transmitElectricityAddOutageTenJtY + 120;
+ emergencyRepairRecoveryEightLabel.setBounds(emergencyRepairRecoveryEightJlx, emergencyRepairRecoveryEightJly, 800, 100);
+
+ /**
+ * 抢修恢复-特高压
+ */
+ JLabel transmitElectricityAddRepairUvhLabel = new JLabel("特高压");
+ transmitElectricityAddRepairUvhLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ transmitElectricityAddRepairUvhLabel.setForeground(new Color(11, 24, 76));
+ int transmitElectricityAddRepairUvhJlx = 30;
+ int transmitElectricityAddRepairUvhJly = emergencyRepairRecoveryEightJly + 120;
+ transmitElectricityAddRepairUvhLabel.setBounds(transmitElectricityAddRepairUvhJlx, transmitElectricityAddRepairUvhJly, 800, 100);
+ /**
+ * 抢修恢复-500kv
+ */
+
+ JLabel transmitElectricityAddRepairFiveLabel = new JLabel("500kV");
+ transmitElectricityAddRepairFiveLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ transmitElectricityAddRepairFiveLabel.setForeground(new Color(11, 24, 76));
+ int transmitElectricityAddRepairFiveJlx = transmitElectricityAddRepairUvhJlx + 280;
+ int transmitElectricityAddRepairFiveJly = emergencyRepairRecoveryEightJly + 120;
+ transmitElectricityAddRepairFiveLabel.setBounds(transmitElectricityAddRepairFiveJlx, transmitElectricityAddRepairFiveJly, 800, 100);
+ /**
+ * 抢修恢复-220/330kv
+ */
+ JLabel transmitElectricityAddRepairTwoLabel = new JLabel("220/330kV");
+ transmitElectricityAddRepairTwoLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ transmitElectricityAddRepairTwoLabel.setForeground(new Color(11, 24, 76));
+ int transmitElectricityAddRepairTwoJlx = transmitElectricityAddRepairFiveJlx + 200;
+ int transmitElectricityAddRepairTwoJly = emergencyRepairRecoveryEightJly + 120;
+ transmitElectricityAddRepairTwoLabel.setBounds(transmitElectricityAddRepairTwoJlx, transmitElectricityAddRepairTwoJly, 800, 100);
+
+ /**
+ * 抢修恢复-110/66kv
+ */
+ JLabel transmitElectricityAddRepairOneLabel = new JLabel("110/66kv");
+ transmitElectricityAddRepairOneLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ transmitElectricityAddRepairOneLabel.setForeground(new Color(11, 24, 76));
+ int transmitElectricityAddRepairOneJlx = transmitElectricityAddRepairTwoJlx + 270;
+ int transmitElectricityAddRepairOneJly = emergencyRepairRecoveryEightJly + 120;
+ transmitElectricityAddRepairOneLabel.setBounds(transmitElectricityAddRepairOneJlx, transmitElectricityAddRepairOneJly, 800, 100);
+
+ /**
+ * 抢修恢复-35kv
+ */
+ JLabel transmitElectricityAddRepairThreeLabel = new JLabel("35kv");
+ transmitElectricityAddRepairThreeLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ transmitElectricityAddRepairThreeLabel.setForeground(new Color(11, 24, 76));
+ int transmitElectricityAddRepairThreeJlx = transmitElectricityAddRepairOneJlx + 300;
+ int transmitElectricityAddRepairThreeJly = emergencyRepairRecoveryEightJly + 120;
+ transmitElectricityAddRepairThreeLabel.setBounds(transmitElectricityAddRepairThreeJlx, transmitElectricityAddRepairThreeJly, 800, 100);
+ /**
+ * 抢修恢复-10kv
+ */
+ JLabel transmitElectricityAddRepairTenLabel = new JLabel("10kv");
+ transmitElectricityAddRepairTenLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ transmitElectricityAddRepairTenLabel.setForeground(new Color(11, 24, 76));
+ int transmitElectricityAddRepairTenJlx = transmitElectricityAddRepairThreeJlx + 250;
+ int transmitElectricityAddRepairTenJly = emergencyRepairRecoveryEightJly + 120;
+ transmitElectricityAddRepairTenLabel.setBounds(transmitElectricityAddRepairTenJlx, transmitElectricityAddRepairTenJly, 800, 100);
+
+
+ /**
+ * 输配电线路停运及恢复-新增-抢修恢复-特高压
+ */
+ transmitElectricityAddRepairOutageUvhJt = new JTextField();
+ setTextFiledColor(transmitElectricityAddRepairOutageUvhJt);
+ int transmitElectricityRepairOutageUvhJtY = transmitElectricityAddRepairTenJly + 120;
+ transmitElectricityAddRepairOutageUvhJt.setBounds(transmitElectricityAddRepairUvhJlx, transmitElectricityRepairOutageUvhJtY, 240, 120);
+
+ /**
+ * 输配电线路停运及恢复-新增-抢修恢复-500
+ */
+ transmitElectricityAddRepairOutageFiveJt = new JTextField();
+ setTextFiledColor(transmitElectricityAddRepairOutageFiveJt);
+ int transmitElectricityRepairOutageFiveJtY = transmitElectricityAddRepairTenJly + 120;
+ transmitElectricityAddRepairOutageFiveJt.setBounds(transmitElectricityAddRepairUvhJlx + 250, transmitElectricityRepairOutageFiveJtY, 240, 120);
+
+ /**
+ * 输配电线路停运及恢复-新增-抢修恢复-300
+ */
+ transmitElectricityAddRepairOutageTwoJt = new JTextField();
+ setTextFiledColor(transmitElectricityAddRepairOutageTwoJt);
+ int transmitElectricityAddRepairOutageTwoJtY = transmitElectricityAddRepairTenJly + 120;
+ transmitElectricityAddRepairOutageTwoJt.setBounds(transmitElectricityAddRepairUvhJlx + 500, transmitElectricityAddRepairOutageTwoJtY, 240, 120);
+
+ /**
+ * 输配电线路停运及恢复-新增-抢修恢复-110
+ */
+ transmitElectricityAddRepairOutageOneJt = new JTextField();
+ setTextFiledColor(transmitElectricityAddRepairOutageOneJt);
+ int transmitElectricityAddRepairOutageOneJtY = transmitElectricityAddRepairTenJly + 120;
+ transmitElectricityAddRepairOutageOneJt.setBounds(transmitElectricityAddRepairUvhJlx + 750, transmitElectricityAddRepairOutageOneJtY, 240, 120);
+
+ /**
+ * 输配电线路停运及恢复-新增-抢修恢复-35
+ */
+ transmitElectricityAddRepairOutageThreeJt = new JTextField();
+ setTextFiledColor(transmitElectricityAddRepairOutageThreeJt);
+ int transmitElectricityAddRepairOutageThreeJtY = transmitElectricityAddRepairTenJly + 120;
+ transmitElectricityAddRepairOutageThreeJt.setBounds(transmitElectricityAddRepairUvhJlx + 1000, transmitElectricityAddRepairOutageThreeJtY, 240, 120);
+ /**
+ * 输配电线路停运及恢复-新增-抢修恢复-10
+ */
+ transmitElectricityAddRepairOutageTenJt = new JTextField();
+ setTextFiledColor(transmitElectricityAddRepairOutageTenJt);
+ int transmitElectricityAddRepairOutageTenJtY = transmitElectricityAddRepairTenJly + 120;
+ transmitElectricityAddRepairOutageTenJt.setBounds(transmitElectricityAddRepairUvhJlx + 1250, transmitElectricityAddRepairOutageTenJtY, 240, 120);
+
+ /**
+ * 尚未恢复
+ */
+ JLabel emergencyNoRepairRecoveryEightLabel = new JLabel("尚未恢复");
+ emergencyNoRepairRecoveryEightLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ emergencyNoRepairRecoveryEightLabel.setForeground(new Color(11, 24, 76));
+ int emergencyNoRepairRecoveryEightJlx = 30;
+ int emergencyNoRepairRecoveryEightJly = transmitElectricityAddRepairOutageThreeJtY + 120;
+ emergencyNoRepairRecoveryEightLabel.setBounds(emergencyNoRepairRecoveryEightJlx, emergencyNoRepairRecoveryEightJly, 800, 100);
+
+ /**
+ * 抢修恢复-特高压
+ */
+ JLabel transmitElectricityAddNoRepairUvhLabel = new JLabel("特高压");
+ transmitElectricityAddNoRepairUvhLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ transmitElectricityAddNoRepairUvhLabel.setForeground(new Color(11, 24, 76));
+ int transmitElectricityAddNoRepairUvhJlx = 30;
+ int transmitElectricityAddNoRepairUvhJly = emergencyNoRepairRecoveryEightJly + 120;
+ transmitElectricityAddNoRepairUvhLabel.setBounds(transmitElectricityAddNoRepairUvhJlx, transmitElectricityAddNoRepairUvhJly, 800, 100);
+ /**
+ * 抢修恢复-500kv
+ */
+
+ JLabel transmitElectricityAddNoRepairFiveLabel = new JLabel("500kV");
+ transmitElectricityAddNoRepairFiveLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ transmitElectricityAddNoRepairFiveLabel.setForeground(new Color(11, 24, 76));
+ int transmitElectricityAddNoRepairFiveJlx = transmitElectricityAddNoRepairUvhJlx + 280;
+ int transmitElectricityAddNoRepairFiveJly = emergencyNoRepairRecoveryEightJly + 120;
+ transmitElectricityAddNoRepairFiveLabel.setBounds(transmitElectricityAddNoRepairFiveJlx, transmitElectricityAddNoRepairFiveJly, 800, 100);
+ /**
+ * 抢修恢复-220/330kv
+ */
+ JLabel transmitElectricityAddNoRepairTwoLabel = new JLabel("220/330kV");
+ transmitElectricityAddNoRepairTwoLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ transmitElectricityAddNoRepairTwoLabel.setForeground(new Color(11, 24, 76));
+ int transmitElectricityAddNoRepairTwoJlx = transmitElectricityAddNoRepairFiveJlx + 200;
+ int transmitElectricityAddNoRepairTwoJly = emergencyNoRepairRecoveryEightJly + 120;
+ transmitElectricityAddNoRepairTwoLabel.setBounds(transmitElectricityAddNoRepairTwoJlx, transmitElectricityAddNoRepairTwoJly, 800, 100);
+
+ /**
+ * 抢修恢复-110/66kv
+ */
+ JLabel transmitElectricityAddNoRepairOneLabel = new JLabel("110/66kv");
+ transmitElectricityAddNoRepairOneLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ transmitElectricityAddNoRepairOneLabel.setForeground(new Color(11, 24, 76));
+ int transmitElectricityAddNoRepairOneJlx = transmitElectricityAddNoRepairTwoJlx + 270;
+ int transmitElectricityAddNoRepairOneJly = emergencyNoRepairRecoveryEightJly + 120;
+ transmitElectricityAddNoRepairOneLabel.setBounds(transmitElectricityAddNoRepairOneJlx, transmitElectricityAddNoRepairOneJly, 800, 100);
+
+ /**
+ * 抢修恢复-35kv
+ */
+ JLabel transmitElectricityAddNoRepairThreeLabel = new JLabel("35kv");
+ transmitElectricityAddNoRepairThreeLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ transmitElectricityAddNoRepairThreeLabel.setForeground(new Color(11, 24, 76));
+ int transmitElectricityAddNoRepairThreeJlx = transmitElectricityAddNoRepairOneJlx + 300;
+ int transmitElectricityAddNoRepairThreeJly = emergencyNoRepairRecoveryEightJly + 120;
+ transmitElectricityAddNoRepairThreeLabel.setBounds(transmitElectricityAddNoRepairThreeJlx, transmitElectricityAddNoRepairThreeJly, 800, 100);
+ /**
+ * 抢修恢复-10kv
+ */
+ JLabel transmitElectricityAddNoRepairTenLabel = new JLabel("10kv");
+ transmitElectricityAddNoRepairTenLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ transmitElectricityAddNoRepairTenLabel.setForeground(new Color(11, 24, 76));
+ int transmitElectricityAddNoRepairTenJlx = transmitElectricityAddNoRepairThreeJlx + 250;
+ int transmitElectricityAddNoRepairTenJly = emergencyNoRepairRecoveryEightJly + 120;
+ transmitElectricityAddNoRepairTenLabel.setBounds(transmitElectricityAddNoRepairTenJlx, transmitElectricityAddNoRepairTenJly, 800, 100);
+
+
+ /**
+ * 输配电线路停运及恢复-新增-抢修恢复-特高压
+ */
+ transmitElectricityAddNoRepairOutageUvhJt = new JTextField();
+ setTextFiledColor(transmitElectricityAddNoRepairOutageUvhJt);
+ int transmitElectricityNoRepairOutageUvhJtY = transmitElectricityAddNoRepairThreeJly + 120;
+ transmitElectricityAddNoRepairOutageUvhJt.setBounds(transmitElectricityAddNoRepairUvhJlx, transmitElectricityNoRepairOutageUvhJtY, 240, 120);
+
+ /**
+ * 输配电线路停运及恢复-新增-抢修恢复-500
+ */
+ transmitElectricityAddNoRepairOutageFiveJt = new JTextField();
+ setTextFiledColor(transmitElectricityAddNoRepairOutageFiveJt);
+ int transmitElectricityNoRepairOutageFiveJtY = transmitElectricityAddNoRepairThreeJly + 120;
+ transmitElectricityAddNoRepairOutageFiveJt.setBounds(transmitElectricityAddNoRepairUvhJlx + 250, transmitElectricityNoRepairOutageFiveJtY, 240, 120);
+
+ /**
+ * 输配电线路停运及恢复-新增-抢修恢复-300
+ */
+ transmitElectricityAddNoRepairOutageTwoJt = new JTextField();
+ setTextFiledColor(transmitElectricityAddNoRepairOutageTwoJt);
+ int transmitElectricityAddNoRepairOutageTwoJtY = transmitElectricityAddNoRepairThreeJly + 120;
+ transmitElectricityAddNoRepairOutageTwoJt.setBounds(transmitElectricityAddNoRepairUvhJlx + 500, transmitElectricityAddNoRepairOutageTwoJtY, 240, 120);
+
+ /**
+ * 输配电线路停运及恢复-新增-抢修恢复-110
+ */
+ transmitElectricityAddNoRepairOutageOneJt = new JTextField();
+ setTextFiledColor(transmitElectricityAddNoRepairOutageOneJt);
+ int transmitElectricityAddNoRepairOutageOneJtY = transmitElectricityAddNoRepairThreeJly + 120;
+ transmitElectricityAddNoRepairOutageOneJt.setBounds(transmitElectricityAddNoRepairUvhJlx + 750, transmitElectricityAddNoRepairOutageOneJtY, 240, 120);
+
+ /**
+ * 输配电线路停运及恢复-新增-抢修恢复-35
+ */
+ transmitElectricityAddNoRepairOutageThreeJt = new JTextField();
+ setTextFiledColor(transmitElectricityAddNoRepairOutageThreeJt);
+ int transmitElectricityAddNoRepairOutageThreeJtY = transmitElectricityAddNoRepairThreeJly + 120;
+ transmitElectricityAddNoRepairOutageThreeJt.setBounds(transmitElectricityAddNoRepairUvhJlx + 1000, transmitElectricityAddNoRepairOutageThreeJtY, 240, 120);
+ /**
+ * 输配电线路停运及恢复-新增-抢修恢复-10
+ */
+ transmitElectricityAddNoRepairOutageTenJt = new JTextField();
+ setTextFiledColor(transmitElectricityAddNoRepairOutageTenJt);
+ int transmitElectricityAddNoRepairOutageTenJtY = transmitElectricityAddNoRepairThreeJly + 120;
+ transmitElectricityAddNoRepairOutageTenJt.setBounds(transmitElectricityAddNoRepairUvhJlx + 1250, transmitElectricityAddNoRepairOutageTenJtY, 240, 120);
+
+
+ /**
+ * 附件八-输配电线路停运及恢复-累计情况
+ */
+ JLabel annexEightCumulativeLabel = new JLabel("附件八-输配电线路停运及恢复-累计情况");
+ annexEightCumulativeLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ annexEightCumulativeLabel.setForeground(new Color(11, 24, 76));
+ int annexEightCumulativeJlx = 30;
+ int annexEightCumulativeJly = transmitElectricityAddNoRepairOutageTenJtY + 150;
+ annexEightCumulativeLabel.setBounds(annexEightCumulativeJlx, annexEightCumulativeJly, 1000, 100);
+
+ /**
+ * 因灾停运
+ */
+ JLabel suspensionOfDisasterEightCumulativeLabel = new JLabel("因灾停运");
+ suspensionOfDisasterEightCumulativeLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ suspensionOfDisasterEightCumulativeLabel.setForeground(new Color(11, 24, 76));
+ int suspensionOfDisasterEightCumulativeJlx = 30;
+ int suspensionOfDisasterEightCumulativeJly = annexEightCumulativeJly + 120;
+ suspensionOfDisasterEightCumulativeLabel.setBounds(suspensionOfDisasterEightCumulativeJlx, suspensionOfDisasterEightCumulativeJly, 800, 100);
+
+ /**
+ * 因灾停运-特高压
+ */
+ JLabel uhvDisasterEightCumulativeLabel = new JLabel("特高压");
+ uhvDisasterEightCumulativeLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ uhvDisasterEightCumulativeLabel.setForeground(new Color(11, 24, 76));
+ int uhvDisasterEightCumulativeJlx = 30;
+ int uhvDisasterEightCumulativeJly = suspensionOfDisasterEightCumulativeJly + 120;
+ uhvDisasterEightCumulativeLabel.setBounds(uhvDisasterEightCumulativeJlx, uhvDisasterEightCumulativeJly, 800, 100);
+ /**
+ * 因灾停运-500kv
+ */
+ JLabel fiveKVDisasterEightCumulativeLabel = new JLabel("500kV");
+ fiveKVDisasterEightCumulativeLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ fiveKVDisasterEightCumulativeLabel.setForeground(new Color(11, 24, 76));
+ int fiveKVDisasterEightCumulativeJlx = uhvDisasterEightCumulativeJlx + 280;
+ int fiveKVDisasterEightCumulativeJly = suspensionOfDisasterEightCumulativeJly + 120;
+ fiveKVDisasterEightCumulativeLabel.setBounds(fiveKVDisasterEightCumulativeJlx, fiveKVDisasterEightCumulativeJly, 800, 100);
+
+ /**
+ * 因灾停运-220/330kv
+ */
+ JLabel twoKVDisasterEightCumulativeLabel = new JLabel("220/330kV");
+ twoKVDisasterEightCumulativeLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ twoKVDisasterEightCumulativeLabel.setForeground(new Color(11, 24, 76));
+ int twoKVDisasterEightCumulativeJlx = fiveKVDisasterEightCumulativeJlx + 200;
+ int twoKVDisasterEightCumulativeJly = suspensionOfDisasterEightCumulativeJly + 120;
+ twoKVDisasterEightCumulativeLabel.setBounds(twoKVDisasterEightCumulativeJlx, twoKVDisasterEightCumulativeJly, 800, 100);
+
+ /**
+ * 因灾停运-110/66kv
+ */
+ JLabel oneKVDisasterEightCumulativeLabel = new JLabel("110/66kv");
+ oneKVDisasterEightCumulativeLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ oneKVDisasterEightCumulativeLabel.setForeground(new Color(11, 24, 76));
+ int oneKVDisasterEightCumulativeJlx = twoKVDisasterEightCumulativeJlx + 270;
+ int oneKVDisasterEightCumulativeJly = suspensionOfDisasterEightCumulativeJly + 120;
+ oneKVDisasterEightCumulativeLabel.setBounds(oneKVDisasterEightCumulativeJlx, oneKVDisasterEightCumulativeJly, 800, 100);
+
+ /**
+ * 因灾停运-35kv
+ */
+ JLabel threeKVDisasterEightCumulativeLabel = new JLabel("35kv");
+ threeKVDisasterEightCumulativeLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ threeKVDisasterEightCumulativeLabel.setForeground(new Color(11, 24, 76));
+ int threeKVDisasterEightCumulativeJlx = oneKVDisasterEightCumulativeJlx + 300;
+ int threeKVDisasterEightCumulativeJly = suspensionOfDisasterEightCumulativeJly + 120;
+ threeKVDisasterEightCumulativeLabel.setBounds(threeKVDisasterEightCumulativeJlx, threeKVDisasterEightCumulativeJly, 800, 100);
+ /**
+ * 因灾停运-10kv
+ */
+ JLabel tenKVDisasterEightCumulativeLabel = new JLabel("10kv");
+ tenKVDisasterEightCumulativeLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ tenKVDisasterEightCumulativeLabel.setForeground(new Color(11, 24, 76));
+ int tenKVDisasterEightCumulativeJlx = threeKVDisasterEightCumulativeJlx + 250;
+ int tenKVDisasterEightCumulativeJly = suspensionOfDisasterEightCumulativeJly + 120;
+ tenKVDisasterEightCumulativeLabel.setBounds(tenKVDisasterEightCumulativeJlx, tenKVDisasterEightCumulativeJly, 800, 100);
+
+
+ /**
+ * 输配电线路停运及恢复-新增-因灾停运-特高压
+ */
+
+ transmitElectricityCumulativeOutageUvhJt = new JTextField();
+ setTextFiledColor(transmitElectricityCumulativeOutageUvhJt);
+ int transmitElectricityCumulativeOutageUvhJtY = tenKVDisasterEightCumulativeJly + 120;
+ transmitElectricityCumulativeOutageUvhJt.setBounds(annexEightCumulativeJlx, transmitElectricityCumulativeOutageUvhJtY, 240, 120);
+
+ /**
+ * 输配电线路停运及恢复-新增-因灾停运-500
+ */
+ transmitElectricityCumulativeOutageFiveJt = new JTextField();
+ setTextFiledColor(transmitElectricityCumulativeOutageFiveJt);
+ int transmitElectricityCumulativeOutageFiveJtY = tenKVDisasterEightCumulativeJly + 120;
+ transmitElectricityCumulativeOutageFiveJt.setBounds(annexEightCumulativeJlx + 250, transmitElectricityCumulativeOutageFiveJtY, 240, 120);
+
+ /**
+ * 输配电线路停运及恢复-新增-因灾停运-300
+ */
+ transmitElectricityCumulativeOutageTwoJt = new JTextField();
+ setTextFiledColor(transmitElectricityCumulativeOutageTwoJt);
+ int transmitElectricityCumulativeOutageTwoJtY = tenKVDisasterEightCumulativeJly + 120;
+ transmitElectricityCumulativeOutageTwoJt.setBounds(annexEightCumulativeJlx + 500, transmitElectricityCumulativeOutageTwoJtY, 240, 120);
+
+ /**
+ * 输配电线路停运及恢复-新增-因灾停运-110
+ */
+ transmitElectricityCumulativeOutageOneJt = new JTextField();
+ setTextFiledColor(transmitElectricityCumulativeOutageOneJt);
+ int transmitElectricityCumulativeOutageOneJtY = tenKVDisasterEightCumulativeJly + 120;
+ transmitElectricityCumulativeOutageOneJt.setBounds(annexEightCumulativeJlx + 750, transmitElectricityCumulativeOutageOneJtY, 240, 120);
+
+ /**
+ * 输配电线路停运及恢复-新增-因灾停运-35
+ */
+ transmitElectricityCumulativeOutageThreeJt = new JTextField();
+ setTextFiledColor(transmitElectricityCumulativeOutageThreeJt);
+ int transmitElectricityCumulativeOutageThreeJtY = tenKVDisasterEightCumulativeJly + 120;
+ transmitElectricityCumulativeOutageThreeJt.setBounds(annexEightCumulativeJlx + 1000, transmitElectricityCumulativeOutageThreeJtY, 240, 120);
+ /**
+ * 输配电线路停运及恢复-新增-因灾停运-10
+ */
+ transmitElectricityCumulativeOutageTenJt = new JTextField();
+ setTextFiledColor(transmitElectricityCumulativeOutageTenJt);
+ int transmitElectricityCumulativeOutageTenJtY = tenKVDisasterEightCumulativeJly + 120;
+ transmitElectricityCumulativeOutageTenJt.setBounds(annexEightCumulativeJlx + 1250, transmitElectricityCumulativeOutageTenJtY, 240, 120);
+
+ /**
+ * 抢修恢复
+ */
+ JLabel emergencyRepairRecoveryEightCumulativeLabel = new JLabel("抢修恢复");
+ emergencyRepairRecoveryEightCumulativeLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ emergencyRepairRecoveryEightCumulativeLabel.setForeground(new Color(11, 24, 76));
+ int emergencyRepairRecoveryEightCumulativeJlx = 30;
+ int emergencyRepairRecoveryEightCumulativeJly = transmitElectricityCumulativeOutageTenJtY + 120;
+ emergencyRepairRecoveryEightCumulativeLabel.setBounds(emergencyRepairRecoveryEightCumulativeJlx, emergencyRepairRecoveryEightCumulativeJly, 800, 100);
+
+ /**
+ * 抢修恢复-特高压
+ */
+ JLabel transmitElectricityCumulativeRepairUvhLabel = new JLabel("特高压");
+ transmitElectricityCumulativeRepairUvhLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ transmitElectricityCumulativeRepairUvhLabel.setForeground(new Color(11, 24, 76));
+ int transmitElectricityCumulativeRepairUvhJlx = 30;
+ int transmitElectricityCumulativeRepairUvhJly = emergencyRepairRecoveryEightCumulativeJly + 120;
+ transmitElectricityCumulativeRepairUvhLabel.setBounds(transmitElectricityCumulativeRepairUvhJlx, transmitElectricityCumulativeRepairUvhJly, 800, 100);
+ /**
+ * 抢修恢复-500kv
+ */
+
+ JLabel transmitElectricityCumulativeRepairFiveLabel = new JLabel("500kV");
+ transmitElectricityCumulativeRepairFiveLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ transmitElectricityCumulativeRepairFiveLabel.setForeground(new Color(11, 24, 76));
+ int transmitElectricityCumulativeRepairFiveJlx = transmitElectricityCumulativeRepairUvhJlx + 280;
+ int transmitElectricityCumulativeRepairFiveJly = emergencyRepairRecoveryEightCumulativeJly + 120;
+ transmitElectricityCumulativeRepairFiveLabel.setBounds(transmitElectricityCumulativeRepairFiveJlx, transmitElectricityCumulativeRepairFiveJly, 800, 100);
+ /**
+ * 抢修恢复-220/330kv
+ */
+ JLabel transmitElectricityCumulativeRepairTwoLabel = new JLabel("220/330kV");
+ transmitElectricityCumulativeRepairTwoLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ transmitElectricityCumulativeRepairTwoLabel.setForeground(new Color(11, 24, 76));
+ int transmitElectricityCumulativeRepairTwoJlx = transmitElectricityCumulativeRepairFiveJlx + 200;
+ int transmitElectricityCumulativeRepairTwoJly = emergencyRepairRecoveryEightCumulativeJly + 120;
+ transmitElectricityCumulativeRepairTwoLabel.setBounds(transmitElectricityCumulativeRepairTwoJlx, transmitElectricityCumulativeRepairTwoJly, 800, 100);
+
+ /**
+ * 抢修恢复-110/66kv
+ */
+ JLabel transmitElectricityCumulativeRepairOneLabel = new JLabel("110/66kv");
+ transmitElectricityCumulativeRepairOneLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ transmitElectricityCumulativeRepairOneLabel.setForeground(new Color(11, 24, 76));
+ int transmitElectricityCumulativeRepairOneJlx = transmitElectricityCumulativeRepairTwoJlx + 270;
+ int transmitElectricityCumulativeRepairOneJly = emergencyRepairRecoveryEightCumulativeJly + 120;
+ transmitElectricityCumulativeRepairOneLabel.setBounds(transmitElectricityCumulativeRepairOneJlx, transmitElectricityCumulativeRepairOneJly, 800, 100);
+
+ /**
+ * 抢修恢复-35kv
+ */
+ JLabel transmitElectricityCumulativeRepairThreeLabel = new JLabel("35kv");
+ transmitElectricityCumulativeRepairThreeLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ transmitElectricityCumulativeRepairThreeLabel.setForeground(new Color(11, 24, 76));
+ int transmitElectricityCumulativeRepairThreeJlx = transmitElectricityCumulativeRepairOneJlx + 300;
+ int transmitElectricityCumulativeRepairThreeJly = emergencyRepairRecoveryEightCumulativeJly + 120;
+ transmitElectricityCumulativeRepairThreeLabel.setBounds(transmitElectricityCumulativeRepairThreeJlx, transmitElectricityCumulativeRepairThreeJly, 800, 100);
+ /**
+ * 抢修恢复-10kv
+ */
+ JLabel transmitElectricityCumulativeRepairTenLabel = new JLabel("10kv");
+ transmitElectricityCumulativeRepairTenLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ transmitElectricityCumulativeRepairTenLabel.setForeground(new Color(11, 24, 76));
+ int transmitElectricityCumulativeRepairTenJlx = transmitElectricityCumulativeRepairThreeJlx + 250;
+ int transmitElectricityCumulativeRepairTenJly = emergencyRepairRecoveryEightCumulativeJly + 120;
+ transmitElectricityCumulativeRepairTenLabel.setBounds(transmitElectricityCumulativeRepairTenJlx, transmitElectricityCumulativeRepairTenJly, 800, 100);
+
+
+ /**
+ * 输配电线路停运及恢复-新增-抢修恢复-特高压
+ */
+ transmitElectricityCumulativeRepairOutageUvhJt = new JTextField();
+ setTextFiledColor(transmitElectricityCumulativeRepairOutageUvhJt);
+ int transmitElectricityCumulativeRepairOutageUvhJtY = transmitElectricityCumulativeRepairTenJly + 120;
+ transmitElectricityCumulativeRepairOutageUvhJt.setBounds(transmitElectricityAddRepairUvhJlx, transmitElectricityCumulativeRepairOutageUvhJtY, 240, 120);
+
+ /**
+ * 输配电线路停运及恢复-新增-抢修恢复-500
+ */
+ transmitElectricityCumulativeRepairOutageFiveJt = new JTextField();
+ setTextFiledColor(transmitElectricityCumulativeRepairOutageFiveJt);
+ int transmitElectricityCumulativeRepairOutageFiveJtY = transmitElectricityCumulativeRepairTenJly + 120;
+ transmitElectricityCumulativeRepairOutageFiveJt.setBounds(transmitElectricityCumulativeRepairUvhJlx + 250, transmitElectricityCumulativeRepairOutageFiveJtY, 240, 120);
+
+ /**
+ * 输配电线路停运及恢复-新增-抢修恢复-300
+ */
+ transmitElectricityCumulativeRepairOutageTwoJt = new JTextField();
+ setTextFiledColor(transmitElectricityCumulativeRepairOutageTwoJt);
+ int transmitElectricityCumulativeRepairOutageTwoJtY = transmitElectricityCumulativeRepairTenJly + 120;
+ transmitElectricityCumulativeRepairOutageTwoJt.setBounds(transmitElectricityCumulativeRepairUvhJlx + 500, transmitElectricityCumulativeRepairOutageTwoJtY, 240, 120);
+
+ /**
+ * 输配电线路停运及恢复-新增-抢修恢复-110
+ */
+ transmitElectricityCumulativeRepairOutageOneJt = new JTextField();
+ setTextFiledColor(transmitElectricityCumulativeRepairOutageOneJt);
+ int transmitElectricityCumulativeRepairOutageOneJtY = transmitElectricityCumulativeRepairTenJly + 120;
+ transmitElectricityCumulativeRepairOutageOneJt.setBounds(transmitElectricityCumulativeRepairUvhJlx + 750, transmitElectricityCumulativeRepairOutageOneJtY, 240, 120);
+
+ /**
+ * 输配电线路停运及恢复-新增-抢修恢复-35
+ */
+ transmitElectricityCumulativeRepairOutageThreeJt = new JTextField();
+ setTextFiledColor(transmitElectricityCumulativeRepairOutageThreeJt);
+ int transmitElectricityCumulativeRepairOutageThreeJtY = transmitElectricityCumulativeRepairTenJly + 120;
+ transmitElectricityCumulativeRepairOutageThreeJt.setBounds(transmitElectricityCumulativeRepairUvhJlx + 1000, transmitElectricityCumulativeRepairOutageThreeJtY, 240, 120);
+ /**
+ * 输配电线路停运及恢复-新增-抢修恢复-10
+ */
+ transmitElectricityCumulativeRepairOutageTenJt = new JTextField();
+ setTextFiledColor(transmitElectricityCumulativeRepairOutageTenJt);
+ int transmitElectricityCumulativeRepairOutageTenJtY = transmitElectricityCumulativeRepairTenJly + 120;
+ transmitElectricityCumulativeRepairOutageTenJt.setBounds(transmitElectricityCumulativeRepairUvhJlx + 1250, transmitElectricityCumulativeRepairOutageTenJtY, 240, 120);
+
+ /**
+ * 尚未恢复
+ */
+ JLabel emergencyEightCumulativeNoRepairRecoveryLabel = new JLabel("尚未恢复");
+ emergencyEightCumulativeNoRepairRecoveryLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ emergencyEightCumulativeNoRepairRecoveryLabel.setForeground(new Color(11, 24, 76));
+ int emergencyEightCumulativeNoRepairRecoveryJlx = 30;
+ int emergencyEightCumulativeNoRepairRecoveryJly = transmitElectricityCumulativeRepairOutageTenJtY + 120;
+ emergencyEightCumulativeNoRepairRecoveryLabel.setBounds(emergencyEightCumulativeNoRepairRecoveryJlx, emergencyEightCumulativeNoRepairRecoveryJly, 800, 100);
+
+ /**
+ * 抢修恢复-特高压
+ */
+ JLabel transmitElectricityCumulativeNoRepairUvhLabel = new JLabel("特高压");
+ transmitElectricityCumulativeNoRepairUvhLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ transmitElectricityCumulativeNoRepairUvhLabel.setForeground(new Color(11, 24, 76));
+ int transmitElectricityCumulativeNoRepairUvhJlx = 30;
+ int transmitElectricityCumulativeNoRepairUvhJly = emergencyEightCumulativeNoRepairRecoveryJly + 120;
+ transmitElectricityCumulativeNoRepairUvhLabel.setBounds(transmitElectricityCumulativeNoRepairUvhJlx, transmitElectricityCumulativeNoRepairUvhJly, 800, 100);
+ /**
+ * 抢修恢复-500kv
+ */
+
+ JLabel transmitElectricityCumulativeNoRepairFiveLabel = new JLabel("500kV");
+ transmitElectricityCumulativeNoRepairFiveLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ transmitElectricityCumulativeNoRepairFiveLabel.setForeground(new Color(11, 24, 76));
+ int transmitElectricityCumulativeNoRepairFiveJlx = transmitElectricityCumulativeNoRepairUvhJlx + 280;
+ int transmitElectricityCumulativeNoRepairFiveJly = emergencyEightCumulativeNoRepairRecoveryJly + 120;
+ transmitElectricityCumulativeNoRepairFiveLabel.setBounds(transmitElectricityCumulativeNoRepairFiveJlx, transmitElectricityCumulativeNoRepairFiveJly, 800, 100);
+ /**
+ * 抢修恢复-220/330kv
+ */
+ JLabel transmitElectricityCumulativeNoRepairTwoLabel = new JLabel("220/330kV");
+ transmitElectricityCumulativeNoRepairTwoLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ transmitElectricityCumulativeNoRepairTwoLabel.setForeground(new Color(11, 24, 76));
+ int transmitElectricityCumulativeNoRepairTwoJlx = transmitElectricityCumulativeNoRepairFiveJlx + 200;
+ int transmitElectricityCumulativeNoRepairTwoJly = emergencyEightCumulativeNoRepairRecoveryJly + 120;
+ transmitElectricityCumulativeNoRepairTwoLabel.setBounds(transmitElectricityCumulativeNoRepairTwoJlx, transmitElectricityCumulativeNoRepairTwoJly, 800, 100);
+
+ /**
+ * 抢修恢复-110/66kv
+ */
+ JLabel transmitElectricityCumulativeNoRepairOneLabel = new JLabel("110/66kv");
+ transmitElectricityCumulativeNoRepairOneLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ transmitElectricityCumulativeNoRepairOneLabel.setForeground(new Color(11, 24, 76));
+ int transmitElectricityCumulativeNoRepairOneJlx = transmitElectricityCumulativeNoRepairTwoJlx + 270;
+ int transmitElectricityCumulativeNoRepairOneJly = emergencyEightCumulativeNoRepairRecoveryJly + 120;
+ transmitElectricityCumulativeNoRepairOneLabel.setBounds(transmitElectricityCumulativeNoRepairOneJlx, transmitElectricityCumulativeNoRepairOneJly, 800, 100);
+
+ /**
+ * 抢修恢复-35kv
+ */
+ JLabel transmitElectricityCumulativeNoRepairThreeLabel = new JLabel("35kv");
+ transmitElectricityCumulativeNoRepairThreeLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ transmitElectricityCumulativeNoRepairThreeLabel.setForeground(new Color(11, 24, 76));
+ int transmitElectricityCumulativeNoRepairThreeJlx = transmitElectricityCumulativeNoRepairOneJlx + 300;
+ int transmitElectricityCumulativeNoRepairThreeJly = emergencyEightCumulativeNoRepairRecoveryJly + 120;
+ transmitElectricityCumulativeNoRepairThreeLabel.setBounds(transmitElectricityCumulativeNoRepairThreeJlx, transmitElectricityCumulativeNoRepairThreeJly, 800, 100);
+ /**
+ * 抢修恢复-10kv
+ */
+ JLabel transmitElectricityCumulativeNoRepairTenLabel = new JLabel("10kv");
+ transmitElectricityCumulativeNoRepairTenLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ transmitElectricityCumulativeNoRepairTenLabel.setForeground(new Color(11, 24, 76));
+ int transmitElectricityCumulativeNoRepairTenJlx = transmitElectricityCumulativeNoRepairThreeJlx + 250;
+ int transmitElectricityCumulativeNoRepairTenJly = emergencyEightCumulativeNoRepairRecoveryJly + 120;
+ transmitElectricityCumulativeNoRepairTenLabel.setBounds(transmitElectricityCumulativeNoRepairTenJlx, transmitElectricityCumulativeNoRepairTenJly, 800, 100);
+
+
+ /**
+ * 输配电线路停运及恢复-累计-尚未恢复-特高压
+ */
+ transmitElectricityCumulativeNoRepairOutageUvhJt = new JTextField();
+ setTextFiledColor(transmitElectricityCumulativeNoRepairOutageUvhJt);
+ int transmitElectricityCumulativeNoRepairOutageUvhJtY = transmitElectricityCumulativeNoRepairTenJly + 120;
+ transmitElectricityCumulativeNoRepairOutageUvhJt.setBounds(transmitElectricityCumulativeNoRepairUvhJlx, transmitElectricityCumulativeNoRepairOutageUvhJtY, 240, 120);
+
+ /**
+ * 输配电线路停运及恢复-累计-尚未恢复-500
+ */
+ transmitElectricityCumulativeNoRepairOutageFiveJt = new JTextField();
+ setTextFiledColor(transmitElectricityCumulativeNoRepairOutageFiveJt);
+ int transmitElectricityCumulativeNoRepairOutageFiveJtY = transmitElectricityCumulativeNoRepairTenJly + 120;
+ transmitElectricityCumulativeNoRepairOutageFiveJt.setBounds(transmitElectricityCumulativeNoRepairUvhJlx + 250, transmitElectricityCumulativeNoRepairOutageFiveJtY, 240, 120);
+
+ /**
+ * 输配电线路停运及恢复-累计-尚未恢复-300
+ */
+ transmitElectricityCumulativeNoRepairOutageTwoJt = new JTextField();
+ setTextFiledColor(transmitElectricityCumulativeNoRepairOutageTwoJt);
+ int transmitElectricityCumulativeNoRepairOutageTwoJtY = transmitElectricityCumulativeNoRepairTenJly + 120;
+ transmitElectricityCumulativeNoRepairOutageTwoJt.setBounds(transmitElectricityCumulativeNoRepairUvhJlx + 500, transmitElectricityCumulativeNoRepairOutageTwoJtY, 240, 120);
+
+ /**
+ * 输配电线路停运及恢复-累计-尚未恢复-110
+ */
+ transmitElectricityCumulativeNoRepairOutageOneJt = new JTextField();
+ setTextFiledColor(transmitElectricityCumulativeNoRepairOutageOneJt);
+ int transmitElectricityCumulativeNoRepairOutageOneJtY = transmitElectricityCumulativeNoRepairTenJly + 120;
+ transmitElectricityCumulativeNoRepairOutageOneJt.setBounds(transmitElectricityCumulativeNoRepairUvhJlx + 750, transmitElectricityCumulativeNoRepairOutageOneJtY, 240, 120);
+
+ /**
+ * 输配电线路停运及恢复-累计-尚未恢复-35
+ */
+ transmitElectricityCumulativeNoRepairOutageThreeJt = new JTextField();
+ setTextFiledColor(transmitElectricityCumulativeNoRepairOutageThreeJt);
+ int transmitElectricityCumulativeNoRepairOutageThreeJtY = transmitElectricityCumulativeNoRepairTenJly + 120;
+ transmitElectricityCumulativeNoRepairOutageThreeJt.setBounds(transmitElectricityCumulativeNoRepairUvhJlx + 1000, transmitElectricityCumulativeNoRepairOutageThreeJtY, 240, 120);
+ /**
+ * 输配电线路停运及恢复-累计-尚未恢复-10
+ */
+ transmitElectricityCumulativeNoRepairOutageTenJt = new JTextField();
+ setTextFiledColor(transmitElectricityCumulativeNoRepairOutageTenJt);
+ int transmitElectricityCumulativeNoRepairOutageTenJtY = transmitElectricityCumulativeNoRepairTenJly + 120;
+ transmitElectricityCumulativeNoRepairOutageTenJt.setBounds(transmitElectricityCumulativeNoRepairUvhJlx + 1250, transmitElectricityCumulativeNoRepairOutageTenJtY, 240, 120);
+
+
+ /**-----------------------------------------------------------------------附件九------------------------------------------------------------------------------------*/
+ /**
+ * 附件九-台区、用户停运及恢复-新增情况
+ */
+ JLabel annexNineAddLabel = new JLabel("附件九-台区、用户停运及恢复-新增情况");
+ annexNineAddLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ annexNineAddLabel.setForeground(new Color(11, 24, 76));
+ int annexNineAddJlx = 30;
+ int annexNineAddJly = transmitElectricityCumulativeNoRepairOutageTenJtY + 150;
+ annexNineAddLabel.setBounds(annexNineAddJlx, annexNineAddJly, 1000, 100);
+
+ /**
+ * 因灾停运
+ */
+ JLabel suspensionOfDisasterAddNineLabel = new JLabel("因灾停运");
+ suspensionOfDisasterAddNineLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ suspensionOfDisasterAddNineLabel.setForeground(new Color(11, 24, 76));
+ int suspensionOfDisasterAddNineJlx = 30;
+ int suspensionOfDisasterAddNineJly = annexNineAddJly + 120;
+ suspensionOfDisasterAddNineLabel.setBounds(suspensionOfDisasterAddNineJlx, suspensionOfDisasterAddNineJly, 800, 100);
+
+ /**
+ * 因灾停运-台区
+ */
+ JLabel taiDistrictAddNineDisasterLabel = new JLabel("台区");
+ taiDistrictAddNineDisasterLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ taiDistrictAddNineDisasterLabel.setForeground(new Color(11, 24, 76));
+ int taiDistrictAddNineDisasterJlx = 30;
+ int taiDistrictAddNineDisasterJly = suspensionOfDisasterAddNineJly + 120;
+ taiDistrictAddNineDisasterLabel.setBounds(taiDistrictAddNineDisasterJlx, taiDistrictAddNineDisasterJly, 800, 100);
+ /**
+ * 因灾停运-用户
+ */
+ JLabel personnelAddNineDisasterLabel = new JLabel("用户");
+ personnelAddNineDisasterLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ personnelAddNineDisasterLabel.setForeground(new Color(11, 24, 76));
+ int personnelAddNineDisasterJlx = taiDistrictAddNineDisasterJlx + 280;
+ int personnelAddNineDisasterJly = suspensionOfDisasterAddNineJly + 120;
+ personnelAddNineDisasterLabel.setBounds(personnelAddNineDisasterJlx, personnelAddNineDisasterJly, 800, 100);
+
+ /**
+ * 因灾停运-台区
+ */
+ nineAddTaiDistrictDisasterJt = new JTextField();
+ setTextFiledColor(nineAddTaiDistrictDisasterJt);
+ int nineAddTaiDistrictDisasterJtY = personnelAddNineDisasterJly + 120;
+ nineAddTaiDistrictDisasterJt.setBounds(taiDistrictAddNineDisasterJlx, nineAddTaiDistrictDisasterJtY, 240, 120);
+
+ /**
+ * 因灾停运-用户
+ */
+ nineAddPersonnelDisasterJt = new JTextField();
+ setTextFiledColor(nineAddPersonnelDisasterJt);
+ int nineAddPersonnelDisasterJtY = personnelAddNineDisasterJly + 120;
+ nineAddPersonnelDisasterJt.setBounds(taiDistrictAddNineDisasterJlx + 250, nineAddPersonnelDisasterJtY, 240, 120);
+
+ /**
+ * 抢修恢复
+ */
+ JLabel repairAddNineLabel = new JLabel("抢修恢复");
+ repairAddNineLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ repairAddNineLabel.setForeground(new Color(11, 24, 76));
+ int repairAddNineJlx = 30;
+ int repairAddNineJly = nineAddPersonnelDisasterJtY + 120;
+ repairAddNineLabel.setBounds(repairAddNineJlx, repairAddNineJly, 800, 100);
+
+ /**
+ * 抢修恢复-台区
+ */
+ JLabel taiDistrictAddNineRepairLabel = new JLabel("台区");
+ taiDistrictAddNineRepairLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ taiDistrictAddNineRepairLabel.setForeground(new Color(11, 24, 76));
+ int taiDistrictAddNineRepairJlx = 30;
+ int taiDistrictAddNineRepairJly = repairAddNineJly + 120;
+ taiDistrictAddNineRepairLabel.setBounds(taiDistrictAddNineRepairJlx, taiDistrictAddNineRepairJly, 800, 100);
+ /**
+ * 抢修恢复-用户
+ */
+ JLabel personnelAddNineRepairLabel = new JLabel("用户");
+ personnelAddNineRepairLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ personnelAddNineRepairLabel.setForeground(new Color(11, 24, 76));
+ int personnelAddNineRepairJlx = taiDistrictAddNineRepairJlx + 280;
+ int personnelAddNineRepairJly = repairAddNineJly + 120;
+ personnelAddNineRepairLabel.setBounds(personnelAddNineRepairJlx, personnelAddNineRepairJly, 800, 100);
+
+ /**
+ * 抢修恢复-台区
+ */
+ nineAddTaiDistrictRepairJt = new JTextField();
+ setTextFiledColor(nineAddTaiDistrictRepairJt);
+ int nineAddTaiDistrictRepairJtY = personnelAddNineRepairJly + 120;
+ nineAddTaiDistrictRepairJt.setBounds(taiDistrictAddNineRepairJlx, nineAddTaiDistrictRepairJtY, 240, 120);
+
+ /**
+ * 抢修恢复-用户
+ */
+ nineAddPersonnelRepairJt = new JTextField();
+ setTextFiledColor(nineAddPersonnelRepairJt);
+ int nineAddPersonnelRepairJtY = personnelAddNineRepairJly + 120;
+ nineAddPersonnelRepairJt.setBounds(taiDistrictAddNineRepairJlx + 250, nineAddPersonnelRepairJtY, 240, 120);
+ /**
+ * 尚未恢复
+ */
+ JLabel noRepairAddNineLabel = new JLabel("尚未恢复");
+ noRepairAddNineLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ noRepairAddNineLabel.setForeground(new Color(11, 24, 76));
+ int noRepairAddNineJlx = 30;
+ int noRepairAddNineJly = nineAddPersonnelRepairJtY + 120;
+ noRepairAddNineLabel.setBounds(noRepairAddNineJlx, noRepairAddNineJly, 800, 100);
+
+ /**
+ * 抢修恢复-台区
+ */
+ JLabel taiDistrictAddNineNoRepairLabel = new JLabel("台区");
+ taiDistrictAddNineNoRepairLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ taiDistrictAddNineNoRepairLabel.setForeground(new Color(11, 24, 76));
+ int taiDistrictAddNineNoRepairJlx = 30;
+ int taiDistrictAddNineNoRepairJly = noRepairAddNineJly + 120;
+ taiDistrictAddNineNoRepairLabel.setBounds(taiDistrictAddNineNoRepairJlx, taiDistrictAddNineNoRepairJly, 800, 100);
+ /**
+ * 抢修恢复-用户
+ */
+ JLabel personnelAddNineNoRepairLabel = new JLabel("用户");
+ personnelAddNineNoRepairLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ personnelAddNineNoRepairLabel.setForeground(new Color(11, 24, 76));
+ int personnelAddNineNoRepairJlx = taiDistrictAddNineNoRepairJlx + 280;
+ int personnelAddNineNoRepairJly = noRepairAddNineJly + 120;
+ personnelAddNineNoRepairLabel.setBounds(personnelAddNineNoRepairJlx, personnelAddNineNoRepairJly, 800, 100);
+
+ /**
+ * 抢修恢复-台区
+ */
+ nineAddTaiDistrictNoRepairJt = new JTextField();
+ setTextFiledColor(nineAddTaiDistrictNoRepairJt);
+ int nineAddTaiDistrictNoRepairJtY = personnelAddNineNoRepairJly + 120;
+ nineAddTaiDistrictNoRepairJt.setBounds(taiDistrictAddNineNoRepairJlx, nineAddTaiDistrictNoRepairJtY, 240, 120);
+
+ /**
+ * 抢修恢复-用户
+ */
+ nineAddPersonnelNoRepairJt = new JTextField();
+ setTextFiledColor(nineAddPersonnelNoRepairJt);
+ int nineAddPersonnelNoRepairJtY = personnelAddNineNoRepairJly + 120;
+ nineAddPersonnelNoRepairJt.setBounds(taiDistrictAddNineNoRepairJlx + 250, nineAddPersonnelNoRepairJtY, 240, 120);
+ /**
+ * 出动抢修力量
+ */
+ JLabel powerAddNineLabel = new JLabel("出动抢修力量");
+ powerAddNineLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ powerAddNineLabel.setForeground(new Color(11, 24, 76));
+ int powerAddNineJlx = 30;
+ int powerAddNineJly = nineAddPersonnelNoRepairJtY + 120;
+ powerAddNineLabel.setBounds(powerAddNineJlx, powerAddNineJly, 800, 100);
+
+ /**
+ * 出动抢修力量-人员
+ */
+ JLabel powerPersonnelAddNineLabel = new JLabel("人员");
+ powerPersonnelAddNineLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ powerPersonnelAddNineLabel.setForeground(new Color(11, 24, 76));
+ int powerPersonnelAddNineJlx = 30;
+ int powerPersonnelAddNineJly = powerAddNineJly + 120;
+ powerPersonnelAddNineLabel.setBounds(powerPersonnelAddNineJlx, powerPersonnelAddNineJly, 800, 100);
+ /**
+ * 出动抢修力量-车辆
+ */
+ JLabel powerVehicleAddNineLabel = new JLabel("车辆");
+ powerVehicleAddNineLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ powerVehicleAddNineLabel.setForeground(new Color(11, 24, 76));
+ int powerVehicleAddNineJlx = powerPersonnelAddNineJlx + 280;
+ int powerVehicleAddNineJly = powerAddNineJly + 120;
+ powerVehicleAddNineLabel.setBounds(powerVehicleAddNineJlx, powerVehicleAddNineJly, 800, 100);
+
+ /**
+ * 出动抢修力量-人员
+ */
+ powerPersonnelAddNineJt = new JTextField();
+ setTextFiledColor(powerPersonnelAddNineJt);
+ int powerPersonnelAddNineJtY = powerVehicleAddNineJly + 120;
+ powerPersonnelAddNineJt.setBounds(powerPersonnelAddNineJlx, powerPersonnelAddNineJtY, 240, 120);
+
+ /**
+ * 出动抢修力量-车辆
+ */
+ powerVehicleAddNineJt = new JTextField();
+ setTextFiledColor(powerVehicleAddNineJt);
+ int powerVehicleAddNineJtY = powerVehicleAddNineJly + 120;
+ powerVehicleAddNineJt.setBounds(powerPersonnelAddNineJlx + 250, powerVehicleAddNineJtY, 240, 120);
+
+ /**
+ * 附件九-台区、用户停运及恢复-累计情况
+ */
+ JLabel annexNineCumulativeLabel = new JLabel("附件九-台区、用户停运及恢复-累计情况");
+ annexNineCumulativeLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ annexNineCumulativeLabel.setForeground(new Color(11, 24, 76));
+ int annexNineCumulativeJlx = 30;
+ int annexNineCumulativeJly = powerVehicleAddNineJtY + 150;
+ annexNineCumulativeLabel.setBounds(annexNineCumulativeJlx, annexNineCumulativeJly, 1000, 100);
+
+ /**
+ * 因灾停运
+ */
+ JLabel suspensionOfDisasterCumulativeNineLabel = new JLabel("因灾停运");
+ suspensionOfDisasterCumulativeNineLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ suspensionOfDisasterCumulativeNineLabel.setForeground(new Color(11, 24, 76));
+ int suspensionOfDisasterCumulativeNineJlx = 30;
+ int suspensionOfDisasterCumulativeNineJly = annexNineCumulativeJly + 120;
+ suspensionOfDisasterCumulativeNineLabel.setBounds(suspensionOfDisasterCumulativeNineJlx, suspensionOfDisasterCumulativeNineJly, 800, 100);
+
+ /**
+ * 因灾停运-台区
+ */
+ JLabel taiDistrictCumulativeNineDisasterLabel = new JLabel("台区");
+ taiDistrictCumulativeNineDisasterLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ taiDistrictCumulativeNineDisasterLabel.setForeground(new Color(11, 24, 76));
+ int taiDistrictCumulativeNineDisasterJlx = 30;
+ int taiDistrictCumulativeNineDisasterJly = suspensionOfDisasterCumulativeNineJly + 120;
+ taiDistrictCumulativeNineDisasterLabel.setBounds(taiDistrictCumulativeNineDisasterJlx, taiDistrictCumulativeNineDisasterJly, 800, 100);
+ /**
+ * 因灾停运-用户
+ */
+ JLabel personnelCumulativeNineDisasterLabel = new JLabel("用户");
+ personnelCumulativeNineDisasterLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ personnelCumulativeNineDisasterLabel.setForeground(new Color(11, 24, 76));
+ int personnelCumulativeNineDisasterJlx = taiDistrictCumulativeNineDisasterJlx + 280;
+ int personnelCumulativeNineDisasterJly = suspensionOfDisasterCumulativeNineJly + 120;
+ personnelCumulativeNineDisasterLabel.setBounds(personnelCumulativeNineDisasterJlx, personnelCumulativeNineDisasterJly, 800, 100);
+
+ /**
+ * 因灾停运-台区
+ */
+ nineCumulativeTaiDistrictDisasterJt = new JTextField();
+ setTextFiledColor(nineCumulativeTaiDistrictDisasterJt);
+ int nineCumulativeTaiDistrictDisasterJtY = personnelCumulativeNineDisasterJly + 120;
+ nineCumulativeTaiDistrictDisasterJt.setBounds(taiDistrictCumulativeNineDisasterJlx, nineCumulativeTaiDistrictDisasterJtY, 240, 120);
+
+ /**
+ * 因灾停运-用户
+ */
+ nineCumulativePersonnelDisasterJt = new JTextField();
+ setTextFiledColor(nineCumulativePersonnelDisasterJt);
+ int nineCumulativePersonnelDisasterJtY = personnelCumulativeNineDisasterJly + 120;
+ nineCumulativePersonnelDisasterJt.setBounds(taiDistrictCumulativeNineDisasterJlx + 250, nineCumulativePersonnelDisasterJtY, 240, 120);
+
+ /**
+ * 抢修恢复
+ */
+ JLabel repairCumulativeNineLabel = new JLabel("抢修恢复");
+ repairCumulativeNineLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ repairCumulativeNineLabel.setForeground(new Color(11, 24, 76));
+ int repairCumulativeNineJlx = 30;
+ int repairCumulativeNineJly = nineCumulativePersonnelDisasterJtY + 120;
+ repairCumulativeNineLabel.setBounds(repairCumulativeNineJlx, repairCumulativeNineJly, 800, 100);
+
+ /**
+ * 抢修恢复-台区
+ */
+ JLabel taiDistrictCumulativeNineRepairLabel = new JLabel("台区");
+ taiDistrictCumulativeNineRepairLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ taiDistrictCumulativeNineRepairLabel.setForeground(new Color(11, 24, 76));
+ int taiDistrictCumulativeNineRepairJlx = 30;
+ int taiDistrictCumulativeNineRepairJly = repairCumulativeNineJly + 120;
+ taiDistrictCumulativeNineRepairLabel.setBounds(taiDistrictCumulativeNineRepairJlx, taiDistrictCumulativeNineRepairJly, 800, 100);
+ /**
+ * 抢修恢复-用户
+ */
+ JLabel personnelCumulativeNineRepairLabel = new JLabel("用户");
+ personnelCumulativeNineRepairLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ personnelCumulativeNineRepairLabel.setForeground(new Color(11, 24, 76));
+ int personnelCumulativeNineRepairJlx = taiDistrictCumulativeNineRepairJlx + 280;
+ int personnelCumulativeNineRepairJly = repairCumulativeNineJly + 120;
+ personnelCumulativeNineRepairLabel.setBounds(personnelCumulativeNineRepairJlx, personnelCumulativeNineRepairJly, 800, 100);
+
+ /**
+ * 抢修恢复-台区
+ */
+ nineCumulativeTaiDistrictRepairJt = new JTextField();
+ setTextFiledColor(nineCumulativeTaiDistrictRepairJt);
+ int nineCumulativeTaiDistrictRepairJtY = personnelCumulativeNineRepairJly + 120;
+ nineCumulativeTaiDistrictRepairJt.setBounds(taiDistrictCumulativeNineRepairJlx, nineCumulativeTaiDistrictRepairJtY, 240, 120);
+
+ /**
+ * 抢修恢复-用户
+ */
+ nineCumulativePersonnelRepairJt = new JTextField();
+ setTextFiledColor(nineCumulativePersonnelRepairJt);
+ int nineCumulativePersonnelRepairJtY = personnelCumulativeNineRepairJly + 120;
+ nineCumulativePersonnelRepairJt.setBounds(taiDistrictCumulativeNineRepairJlx + 250, nineCumulativePersonnelRepairJtY, 240, 120);
+ /**
+ * 尚未恢复
+ */
+ JLabel noRepairCumulativeNineLabel = new JLabel("尚未恢复");
+ noRepairCumulativeNineLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ noRepairCumulativeNineLabel.setForeground(new Color(11, 24, 76));
+ int noRepairCumulativeNineJlx = 30;
+ int noRepairCumulativeNineJly = nineCumulativePersonnelRepairJtY + 120;
+ noRepairCumulativeNineLabel.setBounds(noRepairCumulativeNineJlx, noRepairCumulativeNineJly, 800, 100);
+
+ /**
+ * 抢修恢复-台区
+ */
+ JLabel taiDistrictCumulativeNineNoRepairLabel = new JLabel("台区");
+ taiDistrictCumulativeNineNoRepairLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ taiDistrictCumulativeNineNoRepairLabel.setForeground(new Color(11, 24, 76));
+ int taiDistrictCumulativeNineNoRepairJlx = 30;
+ int taiDistrictCumulativeNineNoRepairJly = noRepairCumulativeNineJly + 120;
+ taiDistrictCumulativeNineNoRepairLabel.setBounds(taiDistrictCumulativeNineNoRepairJlx, taiDistrictCumulativeNineNoRepairJly, 800, 100);
+ /**
+ * 抢修恢复-用户
+ */
+ JLabel personnelCumulativeNineNoRepairLabel = new JLabel("用户");
+ personnelCumulativeNineNoRepairLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ personnelCumulativeNineNoRepairLabel.setForeground(new Color(11, 24, 76));
+ int personnelCumulativeNineNoRepairJlx = taiDistrictCumulativeNineNoRepairJlx + 280;
+ int personnelCumulativeNineNoRepairJly = noRepairCumulativeNineJly + 120;
+ personnelCumulativeNineNoRepairLabel.setBounds(personnelCumulativeNineNoRepairJlx, personnelCumulativeNineNoRepairJly, 800, 100);
+
+ /**
+ * 抢修恢复-台区
+ */
+ nineCumulativeTaiDistrictNoRepairJt = new JTextField();
+ setTextFiledColor(nineCumulativeTaiDistrictNoRepairJt);
+ int nineCumulativeTaiDistrictNoRepairJtY = personnelCumulativeNineNoRepairJly + 120;
+ nineCumulativeTaiDistrictNoRepairJt.setBounds(taiDistrictCumulativeNineNoRepairJlx, nineCumulativeTaiDistrictNoRepairJtY, 240, 120);
+
+ /**
+ * 抢修恢复-用户
+ */
+ nineCumulativePersonnelNoRepairJt = new JTextField();
+ setTextFiledColor(nineCumulativePersonnelNoRepairJt);
+ int nineCumulativePersonnelNoRepairJtY = personnelCumulativeNineNoRepairJly + 120;
+ nineCumulativePersonnelNoRepairJt.setBounds(taiDistrictCumulativeNineNoRepairJlx + 250, nineCumulativePersonnelNoRepairJtY, 240, 120);
+ /**
+ * 出动抢修力量
+ */
+ JLabel powerCumulativeNineLabel = new JLabel("出动抢修力量");
+ powerCumulativeNineLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ powerCumulativeNineLabel.setForeground(new Color(11, 24, 76));
+ int powerCumulativeNineJlx = 30;
+ int powerCumulativeNineJly = nineCumulativePersonnelNoRepairJtY + 120;
+ powerCumulativeNineLabel.setBounds(powerCumulativeNineJlx, powerCumulativeNineJly, 800, 100);
+
+ /**
+ * 出动抢修力量-人员
+ */
+ JLabel powerPersonnelCumulativeNineLabel = new JLabel("人员");
+ powerPersonnelCumulativeNineLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ powerPersonnelCumulativeNineLabel.setForeground(new Color(11, 24, 76));
+ int powerPersonnelCumulativeNineJlx = 30;
+ int powerPersonnelCumulativeNineJly = powerCumulativeNineJly + 120;
+ powerPersonnelCumulativeNineLabel.setBounds(powerPersonnelCumulativeNineJlx, powerPersonnelCumulativeNineJly, 800, 100);
+ /**
+ * 出动抢修力量-车辆
+ */
+ JLabel powerVehicleCumulativeNineLabel = new JLabel("车辆");
+ powerVehicleCumulativeNineLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ powerVehicleCumulativeNineLabel.setForeground(new Color(11, 24, 76));
+ int powerVehicleCumulativeNineJlx = powerPersonnelCumulativeNineJlx + 280;
+ int powerVehicleCumulativeNineJly = powerCumulativeNineJly + 120;
+ powerVehicleCumulativeNineLabel.setBounds(powerVehicleCumulativeNineJlx, powerVehicleCumulativeNineJly, 800, 100);
+
+ /**
+ * 出动抢修力量-人员
+ */
+ powerPersonnelCumulativeNineJt = new JTextField();
+ setTextFiledColor(powerPersonnelCumulativeNineJt);
+ int powerPersonnelCumulativeNineJtY = powerVehicleCumulativeNineJly + 120;
+ powerPersonnelCumulativeNineJt.setBounds(powerPersonnelCumulativeNineJlx, powerPersonnelCumulativeNineJtY, 240, 120);
+
+ /**
+ * 出动抢修力量-车辆
+ */
+ powerVehicleCumulativeNineJt = new JTextField();
+ setTextFiledColor(powerVehicleCumulativeNineJt);
+ int powerVehicleCumulativeNineJtY = powerVehicleCumulativeNineJly + 120;
+ powerVehicleCumulativeNineJt.setBounds(powerPersonnelCumulativeNineJlx + 250, powerVehicleCumulativeNineJtY, 240, 120);
+ /**-----------------------------------------------------------------附件十------------------------------------------------------------------------------------------*/
+ /**
+ * 附表十 线路覆冰总体情况统计表(仅11月-次年3月报送)
+ */
+ JLabel annexTenLabel = new JLabel("附表十 线路覆冰总体情况统计表(仅11月-次年3月报送)");
+ annexTenLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ annexTenLabel.setForeground(new Color(11, 24, 76));
+ int annexTenJlx = 30;
+ int annexTenJly = powerVehicleCumulativeNineJtY + 150;
+ annexTenLabel.setBounds(annexTenJlx, annexTenJly, 1000, 100);
+
+ /**
+ * 特高压
+ */
+ JLabel tenUhvLabel = new JLabel("特高压");
+ tenUhvLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ tenUhvLabel.setForeground(new Color(11, 24, 76));
+ int tenUhvJlx = 30;
+ int tenUhvJly = annexTenJly + 120;
+ tenUhvLabel.setBounds(tenUhvJlx, tenUhvJly, 800, 100);
+ /**
+ *500kv
+ */
+ JLabel tenFiveHundredKvLabel = new JLabel("500kV");
+ tenFiveHundredKvLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ tenFiveHundredKvLabel.setForeground(new Color(11, 24, 76));
+ int tenFiveHundredKvJlx = tenUhvJlx + 280;
+ int tenFiveHundredKvJly = annexTenJly + 120;
+ tenFiveHundredKvLabel.setBounds(tenFiveHundredKvJlx, tenFiveHundredKvJly, 800, 100);
+
+ /**
+ * 220/330kv
+ */
+ JLabel tenTwoHundredTwentyKvLabel = new JLabel("220/330kV");
+ tenTwoHundredTwentyKvLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ tenTwoHundredTwentyKvLabel.setForeground(new Color(11, 24, 76));
+ int tenTwoHundredTwentyKvJlx = tenFiveHundredKvJlx + 200;
+ int tenTwoHundredTwentyKvJly = annexTenJly + 120;
+ tenTwoHundredTwentyKvLabel.setBounds(tenTwoHundredTwentyKvJlx, tenTwoHundredTwentyKvJly, 800, 100);
+
+ /**
+ * 110/66kv
+ */
+ JLabel tenOneHundredTenKvLabel = new JLabel("110/66kv");
+ tenOneHundredTenKvLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ tenOneHundredTenKvLabel.setForeground(new Color(11, 24, 76));
+ int tenOneHundredTenKvJlx = tenTwoHundredTwentyKvJlx + 270;
+ int tenOneHundredTenKvJly = annexTenJly + 120;
+ tenOneHundredTenKvLabel.setBounds(tenOneHundredTenKvJlx, tenOneHundredTenKvJly, 800, 100);
+
+ /**
+ * 35kv
+ */
+ JLabel tenThirtyFiveKvLabel = new JLabel("35kv");
+ tenThirtyFiveKvLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ tenThirtyFiveKvLabel.setForeground(new Color(11, 24, 76));
+ int tenThirtyFiveKvJlx = tenOneHundredTenKvJlx + 300;
+ int tenThirtyFiveKvJly = annexTenJly + 120;
+ tenThirtyFiveKvLabel.setBounds(tenThirtyFiveKvJlx, tenThirtyFiveKvJly, 800, 100);
+ /**
+ * 10kv
+ */
+ JLabel tenTenKvLabel = new JLabel("10kv");
+ tenTenKvLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ tenTenKvLabel.setForeground(new Color(11, 24, 76));
+ int tenTenKvJlx = tenThirtyFiveKvJlx + 250;
+ int tenTenKvJly = annexTenJly + 120;
+ tenTenKvLabel.setBounds(tenTenKvJlx, tenTenKvJly, 800, 100);
+
+
+ /**
+ * 特高压
+ */
+ tenUhvJt = new JTextField();
+ setTextFiledColor(tenUhvJt);
+ int tenUhvJtY = tenTenKvJly + 120;
+ tenUhvJt.setBounds(annexEightJlx, tenUhvJtY, 240, 120);
+
+ /**
+ * 500
+ */
+ tenFiveHundredKvJt = new JTextField();
+ setTextFiledColor(tenFiveHundredKvJt);
+ int tenFiveHundredKvJtY = tenTenKvJly + 120;
+ tenFiveHundredKvJt.setBounds(annexEightJlx + 250, tenFiveHundredKvJtY, 240, 120);
+
+ /**
+ * 300
+ */
+ tenTwoHundredTwentyKvJt = new JTextField();
+ setTextFiledColor(tenTwoHundredTwentyKvJt);
+ int tenTwoHundredTwentyKvJtY = tenTenKvJly + 120;
+ tenTwoHundredTwentyKvJt.setBounds(annexEightJlx + 500, tenTwoHundredTwentyKvJtY, 240, 120);
+
+ /**
+ * 110
+ */
+ tenOneHundredTenKvJt = new JTextField();
+ setTextFiledColor(tenOneHundredTenKvJt);
+ int tenOneHundredTenKvJtY = tenTenKvJly + 120;
+ tenOneHundredTenKvJt.setBounds(annexEightJlx + 750, tenOneHundredTenKvJtY, 240, 120);
+
+ /**
+ * 35
+ */
+ tenThirtyFiveKvJt = new JTextField();
+ setTextFiledColor(tenThirtyFiveKvJt);
+ int tenThirtyFiveKvJtY = tenTenKvJly + 120;
+ tenThirtyFiveKvJt.setBounds(annexEightJlx + 1000, tenThirtyFiveKvJtY, 240, 120);
+ /**
+ * 10
+ */
+ tenTenKvJt = new JTextField();
+ setTextFiledColor(tenTenKvJt);
+ int tenTenKvJtY = tenTenKvJly + 120;
+ tenTenKvJt.setBounds(annexEightJlx + 1250, tenTenKvJtY, 240, 120);
+
+ /**
+ * 平均水位
+ */
+ JLabel tenAverageWaterLevelLabel = new JLabel("平均水位");
+ tenAverageWaterLevelLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ tenAverageWaterLevelLabel.setForeground(new Color(11, 24, 76));
+ int tenAverageWaterLevelJlx = 30;
+ int tenAverageWaterLevelJly = tenTenKvJtY + 120;
+ tenAverageWaterLevelLabel.setBounds(tenAverageWaterLevelJlx, tenAverageWaterLevelJly, 800, 100);
+ /**
+ *最大水位实测值
+ */
+ JLabel tenMeasuredValueLabel = new JLabel("最大水位实测值");
+ tenMeasuredValueLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ tenMeasuredValueLabel.setForeground(new Color(11, 24, 76));
+ int tenMeasuredValueJlx = tenUhvJlx + 350;
+ int tenMeasuredValueJly = tenTenKvJtY + 120;
+ tenMeasuredValueLabel.setBounds(tenMeasuredValueJlx, tenMeasuredValueJly, 800, 100);
+
+ /**
+ * 最大水位设计值
+ */
+ JLabel tenDesignValuesLabel = new JLabel("最大水位设计值");
+ tenDesignValuesLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ tenDesignValuesLabel.setForeground(new Color(11, 24, 76));
+ int tenDesignValuesJlx = tenFiveHundredKvJlx + 500;
+ int tenDesignValuesJly = tenTenKvJtY + 120;
+ tenDesignValuesLabel.setBounds(tenDesignValuesJlx, tenDesignValuesJly, 800, 100);
+
+ /**
+ * 平均覆冰
+ */
+ tenAverageWaterLevelJt = new JTextField();
+ setTextFiledColor(tenAverageWaterLevelJt);
+ int tenAverageWaterLevelJtY = tenDesignValuesJly + 120;
+ tenAverageWaterLevelJt.setBounds(annexEightJlx, tenAverageWaterLevelJtY, 240, 120);
+
+ /**
+ * 最大覆冰实测值
+ */
+ tenMeasuredValueJt = new JTextField();
+ setTextFiledColor(tenMeasuredValueJt);
+ int tenMeasuredValueJtY = tenDesignValuesJly + 120;
+ tenMeasuredValueJt.setBounds(annexEightJlx + 400, tenMeasuredValueJtY, 240, 120);
+ /**
+ * 最大覆冰设计值
+ */
+ tenDesignValuesJt = new JTextField();
+ setTextFiledColor(tenDesignValuesJt);
+ int tenDesignValuesJtY = tenDesignValuesJly + 120;
+ tenDesignValuesJt.setBounds(annexEightJlx + 830, tenDesignValuesJtY, 240, 120);
+
+ /**
+ * 已采取措施行动
+ */
+ JLabel tenActionHasBeenTakenLabel = new JLabel("已采取措施行动");
+ tenActionHasBeenTakenLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ tenActionHasBeenTakenLabel.setForeground(new Color(11, 24, 76));
+ int tenActionHasBeenTakenJlx = 30;
+ int tenActionHasBeenTakenJly = tenDesignValuesJtY + 120;
+ tenActionHasBeenTakenLabel.setBounds(tenActionHasBeenTakenJlx, tenActionHasBeenTakenJly, 800, 100);
+ /**
+ * 已采取措施行动
+ */
+ tenActionHasBeenTakenJt = new JTextField();
+ setTextFiledColor(tenActionHasBeenTakenJt);
+ int tenActionHasBeenTakenJtY = tenActionHasBeenTakenJly + 120;
+ tenActionHasBeenTakenJt.setBounds(30, tenActionHasBeenTakenJtY, 1310, 120);
+
+ /**-----------------------------------------------------------------附件十一------------------------------------------------------------------------------------------*/
+ /**
+ * 附表十一 线路覆冰详细情况统计表(仅11月-次年3月报送)
+ */
+ JLabel annexElevenLabel = new JLabel("附表十一 线路覆冰详细情况统计表(仅11月-次年3月报送)");
+ annexElevenLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ annexElevenLabel.setForeground(new Color(11, 24, 76));
+ int annexElevenJlx = 30;
+ int annexElevenJly = tenActionHasBeenTakenJtY + 150;
+ annexElevenLabel.setBounds(annexElevenJlx, annexElevenJly, 1000, 100);
+
+ /**
+ * 特高压
+ */
+ JLabel elevenUhvLabel = new JLabel("线路电压等级");
+ elevenUhvLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ elevenUhvLabel.setForeground(new Color(11, 24, 76));
+ int elevenUhvJlx = 30;
+ int elevenUhvJly = annexElevenJly + 120;
+ elevenUhvLabel.setBounds(elevenUhvJlx, elevenUhvJly, 800, 100);
+ /**
+ *500kv
+ */
+ JLabel elevenFiveHundredKvLabel = new JLabel("线路名称");
+ elevenFiveHundredKvLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ elevenFiveHundredKvLabel.setForeground(new Color(11, 24, 76));
+ int elevenFiveHundredKvJlx = elevenUhvJlx + 320;
+ int elevenFiveHundredKvJly = annexElevenJly + 120;
+ elevenFiveHundredKvLabel.setBounds(elevenFiveHundredKvJlx, elevenFiveHundredKvJly, 800, 100);
+
+ /**
+ * 220/330kv
+ */
+ JLabel elevenTwoHundredTwentyKvLabel = new JLabel("起始杆塔号");
+ elevenTwoHundredTwentyKvLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ elevenTwoHundredTwentyKvLabel.setForeground(new Color(11, 24, 76));
+ int elevenTwoHundredTwentyKvJlx = elevenFiveHundredKvJlx + 220;
+ int elevenTwoHundredTwentyKvJly = annexElevenJly + 120;
+ elevenTwoHundredTwentyKvLabel.setBounds(elevenTwoHundredTwentyKvJlx, elevenTwoHundredTwentyKvJly, 800, 100);
+
+ /**
+ * 110/66kv
+ */
+ JLabel elevenOneHundredTenKvLabel = new JLabel("结束杆塔号");
+ elevenOneHundredTenKvLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ elevenOneHundredTenKvLabel.setForeground(new Color(11, 24, 76));
+ int elevenOneHundredTenKvJlx = elevenTwoHundredTwentyKvJlx + 270;
+ int elevenOneHundredTenKvJly = annexElevenJly + 120;
+ elevenOneHundredTenKvLabel.setBounds(elevenOneHundredTenKvJlx, elevenOneHundredTenKvJly, 800, 100);
+
+ /**
+ * 35kv
+ */
+ JLabel elevenThirtyFiveKvLabel = new JLabel("覆冰厚度");
+ elevenThirtyFiveKvLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ elevenThirtyFiveKvLabel.setForeground(new Color(11, 24, 76));
+ int elevenThirtyFiveKvJlx = elevenOneHundredTenKvJlx + 300;
+ int elevenThirtyFiveKvJly = annexElevenJly + 120;
+ elevenThirtyFiveKvLabel.setBounds(elevenThirtyFiveKvJlx, elevenThirtyFiveKvJly, 800, 100);
+
+ /**
+ * 特高压
+ */
+ elevenUhvJt = new JTextField();
+ setTextFiledColor(elevenUhvJt);
+ int elevenUhvJtY = elevenThirtyFiveKvJly + 120;
+ elevenUhvJt.setBounds(annexEightJlx, elevenUhvJtY, 240, 120);
+
+ /**
+ * 500
+ */
+ elevenFiveHundredKvJt = new JTextField();
+ setTextFiledColor(elevenFiveHundredKvJt);
+ int elevenFiveHundredKvJtY = elevenThirtyFiveKvJly + 120;
+ elevenFiveHundredKvJt.setBounds(annexEightJlx + 300, elevenFiveHundredKvJtY, 240, 120);
+
+ /**
+ * 300
+ */
+ elevenTwoHundredTwentyKvJt = new JTextField();
+ setTextFiledColor(elevenTwoHundredTwentyKvJt);
+ int elevenTwoHundredTwentyKvJtY = elevenThirtyFiveKvJly + 120;
+ elevenTwoHundredTwentyKvJt.setBounds(annexEightJlx + 550, elevenTwoHundredTwentyKvJtY, 240, 120);
+
+ /**
+ * 110
+ */
+ elevenOneHundredTenKvJt = new JTextField();
+ setTextFiledColor(elevenOneHundredTenKvJt);
+ int elevenOneHundredTenKvJtY = elevenThirtyFiveKvJly + 120;
+ elevenOneHundredTenKvJt.setBounds(annexEightJlx + 800, elevenOneHundredTenKvJtY, 240, 120);
+
+ /**
+ * 35
+ */
+ elevenThirtyFiveKvJt = new JTextField();
+ setTextFiledColor(elevenThirtyFiveKvJt);
+ int elevenThirtyFiveKvJtY = elevenThirtyFiveKvJly + 120;
+ elevenThirtyFiveKvJt.setBounds(annexEightJlx + 1050, elevenThirtyFiveKvJtY, 240, 120);
+
+
+ /**
+ * 10kv
+ */
+ JLabel elevenTenKvLabel = new JLabel("设计覆冰厚度");
+ elevenTenKvLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ elevenTenKvLabel.setForeground(new Color(11, 24, 76));
+ int elevenTenKvJlx = 30;
+ int elevenTenKvJly = elevenThirtyFiveKvJtY + 120;
+ elevenTenKvLabel.setBounds(elevenTenKvJlx, elevenTenKvJly, 800, 100);
+
+ /**
+ * 平均水位
+ */
+ JLabel elevenAverageWaterLevelLabel = new JLabel("采取措施冰厚");
+ elevenAverageWaterLevelLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ elevenAverageWaterLevelLabel.setForeground(new Color(11, 24, 76));
+ int elevenAverageWaterLevelJlx = elevenTenKvJlx + 400;
+ int elevenAverageWaterLevelJly = elevenThirtyFiveKvJtY + 120;
+ elevenAverageWaterLevelLabel.setBounds(elevenAverageWaterLevelJlx, elevenAverageWaterLevelJly, 800, 100);
+ /**
+ *最大水位实测值
+ */
+ JLabel elevenMeasuredValueLabel = new JLabel("可供使用抗冰装备");
+ elevenMeasuredValueLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ elevenMeasuredValueLabel.setForeground(new Color(11, 24, 76));
+ int elevenMeasuredValueJlx = elevenTenKvJlx + 800;
+ int elevenMeasuredValueJly = elevenThirtyFiveKvJtY + 120;
+ elevenMeasuredValueLabel.setBounds(elevenMeasuredValueJlx, elevenMeasuredValueJly, 800, 100);
+ /**
+ * 10
+ */
+ elevenTenKvJt = new JTextField();
+ setTextFiledColor(elevenTenKvJt);
+ int elevenTenKvJtY = elevenMeasuredValueJly + 120;
+ elevenTenKvJt.setBounds(annexEightJlx, elevenTenKvJtY, 240, 120);
+ /**
+ * 平均覆冰
+ */
+ elevenAverageWaterLevelJt = new JTextField();
+ setTextFiledColor(elevenAverageWaterLevelJt);
+ int elevenAverageWaterLevelJtY = elevenMeasuredValueJly + 120;
+ elevenAverageWaterLevelJt.setBounds(annexEightJlx + 400, elevenAverageWaterLevelJtY, 240, 120);
+
+ /**
+ * 最大覆冰实测值
+ */
+ elevenMeasuredValueJt = new JTextField();
+ setTextFiledColor(elevenMeasuredValueJt);
+ int elevenMeasuredValueJtY = elevenMeasuredValueJly + 120;
+ elevenMeasuredValueJt.setBounds(annexEightJlx + 800, elevenMeasuredValueJtY, 240, 120);
+
+ /**
+ * 已采取措施行动
+ */
+ JLabel elevenActionHasBeenTakenLabel = new JLabel("已采取措施行动");
+ elevenActionHasBeenTakenLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ elevenActionHasBeenTakenLabel.setForeground(new Color(11, 24, 76));
+ int elevenActionHasBeenTakenJlx = 30;
+ int elevenActionHasBeenTakenJly = elevenMeasuredValueJtY + 120;
+ elevenActionHasBeenTakenLabel.setBounds(elevenActionHasBeenTakenJlx, elevenActionHasBeenTakenJly, 800, 100);
+ /**
+ * 已采取措施行动
+ */
+ elevenActionHasBeenTakenJt = new JTextField();
+ setTextFiledColor(elevenActionHasBeenTakenJt);
+ int elevenActionHasBeenTakenJtY = elevenActionHasBeenTakenJly + 120;
+ elevenActionHasBeenTakenJt.setBounds(30, elevenActionHasBeenTakenJtY, 1310, 120);
+
+ /**-----------------------------------------------------------------附件十二------------------------------------------------------------------------------------------*/
+ /**
+ * 附表十二 超设计水位变电站数量统计表(仅6月-9月报送)
+ */
+ JLabel annexTwelveLabel = new JLabel("附表十二 超设计水位变电站数量统计表(仅6月-9月报送)");
+ annexTwelveLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ annexTwelveLabel.setForeground(new Color(11, 24, 76));
+ int annexTwelveJlx = 30;
+ int annexTwelveJly = elevenActionHasBeenTakenJtY + 150;
+ annexTwelveLabel.setBounds(annexTwelveJlx, annexTwelveJly, 1000, 100);
+
+ /**
+ * 特高压
+ */
+ JLabel twelveUhvLabel = new JLabel("特高压");
+ twelveUhvLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ twelveUhvLabel.setForeground(new Color(11, 24, 76));
+ int twelveUhvJlx = 30;
+ int twelveUhvJly = annexTwelveJly + 120;
+ twelveUhvLabel.setBounds(twelveUhvJlx, twelveUhvJly, 800, 100);
+ /**
+ *500kv
+ */
+ JLabel twelveFiveHundredKvLabel = new JLabel("500kV");
+ twelveFiveHundredKvLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ twelveFiveHundredKvLabel.setForeground(new Color(11, 24, 76));
+ int twelveFiveHundredKvJlx = twelveUhvJlx + 280;
+ int twelveFiveHundredKvJly = annexTwelveJly + 120;
+ twelveFiveHundredKvLabel.setBounds(twelveFiveHundredKvJlx, twelveFiveHundredKvJly, 800, 100);
+
+ /**
+ * 220/330kv
+ */
+ JLabel twelveTwoHundredTwentyKvLabel = new JLabel("220/330kV");
+ twelveTwoHundredTwentyKvLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ twelveTwoHundredTwentyKvLabel.setForeground(new Color(11, 24, 76));
+ int twelveTwoHundredTwentyKvJlx = twelveFiveHundredKvJlx + 200;
+ int twelveTwoHundredTwentyKvJly = annexTwelveJly + 120;
+ twelveTwoHundredTwentyKvLabel.setBounds(twelveTwoHundredTwentyKvJlx, twelveTwoHundredTwentyKvJly, 800, 100);
+
+ /**
+ * 110/66kv
+ */
+ JLabel twelveOneHundredTenKvLabel = new JLabel("110/66kv");
+ twelveOneHundredTenKvLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ twelveOneHundredTenKvLabel.setForeground(new Color(11, 24, 76));
+ int twelveOneHundredTenKvJlx = twelveTwoHundredTwentyKvJlx + 270;
+ int twelveOneHundredTenKvJly = annexTwelveJly + 120;
+ twelveOneHundredTenKvLabel.setBounds(twelveOneHundredTenKvJlx, twelveOneHundredTenKvJly, 800, 100);
+
+ /**
+ * 35kv
+ */
+ JLabel twelveThirtyFiveKvLabel = new JLabel("35kv");
+ twelveThirtyFiveKvLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ twelveThirtyFiveKvLabel.setForeground(new Color(11, 24, 76));
+ int twelveThirtyFiveKvJlx = twelveOneHundredTenKvJlx + 300;
+ int twelveThirtyFiveKvJly = annexTwelveJly + 120;
+ twelveThirtyFiveKvLabel.setBounds(twelveThirtyFiveKvJlx, twelveThirtyFiveKvJly, 800, 100);
+ /**
+ * 10kv
+ */
+ JLabel twelveTenKvLabel = new JLabel("10kv");
+ twelveTenKvLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ twelveTenKvLabel.setForeground(new Color(11, 24, 76));
+ int twelveTenKvJlx = twelveThirtyFiveKvJlx + 250;
+ int twelveTenKvJly = annexTwelveJly + 120;
+ twelveTenKvLabel.setBounds(twelveTenKvJlx, twelveTenKvJly, 800, 100);
+
+
+ /**
+ * 特高压
+ */
+ twelveUhvJt = new JTextField();
+ setTextFiledColor(twelveUhvJt);
+ int twelveUhvJtY = twelveTenKvJly + 120;
+ twelveUhvJt.setBounds(annexEightJlx, twelveUhvJtY, 240, 120);
+
+ /**
+ * 500
+ */
+ twelveFiveHundredKvJt = new JTextField();
+ setTextFiledColor(twelveFiveHundredKvJt);
+ int twelveFiveHundredKvJtY = twelveTenKvJly + 120;
+ twelveFiveHundredKvJt.setBounds(annexEightJlx + 250, twelveFiveHundredKvJtY, 240, 120);
+
+ /**
+ * 300
+ */
+ twelveTwoHundredTwentyKvJt = new JTextField();
+ setTextFiledColor(twelveTwoHundredTwentyKvJt);
+ int twelveTwoHundredTwentyKvJtY = twelveTenKvJly + 120;
+ twelveTwoHundredTwentyKvJt.setBounds(annexEightJlx + 500, twelveTwoHundredTwentyKvJtY, 240, 120);
+
+ /**
+ * 110
+ */
+ twelveOneHundredTenKvJt = new JTextField();
+ setTextFiledColor(twelveOneHundredTenKvJt);
+ int twelveOneHundredTenKvJtY = twelveTenKvJly + 120;
+ twelveOneHundredTenKvJt.setBounds(annexEightJlx + 750, twelveOneHundredTenKvJtY, 240, 120);
+
+ /**
+ * 35
+ */
+ twelveThirtyFiveKvJt = new JTextField();
+ setTextFiledColor(twelveThirtyFiveKvJt);
+ int twelveThirtyFiveKvJtY = twelveTenKvJly + 120;
+ twelveThirtyFiveKvJt.setBounds(annexEightJlx + 1000, twelveThirtyFiveKvJtY, 240, 120);
+ /**
+ * 10
+ */
+ twelveTenKvJt = new JTextField();
+ setTextFiledColor(twelveTenKvJt);
+ int twelveTenKvJtY = twelveTenKvJly + 120;
+ twelveTenKvJt.setBounds(annexEightJlx + 1250, twelveTenKvJtY, 240, 120);
+
+ /**
+ * 平均水位
+ */
+ JLabel twelveAverageWaterLevelLabel = new JLabel("平均水位");
+ twelveAverageWaterLevelLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ twelveAverageWaterLevelLabel.setForeground(new Color(11, 24, 76));
+ int twelveAverageWaterLevelJlx = 30;
+ int twelveAverageWaterLevelJly = twelveTenKvJtY + 120;
+ twelveAverageWaterLevelLabel.setBounds(twelveAverageWaterLevelJlx, twelveAverageWaterLevelJly, 800, 100);
+ /**
+ *最大水位实测值
+ */
+ JLabel twelveMeasuredValueLabel = new JLabel("最大水位实测值");
+ twelveMeasuredValueLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ twelveMeasuredValueLabel.setForeground(new Color(11, 24, 76));
+ int twelveMeasuredValueJlx = twelveUhvJlx + 350;
+ int twelveMeasuredValueJly = twelveTenKvJtY + 120;
+ twelveMeasuredValueLabel.setBounds(twelveMeasuredValueJlx, twelveMeasuredValueJly, 800, 100);
+
+ /**
+ * 最大水位设计值
+ */
+ JLabel twelveDesignValuesLabel = new JLabel("最大水位设计值");
+ twelveDesignValuesLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ twelveDesignValuesLabel.setForeground(new Color(11, 24, 76));
+ int twelveDesignValuesJlx = twelveFiveHundredKvJlx + 500;
+ int twelveDesignValuesJly = twelveTenKvJtY + 120;
+ twelveDesignValuesLabel.setBounds(twelveDesignValuesJlx, twelveDesignValuesJly, 800, 100);
+
+ /**
+ * 平均水位
+ */
+ twelveAverageWaterLevelJt = new JTextField();
+ setTextFiledColor(twelveAverageWaterLevelJt);
+ int twelveAverageWaterLevelJtY = twelveDesignValuesJly + 120;
+ twelveAverageWaterLevelJt.setBounds(annexEightJlx, twelveAverageWaterLevelJtY, 240, 120);
+
+ /**
+ * 最大水位实测值
+ */
+ twelveMeasuredValueJt = new JTextField();
+ setTextFiledColor(twelveMeasuredValueJt);
+ int twelveMeasuredValueJtY = twelveDesignValuesJly + 120;
+ twelveMeasuredValueJt.setBounds(annexEightJlx + 400, twelveMeasuredValueJtY, 240, 120);
+ /**
+ * 最大水位设计值
+ */
+ twelveDesignValuesJt = new JTextField();
+ setTextFiledColor(twelveDesignValuesJt);
+ int twelveDesignValuesJtY = twelveDesignValuesJly + 120;
+ twelveDesignValuesJt.setBounds(annexEightJlx + 830, twelveDesignValuesJtY, 240, 120);
+
+ /**
+ * 已采取措施行动
+ */
+ JLabel twelveActionHasBeenTakenLabel = new JLabel("已采取措施行动");
+ twelveActionHasBeenTakenLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ twelveActionHasBeenTakenLabel.setForeground(new Color(11, 24, 76));
+ int twelveActionHasBeenTakenJlx = 30;
+ int twelveActionHasBeenTakenJly = twelveDesignValuesJtY + 120;
+ twelveActionHasBeenTakenLabel.setBounds(twelveActionHasBeenTakenJlx, twelveActionHasBeenTakenJly, 800, 100);
+ /**
+ * 已采取措施行动
+ */
+ twelveActionHasBeenTakenJt = new JTextField();
+ setTextFiledColor(twelveActionHasBeenTakenJt);
+ int twelveActionHasBeenTakenJtY = twelveActionHasBeenTakenJly + 120;
+ twelveActionHasBeenTakenJt.setBounds(30, twelveActionHasBeenTakenJtY, 1310, 120);
+ /**-----------------------------------------------------------附件十三---------------------------------------------------------------------*/
+ /**
+ * 附表十三 超设计水位线路数量统计表(仅6月-9月报送)
+ */
+ JLabel annexThirteenLabel = new JLabel(" 附表十三-超设计水位线路数量统计表(仅6月-9月报送)");
+ annexThirteenLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ annexThirteenLabel.setForeground(new Color(11, 24, 76));
+ int annexThirteenJlx = 30;
+ int annexThirteenJly = twelveActionHasBeenTakenJtY + 150;
+ annexThirteenLabel.setBounds(annexThirteenJlx, annexThirteenJly, 1000, 100);
+
+ /**
+ * 特高压
+ */
+ JLabel thirteenUhvLabel = new JLabel("特高压");
+ thirteenUhvLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ thirteenUhvLabel.setForeground(new Color(11, 24, 76));
+ int thirteenUhvJlx = 30;
+ int thirteenUhvJly = annexThirteenJly + 120;
+ thirteenUhvLabel.setBounds(thirteenUhvJlx, thirteenUhvJly, 800, 100);
+ /**
+ *500kv
+ */
+ JLabel thirteenFiveHundredKvLabel = new JLabel("500kV");
+ thirteenFiveHundredKvLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ thirteenFiveHundredKvLabel.setForeground(new Color(11, 24, 76));
+ int thirteenFiveHundredKvJlx = thirteenUhvJlx + 280;
+ int thirteenFiveHundredKvJly = annexThirteenJly + 120;
+ thirteenFiveHundredKvLabel.setBounds(thirteenFiveHundredKvJlx, thirteenFiveHundredKvJly, 800, 100);
+
+ /**
+ * 220/330kv
+ */
+ JLabel thirteenTwoHundredTwentyKvLabel = new JLabel("220/330kV");
+ thirteenTwoHundredTwentyKvLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ thirteenTwoHundredTwentyKvLabel.setForeground(new Color(11, 24, 76));
+ int thirteenTwoHundredTwentyKvJlx = thirteenFiveHundredKvJlx + 200;
+ int thirteenTwoHundredTwentyKvJly = annexThirteenJly + 120;
+ thirteenTwoHundredTwentyKvLabel.setBounds(thirteenTwoHundredTwentyKvJlx, thirteenTwoHundredTwentyKvJly, 800, 100);
+
+ /**
+ * 110/66kv
+ */
+ JLabel thirteenOneHundredTenKvLabel = new JLabel("110/66kv");
+ thirteenOneHundredTenKvLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ thirteenOneHundredTenKvLabel.setForeground(new Color(11, 24, 76));
+ int thirteenOneHundredTenKvJlx = thirteenTwoHundredTwentyKvJlx + 270;
+ int thirteenOneHundredTenKvJly = annexThirteenJly + 120;
+ thirteenOneHundredTenKvLabel.setBounds(thirteenOneHundredTenKvJlx, thirteenOneHundredTenKvJly, 800, 100);
+
+ /**
+ * 35kv
+ */
+ JLabel thirteenThirtyFiveKvLabel = new JLabel("35kv");
+ thirteenThirtyFiveKvLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ thirteenThirtyFiveKvLabel.setForeground(new Color(11, 24, 76));
+ int thirteenThirtyFiveKvJlx = thirteenOneHundredTenKvJlx + 300;
+ int thirteenThirtyFiveKvJly = annexThirteenJly + 120;
+ thirteenThirtyFiveKvLabel.setBounds(thirteenThirtyFiveKvJlx, thirteenThirtyFiveKvJly, 800, 100);
+ /**
+ * 10kv
+ */
+ JLabel thirteenTenKvLabel = new JLabel("10kv");
+ thirteenTenKvLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ thirteenTenKvLabel.setForeground(new Color(11, 24, 76));
+ int thirteenTenKvJlx = thirteenThirtyFiveKvJlx + 250;
+ int thirteenTenKvJly = annexThirteenJly + 120;
+ thirteenTenKvLabel.setBounds(thirteenTenKvJlx, thirteenTenKvJly, 800, 100);
+
+
+ /**
+ * 特高压
+ */
+ thirteenUhvJt = new JTextField();
+ setTextFiledColor(thirteenUhvJt);
+ int thirteenUhvJtY = thirteenTenKvJly + 120;
+ thirteenUhvJt.setBounds(annexEightJlx, thirteenUhvJtY, 240, 120);
+
+ /**
+ * 500
+ */
+ thirteenFiveHundredKvJt = new JTextField();
+ setTextFiledColor(thirteenFiveHundredKvJt);
+ int thirteenFiveHundredKvJtY = thirteenTenKvJly + 120;
+ thirteenFiveHundredKvJt.setBounds(annexEightJlx + 250, thirteenFiveHundredKvJtY, 240, 120);
+
+ /**
+ * 300
+ */
+ thirteenTwoHundredTwentyKvJt = new JTextField();
+ setTextFiledColor(thirteenTwoHundredTwentyKvJt);
+ int thirteenTwoHundredTwentyKvJtY = thirteenTenKvJly + 120;
+ thirteenTwoHundredTwentyKvJt.setBounds(annexEightJlx + 500, thirteenTwoHundredTwentyKvJtY, 240, 120);
+
+ /**
+ * 110
+ */
+ thirteenOneHundredTenKvJt = new JTextField();
+ setTextFiledColor(thirteenOneHundredTenKvJt);
+ int thirteenOneHundredTenKvJtY = thirteenTenKvJly + 120;
+ thirteenOneHundredTenKvJt.setBounds(annexEightJlx + 750, thirteenOneHundredTenKvJtY, 240, 120);
+
+ /**
+ * 35
+ */
+ thirteenThirtyFiveKvJt = new JTextField();
+ setTextFiledColor(thirteenThirtyFiveKvJt);
+ int thirteenThirtyFiveKvJtY = thirteenTenKvJly + 120;
+ thirteenThirtyFiveKvJt.setBounds(annexEightJlx + 1000, thirteenThirtyFiveKvJtY, 240, 120);
+ /**
+ * 10
+ */
+ thirteenTenKvJt = new JTextField();
+ setTextFiledColor(thirteenTenKvJt);
+ int thirteenTenKvJtY = thirteenTenKvJly + 120;
+ thirteenTenKvJt.setBounds(annexEightJlx + 1250, thirteenTenKvJtY, 240, 120);
+
+ /**
+ * 平均水位
+ */
+ JLabel thirteenAverageWaterLevelLabel = new JLabel("平均水位");
+ thirteenAverageWaterLevelLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ thirteenAverageWaterLevelLabel.setForeground(new Color(11, 24, 76));
+ int thirteenAverageWaterLevelJlx = 30;
+ int thirteenAverageWaterLevelJly = thirteenTenKvJtY + 120;
+ thirteenAverageWaterLevelLabel.setBounds(thirteenAverageWaterLevelJlx, thirteenAverageWaterLevelJly, 800, 100);
+ /**
+ *最大水位实测值
+ */
+ JLabel thirteenMeasuredValueLabel = new JLabel("最大水位实测值");
+ thirteenMeasuredValueLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ thirteenMeasuredValueLabel.setForeground(new Color(11, 24, 76));
+ int thirteenMeasuredValueJlx = thirteenUhvJlx + 350;
+ int thirteenMeasuredValueJly = thirteenTenKvJtY + 120;
+ thirteenMeasuredValueLabel.setBounds(thirteenMeasuredValueJlx, thirteenMeasuredValueJly, 800, 100);
+
+ /**
+ * 最大水位设计值
+ */
+ JLabel thirteenDesignValuesLabel = new JLabel("最大水位设计值");
+ thirteenDesignValuesLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ thirteenDesignValuesLabel.setForeground(new Color(11, 24, 76));
+ int thirteenDesignValuesJlx = thirteenFiveHundredKvJlx + 500;
+ int thirteenDesignValuesJly = thirteenTenKvJtY + 120;
+ thirteenDesignValuesLabel.setBounds(thirteenDesignValuesJlx, thirteenDesignValuesJly, 800, 100);
+
+ /**
+ * 平均水位
+ */
+ thirteenAverageWaterLevelJt = new JTextField();
+ setTextFiledColor(thirteenAverageWaterLevelJt);
+ int thirteenAverageWaterLevelJtY = thirteenDesignValuesJly + 120;
+ thirteenAverageWaterLevelJt.setBounds(annexEightJlx, thirteenAverageWaterLevelJtY, 240, 120);
+
+ /**
+ * 最大水位实测值
+ */
+ thirteenMeasuredValueJt = new JTextField();
+ setTextFiledColor(thirteenMeasuredValueJt);
+ int thirteenMeasuredValueJtY = thirteenDesignValuesJly + 120;
+ thirteenMeasuredValueJt.setBounds(annexEightJlx + 400, thirteenMeasuredValueJtY, 240, 120);
+ /**
+ * 最大水位设计值
+ */
+ thirteenDesignValuesJt = new JTextField();
+ setTextFiledColor(thirteenDesignValuesJt);
+ int thirteenDesignValuesJtY = thirteenDesignValuesJly + 120;
+ thirteenDesignValuesJt.setBounds(annexEightJlx + 830, thirteenDesignValuesJtY, 240, 120);
+
+ /**
+ * 已采取措施行动
+ */
+ JLabel thirteenActionHasBeenTakenLabel = new JLabel("已采取措施行动");
+ thirteenActionHasBeenTakenLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ thirteenActionHasBeenTakenLabel.setForeground(new Color(11, 24, 76));
+ int thirteenActionHasBeenTakenJlx = 30;
+ int thirteenActionHasBeenTakenJly = thirteenDesignValuesJtY + 120;
+ thirteenActionHasBeenTakenLabel.setBounds(thirteenActionHasBeenTakenJlx, thirteenActionHasBeenTakenJly, 800, 100);
+ /**
+ * 已采取措施行动
+ */
+ thirteenActionHasBeenTakenJt = new JTextField();
+ setTextFiledColor(thirteenActionHasBeenTakenJt);
+ int thirteenActionHasBeenTakenJtY = thirteenActionHasBeenTakenJly + 120;
+ thirteenActionHasBeenTakenJt.setBounds(30, thirteenActionHasBeenTakenJtY, 1310, 120);
+ /**-----------------------------------------------------------附件十四---------------------------------------------------------------------*/
+ /**
+ * 附表十四 超设计风力线路数量统计表
+ */
+ JLabel annexFourteenLabel = new JLabel("附表十四- 超设计风力线路数量统计表");
+ annexFourteenLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ annexFourteenLabel.setForeground(new Color(11, 24, 76));
+ int annexFourteenJlx = 30;
+ int annexFourteenJly = thirteenActionHasBeenTakenJtY + 150;
+ annexFourteenLabel.setBounds(annexFourteenJlx, annexFourteenJly, 1000, 100);
+
+ /**
+ * 特高压
+ */
+ JLabel fourteenUhvLabel = new JLabel("特高压");
+ fourteenUhvLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ fourteenUhvLabel.setForeground(new Color(11, 24, 76));
+ int fourteenUhvJlx = 30;
+ int fourteenUhvJly = annexFourteenJly + 120;
+ fourteenUhvLabel.setBounds(fourteenUhvJlx, fourteenUhvJly, 800, 100);
+ /**
+ *500kv
+ */
+ JLabel fourteenFiveHundredKvLabel = new JLabel("500kV");
+ fourteenFiveHundredKvLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ fourteenFiveHundredKvLabel.setForeground(new Color(11, 24, 76));
+ int fourteenFiveHundredKvJlx = fourteenUhvJlx + 280;
+ int fourteenFiveHundredKvJly = annexFourteenJly + 120;
+ fourteenFiveHundredKvLabel.setBounds(fourteenFiveHundredKvJlx, fourteenFiveHundredKvJly, 800, 100);
+
+ /**
+ * 220/330kv
+ */
+ JLabel fourteenTwoHundredTwentyKvLabel = new JLabel("220/330kV");
+ fourteenTwoHundredTwentyKvLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ fourteenTwoHundredTwentyKvLabel.setForeground(new Color(11, 24, 76));
+ int fourteenTwoHundredTwentyKvJlx = fourteenFiveHundredKvJlx + 200;
+ int fourteenTwoHundredTwentyKvJly = annexFourteenJly + 120;
+ fourteenTwoHundredTwentyKvLabel.setBounds(fourteenTwoHundredTwentyKvJlx, fourteenTwoHundredTwentyKvJly, 800, 100);
+
+ /**
+ * 110/66kv
+ */
+ JLabel fourteenOneHundredTenKvLabel = new JLabel("110/66kv");
+ fourteenOneHundredTenKvLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ fourteenOneHundredTenKvLabel.setForeground(new Color(11, 24, 76));
+ int fourteenOneHundredTenKvJlx = fourteenTwoHundredTwentyKvJlx + 270;
+ int fourteenOneHundredTenKvJly = annexFourteenJly + 120;
+ fourteenOneHundredTenKvLabel.setBounds(fourteenOneHundredTenKvJlx, fourteenOneHundredTenKvJly, 800, 100);
+
+ /**
+ * 35kv
+ */
+ JLabel fourteenThirtyFiveKvLabel = new JLabel("35kv");
+ fourteenThirtyFiveKvLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ fourteenThirtyFiveKvLabel.setForeground(new Color(11, 24, 76));
+ int fourteenThirtyFiveKvJlx = fourteenOneHundredTenKvJlx + 300;
+ int fourteenThirtyFiveKvJly = annexFourteenJly + 120;
+ fourteenThirtyFiveKvLabel.setBounds(fourteenThirtyFiveKvJlx, fourteenThirtyFiveKvJly, 800, 100);
+ /**
+ * 10kv
+ */
+ JLabel fourteenTenKvLabel = new JLabel("10kv");
+ fourteenTenKvLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ fourteenTenKvLabel.setForeground(new Color(11, 24, 76));
+ int fourteenTenKvJlx = fourteenThirtyFiveKvJlx + 250;
+ int fourteenTenKvJly = annexFourteenJly + 120;
+ fourteenTenKvLabel.setBounds(fourteenTenKvJlx, fourteenTenKvJly, 800, 100);
+
+
+ /**
+ * 特高压
+ */
+ fourteenUhvJt = new JTextField();
+ setTextFiledColor(fourteenUhvJt);
+ int fourteenUhvJtY = fourteenTenKvJly + 120;
+ fourteenUhvJt.setBounds(annexEightJlx, fourteenUhvJtY, 240, 120);
+
+ /**
+ * 500
+ */
+ fourteenFiveHundredKvJt = new JTextField();
+ setTextFiledColor(fourteenFiveHundredKvJt);
+ int fourteenFiveHundredKvJtY = fourteenTenKvJly + 120;
+ fourteenFiveHundredKvJt.setBounds(annexEightJlx + 250, fourteenFiveHundredKvJtY, 240, 120);
+
+ /**
+ * 300
+ */
+ fourteenTwoHundredTwentyKvJt = new JTextField();
+ setTextFiledColor(fourteenTwoHundredTwentyKvJt);
+ int fourteenTwoHundredTwentyKvJtY = fourteenTenKvJly + 120;
+ fourteenTwoHundredTwentyKvJt.setBounds(annexEightJlx + 500, fourteenTwoHundredTwentyKvJtY, 240, 120);
+
+ /**
+ * 110
+ */
+ fourteenOneHundredTenKvJt = new JTextField();
+ setTextFiledColor(fourteenOneHundredTenKvJt);
+ int fourteenOneHundredTenKvJtY = fourteenTenKvJly + 120;
+ fourteenOneHundredTenKvJt.setBounds(annexEightJlx + 750, fourteenOneHundredTenKvJtY, 240, 120);
+
+ /**
+ * 35
+ */
+ fourteenThirtyFiveKvJt = new JTextField();
+ setTextFiledColor(fourteenThirtyFiveKvJt);
+ int fourteenThirtyFiveKvJtY = fourteenTenKvJly + 120;
+ fourteenThirtyFiveKvJt.setBounds(annexEightJlx + 1000, fourteenThirtyFiveKvJtY, 240, 120);
+ /**
+ * 10
+ */
+ fourteenTenKvJt = new JTextField();
+ setTextFiledColor(fourteenTenKvJt);
+ int fourteenTenKvJtY = fourteenTenKvJly + 120;
+ fourteenTenKvJt.setBounds(annexEightJlx + 1250, fourteenTenKvJtY, 240, 120);
+
+ /**
+ * 平均风力
+ */
+ JLabel fourteenAverageWaterLevelLabel = new JLabel("平均风力");
+ fourteenAverageWaterLevelLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ fourteenAverageWaterLevelLabel.setForeground(new Color(11, 24, 76));
+ int fourteenAverageWaterLevelJlx = 30;
+ int fourteenAverageWaterLevelJly = fourteenTenKvJtY + 120;
+ fourteenAverageWaterLevelLabel.setBounds(fourteenAverageWaterLevelJlx, fourteenAverageWaterLevelJly, 800, 100);
+ /**
+ *最大风力实测值
+ */
+ JLabel fourteenMeasuredValueLabel = new JLabel("最大风力实测值");
+ fourteenMeasuredValueLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ fourteenMeasuredValueLabel.setForeground(new Color(11, 24, 76));
+ int fourteenMeasuredValueJlx = fourteenUhvJlx + 350;
+ int fourteenMeasuredValueJly = fourteenTenKvJtY + 120;
+ fourteenMeasuredValueLabel.setBounds(fourteenMeasuredValueJlx, fourteenMeasuredValueJly, 800, 100);
+
+ /**
+ * 最大风力设计值
+ */
+ JLabel fourteenDesignValuesLabel = new JLabel("最大风力设计值");
+ fourteenDesignValuesLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ fourteenDesignValuesLabel.setForeground(new Color(11, 24, 76));
+ int fourteenDesignValuesJlx = fourteenFiveHundredKvJlx + 500;
+ int fourteenDesignValuesJly = fourteenTenKvJtY + 120;
+ fourteenDesignValuesLabel.setBounds(fourteenDesignValuesJlx, fourteenDesignValuesJly, 800, 100);
+
+ /**
+ * 平均风力
+ */
+ fourteenAverageWaterLevelJt = new JTextField();
+ setTextFiledColor(fourteenAverageWaterLevelJt);
+ int fourteenAverageWaterLevelJtY = fourteenDesignValuesJly + 120;
+ fourteenAverageWaterLevelJt.setBounds(annexEightJlx, fourteenAverageWaterLevelJtY, 240, 120);
+
+ /**
+ * 最大风力实测值
+ */
+ fourteenMeasuredValueJt = new JTextField();
+ setTextFiledColor(fourteenMeasuredValueJt);
+ int fourteenMeasuredValueJtY = fourteenDesignValuesJly + 120;
+ fourteenMeasuredValueJt.setBounds(annexEightJlx + 400, fourteenMeasuredValueJtY, 240, 120);
+ /**
+ * 最大风力设计值
+ */
+ fourteenDesignValuesJt = new JTextField();
+ setTextFiledColor(fourteenDesignValuesJt);
+ int fourteenDesignValuesJtY = fourteenDesignValuesJly + 120;
+ fourteenDesignValuesJt.setBounds(annexEightJlx + 830, fourteenDesignValuesJtY, 240, 120);
+
+ /**
+ * 已采取措施行动
+ */
+ JLabel fourteenActionHasBeenTakenLabel = new JLabel("已采取措施行动");
+ fourteenActionHasBeenTakenLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ fourteenActionHasBeenTakenLabel.setForeground(new Color(11, 24, 76));
+ int fourteenActionHasBeenTakenJlx = 30;
+ int fourteenActionHasBeenTakenJly = fourteenDesignValuesJtY + 120;
+ fourteenActionHasBeenTakenLabel.setBounds(fourteenActionHasBeenTakenJlx, fourteenActionHasBeenTakenJly, 800, 100);
+ /**
+ * 已采取措施行动
+ */
+ fourteenActionHasBeenTakenJt = new JTextField();
+ setTextFiledColor(fourteenActionHasBeenTakenJt);
+ int fourteenActionHasBeenTakenJtY = fourteenActionHasBeenTakenJly + 120;
+ fourteenActionHasBeenTakenJt.setBounds(30, fourteenActionHasBeenTakenJtY, 1310, 120);
+ btn = new JButton();
+ btn.setFont(new Font("微软雅黑",Font.BOLD,50));
+ btn.setForeground(Color.BLACK);
+ btn.setText("提交");
+ btn.addMouseListener(this);
+ int btnX = (dimension.width - 100) / 4;
+ btn.setBounds(btnX+200, fourteenActionHasBeenTakenJtY + 155, 200, 100);
+
+ jp.add(overallLabel);
+// jp.add(overallJt);
+ jp.add(importantMattersLabel);
+// jp.add(importantMattersJt);
+ jp.add(safetyProductionLabel);
+// jp.add(safetyProductionJt);
+ jp.add(personnelDailyWorkLabel);
+// jp.add(personnelDailyWorkJt);
+ jp.add(powerGuaranteeLabel);
+ jp.add(powerGuaranteeTodayWorkLabel);
+// jp.add(powerGuaranteeTodayWorkJt);
+ jp.add(powerGuaranteeTomorrowWorkLabel);
+// jp.add(powerGuaranteeTomorrowWorkJt);
+ jp.add(powerGuaranteeTodayPestilenceLabel);
+// jp.add(powerGuaranteeTodayPestilenceJt);
+ jp.add(warningLabel);
+ jp.add(warningCompanyLabel);
+// jp.add(warningCompanyJt);
+ jp.add(warningCompanyImpatientLabel);
+// jp.add(warningCompanyImpatientJt);
+ jp.add(warningSocietyEmergencyLabel);
+// jp.add(warningSocietyEmergencyJt);
+ jp.add(otherSituationsLabel);
+// jp.add(otherSituationsJt);
+ jp.add(annexOneLabel);
+ jp.add(exerciseContentLabel);
+ jp.add(exerciseContentBox);
+ jp.add(exerciseNumLabel);
+ jp.add(exercisePersonNumLabel);
+ jp.add(exerciseVehicleNumLabel);
+ jp.add(exercisePowerVehicleNumLabel);
+ jp.add(exerciseDynamoNumLabel);
+ jp.add(exercisePersonNumJt);
+ jp.add(exerciseVehicleNumJt);
+ jp.add(exercisePowerVehicleNumJt);
+ jp.add(exerciseDynamoNumJt);
+ jp.add(exerciseFindProblemsLabel);
+ jp.add(exerciseFindProblemsJt);
+ jp.add(exerciseRemarkLabel);
+ jp.add(exerciseRemarkJt);
+ jp.add(annexTwoLabel);
+ jp.add(verificationNumLabel);
+ jp.add(verificationPersonNumLabel);
+ jp.add(verificationVehicleNumLabel);
+ jp.add(verificationTeamNumLabel);
+ jp.add(verificationEquipNumLabel);
+ jp.add(verificationMaterialNumLabel);
+ jp.add(verificationPersonNumJt);
+ jp.add(verificationVehicleNumJt);
+ jp.add(verificationTeamNumJt);
+ jp.add(verificationEquipNumJt);
+ jp.add(verificationMaterialNumJt);
+ jp.add(verificationFindProblemsLabel);
+ jp.add(verificationFindProblemsJt);
+ jp.add(verificationRemarkLabel);
+ jp.add(verificationRemarkJt);
+ jp.add(annexFourLabel);
+ jp.add(designatedHospitalsLabel);
+ jp.add(feverClinicLabel);
+ jp.add(epidemicEnterpriseLabel);
+ jp.add(designatedHospitalsJt);
+ jp.add(feverClinicJt);
+ jp.add(epidemicEnterpriseJt);
+ jp.add(otherImportantUsersLabel);
+ jp.add(customerPowerPersonnelLabel);
+ jp.add(powerDevopsPersonnelLabel);
+ jp.add(otherImportantUsersJt);
+ jp.add(customerPowerPersonnelJt);
+ jp.add(powerDevopsPersonnelJt);
+ jp.add(electricallyVehiclesLabel);
+ jp.add(emergencyPowerVehiclesLabel);
+ jp.add(emergencyGeneratorLabel);
+ jp.add(electricallyVehiclesJt);
+ jp.add(emergencyPowerVehiclesJt);
+ jp.add(emergencyGeneratorJt);
+ jp.add(annexSixLabel);
+ jp.add(leadersCommandStaffLabel);
+ jp.add(leadersCommandStaffJt);
+ jp.add(inputAmountPersonLabel);
+ jp.add(inputAmountVehicleLabel);
+ jp.add(inputAmountPowerVehicleLabel);
+ jp.add(inputAmountDynamoLabel);
+ jp.add(inputAmountPersonJt);
+ jp.add(inputAmountVehicleJt);
+ jp.add(inputAmountPowerVehicleJt);
+ jp.add(inputAmountDynamoJt);
+ jp.add(inputAmountRemarkLabel);
+ jp.add(inputAmountRemarkJt);
+
+ //附件三
+ jp.add(annexThreeLabel);
+ jp.add(totalAddition);
+ jp.add(totalAddDiagnosedLabel);
+ jp.add(totalAddHealLabel);
+ jp.add(totalAddSuspectedLabel);
+ jp.add(totalAddDiagnosedJt);
+ jp.add(totalAddHealJt);
+ jp.add(totalAddSuspectedJt);
+ jp.add(totalExisting);
+ jp.add(totalExistingDiagnosedLabel);
+ jp.add(totalExistingHealLabel);
+ jp.add(totalExistingSuspectedLabel);
+ jp.add(totalExistingDiagnosedJt);
+ jp.add(totalExistingHealJt);
+ jp.add(totalExistingSuspectedJt);
+ jp.add(dispatchAddition);
+ jp.add(dispatchAddDiagnosedLabel);
+ jp.add(dispatchAddHealLabel);
+ jp.add(dispatchAddSuspectedLabel);
+ jp.add(dispatchAddDiagnosedJt);
+ jp.add(dispatchAddHealJt);
+ jp.add(dispatchAddSuspectedJt);
+ jp.add(dispatchExisting);
+ jp.add(dispatchExistingDiagnosedLabel);
+ jp.add(dispatchExistingHealLabel);
+ jp.add(dispatchExistingSuspectedLabel);
+ jp.add(dispatchExistingDiagnosedJt);
+ jp.add(dispatchExistingHealJt);
+ jp.add(dispatchExistingSuspectedJt);
+ jp.add(repairAddition);
+ jp.add(repairAddDiagnosedLabel);
+ jp.add(repairAddHealLabel);
+ jp.add(repairAddSuspectedLabel);
+ jp.add(repairAddDiagnosedJt);
+ jp.add(repairAddHealJt);
+ jp.add(repairAddSuspectedJt);
+ jp.add(repairExisting);
+ jp.add(repairExistingDiagnosedLabel);
+ jp.add(repairExistingHealLabel);
+ jp.add(repairExistingSuspectedLabel);
+ jp.add(repairExistingDiagnosedJt);
+ jp.add(repairExistingHealJt);
+ jp.add(repairExistingSuspectedJt);
+ jp.add(marketingAddition);
+ jp.add(marketingAddDiagnosedLabel);
+ jp.add(marketingAddHealLabel);
+ jp.add(marketingAddSuspectedLabel);
+ jp.add(marketingAddDiagnosedJt);
+ jp.add(marketingAddHealJt);
+ jp.add(marketingAddSuspectedJt);
+ jp.add(marketingExisting);
+ jp.add(marketingExistingDiagnosedLabel);
+ jp.add(marketingExistingHealLabel);
+ jp.add(marketingExistingSuspectedLabel);
+ jp.add(marketingExistingDiagnosedJt);
+ jp.add(marketingExistingHealJt);
+ jp.add(marketingExistingSuspectedJt);
+ jp.add(constructionAddition);
+ jp.add(constructionAddDiagnosedLabel);
+ jp.add(constructionAddHealLabel);
+ jp.add(constructionAddSuspectedLabel);
+ jp.add(constructionAddDiagnosedJt);
+ jp.add(constructionAddHealJt);
+ jp.add(constructionAddSuspectedJt);
+ jp.add(constructionExisting);
+ jp.add(constructionExistingDiagnosedLabel);
+ jp.add(constructionExistingHealLabel);
+ jp.add(constructionExistingSuspectedLabel);
+ jp.add(constructionExistingDiagnosedJt);
+ jp.add(constructionExistingHealJt);
+ jp.add(constructionExistingSuspectedJt);
+
+ //附件五
+ jp.add(annexFiveLabel);
+ jp.add(airportPortLabel);
+ jp.add(venueHospitalLabel);
+ jp.add(guesthouseHotelLabel);
+ jp.add(safeguardPersonnelLabel);
+ jp.add(airportPortJt);
+ jp.add(venueHospitalJt);
+ jp.add(guesthouseHotelJt);
+ jp.add(safeguardPersonnelJt);
+ jp.add(electricallyGuaranteedVehiclesLabel);
+ jp.add(powerGenerationVehiclesLabel);
+ jp.add(dynamoLabel);
+ jp.add(fiveRemarkLabel);
+ jp.add(electricallyGuaranteedVehiclesJt);
+ jp.add(powerGenerationVehiclesJt);
+ jp.add(dynamoJt);
+ jp.add(fiveRemarkJt);
+
+ //附件七
+ jp.add(annexSevenLabel);
+ jp.add(suspensionOfDisasterLabel);
+ jp.add(uhvDisasterLabel);
+ jp.add(fiveKVDisasterLabel);
+ jp.add(twoKVDisasterLabel);
+ jp.add(oneKVDisasterLabel);
+ jp.add(threeKVDisasterLabel);
+ jp.add(powerSubstationAddOutageUvhJt);
+ jp.add(powerSubstationAddOutageFiveJt);
+ jp.add(powerSubstationAddOutageTwoJt);
+ jp.add(powerSubstationAddOutageOneJt);
+ jp.add(powerSubstationAddOutageThreeJt);
+
+ jp.add(emergencyRepairRecoveryLabel);
+ jp.add(powerSubstationAddRepairUvhLabel);
+ jp.add(powerSubstationAddRepairFiveLabel);
+ jp.add(powerSubstationAddRepairTwoLabel);
+ jp.add(powerSubstationAddRepairOneLabel);
+ jp.add(powerSubstationAddRepairThreeLabel);
+ jp.add(powerSubstationAddRepairOutageUvhJt);
+ jp.add(powerSubstationAddRepairOutageFiveJt);
+ jp.add(powerSubstationAddRepairOutageTwoJt);
+ jp.add(powerSubstationAddRepairOutageOneJt);
+ jp.add(powerSubstationAddRepairOutageThreeJt);
+
+ jp.add(emergencyNoRepairRecoveryLabel);
+ jp.add(powerSubstationAddNoRepairUvhLabel);
+ jp.add(powerSubstationAddNoRepairFiveLabel);
+ jp.add(powerSubstationAddNoRepairTwoLabel);
+ jp.add(powerSubstationAddNoRepairOneLabel);
+ jp.add(powerSubstationAddNoRepairThreeLabel);
+ jp.add(powerSubstationAddNoRepairOutageUvhJt);
+ jp.add(powerSubstationAddNoRepairOutageFiveJt);
+ jp.add(powerSubstationAddNoRepairOutageTwoJt);
+ jp.add(powerSubstationAddNoRepairOutageOneJt);
+ jp.add(powerSubstationAddNoRepairOutageThreeJt);
+
+ jp.add(annexSevenCumulativeLabel);
+ jp.add(suspensionOfDisasterCumulativeLabel);
+ jp.add(uhvDisasterCumulativeLabel);
+ jp.add(fiveKVDisasterCumulativeLabel);
+ jp.add(twoKVDisasterCumulativeLabel);
+ jp.add(oneKVDisasterCumulativeLabel);
+ jp.add(threeKVDisasterCumulativeLabel);
+ jp.add(powerSubstationCumulativeOutageUvhJt);
+ jp.add(powerSubstationCumulativeOutageFiveJt);
+ jp.add(powerSubstationCumulativeOutageTwoJt);
+ jp.add(powerSubstationCumulativeOutageOneJt);
+ jp.add(powerSubstationCumulativeOutageThreeJt);
+
+ jp.add(emergencyRepairRecoveryCumulativeLabel);
+ jp.add(powerSubstationCumulativeRepairUvhLabel);
+ jp.add(powerSubstationCumulativeRepairFiveLabel);
+ jp.add(powerSubstationCumulativeRepairTwoLabel);
+ jp.add(powerSubstationCumulativeRepairOneLabel);
+ jp.add(powerSubstationCumulativeRepairThreeLabel);
+ jp.add(powerSubstationCumulativeRepairOutageUvhJt);
+ jp.add(powerSubstationCumulativeRepairOutageFiveJt);
+ jp.add(powerSubstationCumulativeRepairOutageTwoJt);
+ jp.add(powerSubstationCumulativeRepairOutageOneJt);
+ jp.add(powerSubstationCumulativeRepairOutageThreeJt);
+
+ jp.add(emergencyCumulativeNoRepairRecoveryLabel);
+ jp.add(powerSubstationCumulativeNoRepairUvhLabel);
+ jp.add(powerSubstationCumulativeNoRepairFiveLabel);
+ jp.add(powerSubstationCumulativeNoRepairTwoLabel);
+ jp.add(powerSubstationCumulativeNoRepairOneLabel);
+ jp.add(powerSubstationCumulativeNoRepairThreeLabel);
+ jp.add(powerSubstationCumulativeNoRepairOutageUvhJt);
+ jp.add(powerSubstationCumulativeNoRepairOutageFiveJt);
+ jp.add(powerSubstationCumulativeNoRepairOutageTwoJt);
+ jp.add(powerSubstationCumulativeNoRepairOutageOneJt);
+ jp.add(powerSubstationCumulativeNoRepairOutageThreeJt);
+
+
+ jp.add(annexEightLabel);
+ jp.add(suspensionOfDisasterEightLabel);
+ jp.add(uhvDisasterEightLabel);
+ jp.add(fiveKVDisasterEightLabel);
+ jp.add(twoKVDisasterEightLabel);
+ jp.add(oneKVDisasterEightLabel);
+ jp.add(threeKVDisasterEightLabel);
+ jp.add(tenKVDisasterEightLabel);
+ jp.add(transmitElectricityAddOutageUvhJt);
+ jp.add(transmitElectricityAddOutageFiveJt);
+ jp.add(transmitElectricityAddOutageTwoJt);
+ jp.add(transmitElectricityAddOutageOneJt);
+ jp.add(transmitElectricityAddOutageThreeJt);
+ jp.add(transmitElectricityAddOutageTenJt);
+
+ jp.add(emergencyRepairRecoveryEightLabel);
+ jp.add(transmitElectricityAddRepairUvhLabel);
+ jp.add(transmitElectricityAddRepairFiveLabel);
+ jp.add(transmitElectricityAddRepairTwoLabel);
+ jp.add(transmitElectricityAddRepairOneLabel);
+ jp.add(transmitElectricityAddRepairThreeLabel);
+ jp.add(transmitElectricityAddRepairTenLabel);
+ jp.add(transmitElectricityAddRepairOutageUvhJt);
+ jp.add(transmitElectricityAddRepairOutageFiveJt);
+ jp.add(transmitElectricityAddRepairOutageTwoJt);
+ jp.add(transmitElectricityAddRepairOutageOneJt);
+ jp.add(transmitElectricityAddRepairOutageThreeJt);
+ jp.add(transmitElectricityAddRepairOutageTenJt);
+
+ jp.add(emergencyNoRepairRecoveryEightLabel);
+ jp.add(transmitElectricityAddNoRepairUvhLabel);
+ jp.add(transmitElectricityAddNoRepairFiveLabel);
+ jp.add(transmitElectricityAddNoRepairTwoLabel);
+ jp.add(transmitElectricityAddNoRepairOneLabel);
+ jp.add(transmitElectricityAddNoRepairThreeLabel);
+ jp.add(transmitElectricityAddNoRepairTenLabel);
+ jp.add(transmitElectricityAddNoRepairOutageUvhJt);
+ jp.add(transmitElectricityAddNoRepairOutageFiveJt);
+ jp.add(transmitElectricityAddNoRepairOutageTwoJt);
+ jp.add(transmitElectricityAddNoRepairOutageOneJt);
+ jp.add(transmitElectricityAddNoRepairOutageThreeJt);
+ jp.add(transmitElectricityAddNoRepairOutageTenJt);
+
+ jp.add(annexEightCumulativeLabel);
+ jp.add(suspensionOfDisasterEightCumulativeLabel);
+ jp.add(uhvDisasterEightCumulativeLabel);
+ jp.add(fiveKVDisasterEightCumulativeLabel);
+ jp.add(twoKVDisasterEightCumulativeLabel);
+ jp.add(oneKVDisasterEightCumulativeLabel);
+ jp.add(threeKVDisasterEightCumulativeLabel);
+ jp.add(tenKVDisasterEightCumulativeLabel);
+ jp.add(transmitElectricityCumulativeOutageUvhJt);
+ jp.add(transmitElectricityCumulativeOutageFiveJt);
+ jp.add(transmitElectricityCumulativeOutageTwoJt);
+ jp.add(transmitElectricityCumulativeOutageOneJt);
+ jp.add(transmitElectricityCumulativeOutageThreeJt);
+ jp.add(transmitElectricityCumulativeOutageTenJt);
+
+ jp.add(emergencyRepairRecoveryEightCumulativeLabel);
+ jp.add(transmitElectricityCumulativeRepairUvhLabel);
+ jp.add(transmitElectricityCumulativeRepairFiveLabel);
+ jp.add(transmitElectricityCumulativeRepairTwoLabel);
+ jp.add(transmitElectricityCumulativeRepairOneLabel);
+ jp.add(transmitElectricityCumulativeRepairThreeLabel);
+ jp.add(transmitElectricityCumulativeRepairTenLabel);
+ jp.add(transmitElectricityCumulativeRepairOutageUvhJt);
+ jp.add(transmitElectricityCumulativeRepairOutageFiveJt);
+ jp.add(transmitElectricityCumulativeRepairOutageTwoJt);
+ jp.add(transmitElectricityCumulativeRepairOutageOneJt);
+ jp.add(transmitElectricityCumulativeRepairOutageThreeJt);
+ jp.add(transmitElectricityCumulativeRepairOutageTenJt);
+
+ jp.add(emergencyEightCumulativeNoRepairRecoveryLabel);
+ jp.add(transmitElectricityCumulativeNoRepairUvhLabel);
+ jp.add(transmitElectricityCumulativeNoRepairFiveLabel);
+ jp.add(transmitElectricityCumulativeNoRepairTwoLabel);
+ jp.add(transmitElectricityCumulativeNoRepairOneLabel);
+ jp.add(transmitElectricityCumulativeNoRepairThreeLabel);
+ jp.add(transmitElectricityCumulativeNoRepairTenLabel);
+ jp.add(transmitElectricityCumulativeNoRepairOutageUvhJt);
+ jp.add(transmitElectricityCumulativeNoRepairOutageFiveJt);
+ jp.add(transmitElectricityCumulativeNoRepairOutageTwoJt);
+ jp.add(transmitElectricityCumulativeNoRepairOutageOneJt);
+ jp.add(transmitElectricityCumulativeNoRepairOutageThreeJt);
+ jp.add(transmitElectricityCumulativeNoRepairOutageTenJt);
+
+ jp.add(annexNineAddLabel);
+ jp.add(suspensionOfDisasterAddNineLabel);
+ jp.add(taiDistrictAddNineDisasterLabel);
+ jp.add(personnelAddNineDisasterLabel);
+ jp.add(nineAddTaiDistrictDisasterJt);
+ jp.add(nineAddPersonnelDisasterJt);
+ jp.add(repairAddNineLabel);
+ jp.add(taiDistrictAddNineRepairLabel);
+ jp.add(personnelAddNineRepairLabel);
+ jp.add(nineAddTaiDistrictRepairJt);
+ jp.add(nineAddPersonnelRepairJt);
+ jp.add(noRepairAddNineLabel);
+ jp.add(taiDistrictAddNineNoRepairLabel);
+ jp.add(personnelAddNineNoRepairLabel);
+ jp.add(nineAddTaiDistrictNoRepairJt);
+ jp.add(nineAddPersonnelNoRepairJt);
+ jp.add(powerAddNineLabel);
+ jp.add(powerPersonnelAddNineLabel);
+ jp.add(powerVehicleAddNineLabel);
+ jp.add(powerPersonnelAddNineJt);
+ jp.add(powerVehicleAddNineJt);
+
+ jp.add(annexNineCumulativeLabel);
+ jp.add(suspensionOfDisasterCumulativeNineLabel);
+ jp.add(taiDistrictCumulativeNineDisasterLabel);
+ jp.add(personnelCumulativeNineDisasterLabel);
+ jp.add(nineCumulativeTaiDistrictDisasterJt);
+ jp.add(nineCumulativePersonnelDisasterJt);
+ jp.add(repairCumulativeNineLabel);
+ jp.add(taiDistrictCumulativeNineRepairLabel);
+ jp.add(personnelCumulativeNineRepairLabel);
+ jp.add(nineCumulativeTaiDistrictRepairJt);
+ jp.add(nineCumulativePersonnelRepairJt);
+ jp.add(noRepairCumulativeNineLabel);
+ jp.add(taiDistrictCumulativeNineNoRepairLabel);
+ jp.add(personnelCumulativeNineNoRepairLabel);
+ jp.add(nineCumulativeTaiDistrictNoRepairJt);
+ jp.add(nineCumulativePersonnelNoRepairJt);
+ jp.add(powerCumulativeNineLabel);
+ jp.add(powerPersonnelCumulativeNineLabel);
+ jp.add(powerVehicleCumulativeNineLabel);
+ jp.add(powerPersonnelCumulativeNineJt);
+ jp.add(powerVehicleCumulativeNineJt);
+ //附件十
+ jp.add(annexTenLabel);
+ jp.add(tenUhvLabel);
+ jp.add(tenFiveHundredKvLabel);
+ jp.add(tenTwoHundredTwentyKvLabel);
+ jp.add(tenOneHundredTenKvLabel);
+ jp.add(tenThirtyFiveKvLabel);
+ jp.add(tenTenKvLabel);
+ jp.add(tenUhvJt);
+ jp.add(tenFiveHundredKvJt);
+ jp.add(tenTwoHundredTwentyKvJt);
+ jp.add(tenOneHundredTenKvJt);
+ jp.add(tenThirtyFiveKvJt);
+ jp.add(tenTenKvJt);
+ jp.add(tenAverageWaterLevelLabel);
+ jp.add(tenMeasuredValueLabel);
+ jp.add(tenDesignValuesLabel);
+ jp.add(tenAverageWaterLevelJt);
+ jp.add(tenMeasuredValueJt);
+ jp.add(tenDesignValuesJt);
+ jp.add(tenActionHasBeenTakenLabel);
+ jp.add(tenActionHasBeenTakenJt);
+ //附件十一
+ jp.add(annexElevenLabel);
+ jp.add(elevenUhvLabel);
+ jp.add(elevenFiveHundredKvLabel);
+ jp.add(elevenTwoHundredTwentyKvLabel);
+ jp.add(elevenOneHundredTenKvLabel);
+ jp.add(elevenThirtyFiveKvLabel);
+ jp.add(elevenTenKvLabel);
+ jp.add(elevenUhvJt);
+ jp.add(elevenFiveHundredKvJt);
+ jp.add(elevenTwoHundredTwentyKvJt);
+ jp.add(elevenOneHundredTenKvJt);
+ jp.add(elevenThirtyFiveKvJt);
+ jp.add(elevenTenKvJt);
+ jp.add(elevenAverageWaterLevelLabel);
+ jp.add(elevenMeasuredValueLabel);
+ jp.add(elevenAverageWaterLevelJt);
+ jp.add(elevenMeasuredValueJt);
+ jp.add(elevenActionHasBeenTakenLabel);
+ jp.add(elevenActionHasBeenTakenJt);
+ //附件十二
+ jp.add(annexTwelveLabel);
+ jp.add(twelveUhvLabel);
+ jp.add(twelveFiveHundredKvLabel);
+ jp.add(twelveTwoHundredTwentyKvLabel);
+ jp.add(twelveOneHundredTenKvLabel);
+ jp.add(twelveThirtyFiveKvLabel);
+ jp.add(twelveTenKvLabel);
+ jp.add(twelveUhvJt);
+ jp.add(twelveFiveHundredKvJt);
+ jp.add(twelveTwoHundredTwentyKvJt);
+ jp.add(twelveOneHundredTenKvJt);
+ jp.add(twelveThirtyFiveKvJt);
+ jp.add(twelveTenKvJt);
+ jp.add(twelveAverageWaterLevelLabel);
+ jp.add(twelveMeasuredValueLabel);
+ jp.add(twelveDesignValuesLabel);
+ jp.add(twelveAverageWaterLevelJt);
+ jp.add(twelveMeasuredValueJt);
+ jp.add(twelveDesignValuesJt);
+ jp.add(twelveActionHasBeenTakenLabel);
+ jp.add(twelveActionHasBeenTakenJt);
+ //十三
+ jp.add(annexThirteenLabel);
+ jp.add(thirteenUhvLabel);
+ jp.add(thirteenFiveHundredKvLabel);
+ jp.add(thirteenTwoHundredTwentyKvLabel);
+ jp.add(thirteenOneHundredTenKvLabel);
+ jp.add(thirteenThirtyFiveKvLabel);
+ jp.add(thirteenTenKvLabel);
+ jp.add(thirteenUhvJt);
+ jp.add(thirteenFiveHundredKvJt);
+ jp.add(thirteenTwoHundredTwentyKvJt);
+ jp.add(thirteenOneHundredTenKvJt);
+ jp.add(thirteenThirtyFiveKvJt);
+ jp.add(thirteenTenKvJt);
+ jp.add(thirteenAverageWaterLevelLabel);
+ jp.add(thirteenMeasuredValueLabel);
+ jp.add(thirteenDesignValuesLabel);
+ jp.add(thirteenAverageWaterLevelJt);
+ jp.add(thirteenMeasuredValueJt);
+ jp.add(thirteenDesignValuesJt);
+ jp.add(thirteenActionHasBeenTakenLabel);
+ jp.add(thirteenActionHasBeenTakenJt);
+ //十四
+ jp.add(annexFourteenLabel);
+ jp.add(fourteenUhvLabel);
+ jp.add(fourteenFiveHundredKvLabel);
+ jp.add(fourteenTwoHundredTwentyKvLabel);
+ jp.add(fourteenOneHundredTenKvLabel);
+ jp.add(fourteenThirtyFiveKvLabel);
+ jp.add(fourteenTenKvLabel);
+ jp.add(fourteenUhvJt);
+ jp.add(fourteenFiveHundredKvJt);
+ jp.add(fourteenTwoHundredTwentyKvJt);
+ jp.add(fourteenOneHundredTenKvJt);
+ jp.add(fourteenThirtyFiveKvJt);
+ jp.add(fourteenTenKvJt);
+ jp.add(fourteenAverageWaterLevelLabel);
+ jp.add(fourteenMeasuredValueLabel);
+ jp.add(fourteenDesignValuesLabel);
+ jp.add(fourteenAverageWaterLevelJt);
+ jp.add(fourteenMeasuredValueJt);
+ jp.add(fourteenDesignValuesJt);
+ jp.add(fourteenActionHasBeenTakenLabel);
+ jp.add(fourteenActionHasBeenTakenJt);
+ jp.add(btn);
+ return jp;
+ }
+
+ /**
+ * 设置数据框中的字体颜色及大小
+ * @param jtf
+ */
+ private void setTextFiledColor(JTextField jtf){
+ jtf.setFont(new Font("微软雅黑",Font.BOLD,50));
+ jtf.setForeground(Color.BLACK);
+ }
+
+ @Override
+ public void mouseClicked(MouseEvent e) {
+ JButton temp = (JButton) e.getSource();
+ if(temp.equals(btn)){
+ List list = getAllField();
+ Boolean check = checkEmpty(list);
+ if(check){
+ DailyBean dailyBean = getDailyBean();
+ insertData(dailyBean);
+ }else{
+ JOptionPane.showMessageDialog(jp,"请检查数据是否填写完毕!","错误",0);
+ }
+ }
+ }
+
+ private DailyBean getDailyBean() {
+ DailyBean bean = new DailyBean();
+ AnnexOneBean oneBean = new AnnexOneBean();
+ AnnexTwoBean twoBean = new AnnexTwoBean();
+ AnnexFourBean fourBean = new AnnexFourBean();
+ AnnexSixBean sixBean = new AnnexSixBean();
+ AnnexSevenBean sevenBean = new AnnexSevenBean();
+ AnnexEightBean eightBean = new AnnexEightBean();
+ AnnexNineBean nineBean = new AnnexNineBean();
+ AnnexThreeBean threeBean = new AnnexThreeBean();
+ AnnexFiveBean fiveBean = new AnnexFiveBean();
+ AnnexTenBean tenBean = new AnnexTenBean();
+ AnnexElevenBean elevenBean = new AnnexElevenBean();
+ AnnexTwelveBean twelveBean = new AnnexTwelveBean();
+ AnnexThirteenBean thirteenBean = new AnnexThirteenBean();
+ AnnexFourteenBean fourteenBean = new AnnexFourteenBean();
+
+ bean.setOverall(overallJt.getText());
+ bean.setImportant_matters(importantMattersJt.getText());
+ bean.setSafety_production(safetyProductionJt.getText());
+ bean.setPersonnel_daily_work(personnelDailyWorkJt.getText());
+ bean.setPower_guarantee_today_work(powerGuaranteeTodayWorkJt.getText());
+ bean.setPower_guarantee_tomorrow_work(powerGuaranteeTomorrowWorkJt.getText());
+ bean.setPower_guarantee_today_pestilence(powerGuaranteeTodayPestilenceJt.getText());
+ bean.setWarning_company(warningCompanyJt.getText());
+ bean.setWarning_company_impatient(warningCompanyImpatientJt.getText());
+ bean.setWarning_society_emergency(warningSocietyEmergencyJt.getText());
+ bean.setOther_situations(otherSituationsJt.getText());
+ oneBean.setExercise_content(exerciseContentBox.getSelectedItem() + "");
+ oneBean.setExercise_person_num(exercisePersonNumJt.getText());
+ oneBean.setExercise_vehicle_num(exerciseVehicleNumJt.getText());
+ oneBean.setExercise_power_vehicle_num(exercisePowerVehicleNumJt.getText());
+ oneBean.setExercise_dynamo_num(exerciseDynamoNumJt.getText());
+ oneBean.setExercise_find_problems(exerciseFindProblemsJt.getText());
+ String exerciseRemark = "";
+ if(!exerciseRemarkJt.getText().contains("请输入")){
+ exerciseRemark = exerciseRemarkJt.getText();
+ }
+ oneBean.setRemark(exerciseRemark);
+ bean.setOneBean(oneBean);
+ twoBean.setVerification_person_num(verificationPersonNumJt.getText());
+ twoBean.setVerification_team_num(verificationTeamNumJt.getText());
+ twoBean.setVerification_equip_num(verificationEquipNumJt.getText());
+ twoBean.setVerification_material_num(verificationMaterialNumJt.getText());
+ twoBean.setVerification_vehicle_num(verificationVehicleNumJt.getText());
+ twoBean.setVerification_find_problems(verificationFindProblemsJt.getText());
+ String verificationRemark = "";
+ if(!verificationRemarkJt.getText().contains("请输入")){
+ verificationRemark = verificationRemarkJt.getText();
+ }
+ twoBean.setRemark(verificationRemark);
+ bean.setTwoBean(twoBean);
+ fourBean.setDesignated_hospitals(designatedHospitalsJt.getText());
+ fourBean.setFever_clinic(feverClinicJt.getText());
+ fourBean.setEpidemic_enterprise(epidemicEnterpriseJt.getText());
+ fourBean.setOther_important_users(otherImportantUsersJt.getText());
+ fourBean.setCustomer_power_personnel(customerPowerPersonnelJt.getText());
+ fourBean.setPower_devops_personnel(powerDevopsPersonnelJt.getText());
+ fourBean.setElectrically_vehicles(electricallyVehiclesJt.getText());
+ fourBean.setEmergency_power_vehicles(emergencyPowerVehiclesJt.getText());
+ fourBean.setEmergency_generator(emergencyGeneratorJt.getText());
+ bean.setFourBean(fourBean);
+ sixBean.setLeaders_command_staff(leadersCommandStaffJt.getText());
+ sixBean.setInput_amount_person(inputAmountPersonJt.getText());
+ sixBean.setInput_amount_vehicle(inputAmountVehicleJt.getText());
+ sixBean.setInput_amount_power_vehicle(inputAmountPowerVehicleJt.getText());
+ sixBean.setInput_amount_dynamo(inputAmountDynamoJt.getText());
+ String inputAmountRemark = "";
+ if(!inputAmountRemarkJt.getText().contains("请输入")){
+ inputAmountRemark = inputAmountRemarkJt.getText();
+ }
+ sixBean.setRemark(inputAmountRemark);
+ bean.setSixBean(sixBean);
+
+ sevenBean.setPower_substation_add_outage_uvh(powerSubstationAddOutageUvhJt.getText());
+ sevenBean.setPower_substation_add_outage_five(powerSubstationAddOutageFiveJt.getText());
+ sevenBean.setPower_substation_add_outage_two(powerSubstationAddOutageTwoJt.getText());
+ sevenBean.setPower_substation_add_outage_one(powerSubstationAddOutageOneJt.getText());
+ sevenBean.setPower_substation_add_outage_three(powerSubstationAddOutageThreeJt.getText());
+ sevenBean.setPower_substation_add_repair_uvh(powerSubstationAddRepairOutageUvhJt.getText());
+ sevenBean.setPower_substation_add_repair_five(powerSubstationAddRepairOutageFiveJt.getText());
+ sevenBean.setPower_substation_add_repair_two(powerSubstationAddRepairOutageTwoJt.getText());
+ sevenBean.setPower_substation_add_repair_one(powerSubstationAddRepairOutageOneJt.getText());
+ sevenBean.setPower_substation_add_repair_three(powerSubstationAddRepairOutageThreeJt.getText());
+ sevenBean.setPower_substation_add_no_repair_uvh(powerSubstationAddNoRepairOutageUvhJt.getText());
+ sevenBean.setPower_substation_add_no_repair_five(powerSubstationAddNoRepairOutageFiveJt.getText());
+ sevenBean.setPower_substation_add_no_repair_two(powerSubstationAddNoRepairOutageTwoJt.getText());
+ sevenBean.setPower_substation_add_no_repair_one(powerSubstationAddNoRepairOutageOneJt.getText());
+ sevenBean.setPower_substation_add_no_repair_three(powerSubstationAddNoRepairOutageThreeJt.getText());
+ sevenBean.setPower_substation_cumulative_outage_uvh(powerSubstationCumulativeOutageUvhJt.getText());
+ sevenBean.setPower_substation_cumulative_outage_five(powerSubstationCumulativeOutageFiveJt.getText());
+ sevenBean.setPower_substation_cumulative_outage_two(powerSubstationCumulativeOutageTwoJt.getText());
+ sevenBean.setPower_substation_cumulative_outage_one(powerSubstationCumulativeOutageOneJt.getText());
+ sevenBean.setPower_substation_cumulative_outage_three(powerSubstationCumulativeOutageThreeJt.getText());
+ sevenBean.setPower_substation_cumulative_repair_uvh(powerSubstationCumulativeRepairOutageUvhJt.getText());
+ sevenBean.setPower_substation_cumulative_repair_five(powerSubstationCumulativeRepairOutageFiveJt.getText());
+ sevenBean.setPower_substation_cumulative_repair_two(powerSubstationCumulativeRepairOutageTwoJt.getText());
+ sevenBean.setPower_substation_cumulative_repair_one(powerSubstationCumulativeRepairOutageOneJt.getText());
+ sevenBean.setPower_substation_cumulative_repair_three(powerSubstationCumulativeRepairOutageThreeJt.getText());
+ sevenBean.setPower_substation_cumulative_no_repair_uvh(powerSubstationCumulativeNoRepairOutageUvhJt.getText());
+ sevenBean.setPower_substation_cumulative_no_repair_five(powerSubstationCumulativeNoRepairOutageFiveJt.getText());
+ sevenBean.setPower_substation_cumulative_no_repair_two(powerSubstationCumulativeNoRepairOutageTwoJt.getText());
+ sevenBean.setPower_substation_cumulative_no_repair_one(powerSubstationCumulativeNoRepairOutageOneJt.getText());
+ sevenBean.setPower_substation_cumulative_no_repair_three(powerSubstationCumulativeNoRepairOutageThreeJt.getText());
+ bean.setSevenBean(sevenBean);
+ eightBean.setTransmit_electricity_add_outage_uvh(transmitElectricityAddOutageUvhJt.getText());
+ eightBean.setTransmit_electricity_add_outage_five(transmitElectricityAddOutageFiveJt.getText());
+ eightBean.setTransmit_electricity_add_outage_two(transmitElectricityAddOutageTwoJt.getText());
+ eightBean.setTransmit_electricity_add_outage_one(transmitElectricityAddOutageOneJt.getText());
+ eightBean.setTransmit_electricity_add_outage_three(transmitElectricityAddOutageThreeJt.getText());
+ eightBean.setTransmit_electricity_add_outage_ten(transmitElectricityAddOutageTenJt.getText());
+ eightBean.setTransmit_electricity_add_repair_uvh(transmitElectricityAddRepairOutageUvhJt.getText());
+ eightBean.setTransmit_electricity_add_repair_five(transmitElectricityAddRepairOutageFiveJt.getText());
+ eightBean.setTransmit_electricity_add_repair_two(transmitElectricityAddRepairOutageTwoJt.getText());
+ eightBean.setTransmit_electricity_add_repair_one(transmitElectricityAddRepairOutageOneJt.getText());
+ eightBean.setTransmit_electricity_add_repair_three(transmitElectricityAddRepairOutageThreeJt.getText());
+ eightBean.setTransmit_electricity_add_repair_ten(transmitElectricityAddRepairOutageTenJt.getText());
+ eightBean.setTransmit_electricity_add_no_repair_uvh(transmitElectricityAddNoRepairOutageUvhJt.getText());
+ eightBean.setTransmit_electricity_add_no_repair_five(transmitElectricityAddNoRepairOutageFiveJt.getText());
+ eightBean.setTransmit_electricity_add_no_repair_two(transmitElectricityAddNoRepairOutageTwoJt.getText());
+ eightBean.setTransmit_electricity_add_no_repair_one(transmitElectricityAddNoRepairOutageOneJt.getText());
+ eightBean.setTransmit_electricity_add_no_repair_three(transmitElectricityAddNoRepairOutageThreeJt.getText());
+ eightBean.setTransmit_electricity_add_no_repair_ten(transmitElectricityAddNoRepairOutageTenJt.getText());
+ eightBean.setTransmit_electricity_cumulative_outage_uvh(transmitElectricityCumulativeOutageUvhJt.getText());
+ eightBean.setTransmit_electricity_cumulative_outage_five(transmitElectricityCumulativeOutageFiveJt.getText());
+ eightBean.setTransmit_electricity_cumulative_outage_two(transmitElectricityCumulativeOutageTwoJt.getText());
+ eightBean.setTransmit_electricity_cumulative_outage_one(transmitElectricityCumulativeOutageOneJt.getText());
+ eightBean.setTransmit_electricity_cumulative_outage_three(transmitElectricityCumulativeOutageThreeJt.getText());
+ eightBean.setTransmit_electricity_cumulative_outage_ten(transmitElectricityCumulativeOutageTenJt.getText());
+ eightBean.setTransmit_electricity_cumulative_repair_uvh(transmitElectricityCumulativeRepairOutageUvhJt.getText());
+ eightBean.setTransmit_electricity_cumulative_repair_five(transmitElectricityCumulativeRepairOutageFiveJt.getText());
+ eightBean.setTransmit_electricity_cumulative_repair_two(transmitElectricityCumulativeRepairOutageTwoJt.getText());
+ eightBean.setTransmit_electricity_cumulative_repair_one(transmitElectricityCumulativeRepairOutageOneJt.getText());
+ eightBean.setTransmit_electricity_cumulative_repair_three(transmitElectricityCumulativeRepairOutageThreeJt.getText());
+ eightBean.setTransmit_electricity_cumulative_repair_ten(transmitElectricityCumulativeRepairOutageTenJt.getText());
+ eightBean.setTransmit_electricity_cumulative_no_repair_uvh(transmitElectricityCumulativeNoRepairOutageUvhJt.getText());
+ eightBean.setTransmit_electricity_cumulative_no_repair_five(transmitElectricityCumulativeNoRepairOutageFiveJt.getText());
+ eightBean.setTransmit_electricity_cumulative_no_repair_two(transmitElectricityCumulativeNoRepairOutageTwoJt.getText());
+ eightBean.setTransmit_electricity_cumulative_no_repair_one(transmitElectricityCumulativeNoRepairOutageOneJt.getText());
+ eightBean.setTransmit_electricity_cumulative_no_repair_three(transmitElectricityCumulativeNoRepairOutageThreeJt.getText());
+ eightBean.setTransmit_electricity_cumulative_no_repair_ten(transmitElectricityCumulativeNoRepairOutageTenJt.getText());
+ bean.setEightBean(eightBean);
+ nineBean.setAdd_blackout_tai_district(nineAddTaiDistrictDisasterJt.getText());
+ nineBean.setAdd_blackout_user(nineAddPersonnelDisasterJt.getText());
+ nineBean.setAdd_repair_tai_district(nineAddTaiDistrictRepairJt.getText());
+ nineBean.setAdd_repair_user(nineAddPersonnelRepairJt.getText());
+ nineBean.setAdd_no_repair_tai_district(nineAddTaiDistrictNoRepairJt.getText());
+ nineBean.setAdd_no_repair_user(nineAddPersonnelNoRepairJt.getText());
+ nineBean.setAdd_power_personnel(powerPersonnelAddNineJt.getText());
+ nineBean.setAdd_power_vehicle(powerVehicleAddNineJt.getText());
+ nineBean.setCumulative_blackout_tai_district(nineCumulativeTaiDistrictDisasterJt.getText());
+ nineBean.setCumulative_blackout_user(nineCumulativePersonnelDisasterJt.getText());
+ nineBean.setCumulative_repair_tai_district(nineCumulativeTaiDistrictRepairJt.getText());
+ nineBean.setCumulative_repair_user(nineCumulativePersonnelRepairJt.getText());
+ nineBean.setCumulative_no_repair_tai_district(nineCumulativeTaiDistrictNoRepairJt.getText());
+ nineBean.setCumulative_no_repair_user(nineCumulativePersonnelNoRepairJt.getText());
+ nineBean.setCumulative_power_personnel(powerPersonnelCumulativeNineJt.getText());
+ nineBean.setCumulative_power_vehicle(powerVehicleCumulativeNineJt.getText());
+ bean.setNineBean(nineBean);
+ /**
+ * 获取附件三
+ */
+ threeBean.setTotalAddDiagnosed(totalAddDiagnosedJt.getText());
+ threeBean.setTotalAddHeal(totalAddHealJt.getText());
+ threeBean.setTotalAddSuspected(totalAddSuspectedJt.getText());
+ threeBean.setTotalExistingDiagnosed(totalExistingDiagnosedJt.getText());
+ threeBean.setTotalExistingHeal(totalExistingHealJt.getText());
+ threeBean.setTotalExistingSuspected(totalExistingSuspectedJt.getText());
+
+ threeBean.setDispatchAddDiagnosed(dispatchAddDiagnosedJt.getText());
+ threeBean.setDispatchAddHeal(dispatchAddHealJt.getText());
+ threeBean.setDispatchAddSuspected(dispatchAddSuspectedJt.getText());
+ threeBean.setDispatchExistingDiagnosed(dispatchExistingDiagnosedJt.getText());
+ threeBean.setDispatchExistingHeal(dispatchExistingHealJt.getText());
+ threeBean.setDispatchExistingSuspected(dispatchExistingSuspectedJt.getText());
+
+ threeBean.setRepairAddDiagnosed(repairAddDiagnosedJt.getText());
+ threeBean.setRepairAddHeal(repairAddHealJt.getText());
+ threeBean.setRepairAddSuspected(repairAddSuspectedJt.getText());
+ threeBean.setRepairExistingDiagnosed(repairExistingDiagnosedJt.getText());
+ threeBean.setRepairExistingHeal(repairExistingHealJt.getText());
+ threeBean.setRepairExistingSuspected(repairExistingSuspectedJt.getText());
+
+ threeBean.setMarketingAddDiagnosed(marketingAddDiagnosedJt.getText());
+ threeBean.setMarketingAddHeal(marketingAddHealJt.getText());
+ threeBean.setMarketingAddSuspected(marketingAddSuspectedJt.getText());
+ threeBean.setMarketingExistingDiagnosed(marketingExistingDiagnosedJt.getText());
+ threeBean.setMarketingExistingHeal(marketingExistingHealJt.getText());
+ threeBean.setMarketingExistingSuspected(marketingExistingSuspectedJt.getText());
+
+ threeBean.setConstructionAddDiagnosed(constructionAddDiagnosedJt.getText());
+ threeBean.setConstructionAddHeal(constructionAddHealJt.getText());
+ threeBean.setConstructionAddSuspected(constructionAddSuspectedJt.getText());
+ threeBean.setConstructionExistingDiagnosed(constructionExistingDiagnosedJt.getText());
+ threeBean.setConstructionExistingHeal(constructionExistingHealJt.getText());
+ threeBean.setConstructionExistingSuspected(constructionExistingSuspectedJt.getText());
+ bean.setThreeBean(threeBean);
+
+ fiveBean.setAirportPort(airportPortJt.getText());
+ fiveBean.setVenueHospital(venueHospitalJt.getText());
+ fiveBean.setGuesthouseHotel(guesthouseHotelJt.getText());
+ fiveBean.setSafeguardPersonnel(safeguardPersonnelJt.getText());
+ fiveBean.setElectricallyGuaranteedVehicles(electricallyGuaranteedVehiclesJt.getText());
+ fiveBean.setPowerGenerationVehicles(powerGenerationVehiclesJt.getText());
+ fiveBean.setDynamo(dynamoJt.getText());
+ if(!fiveRemarkJt.getText().contains("请输入")){
+ fiveBean.setRemark(fiveRemarkJt.getText());
+ }else{
+ fiveBean.setRemark("");
+ }
+ bean.setFiveBean(fiveBean);
+
+ tenBean.setUhv(tenUhvJt.getText());
+ tenBean.setFiveHundredKv(tenFiveHundredKvJt.getText());
+ tenBean.setTwoHundredTwentyKv(tenTwoHundredTwentyKvJt.getText());
+ tenBean.setOneHundredTenKv(tenOneHundredTenKvJt.getText());
+ tenBean.setThirtyFiveKv(tenThirtyFiveKvJt.getText());
+ tenBean.setTenKv(tenTenKvJt.getText());
+ tenBean.setAverageWaterLevel(tenAverageWaterLevelJt.getText());
+ tenBean.setMeasuredValue(tenMeasuredValueJt.getText());
+ tenBean.setDesignValues(tenDesignValuesJt.getText());
+ tenBean.setActionHasBeenTaken(tenActionHasBeenTakenJt.getText());
+ bean.setTenBean(tenBean);
+
+ elevenBean.setUhv(elevenUhvJt.getText());
+ elevenBean.setFiveHundredKv(elevenFiveHundredKvJt.getText());
+ elevenBean.setTwoHundredTwentyKv(elevenTwoHundredTwentyKvJt.getText());
+ elevenBean.setOneHundredTenKv(elevenOneHundredTenKvJt.getText());
+ elevenBean.setThirtyFiveKv(elevenThirtyFiveKvJt.getText());
+ elevenBean.setTenKv(elevenTenKvJt.getText());
+ elevenBean.setAverageWaterLevel(elevenAverageWaterLevelJt.getText());
+ elevenBean.setMeasuredValue(elevenMeasuredValueJt.getText());
+ elevenBean.setActionHasBeenTaken(elevenActionHasBeenTakenJt.getText());
+ bean.setElevenBean(elevenBean);
+
+ twelveBean.setUhv(twelveUhvJt.getText());
+ twelveBean.setFiveHundredKv(twelveFiveHundredKvJt.getText());
+ twelveBean.setTwoHundredTwentyKv(twelveTwoHundredTwentyKvJt.getText());
+ twelveBean.setOneHundredTenKv(twelveOneHundredTenKvJt.getText());
+ twelveBean.setThirtyFiveKv(twelveThirtyFiveKvJt.getText());
+ twelveBean.setTenKv(twelveTenKvJt.getText());
+ twelveBean.setAverageWaterLevel(twelveAverageWaterLevelJt.getText());
+ twelveBean.setMeasuredValue(twelveMeasuredValueJt.getText());
+ twelveBean.setDesignValues(twelveDesignValuesJt.getText());
+ twelveBean.setActionHasBeenTaken(twelveActionHasBeenTakenJt.getText());
+ bean.setTwelveBean(twelveBean);
+
+ thirteenBean.setUhv(thirteenUhvJt.getText());
+ thirteenBean.setFiveHundredKv(thirteenFiveHundredKvJt.getText());
+ thirteenBean.setTwoHundredTwentyKv(thirteenTwoHundredTwentyKvJt.getText());
+ thirteenBean.setOneHundredTenKv(thirteenOneHundredTenKvJt.getText());
+ thirteenBean.setThirtyFiveKv(thirteenThirtyFiveKvJt.getText());
+ thirteenBean.setTenKv(thirteenTenKvJt.getText());
+ thirteenBean.setAverageWaterLevel(thirteenAverageWaterLevelJt.getText());
+ thirteenBean.setMeasuredValue(thirteenMeasuredValueJt.getText());
+ thirteenBean.setDesignValues(thirteenDesignValuesJt.getText());
+ thirteenBean.setActionHasBeenTaken(thirteenActionHasBeenTakenJt.getText());
+ bean.setThirteenBean(thirteenBean);
+
+ fourteenBean.setUhv(fourteenUhvJt.getText());
+ fourteenBean.setFiveHundredKv(fourteenFiveHundredKvJt.getText());
+ fourteenBean.setTwoHundredTwentyKv(fourteenTwoHundredTwentyKvJt.getText());
+ fourteenBean.setOneHundredTenKv(fourteenOneHundredTenKvJt.getText());
+ fourteenBean.setThirtyFiveKv(fourteenThirtyFiveKvJt.getText());
+ fourteenBean.setTenKv(fourteenTenKvJt.getText());
+ fourteenBean.setAverageWaterLevel(fourteenAverageWaterLevelJt.getText());
+ fourteenBean.setMeasuredValue(fourteenMeasuredValueJt.getText());
+ fourteenBean.setDesignValues(fourteenDesignValuesJt.getText());
+ fourteenBean.setActionHasBeenTaken(fourteenActionHasBeenTakenJt.getText());
+ bean.setFourteenBean(fourteenBean);
+ return bean;
+ }
+
+ private void insertData(DailyBean bean) {
+ String path = DataConfig.filePath+"\\" + type + ".xml";
+ String xml = null;
+ XStream xstream = new XStream(new JettisonMappedXmlDriver());
+ xstream.setMode(XStream.NO_REFERENCES);
+ xstream.alias(type, DailyBean.class);
+ try {
+ xml = xstream.toXML(bean);
+ // 将XML字符串写入文件,并指定字符编码为UTF-8
+ FileOutputStream fos = new FileOutputStream(path);
+ OutputStreamWriter writer = new OutputStreamWriter(fos, "GBK");
+ writer.write(xml);
+ writer.close();
+ System.out.println("文件保存成功");
+ } catch (IOException e) {
+ throw new RuntimeException(e);
+ }
+ if(new File(path).exists()){
+ JOptionPane.showMessageDialog(jp,"日报保存成功!","提示",1);
+ System.exit(0);
+ }
+ }
+
+
+
+ public List getAllField(){
+ List list = new ArrayList();
+ list.add(overallJt.getText() + "");
+ list.add(importantMattersJt.getText() + "");
+ list.add(safetyProductionJt.getText() + "");
+ list.add(personnelDailyWorkJt.getText() + "");
+ list.add(powerGuaranteeTodayWorkJt.getText() + "");
+ list.add(powerGuaranteeTomorrowWorkJt.getText() + "");
+ list.add(powerGuaranteeTodayPestilenceJt.getText() + "");
+ list.add(warningCompanyJt.getText() + "");
+ list.add(warningCompanyImpatientJt.getText() + "");
+ list.add(warningSocietyEmergencyJt.getText() + "");
+ list.add(otherSituationsJt.getText() + "");
+ list.add(exercisePersonNumJt.getText() + "");
+ list.add(exerciseVehicleNumJt.getText() + "");
+ list.add(exercisePowerVehicleNumJt.getText() + "");
+ list.add(exerciseDynamoNumJt.getText() + "");
+ list.add(exerciseFindProblemsJt.getText() + "");
+ list.add(verificationPersonNumJt.getText() + "");
+ list.add(verificationTeamNumJt.getText() + "");
+ list.add(verificationEquipNumJt.getText() + "");
+ list.add(verificationMaterialNumJt.getText() + "");
+ list.add(verificationVehicleNumJt.getText() + "");
+ list.add(verificationFindProblemsJt.getText() + "");
+ list.add(designatedHospitalsJt.getText() + "");
+ list.add(feverClinicJt.getText() + "");
+ list.add(epidemicEnterpriseJt.getText() + "");
+ list.add(otherImportantUsersJt.getText() + "");
+ list.add(customerPowerPersonnelJt.getText() + "");
+ list.add(powerDevopsPersonnelJt.getText() + "");
+ list.add(electricallyVehiclesJt.getText() + "");
+ list.add(emergencyPowerVehiclesJt.getText() + "");
+ list.add(emergencyGeneratorJt.getText() + "");
+ list.add(leadersCommandStaffJt.getText() + "");
+ list.add(inputAmountPersonJt.getText() + "");
+ list.add(inputAmountVehicleJt.getText() + "");
+ list.add(inputAmountPowerVehicleJt.getText() + "");
+ list.add(inputAmountDynamoJt.getText() + "");
+ return list;
+ }
+
+ /**
+ * 检查数据是否填充完全
+ * @param list
+ * @return
+ */
+ public Boolean checkEmpty(List list){
+ for(int i = 0;i < list.size();i++){
+ if(!StringHelper.isEmptyAndNull(list.get(i))){
+ continue;
+ }else{
+ return false;
+ }
+ }
+ return true;
+ }
+
+ @Override
+ public void mousePressed(MouseEvent e) {
+
+ }
+
+ @Override
+ public void mouseReleased(MouseEvent e) {
+
+ }
+
+ @Override
+ public void mouseEntered(MouseEvent e) {
+
+ }
+
+ @Override
+ public void mouseExited(MouseEvent e) {
+ }
+
+ public JPanel view() {
+ return jp;
+ }
+
+ class Placeholder implements FocusListener {
+ private JTextArea textArea;
+ private String placeholder;
+
+ public Placeholder(JTextArea textArea, String placeholder) {
+ this.textArea = textArea;
+ this.placeholder = placeholder;
+ textArea.setText(placeholder);
+ textArea.setForeground(Color.GRAY);
+ textArea.addFocusListener(this);
+ }
+
+ @Override
+ public void focusGained(FocusEvent e) {
+ if (textArea.getText().equals(placeholder)) {
+ textArea.setText("");
+ textArea.setForeground(Color.BLACK);
+ }
+ }
+
+ @Override
+ public void focusLost(FocusEvent e) {
+ if (textArea.getText().isEmpty()) {
+ textArea.setText(placeholder);
+ textArea.setForeground(Color.GRAY);
+ }
+ }
+ }
+
+}
diff --git a/src/main/java/com/bonus/autoweb/UI/frame/Jframe.java b/src/main/java/com/bonus/autoweb/UI/frame/Jframe.java
new file mode 100644
index 0000000..a44196a
--- /dev/null
+++ b/src/main/java/com/bonus/autoweb/UI/frame/Jframe.java
@@ -0,0 +1,69 @@
+package com.bonus.autoweb.UI.frame;
+
+import javax.swing.*;
+import javax.swing.border.EmptyBorder;
+import java.awt.*;
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+
+public class Jframe extends JFrame {
+
+ private JPanel contentPane;
+
+ public static void main(String[] args) {
+ Jframe frame = new Jframe();
+ frame.setVisible(true);
+ }
+
+ public Jframe() {
+ setTitle("信息填报");
+ //设置窗口显示尺寸
+ Dimension dimension = Toolkit.getDefaultToolkit().getScreenSize();
+ setSize(dimension.width / 2, dimension.height / 2);
+ Point p = GraphicsEnvironment.getLocalGraphicsEnvironment().getCenterPoint();
+ setBounds(p.x - (dimension.width + 100) / 3 * 2 / 2, p.y - dimension.height / 2 / 2,
+ (dimension.width + 200) / 3 * 2, dimension.height / 5 * 3);
+ //设置窗口是否可以关闭
+ setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
+ contentPane = new JPanel();
+ contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
+ setContentPane(contentPane);
+ contentPane.setLayout(null);
+ JButton logButton = new JButton("日志");
+ logButton.addActionListener(new ActionListener() {
+ @Override
+ public void actionPerformed(ActionEvent e) {
+ new LogAction();
+ }
+ });
+ logButton.setFont(new Font("微软雅黑",Font.BOLD,50));
+ logButton.setForeground(Color.BLACK);
+ logButton.setBounds(80, 50, 1100, 100);
+ contentPane.add(logButton);
+
+ JButton morningButton = new JButton("早报");
+ morningButton.addActionListener(new ActionListener() {
+ @Override
+ public void actionPerformed(ActionEvent e) {
+ new DailyAction("morning_daily");
+ }
+ });
+ morningButton.setFont(new Font("微软雅黑",Font.BOLD,50));
+ morningButton.setForeground(Color.BLACK);
+ morningButton.setBounds(80, 250, 1100, 100);
+ contentPane.add(morningButton);
+
+ JButton eveningButton = new JButton("晚报");
+ eveningButton.addActionListener(new ActionListener() {
+ @Override
+ public void actionPerformed(ActionEvent e) {
+ new DailyAction("evening_daily");
+ }
+ });
+ eveningButton.setFont(new Font("微软雅黑",Font.BOLD,50));
+ eveningButton.setForeground(Color.BLACK);
+ eveningButton.setBounds(80, 450, 1100, 100);
+ contentPane.add(eveningButton);
+ }
+
+}
diff --git a/src/main/java/com/bonus/autoweb/UI/frame/LogAction.java b/src/main/java/com/bonus/autoweb/UI/frame/LogAction.java
new file mode 100644
index 0000000..c1f9bad
--- /dev/null
+++ b/src/main/java/com/bonus/autoweb/UI/frame/LogAction.java
@@ -0,0 +1,734 @@
+package com.bonus.autoweb.UI.frame;
+
+import com.bonus.autoweb.UI.entity.LogBean;
+import com.bonus.autoweb.base.DataConfig;
+import com.thoughtworks.xstream.XStream;
+import com.thoughtworks.xstream.io.json.JettisonMappedXmlDriver;
+
+import javax.swing.*;
+import java.awt.*;
+import java.awt.event.FocusEvent;
+import java.awt.event.FocusListener;
+import java.awt.event.MouseEvent;
+import java.awt.event.MouseListener;
+import java.io.*;
+import java.net.URLEncoder;
+import java.nio.charset.Charset;
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * 日志页面
+ *
+ * @author zys
+ */
+public class LogAction extends JFrame implements MouseListener {
+
+ private static final long serialVersionUID = 1L;
+
+ JPanel jp;
+
+ JTextField weatherJt, lowTemperatureJt, temperatureJt, eventDetectionTitleJt, powerWorkTitleJt, resourceCheckTitleJt,
+ communicationsTestTitleJt, dailyOperationTitleJt, dailySubmissionTitleJt, warningDisposalTitleJt, generalChroniclesTitleJt;
+ JTextArea eventDetectionContentJt,powerWorkContentJt,resourceCheckContentJt,communicationsTestContentJt,
+ dailyOperationContentJt,dailySubmissionContentJt,warningDisposalContentJt,generalChroniclesContentJt;
+
+ JButton btn;
+
+ JScrollPane jScroller;
+
+ public static void main(String[] args) {
+ new LogAction();
+ }
+
+ public LogAction() {
+ //设置显示窗口标题
+ setTitle("日志填报");
+ Dimension dimension = Toolkit.getDefaultToolkit().getScreenSize();
+ //设置窗口显示尺寸
+ setSize((dimension.width + 420) / 2, dimension.height);
+ Point p = GraphicsEnvironment.getLocalGraphicsEnvironment().getCenterPoint();
+ setBounds(p.x - (dimension.width + 180) / 3 * 2 / 2, p.y - dimension.height / 2 + 25,
+ (dimension.width + 420) / 3 * 2, dimension.height - 50);
+ setResizable(false);
+ //设置窗口是否可以关闭
+ setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
+ //获取本窗口的内容窗格
+ Container c = getContentPane();
+ JPanel jPanel = initMainJpanel();
+ jScroller = new JScrollPane(jPanel, ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS,
+ ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS);
+ //设置滚轮速度
+ jScroller.getVerticalScrollBar().setUnitIncrement(20);
+ c.add(jScroller);
+ //设置本窗口是否可见
+ setVisible(true);
+ initData();
+ }
+
+ private void initData() {
+ if (new File(DataConfig.filePath + "\\log.xml").exists()) {
+ // 反序列化--> 解决乱码问题
+ File file = new File(DataConfig.filePath + "\\log.xml");
+ InputStreamReader in = null;
+ String xml = null;
+ try {
+ //主要就是这里的设置
+ in = new InputStreamReader(new FileInputStream(file), Charset.forName("gbk") );
+ StringBuffer sb = new StringBuffer();
+ char[] array= new char[1024];
+ int length = -1;
+ while((length=in.read(array))!= -1){
+ sb.append(array, 0, length);
+ }
+ in.close();
+ xml=sb.toString().trim();
+ System.out.println(xml);
+ } catch (Exception e) {
+ // TODO: handle exception
+ }
+
+ XStream xstream = new XStream(new JettisonMappedXmlDriver());
+ xstream.alias("log", LogBean.class);
+ LogBean bean = (LogBean) xstream.fromXML(xml);
+ weatherJt.setText(bean.getWeather());
+ lowTemperatureJt.setText(bean.getMin_temperature());
+ temperatureJt.setText(bean.getMax_temperature());
+ eventDetectionTitleJt.setText(bean.getEvent_detection_title());
+ eventDetectionContentJt.setText(bean.getEvent_detection_content());
+ powerWorkTitleJt.setText(bean.getPower_work_title());
+ powerWorkContentJt.setText(bean.getPower_work_content());
+ resourceCheckTitleJt.setText(bean.getResource_check_title());
+ resourceCheckContentJt.setText(bean.getResource_check_content());
+ communicationsTestTitleJt.setText(bean.getCommunications_test_title());
+ communicationsTestContentJt.setText(bean.getCommunications_test_content());
+ dailyOperationTitleJt.setText(bean.getDaily_operation_title());
+ dailyOperationContentJt.setText(bean.getDaily_operation_content());
+ dailySubmissionTitleJt.setText(bean.getDaily_submission_title());
+ dailySubmissionContentJt.setText(bean.getDaily_submission_content());
+ warningDisposalTitleJt.setText(bean.getWarning_disposal_title());
+ warningDisposalContentJt.setText(bean.getWarning_disposal_content());
+ generalChroniclesTitleJt.setText(bean.getGeneral_chronicles_title());
+ generalChroniclesContentJt.setText(bean.getGeneral_chronicles_content());
+ }
+ }
+
+ private JPanel initMainJpanel() {
+ int height = 120 * 40 + 35;
+ Dimension dimension = Toolkit.getDefaultToolkit().getScreenSize();
+ jp = new JPanel();
+ jp.setOpaque(false);
+ jp.setLayout(null);
+ jp.setSize(dimension);
+ jp.setPreferredSize(new Dimension((dimension.width + 100) / 2, height));
+ int oneLabelY = 20;
+ int oneTextY = 35;
+ /**
+ * 天气
+ */
+ JLabel weatherLabel = new JLabel("天气");
+ weatherLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ weatherLabel.setForeground(new Color(11, 24, 76));
+ int weatherJlx = 30;
+ weatherLabel.setBounds(weatherJlx, oneLabelY, 400, 100);
+ /**
+ * 天气输入框
+ */
+ weatherJt = new JTextField();
+ setTextFiledColor(weatherJt);
+ int weatherJtX = weatherJlx + 150;
+ weatherJt.setBounds(weatherJtX, oneTextY, 250, 80);
+
+ /**添加最低气温 调整整体宽度位置*/
+ /**
+ * 最低气温
+ */
+ JLabel lowTemperatureLabel = new JLabel("最低气温");
+ lowTemperatureLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ lowTemperatureLabel.setForeground(new Color(11, 24, 76));
+ int lowTemperatureJlx = weatherJtX + 270;
+ lowTemperatureLabel.setBounds(lowTemperatureJlx, oneLabelY, 200, 100);
+ /**
+ * 最低气温输入框
+ */
+ lowTemperatureJt = new JTextField();
+ setTextFiledColor(lowTemperatureJt);
+ int lowTemperatureJtX = lowTemperatureJlx + 220;
+ lowTemperatureJt.setBounds(lowTemperatureJtX, oneTextY, 160, 80);
+
+
+ /**
+ * 最高气温
+ */
+ JLabel temperatureLabel = new JLabel("最高气温");
+ temperatureLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ temperatureLabel.setForeground(new Color(11, 24, 76));
+ int temperatureJlx = weatherJtX + 700;
+ temperatureLabel.setBounds(temperatureJlx, oneLabelY, 200, 100);
+ /**
+ * 最高气温输入框
+ */
+ temperatureJt = new JTextField();
+ setTextFiledColor(temperatureJt);
+ int temperatureJtX = temperatureJlx + 220;
+ temperatureJt.setBounds(temperatureJtX, oneTextY, 160, 80);
+
+ /**
+ * 一、事件检测
+ */
+ JLabel eventDetectionLabel = new JLabel("一、事件检测");
+ eventDetectionLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ eventDetectionLabel.setForeground(new Color(11, 24, 76));
+ int eventDetectionJlx = 30;
+ int eventDetectionJly = oneLabelY + 120;
+ eventDetectionLabel.setBounds(eventDetectionJlx, eventDetectionJly, 500, 100);
+ /**
+ * 事件检测标题输入框
+ */
+ eventDetectionTitleJt = new JTextField();
+ setTextFiledColor(eventDetectionTitleJt);
+ int eventDetectionTitleJtX = eventDetectionJlx + 500;
+ eventDetectionTitleJt.setBounds(eventDetectionTitleJtX, eventDetectionJly + 15, 810, 80);
+ if (StringHelper.isEmptyAndNull(eventDetectionTitleJt.getText())) {
+ eventDetectionTitleJt.addFocusListener(new MyFocusListener("请输入事件检测标题", eventDetectionTitleJt));
+ }
+
+ /**
+ * 事件检测内容输入框
+ */
+// eventDetectionContentJt = new JTextField();
+// setTextFiledColor(eventDetectionContentJt);
+// int eventDetectionContentJtY = eventDetectionJly + 120;
+// eventDetectionContentJt.setBounds(eventDetectionJlx, eventDetectionContentJtY, 1310, 120);
+// if (StringHelper.isEmptyAndNull(eventDetectionContentJt.getText())) {
+// eventDetectionContentJt.addFocusListener(new MyFocusListener("请输入事件检测内容", eventDetectionContentJt));
+// }
+ eventDetectionContentJt=new JTextArea(7,26);
+ Placeholder placeholder0 = new Placeholder(eventDetectionContentJt, "请输入事件检测内容...");
+ eventDetectionContentJt.setLineWrap(true); //设置文本域中的文本为自动换行
+ eventDetectionContentJt.setForeground(Color.BLACK); //设置组件的背景色
+ eventDetectionContentJt.setFont(new Font("微软雅黑",Font.PLAIN,40)); //修改字体样式
+ eventDetectionContentJt.setBackground(Color.WHITE); //设置按钮背景色
+ JScrollPane jsp=new JScrollPane(eventDetectionContentJt); //将文本域放入滚动窗口
+ Dimension size=eventDetectionContentJt.getPreferredSize(); //获得文本域的首选大小
+ int eventDetectionContentJtY = eventDetectionJly + 120;
+ jsp.setBounds(eventDetectionJlx,eventDetectionContentJtY,1310,size.height+20);
+
+ jp.add(jsp);
+
+ /**
+ * 二、保电工作
+ */
+ JLabel powerWorkLabel = new JLabel("二、保电工作");
+ powerWorkLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ powerWorkLabel.setForeground(new Color(11, 24, 76));
+ int powerWorkJlx = 30;
+ int powerWorkJly = size.height + 300;
+ powerWorkLabel.setBounds(powerWorkJlx, powerWorkJly, 500, 100);
+ /**
+ * 保电工作标题输入框
+ */
+ powerWorkTitleJt = new JTextField();
+ setTextFiledColor(powerWorkTitleJt);
+ int powerWorkTitleJtX = powerWorkJlx + 500;
+ powerWorkTitleJt.setBounds(powerWorkTitleJtX, powerWorkJly + 15, 810, 80);
+ if (StringHelper.isEmptyAndNull(powerWorkTitleJt.getText())) {
+ powerWorkTitleJt.addFocusListener(new MyFocusListener("请输入保电工作标题", powerWorkTitleJt));
+ }
+
+ /**
+ * 保电工作内容输入框
+ */
+// powerWorkContentJt = new JTextField();
+// setTextFiledColor(powerWorkContentJt);
+//
+// powerWorkContentJt.setBounds(powerWorkJlx, powerWorkContentJtY, 1310, 120);
+// if (StringHelper.isEmptyAndNull(powerWorkContentJt.getText())) {
+// powerWorkContentJt.addFocusListener(new MyFocusListener("请输入保电工作内容", powerWorkContentJt));
+// }
+ powerWorkContentJt=new JTextArea(7,26);
+ Placeholder placeholder1 = new Placeholder(powerWorkContentJt, "请输入保电工作内容...");
+ powerWorkContentJt.setLineWrap(true); //设置文本域中的文本为自动换行
+ powerWorkContentJt.setForeground(Color.BLACK); //设置组件的背景色
+ powerWorkContentJt.setFont(new Font("微软雅黑",Font.PLAIN,40)); //修改字体样式
+ powerWorkContentJt.setBackground(Color.WHITE); //设置按钮背景色
+ JScrollPane powerWorkContentJtJsp=new JScrollPane(powerWorkContentJt); //将文本域放入滚动窗口
+ Dimension powerWorkContentJtSize=powerWorkContentJt.getPreferredSize(); //获得文本域的首选大小
+ int powerWorkContentJtY = powerWorkJly + 120;
+ powerWorkContentJtJsp.setBounds(eventDetectionJlx,powerWorkContentJtY,1310,powerWorkContentJtSize.height+20);
+
+ jp.add(powerWorkContentJtJsp);
+ /**
+ * 三、资源核查情况
+ */
+ JLabel resourceCheckLabel = new JLabel("三、资源核查情况");
+ resourceCheckLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ resourceCheckLabel.setForeground(new Color(11, 24, 76));
+ int resourceCheckJlx = 30;
+ int resourceCheckJly = powerWorkContentJtY + 450;
+ resourceCheckLabel.setBounds(resourceCheckJlx, resourceCheckJly, 500, 100);
+ /**
+ * 资源核查情况标题输入框
+ */
+ resourceCheckTitleJt = new JTextField();
+ setTextFiledColor(resourceCheckTitleJt);
+ int resourceCheckTitleJtX = resourceCheckJlx + 500;
+ resourceCheckTitleJt.setBounds(resourceCheckTitleJtX, resourceCheckJly + 15, 810, 80);
+ if (StringHelper.isEmptyAndNull(resourceCheckTitleJt.getText())) {
+ resourceCheckTitleJt.addFocusListener(new MyFocusListener("请输入资源核查情况标题", resourceCheckTitleJt));
+ }
+
+ /**
+ * 资源核查情况内容输入框
+ */
+// resourceCheckContentJt = new JTextField();
+// setTextFiledColor(resourceCheckContentJt);
+// int resourceCheckContentJtY = resourceCheckJly + 120;
+// resourceCheckContentJt.setBounds(resourceCheckJlx, resourceCheckContentJtY, 1310, 120);
+// if (StringHelper.isEmptyAndNull(resourceCheckContentJt.getText())) {
+// resourceCheckContentJt.addFocusListener(new MyFocusListener("请输入资源核查情况内容", resourceCheckContentJt));
+// }
+ resourceCheckContentJt=new JTextArea(7,26);
+ Placeholder placeholder2 = new Placeholder(resourceCheckContentJt, "请输入资源核查情况内容...");
+ resourceCheckContentJt.setLineWrap(true); //设置文本域中的文本为自动换行
+ resourceCheckContentJt.setForeground(Color.BLACK); //设置组件的背景色
+ resourceCheckContentJt.setFont(new Font("微软雅黑",Font.PLAIN,40)); //修改字体样式
+ resourceCheckContentJt.setBackground(Color.WHITE); //设置按钮背景色
+ JScrollPane resourceCheckContentJtJsp=new JScrollPane(resourceCheckContentJt); //将文本域放入滚动窗口
+ Dimension resourceCheckContentJtSize=resourceCheckContentJt.getPreferredSize(); //获得文本域的首选大小
+ int resourceCheckContentJtY = resourceCheckJly + 120;
+ resourceCheckContentJtJsp.setBounds(eventDetectionJlx,resourceCheckContentJtY,1310,resourceCheckContentJtSize.height+20);
+ jp.add(resourceCheckContentJtJsp);
+ /**
+ * 四、通信测试情况
+ */
+ JLabel communicationsTestLabel = new JLabel("四、通信测试情况");
+ communicationsTestLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ communicationsTestLabel.setForeground(new Color(11, 24, 76));
+ int communicationsTestJlx = 30;
+ int communicationsTestJly = resourceCheckContentJtY + 450;
+ communicationsTestLabel.setBounds(communicationsTestJlx, communicationsTestJly, 500, 100);
+ /**
+ * 通信测试情况标题输入框
+ */
+ communicationsTestTitleJt = new JTextField();
+ setTextFiledColor(communicationsTestTitleJt);
+ int communicationsTestTitleJtX = communicationsTestJlx + 500;
+ communicationsTestTitleJt.setBounds(communicationsTestTitleJtX, communicationsTestJly + 15, 810, 80);
+ if (StringHelper.isEmptyAndNull(communicationsTestTitleJt.getText())) {
+ communicationsTestTitleJt.addFocusListener(new MyFocusListener("请输入通信测试情况标题", communicationsTestTitleJt));
+ }
+
+ /**
+ * 通信测试情况内容输入框
+ */
+// communicationsTestContentJt = new JTextField();
+// setTextFiledColor(communicationsTestContentJt);
+// int communicationsTestContentJtY = communicationsTestJly + 120;
+// communicationsTestContentJt.setBounds(communicationsTestJlx, communicationsTestContentJtY, 1310, 120);
+// if (StringHelper.isEmptyAndNull(communicationsTestContentJt.getText())) {
+// communicationsTestContentJt.addFocusListener(new MyFocusListener("请输入通信测试情况内容", communicationsTestContentJt));
+// }
+
+ communicationsTestContentJt=new JTextArea(7,26);
+ Placeholder placeholder3 = new Placeholder(communicationsTestContentJt, "请输入通信测试情况内容...");
+ communicationsTestContentJt.setLineWrap(true); //设置文本域中的文本为自动换行
+ communicationsTestContentJt.setForeground(Color.BLACK); //设置组件的背景色
+ communicationsTestContentJt.setFont(new Font("微软雅黑",Font.PLAIN,40)); //修改字体样式
+ communicationsTestContentJt.setBackground(Color.WHITE); //设置按钮背景色
+ JScrollPane communicationsTestContentJtJsp=new JScrollPane(communicationsTestContentJt); //将文本域放入滚动窗口
+ Dimension communicationsTestContentJtSize=communicationsTestContentJt.getPreferredSize(); //获得文本域的首选大小
+ int communicationsTestContentJtY = communicationsTestJly + 120;
+ communicationsTestContentJtJsp.setBounds(eventDetectionJlx,communicationsTestContentJtY,1310,communicationsTestContentJtSize.height+20);
+ jp.add(communicationsTestContentJtJsp);
+
+ /**
+ * 五、日常操作情况
+ */
+ JLabel dailyOperationLabel = new JLabel("五、日常操作情况");
+ dailyOperationLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ dailyOperationLabel.setForeground(new Color(11, 24, 76));
+ int dailyOperationJlx = 30;
+ int dailyOperationJly = communicationsTestContentJtY + 450;
+ dailyOperationLabel.setBounds(dailyOperationJlx, dailyOperationJly, 500, 100);
+ /**
+ * 日常操作情况标题输入框
+ */
+ dailyOperationTitleJt = new JTextField();
+ setTextFiledColor(dailyOperationTitleJt);
+ int dailyOperationTitleJtX = dailyOperationJlx + 500;
+ dailyOperationTitleJt.setBounds(dailyOperationTitleJtX, dailyOperationJly + 15, 810, 80);
+ if (StringHelper.isEmptyAndNull(dailyOperationTitleJt.getText())) {
+ dailyOperationTitleJt.addFocusListener(new MyFocusListener("请输入日常操作情况标题", dailyOperationTitleJt));
+ }
+
+ /**
+ * 日常操作情况内容输入框
+ */
+// dailyOperationContentJt = new JTextField();
+// setTextFiledColor(dailyOperationContentJt);
+// int dailyOperationContentJtY = dailyOperationJly + 120;
+// dailyOperationContentJt.setBounds(dailyOperationJlx, dailyOperationContentJtY, 1310, 120);
+// if (StringHelper.isEmptyAndNull(dailyOperationContentJt.getText())) {
+// dailyOperationContentJt.addFocusListener(new MyFocusListener("请输入日常操作情况内容", dailyOperationContentJt));
+// }
+
+ dailyOperationContentJt=new JTextArea(7,26);
+ Placeholder placeholder4 = new Placeholder(dailyOperationContentJt, "请输入日常操作情况内容...");
+ dailyOperationContentJt.setLineWrap(true); //设置文本域中的文本为自动换行
+ dailyOperationContentJt.setForeground(Color.BLACK); //设置组件的背景色
+ dailyOperationContentJt.setFont(new Font("微软雅黑",Font.PLAIN,40)); //修改字体样式
+ dailyOperationContentJt.setBackground(Color.WHITE); //设置按钮背景色
+ JScrollPane dailyOperationContentJtJsp=new JScrollPane(dailyOperationContentJt); //将文本域放入滚动窗口
+ Dimension dailyOperationContentJtSize=dailyOperationContentJt.getPreferredSize(); //获得文本域的首选大小
+ int dailyOperationContentJtY = dailyOperationJly + 120;
+ dailyOperationContentJtJsp.setBounds(eventDetectionJlx,dailyOperationContentJtY,1310,dailyOperationContentJtSize.height+20);
+ jp.add(dailyOperationContentJtJsp);
+
+ /**
+ * 六、日报提报情况
+ */
+ JLabel dailySubmissionLabel = new JLabel("六、日报提报情况");
+ dailySubmissionLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ dailySubmissionLabel.setForeground(new Color(11, 24, 76));
+ int dailySubmissionJlx = 30;
+ int dailySubmissionJly = dailyOperationContentJtY + 450;
+ dailySubmissionLabel.setBounds(dailySubmissionJlx, dailySubmissionJly, 500, 100);
+ /**
+ * 日报提报情况标题输入框
+ */
+ dailySubmissionTitleJt = new JTextField();
+ setTextFiledColor(dailySubmissionTitleJt);
+ int dailySubmissionTitleJtX = dailySubmissionJlx + 500;
+ dailySubmissionTitleJt.setBounds(dailySubmissionTitleJtX, dailySubmissionJly + 15, 810, 80);
+ if (StringHelper.isEmptyAndNull(dailySubmissionTitleJt.getText())) {
+ dailySubmissionTitleJt.addFocusListener(new MyFocusListener("请输入日报提报情况标题", dailySubmissionTitleJt));
+ }
+
+ /**
+ * 日报提报情况内容输入框
+ */
+// dailySubmissionContentJt = new JTextField();
+// setTextFiledColor(dailySubmissionContentJt);
+// int dailySubmissionContentJtY = dailySubmissionJly + 120;
+// dailySubmissionContentJt.setBounds(dailySubmissionJlx, dailySubmissionContentJtY, 1310, 120);
+// if (StringHelper.isEmptyAndNull(dailySubmissionContentJt.getText())) {
+// dailySubmissionContentJt.addFocusListener(new MyFocusListener("请输入日报提报情况内容", dailySubmissionContentJt));
+// }
+
+ dailySubmissionContentJt=new JTextArea(7,26);
+ Placeholder placeholder5 = new Placeholder(dailySubmissionContentJt, "请输入日报提报情况内容...");
+ dailySubmissionContentJt.setLineWrap(true); //设置文本域中的文本为自动换行
+ dailySubmissionContentJt.setForeground(Color.BLACK); //设置组件的背景色
+ dailySubmissionContentJt.setFont(new Font("微软雅黑",Font.PLAIN,40)); //修改字体样式
+ dailySubmissionContentJt.setBackground(Color.WHITE); //设置按钮背景色
+ JScrollPane dailySubmissionContentJtJsp=new JScrollPane(dailySubmissionContentJt); //将文本域放入滚动窗口
+ Dimension dailySubmissionContentJtSize=dailySubmissionContentJt.getPreferredSize(); //获得文本域的首选大小
+ int dailySubmissionContentJtY = dailySubmissionJly + 120;
+ dailySubmissionContentJtJsp.setBounds(eventDetectionJlx,dailySubmissionContentJtY,1310,dailySubmissionContentJtSize.height+20);
+ jp.add(dailySubmissionContentJtJsp);
+
+ /**
+ * 七、预警处置
+ */
+ JLabel warningDisposalLabel = new JLabel("七、预警处置");
+ warningDisposalLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ warningDisposalLabel.setForeground(new Color(11, 24, 76));
+ int warningDisposalJlx = 30;
+ int warningDisposalJly = dailySubmissionContentJtY + 450;
+ warningDisposalLabel.setBounds(warningDisposalJlx, warningDisposalJly, 500, 100);
+ /**
+ * 预警处置标题输入框
+ */
+ warningDisposalTitleJt = new JTextField();
+ setTextFiledColor(warningDisposalTitleJt);
+ int warningDisposalTitleJtX = warningDisposalJlx + 500;
+ warningDisposalTitleJt.setBounds(warningDisposalTitleJtX, warningDisposalJly + 15, 810, 80);
+ if (StringHelper.isEmptyAndNull(warningDisposalTitleJt.getText())) {
+ warningDisposalTitleJt.addFocusListener(new MyFocusListener("请输入预警处置标题", warningDisposalTitleJt));
+ }
+
+ /**
+ * 预警处置内容输入框
+ */
+// warningDisposalContentJt = new JTextField();
+// setTextFiledColor(warningDisposalContentJt);
+// int warningDisposalContentJtY = warningDisposalJly + 120;
+// warningDisposalContentJt.setBounds(warningDisposalJlx, warningDisposalContentJtY, 1310, 120);
+// if (StringHelper.isEmptyAndNull(warningDisposalContentJt.getText())) {
+// warningDisposalContentJt.addFocusListener(new MyFocusListener("请输入预警处置内容", warningDisposalContentJt));
+// }
+
+ warningDisposalContentJt=new JTextArea(7,26);
+ Placeholder placeholder6 = new Placeholder(warningDisposalContentJt, "请输入预警处置内容...");
+ warningDisposalContentJt.setLineWrap(true); //设置文本域中的文本为自动换行
+ warningDisposalContentJt.setForeground(Color.BLACK); //设置组件的背景色
+ warningDisposalContentJt.setFont(new Font("微软雅黑",Font.PLAIN,40)); //修改字体样式
+ warningDisposalContentJt.setBackground(Color.WHITE); //设置按钮背景色
+ JScrollPane warningDisposalContentJtJsp=new JScrollPane(warningDisposalContentJt); //将文本域放入滚动窗口
+ Dimension warningDisposalContentJtSize=warningDisposalContentJt.getPreferredSize(); //获得文本域的首选大小
+ int warningDisposalContentJtY = warningDisposalJly + 120;
+ warningDisposalContentJtJsp.setBounds(eventDetectionJlx,warningDisposalContentJtY,1310,warningDisposalContentJtSize.height+20);
+ jp.add(warningDisposalContentJtJsp);
+
+ /**
+ * 八、一般记事
+ */
+ JLabel generalChroniclesLabel = new JLabel("八、一般记事");
+ generalChroniclesLabel.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ generalChroniclesLabel.setForeground(new Color(11, 24, 76));
+ int generalChroniclesJlx = 30;
+ int generalChroniclesJly = warningDisposalContentJtY + 450;
+ generalChroniclesLabel.setBounds(generalChroniclesJlx, generalChroniclesJly, 500, 100);
+ /**
+ * 一般记事标题输入框
+ */
+ generalChroniclesTitleJt = new JTextField();
+ setTextFiledColor(generalChroniclesTitleJt);
+ int generalChroniclesTitleJtX = generalChroniclesJlx + 500;
+ generalChroniclesTitleJt.setBounds(generalChroniclesTitleJtX, generalChroniclesJly + 15, 810, 80);
+ if (StringHelper.isEmptyAndNull(generalChroniclesTitleJt.getText())) {
+ generalChroniclesTitleJt.addFocusListener(new MyFocusListener("请输入一般记事标题", generalChroniclesTitleJt));
+ }
+
+ /**
+ * 一般记事内容输入框
+ */
+// generalChroniclesContentJt = new JTextField();
+// setTextFiledColor(generalChroniclesContentJt);
+// int generalChroniclesContentJtY = generalChroniclesJly + 120;
+// generalChroniclesContentJt.setBounds(generalChroniclesJlx, generalChroniclesContentJtY, 1310, 120);
+// if (StringHelper.isEmptyAndNull(generalChroniclesContentJt.getText())) {
+// generalChroniclesContentJt.addFocusListener(new MyFocusListener("请输入一般记事内容", generalChroniclesContentJt));
+// }
+
+ generalChroniclesContentJt=new JTextArea(7,26);
+ Placeholder placeholder7 = new Placeholder(generalChroniclesContentJt, "请输入一般记事内容...");
+ generalChroniclesContentJt.setLineWrap(true); //设置文本域中的文本为自动换行
+ generalChroniclesContentJt.setForeground(Color.BLACK); //设置组件的背景色
+ generalChroniclesContentJt.setFont(new Font("微软雅黑",Font.PLAIN,40)); //修改字体样式
+ generalChroniclesContentJt.setBackground(Color.WHITE); //设置按钮背景色
+ JScrollPane generalChroniclesContentJtJsp=new JScrollPane(generalChroniclesContentJt); //将文本域放入滚动窗口
+ Dimension generalChroniclesContentJtSize=generalChroniclesContentJt.getPreferredSize(); //获得文本域的首选大小
+ int generalChroniclesContentJtY = generalChroniclesJly + 120;
+ generalChroniclesContentJtJsp.setBounds(eventDetectionJlx,generalChroniclesContentJtY,1310,generalChroniclesContentJtSize.height+20);
+ jp.add(generalChroniclesContentJtJsp);
+
+ btn = new JButton();
+ btn.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ btn.setForeground(Color.BLACK);
+ btn.setText("提交");
+ btn.addMouseListener(this);
+ int btnX = (dimension.width - 100) / 4;
+ btn.setBounds(btnX, generalChroniclesContentJtY + 450, 200, 100);
+
+ jp.add(weatherLabel);
+ jp.add(weatherJt);
+ jp.add(lowTemperatureLabel);
+ jp.add(lowTemperatureJt);
+ jp.add(temperatureLabel);
+ jp.add(temperatureJt);
+ jp.add(eventDetectionLabel);
+ jp.add(eventDetectionTitleJt);
+// jp.add(eventDetectionContentJt);
+ jp.add(powerWorkLabel);
+ jp.add(powerWorkTitleJt);
+// jp.add(powerWorkContentJt);
+ jp.add(resourceCheckLabel);
+ jp.add(resourceCheckTitleJt);
+// jp.add(resourceCheckContentJt);
+ jp.add(communicationsTestLabel);
+ jp.add(communicationsTestTitleJt);
+// jp.add(communicationsTestContentJt);
+ jp.add(dailyOperationLabel);
+ jp.add(dailyOperationTitleJt);
+// jp.add(dailyOperationContentJt);
+ jp.add(dailySubmissionLabel);
+ jp.add(dailySubmissionTitleJt);
+// jp.add(dailySubmissionContentJt);
+ jp.add(warningDisposalLabel);
+ jp.add(warningDisposalTitleJt);
+// jp.add(warningDisposalContentJt);
+ jp.add(generalChroniclesLabel);
+ jp.add(generalChroniclesTitleJt);
+// jp.add(generalChroniclesContentJt);
+ jp.add(btn);
+ return jp;
+ }
+
+ /**
+ * 设置数据框中的字体颜色及大小
+ *
+ * @param jtf
+ */
+ private void setTextFiledColor(JTextField jtf) {
+ jtf.setFont(new Font("微软雅黑", Font.BOLD, 50));
+ jtf.setForeground(Color.BLACK);
+ }
+
+ @Override
+ public void mouseClicked(MouseEvent e) {
+ JButton temp = (JButton) e.getSource();
+ if (temp.equals(btn)) {
+ List list = getAllField();
+ Boolean check = checkEmpty(list);
+ if (check) {
+ LogBean logBean = getLogBean();
+ insertData(logBean);
+ } else {
+ JOptionPane.showMessageDialog(jp, "请检查数据是否填写完毕!", "错误", 0);
+ }
+ }
+ }
+
+ private LogBean getLogBean() {
+ LogBean bean = new LogBean();
+ bean.setWeather(weatherJt.getText());
+ bean.setMin_temperature(lowTemperatureJt.getText());
+ bean.setMax_temperature(temperatureJt.getText());
+ bean.setEvent_detection_title(eventDetectionTitleJt.getText());
+ bean.setEvent_detection_content(eventDetectionContentJt.getText());
+ bean.setPower_work_title(powerWorkTitleJt.getText());
+ bean.setPower_work_content(powerWorkContentJt.getText());
+ bean.setResource_check_title(resourceCheckTitleJt.getText());
+ bean.setResource_check_content(resourceCheckContentJt.getText());
+ bean.setCommunications_test_title(communicationsTestTitleJt.getText());
+ bean.setCommunications_test_content(communicationsTestContentJt.getText());
+ bean.setDaily_operation_title(dailyOperationTitleJt.getText());
+ bean.setDaily_operation_content(dailyOperationContentJt.getText());
+ bean.setDaily_submission_title(dailySubmissionTitleJt.getText());
+ bean.setDaily_submission_content(dailySubmissionContentJt.getText());
+ bean.setWarning_disposal_title(warningDisposalTitleJt.getText());
+ bean.setWarning_disposal_content(warningDisposalContentJt.getText());
+ bean.setGeneral_chronicles_title(generalChroniclesTitleJt.getText());
+ bean.setGeneral_chronicles_content(generalChroniclesContentJt.getText());
+ return bean;
+ }
+
+ private void insertData(LogBean logBean) {
+ String xml = null;
+ XStream xstream = new XStream(new JettisonMappedXmlDriver());
+ xstream.setMode(XStream.NO_REFERENCES);
+ xstream.alias("log", LogBean.class);
+ try {
+ xml = xstream.toXML(logBean);
+ // 将XML字符串写入文件,并指定字符编码为UTF-8
+ FileOutputStream fos = new FileOutputStream(DataConfig.filePath + "\\log.xml");
+ OutputStreamWriter writer = new OutputStreamWriter(fos, "GBK");
+ writer.write(xml);
+ writer.close();
+ System.out.println("文件保存成功");
+ } catch (IOException e) {
+ throw new RuntimeException(e);
+ }
+ if (new File(DataConfig.filePath + "\\log.xml").exists()) {
+ JOptionPane.showMessageDialog(jp, "日志保存成功!", "提示", 1);
+ System.exit(0);
+ }
+ }
+
+ // 使用 URLEncoder 库对字符串进行 utf-8 编码
+
+ public String encodePathVariable(String pathVariable) {
+ String ret = "default";
+ try {
+ ret = URLEncoder.encode(pathVariable, "utf-8");
+ System.out.println(pathVariable + " : " + ret);
+ } catch (Exception e) {
+ System.out.println(e);
+ }
+ return ret;
+ }
+
+ public List getAllField() {
+ List list = new ArrayList();
+ list.add(weatherJt.getText() + "");
+ list.add(lowTemperatureJt.getText() + "");
+ list.add(temperatureJt.getText() + "");
+ list.add(eventDetectionTitleJt.getText() + "");
+ list.add(eventDetectionContentJt.getText() + "");
+ list.add(powerWorkTitleJt.getText() + "");
+ list.add(powerWorkContentJt.getText() + "");
+ list.add(resourceCheckTitleJt.getText() + "");
+ list.add(resourceCheckContentJt.getText() + "");
+ list.add(communicationsTestTitleJt.getText() + "");
+ list.add(communicationsTestContentJt.getText() + "");
+ list.add(dailyOperationTitleJt.getText() + "");
+ list.add(dailyOperationContentJt.getText() + "");
+ list.add(dailySubmissionTitleJt.getText() + "");
+ list.add(dailySubmissionContentJt.getText() + "");
+ list.add(warningDisposalTitleJt.getText() + "");
+ list.add(warningDisposalContentJt.getText() + "");
+ list.add(generalChroniclesTitleJt.getText() + "");
+ list.add(generalChroniclesContentJt.getText() + "");
+ return list;
+ }
+
+ /**
+ * 检查数据是否填充完全
+ *
+ * @param list
+ * @return
+ */
+ public Boolean checkEmpty(List list) {
+ for (int i = 0; i < list.size(); i++) {
+ if (!StringHelper.isEmptyAndNull(list.get(i))) {
+ continue;
+ } else {
+ return false;
+ }
+ }
+ return true;
+ }
+
+ @Override
+ public void mousePressed(MouseEvent e) {
+
+ }
+
+ @Override
+ public void mouseReleased(MouseEvent e) {
+
+ }
+
+ @Override
+ public void mouseEntered(MouseEvent e) {
+
+ }
+
+ @Override
+ public void mouseExited(MouseEvent e) {
+ }
+
+ public JScrollPane view() {
+ return jScroller;
+ }
+ class Placeholder implements FocusListener {
+ private JTextArea textArea;
+ private String placeholder;
+
+ public Placeholder(JTextArea textArea, String placeholder) {
+ this.textArea = textArea;
+ this.placeholder = placeholder;
+ textArea.setText(placeholder);
+ textArea.setForeground(Color.GRAY);
+ textArea.addFocusListener(this);
+ }
+
+ @Override
+ public void focusGained(FocusEvent e) {
+ if (textArea.getText().equals(placeholder)) {
+ textArea.setText("");
+ textArea.setForeground(Color.BLACK);
+ }
+ }
+
+ @Override
+ public void focusLost(FocusEvent e) {
+ if (textArea.getText().isEmpty()) {
+ textArea.setText(placeholder);
+ textArea.setForeground(Color.GRAY);
+ }
+ }
+ }
+}
diff --git a/src/main/java/com/bonus/autoweb/UI/frame/MyFocusListener.java b/src/main/java/com/bonus/autoweb/UI/frame/MyFocusListener.java
new file mode 100644
index 0000000..30b80cc
--- /dev/null
+++ b/src/main/java/com/bonus/autoweb/UI/frame/MyFocusListener.java
@@ -0,0 +1,34 @@
+package com.bonus.autoweb.UI.frame;
+
+import javax.swing.*;
+import java.awt.*;
+import java.awt.event.FocusEvent;
+import java.awt.event.FocusListener;
+
+public class MyFocusListener implements FocusListener {
+ String info;
+ JTextField jtf;
+ public MyFocusListener(String info, JTextField jtf){
+ this.info=info;
+ this.jtf=jtf;
+ jtf.setForeground(new Color(105,105,105));
+ jtf.setText(info);
+ }
+ @Override
+ public void focusGained(FocusEvent e){//获得焦点的时候,清空提示文字
+ jtf.setFont(new Font("微软雅黑",Font.BOLD,50));
+ jtf.setForeground(Color.BLACK);
+ String temp=jtf.getText();
+ if(temp.equals(info)){
+ jtf.setText("");
+ }
+ }
+ public void focusLost(FocusEvent e){//失去焦点的时候,判断如果为空,就显示提示文字
+ String temp=jtf.getText();
+ if(temp.equals("")){
+ jtf.setFont(new Font("微软雅黑",Font.BOLD,50));
+ jtf.setForeground(new Color(105,105,105));
+ jtf.setText(info);
+ }
+ }
+}
diff --git a/src/main/java/com/bonus/autoweb/UI/frame/StringHelper.java b/src/main/java/com/bonus/autoweb/UI/frame/StringHelper.java
new file mode 100644
index 0000000..915eb63
--- /dev/null
+++ b/src/main/java/com/bonus/autoweb/UI/frame/StringHelper.java
@@ -0,0 +1,30 @@
+package com.bonus.autoweb.UI.frame;
+
+public class StringHelper {
+ public static boolean isEmpty(String str) {
+ if (str == null || str.trim().equals("") || str.trim().equals("null")) {
+ return true;
+ }
+ return false;
+ }
+ /**
+ * 判断字符串 不为空
+ */
+ public static boolean isNotEmpty(String str) {
+ return !isEmpty(str);
+ }
+
+ public static boolean isEmptyAndNull(String str) {
+ if (str == null || str.trim().equals("") || str.trim().equals("null")) {
+ return true;
+ }
+ return false;
+ }
+ public static String fillPrefixZero(int v, int len) {
+ String vStr = v + "";
+ while (vStr.length() < len) {
+ vStr = "0" + vStr;
+ }
+ return vStr;
+ }
+}
\ No newline at end of file
diff --git a/src/main/java/com/bonus/autoweb/base/AutoMain.java b/src/main/java/com/bonus/autoweb/base/AutoMain.java
new file mode 100644
index 0000000..d4749b0
--- /dev/null
+++ b/src/main/java/com/bonus/autoweb/base/AutoMain.java
@@ -0,0 +1,380 @@
+package com.bonus.autoweb.base;
+
+import org.openqa.selenium.By;
+import org.openqa.selenium.JavascriptExecutor;
+import org.openqa.selenium.WebDriver;
+import org.openqa.selenium.WebElement;
+import org.openqa.selenium.chrome.ChromeDriver;
+import org.openqa.selenium.chrome.ChromeOptions;
+import org.openqa.selenium.firefox.FirefoxDriver;
+import org.openqa.selenium.interactions.Actions;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import java.util.concurrent.TimeUnit;
+
+
+/**
+ * 自动化操作
+ *
+ * @author 吕继龙
+ */
+public class AutoMain {
+
+ Logger log = LoggerFactory.getLogger(AutoMain.class);
+ //浏览器驱动对象
+ private WebDriver webDriver;
+
+ public WebDriver getWebDriver() {
+ return webDriver;
+ }
+
+ /**
+ * 初始化驱动
+ */
+ public void initDrive(int type) {
+ // chromedriver服务地址
+ System.setProperty(DataConfig.DRIVE_NAME, DataConfig.drivePath);
+ ChromeOptions option = new ChromeOptions();
+ //添加浏览器地址
+// option.setBinary("C:\\Program Files\\Mozilla Firefox\\firefox.exe");//个人本地
+// option.setBinary("C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe");//个人本地
+ option.setBinary("C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe");
+// option.setBinary("C:\\Users\\Administrator\\AppData\\Local\\Google\\Chrome\\Application\\chrome.exe");//宿州
+// option.addArguments("start-fullscreen");
+ option.addArguments("--start-maximized");
+ option.addArguments("--force-device-scale-factor=0.75");
+ option.addArguments("disable-infobars");
+
+ //隐藏页面
+// option.addArguments("--headless");
+// webDriver = new FirefoxDriver(option);
+ webDriver = new ChromeDriver(option);
+ }
+
+ /**
+ * 开始工作
+ */
+ public void startAuto(String userName, String pass) throws Exception {
+ openWeb();
+ login(userName, pass);
+ openDuty();
+ }
+ public void startYuJingAuto(String userName, String pass) throws Exception {
+ openWeb();
+ log.info("打开网站成功");
+ login(userName, pass);
+ log.info("登录成功");
+ openYuJing();
+ }
+ public void startYuJingActionAuto(String userName, String pass) throws Exception {
+ openWeb();
+ log.info("打开网站成功");
+ login(userName, pass);
+ log.info("登录成功");
+ openYuJingAction();
+ }
+ public void startCaoLianAuto(String userName, String pass) throws Exception {
+ openWeb();
+ login(userName, pass);
+ openCheckTheDrills();
+ }
+
+ /**
+ * 打开网站
+ */
+ public void openWeb() throws InterruptedException {
+ //第一步打开指定网站
+ webDriver.get(DataConfig.URL);
+ log.info("打开宿州应急指挥中心网站------------");
+ Thread.sleep(2000);
+ }
+
+ /**
+ * 打开网站并登录系统
+ */
+ private void login(String userName, String pass) throws Exception {
+ //******************************************************************
+ /**
+ * 第二步 用户登录
+ */
+ log.info("使用账号:" + userName + ",进行登录---------");
+ //输入用户名
+ webDriver.findElement(By.id("username")).sendKeys(userName);
+ log.info("输入用户名------------");
+ Thread.sleep(300);
+
+ //输入密码
+ webDriver.findElement(By.id("password")).sendKeys(pass);
+ log.info("输入密码------------");
+ Thread.sleep(300);
+
+ //系统登录
+ webDriver.findElement(By.id("submi")).click();
+ log.info("系统登录------------");
+ Thread.sleep(800);
+ isAlert();
+ }
+
+
+ /**
+ * 判断是否有弹框,隐藏弹框
+ */
+ private void isAlert() {
+ try {
+ WebElement alert = webDriver.findElement(By.xpath("/html/body/div[5]"));
+ JavascriptExecutor js = (JavascriptExecutor) webDriver;
+ js.executeScript("arguments[0].setAttribute(arguments[1],arguments[2])", alert, "style", "display:none");
+ Thread.sleep(3000);
+ }catch (Exception e){
+ log.error("隐藏出错或者没有弹窗");
+ }
+
+ }
+
+ /**
+ * 打开值班管理页面,并定位到值班管理的iframe
+ */
+ private void openDuty() throws InterruptedException {
+ Thread.sleep(5000);
+//
+// try {
+// WebElement alertDiv = webDriver.findElement(By.xpath("/html/body/div[2]/div/div[1]/div/div[1]/div[1]/span"));
+// if(alertDiv.getText()) {
+//
+// }
+// }catch (Exception e){
+//
+// }
+
+ try {
+ webDriver.manage().timeouts().implicitlyWait(3, TimeUnit.SECONDS);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ Thread.sleep(5000);
+ //执行鼠标悬停动作-管理
+ Actions action = new Actions(webDriver);
+ WebElement wegl = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/div[1]/div[5]/div/div/div[6]/span/span/div"));
+ action.moveToElement(wegl).build().perform();
+ Thread.sleep(300);
+
+ //获取管理标签中的aria-describedby属性
+ String attributeId = wegl.getAttribute("aria-describedby");
+ log.info("管理标签的ID值为:" + attributeId);
+ Thread.sleep(300);
+
+
+ //执行鼠标悬停动作-常态值班
+ String ctzbXpath = "//*[@id=\"" + attributeId + "\"]/div/div[1]/div[2]/div[3]";
+ WebElement wectzb = webDriver.findElement(By.xpath(ctzbXpath));
+ action.moveToElement(wectzb).build().perform();
+ Thread.sleep(300);
+
+
+ //打开值班页面
+ //*[@id=\"" + attributeId + "\"]/div/div[2]/div[2]/div[1]/div[2]
+ String zbglXpath = "//*[@id=\"" + attributeId + "\"]/div/div[2]/div[2]/div/div[1]";
+ webDriver.findElement(By.xpath(zbglXpath)).click();
+ log.info("打开值班管理页面------------");
+ Thread.sleep(800);
+
+ //定位值班管理iframe的标签
+ WebElement dutyIframe = webDriver.findElement(By.id("zbgln"));
+ webDriver.switchTo().frame(dutyIframe);
+ log.info("定位到值班管理iframe-----------");
+ Thread.sleep(500);
+
+ //将日期改为今天的日期
+ webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/main/div/div[1]/div[1]/div[3]/div[1]/div[2]/div/button[2]")).click();
+ log.info("将日期选择回当日----------");
+ Thread.sleep(300);
+ }
+
+ private void openYuJing() throws InterruptedException{
+ try {
+ webDriver.manage().timeouts().implicitlyWait(3, TimeUnit.SECONDS);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ Thread.sleep(5000);
+ //执行鼠标悬停动作-管理
+ Actions action = new Actions(webDriver);
+ WebElement wegl = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/div[1]/div[5]/div/div/div[2]/span/span/div"));
+ action.moveToElement(wegl).build().perform();
+ Thread.sleep(300);
+ log.info("执行鼠标悬停动作-管理");
+ //获取管理标签中的aria-describedby属性 el-popover-7909
+ String attributeId = wegl.getAttribute("aria-describedby");
+ log.info("管理标签的ID值为:" + attributeId);
+ Thread.sleep(300);
+
+
+// //执行鼠标悬停动作-常态值班
+// String ctzbXpath = "//*[@id=\"" + attributeId + "\"]/div/div[1]/div[2]/div[3]";
+// WebElement wectzb = webDriver.findElement(By.xpath(ctzbXpath));
+// action.moveToElement(wectzb).build().perform();
+// Thread.sleep(300);
+
+
+ //打开预警响应管理页面
+ //*[@id=\"" + attributeId + "\"]/div/div[2]/div[2]/div[1]/div[2]
+ String zbglXpath = "//*[@id=\"" + attributeId + "\"]/div/div/div[2]/div[3]";
+ webDriver.findElement(By.xpath(zbglXpath)).click();
+ log.info("打开预警页面------------");
+ Thread.sleep(800);
+
+ //定位值班管理iframe的标签
+ WebElement dutyIframe = webDriver.findElement(By.id("warningResTicket"));
+ webDriver.switchTo().frame(dutyIframe);
+ log.info("定位到预警响应管理iframe-----------");
+ Thread.sleep(500);
+ }
+ private void openYuJingAction() throws InterruptedException{
+ try {
+ webDriver.manage().timeouts().implicitlyWait(3, TimeUnit.SECONDS);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ Thread.sleep(5000);
+ //执行鼠标悬停动作-管理
+ Actions action = new Actions(webDriver);
+ WebElement wegl = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/div[1]/div[5]/div/div/div[2]/span/span/div"));
+ action.moveToElement(wegl).build().perform();
+ Thread.sleep(300);
+ log.info("执行鼠标悬停动作-管理");
+ //获取管理标签中的aria-describedby属性 el-popover-7909
+ String attributeId = wegl.getAttribute("aria-describedby");
+ log.info("管理标签的ID值为:" + attributeId);
+ Thread.sleep(300);
+
+
+// //执行鼠标悬停动作-预警行动
+// String ctzbXpath = "//*[@id=\"" + attributeId + "\"]/div/div[1]/div[2]/div[4]";
+// WebElement wectzb = webDriver.findElement(By.xpath(ctzbXpath));
+// action.moveToElement(wectzb).build().perform();
+// Thread.sleep(300);
+
+
+ //打开预警响应管理页面
+ //*[@id=\"" + attributeId + "\"]/div/div[2]/div[2]/div[1]/div[2]
+ String zbglXpath = "//*[@id=\"" + attributeId + "\"]/div/div/div[2]/div[4]";
+ webDriver.findElement(By.xpath(zbglXpath)).click();
+ log.info("打开预警页面------------");
+ Thread.sleep(800);
+
+ //定位值班管理iframe的标签
+ WebElement dutyIframe = webDriver.findElement(By.id("yjczrwgl"));
+ webDriver.switchTo().frame(dutyIframe);
+ log.info("定位到预警响应处置任务管理iframe-----------");
+ Thread.sleep(500);
+ }
+
+ /**
+ * 打开检查操练管理页面,并定位到日常操练的iframe
+ */
+ private void openCheckTheDrills() throws InterruptedException {
+ try {
+ webDriver.manage().timeouts().implicitlyWait(3, TimeUnit.SECONDS);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ Thread.sleep(3000);
+ //执行鼠标悬停动作-管理
+ Actions action = new Actions(webDriver);
+ WebElement wegl = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/div[1]/div[5]/div/div/div[6]/span/span/div"));
+ action.moveToElement(wegl).build().perform();
+ Thread.sleep(300);
+
+ //获取管理标签中的aria-describedby属性
+ String attributeId = wegl.getAttribute("aria-describedby");
+ log.info("管理标签的ID值为:" + attributeId);
+ Thread.sleep(300);
+
+ //执行鼠标悬停动作-检查操练管理
+ String ctzbXpath = "//*[@id=\"" + attributeId + "\"]/div/div[1]/div[2]/div[5]";
+ WebElement wectzb = webDriver.findElement(By.xpath(ctzbXpath));
+ action.moveToElement(wectzb).build().perform();
+ Thread.sleep(300);
+
+ //打开日常操练页面
+ //*[@id=\"" + attributeId + "\"]/div/div[2]/div[2]/div[1]/div[2]
+ String zbglXpath = "//*[@id=\"" + attributeId + "\"]/div/div[2]/div[2]/div/div[1]";
+ webDriver.findElement(By.xpath(zbglXpath)).click();
+ log.info("打开日常操练页面------------");
+ /* TODO 800 --> 1500 */
+ Thread.sleep(1500);
+
+ //定位日常操练iframe的标签
+ WebElement dutyIframe = webDriver.findElement(By.id("rccl"));
+ webDriver.switchTo().frame(dutyIframe);
+ log.info("定位到日常操练iframe-----------");
+ Thread.sleep(8000);
+ //定位日常操练iframe的标签
+ WebElement insideIframe = webDriver.findElement(By.xpath("/html/body/div/section/div[1]/div[2]/div/iframe"));
+ webDriver.switchTo().frame(insideIframe);
+ log.info("定位到日常操练内部iframe-----------");
+ Thread.sleep(3000);
+ }
+
+ /**
+ * 关闭浏览器驱动
+ */
+ public void closeDrive() {
+ log.info("工作完成,退出浏览器");
+ webDriver.quit();
+ }
+
+ public void startAddExercisePlan(String userName, String pass) throws Exception {
+ openWeb();
+ login(userName, pass);
+ startAddExercisePlanAuto();
+ }
+
+ private void startAddExercisePlanAuto() throws InterruptedException {
+ try {
+ webDriver.manage().timeouts().implicitlyWait(3, TimeUnit.SECONDS);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ Thread.sleep(5000);
+ //执行鼠标悬停动作-管理
+ Actions action = new Actions(webDriver);
+ WebElement wegl = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/div[1]/div[5]/div/div/div[6]/span/span/div"));
+ action.moveToElement(wegl).build().perform();
+ Thread.sleep(300);
+
+ //获取管理标签中的aria-describedby属性
+ String attributeId = wegl.getAttribute("aria-describedby");
+ log.info("管理标签的ID值为:" + attributeId);
+ Thread.sleep(300);
+
+ //执行鼠标悬停动作-检查操练管理
+ String ctzbXpath = "//*[@id=\"" + attributeId + "\"]/div/div[1]/div[2]/div[5]";
+ WebElement wectzb = webDriver.findElement(By.xpath(ctzbXpath));
+ action.moveToElement(wectzb).build().perform();
+ Thread.sleep(300);
+
+ //打开检查计划页面
+ //*[@id=\"" + attributeId + "\"]/div/div[2]/div[2]/div[1]/div[2]
+ String zbglXpath = "//*[@id=\"" + attributeId + "\"]/div/div[2]/div[2]/div/div[1]";
+ webDriver.findElement(By.xpath(zbglXpath)).click();
+ log.info("打开日常操练页面------------");
+ /* TODO 800 --> 1500 */
+ Thread.sleep(1500);
+
+ //定位检查计划iframe的标签
+ WebElement dutyIframe = webDriver.findElement(By.id("rccl"));
+ webDriver.switchTo().frame(dutyIframe);
+ log.info("定位到日常操练iframe-----------");
+ Thread.sleep(500);
+ //点击抽查按钮
+ webDriver.findElement(By.xpath("/html/body/div/section/div[1]/div[1]/div/div/div/div[3]")).click();
+
+// //定位日常操练iframe的标签
+// WebElement insideIframe = webDriver.findElement(By.xpath("/html/body/div/section/div[1]/div[2]/div/iframe"));
+// webDriver.switchTo().frame(insideIframe);
+// log.info("定位到日常操练内部iframe-----------");
+// Thread.sleep(3000);
+ }
+}
diff --git a/src/main/java/com/bonus/autoweb/base/AutoUtils.java b/src/main/java/com/bonus/autoweb/base/AutoUtils.java
new file mode 100644
index 0000000..d7549bb
--- /dev/null
+++ b/src/main/java/com/bonus/autoweb/base/AutoUtils.java
@@ -0,0 +1,54 @@
+package com.bonus.autoweb.base;
+
+import java.io.*;
+
+
+
+public class AutoUtils {
+
+
+ /**
+ * 向text写入数据
+ * @param filename
+ * @param content
+ */
+ public static int write(String filename, String content) {
+ int code = 0;
+ try {
+ FileOutputStream fos = new FileOutputStream(filename);
+ OutputStreamWriter osw = new OutputStreamWriter(fos, "UTF-8");
+ BufferedWriter writer = new BufferedWriter(osw);
+ writer.write(content);
+ writer.close();
+ System.out.println("Text file generated successfully.");
+ code = 1;
+ } catch (IOException e) {
+ code = 0;
+ System.out.println("An error occurred while generating the text file.");
+ e.printStackTrace();
+ }
+ return code;
+ }
+
+ /**
+ * 从text读取数据
+ * @param filename
+ */
+ public static String read(String filename){
+ StringBuilder content = new StringBuilder();
+ try {
+ BufferedReader reader = new BufferedReader(new FileReader(filename));
+ String line;
+ while ((line = reader.readLine()) != null) {
+ content.append(line).append("\n");
+ }
+ reader.close();
+ } catch (IOException e) {
+ System.out.println("An error occurred while reading the text file.");
+ content.append("error");
+ e.printStackTrace();
+ }
+ return content.toString();
+ }
+
+}
diff --git a/src/main/java/com/bonus/autoweb/base/DataConfig.java b/src/main/java/com/bonus/autoweb/base/DataConfig.java
new file mode 100644
index 0000000..2125da5
--- /dev/null
+++ b/src/main/java/com/bonus/autoweb/base/DataConfig.java
@@ -0,0 +1,62 @@
+package com.bonus.autoweb.base;
+
+public class DataConfig {
+ /**
+ * url 网站地址
+ */
+ protected static final String URL = "http://20.50.16.10/ecs/#/yjtsgz";
+ /**
+ * 驱动名称
+ */
+ protected static final String DRIVE_NAME = "webdriver.chrome.driver";
+// protected static final String DRIVE_NAME = "webdriver.gecko.driver";
+
+ /**
+ * 用户名1 张宽杰
+ */
+ public static final String USER_NAME1 = "zhangkj1533";
+
+ /**
+ * 密码1
+ */
+ public static final String PASS1 = "zkj1533..";
+
+ /**
+ * 用户名2 张贺
+ */
+ public static final String USER_NAME2 = "zhangh655x";
+
+ /**
+ * 密码2
+ */
+ public static final String PASS2 = "f7ye@158";
+ /**
+ * 用户名3 杨军
+ */
+ public static final String USER_NAME3 = "yangj0052";
+
+ /**
+ * 密码3
+ */
+ public static final String PASS3 = "QWas1357,";
+ /**
+ * 用户名4 肖国德
+ */
+ public static final String USER_NAME4 = "xiaogd1494";
+
+ /**
+ * 密码4
+ */
+ public static final String PASS4 = "xgd**2271";
+
+ /**
+ * 浏览器驱动地址
+ */
+// protected static final String drivePath = "E:\\bns\\chromedriver_win32\\geckodriver.exe";//个人本地
+// protected static final String drivePath = "E:\\chromedriver_win32\\chromedriver.exe";//个人本地
+ protected static final String drivePath = "E:\\bns\\chromedriver_win32\\chromedriver.exe";//宿州客户地址
+
+
+ public static final String filePath = "E:\\bns\\config";
+
+}
diff --git a/src/main/java/com/bonus/autoweb/base/DutyChangeShifts.java b/src/main/java/com/bonus/autoweb/base/DutyChangeShifts.java
new file mode 100644
index 0000000..846d93d
--- /dev/null
+++ b/src/main/java/com/bonus/autoweb/base/DutyChangeShifts.java
@@ -0,0 +1,178 @@
+package com.bonus.autoweb.base;
+
+import com.bonus.autoweb.DateTimeUtils;
+import org.openqa.selenium.By;
+import org.openqa.selenium.WebDriver;
+import org.openqa.selenium.WebElement;
+import org.slf4j.LoggerFactory;
+import org.slf4j.Logger;
+
+/**
+ * 操作交接班
+ */
+public class DutyChangeShifts {
+ private Logger log = LoggerFactory.getLogger(DutyChangeShifts.class);
+ private WebDriver webDriver;
+
+ public DutyChangeShifts(WebDriver webDriver) {
+ this.webDriver = webDriver;
+ }
+
+ /**
+ * 打开交接班页面
+ */
+ public void openChangeShifts() throws InterruptedException {
+ Thread.sleep(5000);
+ //定位交接班并点击
+ webDriver.findElement(By.id("tab-6")).click();
+ log.info("定位交接班并点击1----------");
+ Thread.sleep(300);
+ }
+
+ /**
+ * 交接班操作
+ *
+ * @param classes 班次,,1早班 2晚班
+ * @param type 交班类型 1 交班 2接班
+ */
+ public void dutychangeOper(int classes, int type) throws InterruptedException {
+// JavascriptExecutor jsExecutor = (JavascriptExecutor) webDriver;
+// boolean pageLoaded = false;
+//
+// do {
+// pageLoaded = (Boolean) jsExecutor.executeScript("return document.readyState").equals("complete");
+// } while (!pageLoaded);
+ Thread.sleep(5000);
+ //标签位置
+ String xpaht;
+ if (classes == 1) {
+ if (type == 1) {
+ //早班交班
+ xpaht = "//*[@id=\"pane-6\"]/div/div[3]/div[1]/div[1]/div[2]/button[1]";
+ } else {
+ //早班接班
+ xpaht = "//*[@id=\"pane-6\"]/div/div[3]/div[1]/div[1]/div[2]/button[2]";
+ }
+ } else {
+ if (type == 1) {
+ //晚交班
+ xpaht = "//*[@id=\"pane-6\"]/div/div[3]/div[1]/div[1]/div[2]/button[1]";
+ } else {
+ //晚班接班
+ xpaht = "//*[@id=\"pane-6\"]/div/div[3]/div[1]/div[1]/div[2]/button[2]";
+ }
+ }
+ log.info("交接班地址:"+xpaht+"----------");
+ Thread.sleep(1000*2);
+ webDriver.findElement(By.xpath(xpaht)).click();
+ log.info("定位交接班并点击2----------");
+ Thread.sleep(5000);
+ //交接事项说明
+ if (type == 1) {
+// /html/body/div[3]/div/div[2]/div/form/div[7]/div/div[1]/textarea
+ webDriver.findElement(By.xpath("/html/body/div[3]/div/div[2]/div/form/div[2]/div/div[1]/textarea")).sendKeys("正常");
+ log.info("交接事项说明----------");
+ Thread.sleep(500);
+ //提交
+ webDriver.findElement(By.xpath("/html/body/div[3]/div/div[3]/div/button[2]")).click();
+
+ //取消
+// webDriver.findElement(By.xpath("/html/body/div[3]/div/div[3]/div/button[1]")).click();
+
+ log.info("交班提交----------");
+ Thread.sleep(300);
+ }else{
+ //提交
+ webDriver.findElement(By.xpath("/html/body/div[3]/div/div[3]/div/button[2]")).click();
+// 取消
+// webDriver.findElement(By.xpath("/html/body/div[3]/div/div[3]/div/button[1]")).click();
+ log.info("接班提交----------");
+ Thread.sleep(300);
+ }
+ }
+
+ /**
+ * 选择上个晚班交班
+ */
+ public void changeDay() throws Exception {
+
+ Thread.sleep(1000*3);
+ //判断当前日期是不是每月第一天的日期,true
+ log.info("选择前一天----------");
+ int tr = 1;
+ int td = 1;
+ String xpath;
+ if (!DateTimeUtils.isOneDay()) {
+ //不是本月第一天
+ String currentDay = DateTimeUtils.getCurrentDay();
+ log.info("currentDay:"+currentDay);
+ int weekNum = DateTimeUtils.getWeekNum(currentDay);
+ log.info("weekNum:"+weekNum);
+ int dayNum = DateTimeUtils.getWeekOfDate(currentDay);
+ log.info("dayNum:"+dayNum);
+ /*if (dayNum == 1) {
+ tr = weekNum - 1;
+ td = 7;
+ } else {
+ tr = weekNum;
+ td = dayNum - 1;
+ }*/
+ if (dayNum == 1) {
+ if(DateTimeUtils.getMonthOneDayIs0()){//第一天是0
+ tr = weekNum;
+ }else{
+ tr = weekNum-1;
+ if (weekNum == 1){
+ tr = 5;
+ }
+ }
+ td = 7;
+ }else {
+ if(DateTimeUtils.getMonthOneDayIs0()){//第一天是0
+ tr = weekNum+1;
+ }else{
+ tr = weekNum;
+ }
+ td = dayNum - 1;
+ }
+ xpath = "//*[@id=\"app\"]/div/section/main/div/div[1]/div[1]/div[3]/div[2]/table/tbody/tr[" + tr + "]" + "/td[" + td + "]";
+ } else {
+ //点击上月按钮,切换至上月
+ webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/main/div/div[1]/div[1]/div[3]/div[1]/div[2]/div/button[1]")).click();
+ log.info("点击上月按钮,切换至上月----------");
+ Thread.sleep(300);
+
+ //获取上月最后一天日期
+ String mothDay = DateTimeUtils.getBeforeLastMonthdate();
+ //判断上个月最后一天的位置
+ tr = DateTimeUtils.getWeekNum(mothDay);
+ td = DateTimeUtils.getWeekOfDate(mothDay);
+ xpath = "//*[@id=\"app\"]/div/section/main/div/div[1]/div[1]/div[3]/div[2]/table/tbody/tr[" + tr + "]" + "/td[" + td + "]";
+// String dayNum = mothDay.substring(8, 10);
+// WebElement spanElement = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/main/div/div[1]/div[1]/div[3]/div[2]/table/tbody/tr[" + tr + "]" + "/td[" + td + "]/div/div/div[1]/span"));
+// if (dayNum.equals(spanElement.getText())) {
+// xpath = "//*[@id=\"app\"]/div/section/main/div/div[1]/div[1]/div[3]/div[2]/table/tbody/tr[" + (tr + 1) + "]" + "/td[" + td + "]/div";
+// }
+ }
+ log.info("前一天的地址:"+xpath);
+ //选择前一天的日期
+ webDriver.findElement(By.xpath(xpath)).click();
+ log.info("选择前一天的日期----------");
+ Thread.sleep(300);
+ openChangeShifts();
+
+
+ //进行晚班交班操作
+ log.info("进行晚班交班操作----------");
+ dutychangeOper(2, 1);
+
+ Thread.sleep(1000);
+
+ //将日期选择回当日
+ webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/main/div/div[1]/div[1]/div[3]/div[1]/div[2]/div/button[2]")).click();
+ log.info("将日期选择回当日----------");
+ Thread.sleep(300);
+
+ }
+
+}
\ No newline at end of file
diff --git a/src/main/java/com/bonus/autoweb/base/DutyClock.java b/src/main/java/com/bonus/autoweb/base/DutyClock.java
new file mode 100644
index 0000000..07b05cf
--- /dev/null
+++ b/src/main/java/com/bonus/autoweb/base/DutyClock.java
@@ -0,0 +1,158 @@
+package com.bonus.autoweb.base;
+
+import com.bonus.autoweb.DateTimeUtils;
+import org.openqa.selenium.By;
+import org.openqa.selenium.WebDriver;
+import org.openqa.selenium.WebElement;
+import org.slf4j.LoggerFactory;
+import org.slf4j.Logger;
+
+
+/**
+ * 值班打卡
+ */
+public class DutyClock {
+ private Logger log = LoggerFactory.getLogger(DutyClock.class);
+
+ private WebDriver webDriver;
+
+ public DutyClock(WebDriver webDriver) {
+ this.webDriver = webDriver;
+ }
+
+
+
+ public void openDutyClock() throws InterruptedException {
+ Thread.sleep(1000*4);
+ //定位值班打卡并点击
+ webDriver.findElement(By.id("tab-2")).click();
+ log.info("定位值班打卡并点击----------");
+ Thread.sleep(300);
+ }
+
+ /**
+ * 值班打卡操作
+ *
+ * @param classes 班次,,1早班 2晚班
+ * @param type 打卡类型 1 签到 2签退
+ */
+ public void dutyClockOper(int classes, int type) throws InterruptedException {
+ openDutyClock();
+// JavascriptExecutor jsExecutor = (JavascriptExecutor) webDriver;
+// boolean pageLoaded = false;
+//
+// do {
+// pageLoaded = (Boolean) jsExecutor.executeScript("return document.readyState").equals("complete");
+// } while (!pageLoaded);
+ Thread.sleep(5000);
+ //标签位置
+ String xpaht;
+ if (classes == 1) {
+ if (type == 1) {
+ //早班签到
+ xpaht = "//*[@id=\"pane-2\"]/div/div[3]/div[1]/div[1]/div[2]/button[1]";
+ } else {
+ //早班签退
+ xpaht = "//*[@id=\"pane-2\"]/div/div[3]/div[1]/div[1]/div[2]/button[2]";
+ }
+ } else {
+ if (type == 1) {
+ //晚班签到
+ xpaht = "//*[@id=\"pane-2\"]/div/div[3]/div[2]/div[1]/div[2]/button[1]";
+ } else {
+ //晚班签退
+ xpaht = "//*[@id=\"pane-2\"]/div/div[3]/div[2]/div[1]/div[2]/button[2]";
+ }
+ }
+ Thread.sleep(1000*4);
+ webDriver.findElement(By.xpath(xpaht)).click();
+ log.info("打卡签到----------");
+ Thread.sleep(1000*5);
+
+
+ //点击弹出框确认
+ webDriver.findElement(By.xpath("/html/body/div[2]/div/div[2]/div/div[2]/div[1]")).click();
+ log.info("点击弹出框确认----------");
+ Thread.sleep(800);
+ }
+
+ /**
+ * 选择上个晚班签退
+ */
+ public void changeDay() throws Exception {
+ Thread.sleep(3000);
+ //判断当前日期是不是每月第一天的日期,true
+ boolean tf = false;
+ int tr = 1;
+ int td = 1;
+ String xpath;
+ if (!DateTimeUtils.isOneDay()) {
+ //不是本月第一天
+ String currentDay = DateTimeUtils.getCurrentDay();
+ int weekNum = DateTimeUtils.getWeekNum(currentDay);
+ int dayNum = DateTimeUtils.getWeekOfDate(currentDay);
+ /*if (dayNum == 1) {
+ tr = weekNum - 1;
+ td = 7;
+ } else {
+ tr = weekNum;
+ td = dayNum - 1;
+ }*/
+ if (dayNum == 1) {
+ if(DateTimeUtils.getMonthOneDayIs0()){//第一天是0
+ tr = weekNum;
+ }else{
+ tr = weekNum-1;
+ if (weekNum == 1){
+ tr = 5;
+ }
+ }
+ td = 7;
+ }else {
+ if(DateTimeUtils.getMonthOneDayIs0()){//第一天是0
+ tr = weekNum+1;
+ }else{
+ tr = weekNum;
+ }
+ td = dayNum - 1;
+ }
+ xpath = "//*[@id=\"app\"]/div/section/main/div/div[1]/div[1]/div[3]/div[2]/table/tbody/tr[" + tr + "]" + "/td[" + td + "]";
+ } else {
+ //点击上月按钮,切换至上月
+ webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/main/div/div[1]/div[1]/div[3]/div[1]/div[2]/div/button[1]")).click();
+ log.info("点击上月按钮,切换至上月----------");
+ Thread.sleep(300);
+
+ //获取上月最后一天日期
+ String mothDay=DateTimeUtils.getBeforeLastMonthdate();
+ //判断上个月最后一天的位置
+ tr = DateTimeUtils.getWeekNum(mothDay);
+ td = DateTimeUtils.getWeekOfDate(mothDay);
+
+ xpath = "//*[@id=\"app\"]/div/section/main/div/div[1]/div[1]/div[3]/div[2]/table/tbody/tr[" + tr + "]" + "/td[" + td + "]";
+// String dayNum = mothDay.substring(8, 10);
+// WebElement spanElement = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/main/div/div[1]/div[1]/div[3]/div[2]/table/tbody/tr[" + tr + "]" + "/td[" + td + "]/div/div/div[1]/span"));
+// if (dayNum.equals(spanElement.getText())) {
+// xpath = "//*[@id=\"app\"]/div/section/main/div/div[1]/div[1]/div[3]/div[2]/table/tbody/tr[" + (tr + 1) + "]" + "/td[" + td + "]/div";
+// }
+ }
+ //选择前一天的日期
+ webDriver.findElement(By.xpath(xpath)).click();
+ log.info("选择前一天的日期----------");
+ Thread.sleep(300);
+ openDutyClock();
+ Thread.sleep(3000);
+ //进行晚班签退操作
+ log.info("进行晚班签退操作----------");
+ dutyClockOper(1,2);
+
+ Thread.sleep(300);
+
+ //将日期选择回当日
+ webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/main/div/div[1]/div[1]/div[3]/div[1]/div[2]/div/button[2]")).click();
+ log.info("将日期选择回当日----------");
+ Thread.sleep(300);
+
+ }
+
+}
diff --git a/src/main/java/com/bonus/autoweb/base/DutyDailyCheck.java b/src/main/java/com/bonus/autoweb/base/DutyDailyCheck.java
new file mode 100644
index 0000000..3670fb1
--- /dev/null
+++ b/src/main/java/com/bonus/autoweb/base/DutyDailyCheck.java
@@ -0,0 +1,98 @@
+package com.bonus.autoweb.base;
+
+import org.openqa.selenium.By;
+import org.openqa.selenium.JavascriptExecutor;
+import org.openqa.selenium.WebDriver;
+import org.openqa.selenium.WebElement;
+import org.slf4j.LoggerFactory;
+import org.slf4j.Logger;
+
+/**
+ * 日报审核工作
+ */
+public class DutyDailyCheck {
+ private Logger log = LoggerFactory.getLogger(DutyDailyCheck.class);
+ private WebDriver webDriver;
+
+ public DutyDailyCheck(WebDriver webDriver) {
+ this.webDriver = webDriver;
+ }
+
+ /**
+ * 日报审核操作
+ * @param type 1早报 2晚报
+ */
+ public void dutyCheckOp(int type) throws Exception {
+// JavascriptExecutor jsExecutor = (JavascriptExecutor) webDriver;
+// boolean pageLoaded = false;
+//
+// do {
+// pageLoaded = (Boolean) jsExecutor.executeScript("return document.readyState").equals("complete");
+// } while (!pageLoaded);
+ Thread.sleep(5000);
+ //定位值班日报并点击
+ webDriver.findElement(By.id("tab-4")).click();
+ log.info("定位值班日报并点击-----------");
+ Thread.sleep(300);
+ String checkXpath;
+ //早报
+ if(type ==1){
+ checkXpath="//*[@id=\"pane-4\"]/div/div[3]/div/div/div[3]/table/tbody/tr[1]/td[5]/div/p[2]";
+ }else{
+ checkXpath="//*[@id=\"pane-4\"]/div/div[3]/div/div/div[3]/table/tbody/tr[2]/td[5]/div/p[2]";
+ }
+
+ //点击审核按钮
+ log.info("日报审核类型:"+type+",地址:"+checkXpath+"--------");
+ WebElement checkBtn=webDriver.findElement(By.xpath(checkXpath));
+
+// JavascriptExecutor js =(JavascriptExecutor)webDriver;
+// js.executeScript("arguments[0].setAttribute(arguments[1],arguments[2])",checkBtn,"style","color:rgb(0,145,255)");
+ log.info("审核按钮:",checkBtn.getText());
+ Thread.sleep(1000*3);
+
+ checkBtn.click();
+ log.info("点击日报审核按钮--------");
+ Thread.sleep(1000);
+
+ //退出当前iframe,
+ webDriver.switchTo().defaultContent();
+ log.info("退出当前iframe----------");
+ Thread.sleep(300);
+
+ //定位应急工作日报审核iframe的标签
+ WebElement addIframe = webDriver.findElement(By.id("add-local-scrbsh"));
+ webDriver.switchTo().frame(addIframe);
+ log.info("定位应急工作日报审核iframe-----------");
+ Thread.sleep(500);
+
+ //同意审核按钮点击
+
+ WebElement tyCheckBtn=webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[19]/button[4]"));
+ if(tyCheckBtn.isDisplayed()){
+ //存在
+ log.info("同意审核按钮存在-----------");
+ log.info("同意审核按钮钮:"+tyCheckBtn.getAttribute("class"));
+ log.info("同意审核按钮:"+tyCheckBtn.getAttribute("type"));
+ log.info("同意审核按钮:"+tyCheckBtn.getText());
+ tyCheckBtn.click();
+// webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[19]/button[1]")).click();
+
+ }else{
+ log.info("同意审核按钮不存在-----------");
+ }
+ Thread.sleep(800);
+
+ //退出当前iframe,
+ webDriver.switchTo().defaultContent();
+ log.info("退出当前iframe----------");
+ Thread.sleep(1000*2);
+
+
+ //定位值班管理iframe的标签
+ WebElement dutyIframe= webDriver.findElement(By.id("zbgln"));
+ webDriver.switchTo().frame(dutyIframe);
+ log.info("定位值班管理iframe的标签----------");
+ Thread.sleep(300);
+ }
+}
diff --git a/src/main/java/com/bonus/autoweb/base/DutyDailyOp.java b/src/main/java/com/bonus/autoweb/base/DutyDailyOp.java
new file mode 100644
index 0000000..eaf96a7
--- /dev/null
+++ b/src/main/java/com/bonus/autoweb/base/DutyDailyOp.java
@@ -0,0 +1,2009 @@
+package com.bonus.autoweb.base;
+
+import com.bonus.autoweb.DateTimeUtils;
+import com.bonus.autoweb.UI.entity.*;
+import com.thoughtworks.xstream.XStream;
+import com.thoughtworks.xstream.io.json.JettisonMappedXmlDriver;
+import org.openqa.selenium.By;
+import org.openqa.selenium.WebDriver;
+import org.openqa.selenium.WebElement;
+import org.slf4j.LoggerFactory;
+
+import org.slf4j.Logger;
+
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.InputStreamReader;
+import java.nio.charset.Charset;
+import java.util.List;
+
+/**
+ * 日志填报工作类
+ */
+public class DutyDailyOp {
+ private Logger log = LoggerFactory.getLogger(DutyDailyOp.class);
+ private WebDriver webDriver;
+
+ public DutyDailyOp(WebDriver webDriver) {
+ this.webDriver = webDriver;
+ }
+
+ /**
+ * 值班日报填写功能
+ *
+ * @param type 1 早报 2晚报
+ */
+ public void openDutyDaily(int type) throws InterruptedException {
+ // 使用JavaScriptExecutor判断网页加载状态
+// JavascriptExecutor jsExecutor = (JavascriptExecutor) webDriver;
+// boolean pageLoaded = false;
+//
+// do {
+// pageLoaded = (Boolean) jsExecutor.executeScript("return document.readyState").equals("complete");
+// } while (!pageLoaded);
+ Thread.sleep(5000);
+
+ //定位值班日报并点击
+ webDriver.findElement(By.id("tab-4")).click();
+ log.info("定位值班日报并点击-----------");
+ Thread.sleep(500);
+
+ //早报编辑标签定位
+ String zaoBxPath = "//*[@id=\"pane-4\"]/div/div[3]/div/div/div[3]/table/tbody/tr[1]/td[5]/div/p[1]";
+ //晚报编辑标签定位
+ String wanBxpath = "//*[@id=\"pane-4\"]/div/div[3]/div/div/div[3]/table/tbody/tr[2]/td[5]/div/p[1]";
+ if (type == 1) {
+ webDriver.findElement(By.xpath(zaoBxPath)).click();
+ } else {
+ webDriver.findElement(By.xpath(wanBxpath)).click();
+ }
+ log.info("打开早报或晚报编写-----------");
+ Thread.sleep(600);
+
+ //退出当前iframe,进入到日报编辑iframe
+ webDriver.switchTo().defaultContent();
+ log.info("退出值班任务iframe-----------");
+ Thread.sleep(1000);
+
+ //定位日报编辑iframe的标签
+ WebElement dutyEditIframe = webDriver.findElement(By.id("add-local-scrbbz"));
+ webDriver.switchTo().frame(dutyEditIframe);
+ log.info("定位到日报编辑iframe-----------");
+ Thread.sleep(500);
+ editDutyDaily(type);
+ }
+
+
+ /**
+ * 日报编辑功能
+ *
+ * @param type 1 早报 2晚报
+ */
+ private void editDutyDaily(int type) throws InterruptedException {
+ Thread.sleep(1000 * 2);
+ DailyBean bean;
+ XStream xstream = new XStream(new JettisonMappedXmlDriver());
+
+ //获取当日日报内容
+ if (type == 1) {
+ //早报内容
+ File file = new File(DataConfig.filePath + "\\morning_daily.xml");
+ InputStreamReader in = null;
+ String xml = null;
+ try {
+ //主要就是这里的设置
+ in = new InputStreamReader(new FileInputStream(file), Charset.forName("gbk"));
+ StringBuffer sb = new StringBuffer();
+ char[] array = new char[1024];
+ int length = -1;
+ while ((length = in.read(array)) != -1) {
+ sb.append(array, 0, length);
+ }
+ in.close();
+ xml = sb.toString().trim();
+ System.out.println(xml);
+ } catch (Exception e) {
+ // TODO: handle exception
+ }
+ xstream.alias("morning_daily", DailyBean.class);
+ bean = (DailyBean) xstream.fromXML(xml);
+ } else {
+ //晚报内容
+ File file = new File(DataConfig.filePath + "\\evening_daily.xml");
+ InputStreamReader in = null;
+ String xml = null;
+ try {
+ //主要就是这里的设置
+ in = new InputStreamReader(new FileInputStream(file), Charset.forName("gbk"));
+ StringBuffer sb = new StringBuffer();
+ char[] array = new char[1024];
+ int length = -1;
+ while ((length = in.read(array)) != -1) {
+ sb.append(array, 0, length);
+ }
+ in.close();
+ xml = sb.toString().trim();
+ System.out.println(xml);
+ } catch (Exception e) {
+ // TODO: handle exception
+ }
+ xstream.alias("evening_daily", DailyBean.class);
+ bean = (DailyBean) xstream.fromXML(xml);
+ }
+ //总体情况填写
+ String ztqk = bean.getOverall();
+ WebElement ztqkEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/form/div[1]/div/div/div/div/div/textarea"));
+ ztqkEle.clear();
+ Thread.sleep(1000);
+ ztqkEle.sendKeys(ztqk);
+ log.info("总体情况编写-----------");
+ Thread.sleep(1000);
+
+ //重要事项填写
+ String zysx = bean.getImportant_matters();
+ WebElement zysxEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/form/div[2]/div/div/div/div/div[1]/textarea"));
+ zysxEle.clear();
+ zysxEle.sendKeys(zysx);
+ log.info("重要事项填写-----------");
+ Thread.sleep(500);
+
+ //安全生产情况
+ String aqscqk = bean.getSafety_production();
+ WebElement aqscqkEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/form/div[3]/div/div/div/div/div/textarea"));
+ aqscqkEle.clear();
+ Thread.sleep(1000);
+ aqscqkEle.sendKeys(aqscqk);
+ log.info("安全生产情况填写-----------");
+ Thread.sleep(1000);
+
+ //值班员日常工作情况
+ String zbyrcgzqk = bean.getPersonnel_daily_work();
+ WebElement zbyrcgzqkEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/form/div[4]/div/div/div/div/div[1]/textarea"));
+ zbyrcgzqkEle.clear();
+ zbyrcgzqkEle.sendKeys(zbyrcgzqk);
+ log.info("值班员日常工作情况填写-----------");
+ Thread.sleep(1000);
+
+ //供电保障情况1
+ String gdbzqk1 = bean.getPower_guarantee_today_work();
+ //*[@id="app"]/div/section/div/div[4]/div[1]/form/div[5]/div[2]/div/div/div/div/div[1]/textarea
+ WebElement gdbzqk1Ele = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/form/div[5]/div[2]/div/div/div/div/div/textarea"));
+ gdbzqk1Ele.clear();
+ gdbzqk1Ele.sendKeys(gdbzqk1);
+ log.info("供电保障情况1填写-----------");
+ Thread.sleep(1000);
+
+ //供电保障情况2
+ String gdbzqk2 = bean.getPower_guarantee_tomorrow_work();
+ WebElement gdbzqk2Ele = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/form/div[5]/div[3]/div/div/div/div/div/textarea"));
+ gdbzqk2Ele.clear();
+ gdbzqk2Ele.sendKeys(gdbzqk2);
+ log.info("供电保障情况2填写-----------");
+ Thread.sleep(1000);
+
+ //供电保障情况3
+ String gdbzqk3 = bean.getPower_guarantee_today_pestilence();
+ WebElement gdbzqk3Ele = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/form/div[5]/div[4]/div/div/div/div/div/textarea"));
+ gdbzqk3Ele.clear();
+ gdbzqk3Ele.sendKeys(gdbzqk3);
+ log.info("供电保障情况3填写-----------");
+ Thread.sleep(1000);
+
+ //预警及应急响应情况1
+ String yjjyjxy1 = bean.getWarning_company();
+ WebElement yjjyjxy1Ele = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/form/div[6]/div[2]/div/div/div/div/div/textarea"));
+ yjjyjxy1Ele.clear();
+ yjjyjxy1Ele.sendKeys(yjjyjxy1);
+ log.info("预警及应急响应情况1填写-----------");
+ Thread.sleep(1000);
+
+ //预警及应急响应情况2
+ String yjjyjxy2 = bean.getWarning_company_impatient();
+ WebElement yjjyjxy2Ele = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/form/div[6]/div[3]/div/div/div/div/div/textarea"));
+ yjjyjxy2Ele.clear();
+ yjjyjxy2Ele.sendKeys(yjjyjxy2);
+ log.info("预警及应急响应情况2填写-----------");
+ Thread.sleep(1000);
+
+
+ //预警及应急响应情况3
+ String yjjyjxy3 = bean.getWarning_society_emergency();
+ WebElement yjjyjxy3Ele = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/form/div[6]/div[4]/div/div/div/div/div/textarea"));
+ yjjyjxy3Ele.clear();
+ yjjyjxy3Ele.sendKeys(yjjyjxy3);
+ log.info("预警及应急响应情况3填写-----------");
+ Thread.sleep(1000);
+
+ //其他情况说明
+ String qtqksm = bean.getOther_situations();
+ WebElement qtqksmEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/form/div[7]/div/div/div/div/div/div/textarea"));
+ qtqksmEle.clear();
+ qtqksmEle.sendKeys(qtqksm);
+ log.info("其他情况说明填写-----------");
+ Thread.sleep(1000);
+
+ dailySchedule1(bean.getOneBean(), bean);
+ }
+
+ /**
+ * 操作附表1
+ *
+ * @param obj
+ */
+ private void dailySchedule1(AnnexOneBean obj, DailyBean bean) throws InterruptedException {
+ //点击操作内容选择框
+ //*[@id="app"]/div/section/div/div[4]/div[1]/div[1]/div[2]/div/div/div[3]/table/tbody/tr/td[3]/div/div/div
+// webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[1]/div[2]/div/div/div[3]/table/tbody/tr/td[3]/div/div/div[1]")).click();
+//
+// Thread.sleep(300);
+// //获取到的操作内容
+// String operaContent = obj.getExercise_content();
+// //操作内容地址
+// String operaxpath = "/html/body/div[4]/div[1]/div[1]/ul/li[1]";
+//
+// if ("“四要素”检查".equals(operaContent)) {
+// // /html/body/div[2]/div[1]/div[1]/ul/li[1]
+// operaxpath = "/html/body/div[2]/div[1]/div[1]/ul/li[1]";
+// } else if ("通信测试".equals(operaContent)) {
+// operaxpath = "/html/body/div[2]/div[1]/div[1]/ul/li[2]";
+// } else {
+// operaxpath = "/html/body/div[2]/div[1]/div[1]/ul/li[3]";
+// }
+// //选择操作内容
+// webDriver.findElement(By.xpath(operaxpath)).click();
+// log.info("选择操作内容----------");
+// Thread.sleep(300);
+
+ try {
+ WebElement personNumEle = webDriver.findElement(By.xpath("/html/body/div/div/section/div/div[4]/div[1]/div[1]/div[2]/div/div/div[3]/table/tbody/tr[1]/td[7]/div/div/input"));
+ personNumEle.sendKeys("无问题");
+ log.info("填写通信测试问题----------");
+ Thread.sleep(300);
+ }catch (Exception e) {
+ log.info("填写通信测试问题不存在此元素----------");
+ }
+ Thread.sleep(500);
+ try {
+ WebElement carNumEle = webDriver.findElement(By.xpath("//html/body/div/div/section/div/div[4]/div[1]/div[1]/div[2]/div/div/div[3]/table/tbody/tr[2]/td[7]/div/div/input"));
+ carNumEle.sendKeys("无问题");
+ log.info("填写四要素操练问题----------");
+ Thread.sleep(300);
+ }catch (Exception e) {
+ log.info("填写通信测试问题不存在此元素----------");
+ }
+ Thread.sleep(500);
+ try {
+ WebElement fdcNumEle = webDriver.findElement(By.xpath("//html/body/div/div/section/div/div[4]/div[1]/div[1]/div[2]/div/div/div[3]/table/tbody/tr[3]/td[7]/div/div/input"));
+ fdcNumEle.sendKeys("无问题");
+ log.info("填写重大战线视频连线检查问题----------");
+ Thread.sleep(1000);
+ }catch (Exception e) {
+ log.info("填写重大战线视频连线检查问题不存在此元素----------");
+ }
+ Thread.sleep(500);
+// //填写发电机数量
+// String fdjNum = obj.getExercise_dynamo_num();
+// WebElement fdjNumEle= webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[1]/div[2]/div/div/div[3]/table/tbody/tr/td[7]/div/div/input"));
+// fdjNumEle.clear();
+// fdjNumEle.sendKeys(fdjNum);
+// log.info("填写发电机数量----------");
+// Thread.sleep(300);
+//
+//
+// //填写操作发现问题
+// String czfxwt = obj.getExercise_find_problems();
+// WebElement czfxwtEle=webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[1]/div[2]/div/div/div[3]/table/tbody/tr/td[8]/div/div/input"));
+// czfxwtEle.clear();
+// czfxwtEle.sendKeys(czfxwt);
+// log.info("填写操作发现问题----------");
+// Thread.sleep(300);
+// //填写备注
+// String bz = obj.getRemark();
+// WebElement bzEle=webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[1]/div[2]/div/div/div[3]/table/tbody/tr/td[9]/div/div/input"));
+// bzEle.clear();
+// bzEle.sendKeys(bz);
+// log.info("填写备注----------");
+ dailySchedule2(bean.getTwoBean(), bean);
+
+ }
+
+ //操作附表2
+ private void dailySchedule2(AnnexTwoBean obj, DailyBean bean) throws InterruptedException {
+ //填写人员数量
+ String personNum = obj.getVerification_person_num();
+ WebElement personNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[2]/div[2]/div/div/div[3]/table/tbody/tr/td[3]/div/div/div/input"));
+ personNumEle.clear();
+ personNumEle.sendKeys(personNum);
+ log.info("填写人员数量----------");
+ Thread.sleep(300);
+
+ //填写队伍数量
+ String teamNum = obj.getVerification_team_num();
+ WebElement teamNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[2]/div[2]/div/div/div[3]/table/tbody/tr/td[4]/div/div/div/input"));
+ teamNumEle.clear();
+ teamNumEle.sendKeys(teamNum);
+ log.info("填写队伍数量----------");
+ Thread.sleep(300);
+
+
+ //填写装备数量
+ String zbNum = obj.getVerification_equip_num();
+ WebElement zbNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[2]/div[2]/div/div/div[3]/table/tbody/tr/td[5]/div/div/div/input"));
+ zbNumEle.clear();
+ zbNumEle.sendKeys(zbNum);
+ log.info("填写装备数量----------");
+ Thread.sleep(300);
+
+
+ //填写物资数量
+ String wzNum = obj.getVerification_material_num();
+ WebElement wzNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[2]/div[2]/div/div/div[3]/table/tbody/tr/td[6]/div/div/div/input"));
+ wzNumEle.clear();
+ wzNumEle.sendKeys(wzNum);
+ log.info("填写物资数量----------");
+ Thread.sleep(300);
+
+
+ //填写车辆数量
+ String carNum = obj.getVerification_vehicle_num();
+ WebElement carNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[2]/div[2]/div/div/div[3]/table/tbody/tr/td[7]/div/div/div/input"));
+ carNumEle.clear();
+ carNumEle.sendKeys(carNum);
+ log.info("填写车辆数量----------");
+ Thread.sleep(300);
+
+
+ //填写核查发现问题
+ String hzfxwt = obj.getVerification_find_problems();
+ WebElement hzfxwtEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[2]/div[2]/div/div/div[3]/table/tbody/tr/td[8]/div/div/input"));
+ hzfxwtEle.clear();
+ hzfxwtEle.sendKeys(hzfxwt);
+ log.info("填写核查发现问题----------");
+
+
+ Thread.sleep(300);
+ //填写备注
+ String bz = obj.getRemark();
+ WebElement bzEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[2]/div[2]/div/div/div[3]/table/tbody/tr/td[9]/div/div/input"));
+ bzEle.clear();
+ bzEle.sendKeys(bz);
+ log.info("填写备注----------");
+ Thread.sleep(300);
+ dailySchedule3(bean.getThreeBean(), bean);
+ }
+
+ //操作附表3
+ private void dailySchedule3(AnnexThreeBean obj, DailyBean bean) throws InterruptedException {
+// //填写合计-新增-确诊
+// String totalAddDiagnosedNum = obj.getTotalAddDiagnosed();
+// WebElement totalAddDiagnosedEle= webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[2]/div[2]/div/div/div[3]/table/tbody/tr/td[3]/div/div/input"));
+// totalAddDiagnosedEle.clear();
+// totalAddDiagnosedEle.sendKeys(totalAddDiagnosedNum);
+// log.info("填写合计-新增-确诊----------");
+// Thread.sleep(300);
+//
+// //填写合计-现有-确诊
+// String totalExistingDiagnosedNum = obj.getTotalExistingDiagnosed();
+// WebElement totalExistingDiagnosedNumEle= webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[2]/div[2]/div/div/div[3]/table/tbody/tr/td[4]/div/div/input"));
+// totalExistingDiagnosedNumEle.clear();
+// totalExistingDiagnosedNumEle.sendKeys(totalExistingDiagnosedNum);
+// log.info("填写合计-现有-确诊----------");
+// Thread.sleep(300);
+
+ //填写电网调度-新增-确诊
+ String dispatchAddDiagnosedNum = obj.getDispatchAddDiagnosed();
+ WebElement dispatchAddDiagnosedNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[3]/div[2]/div/div/div[3]/table/tbody/tr[1]/td[6]/div/div/div/input"));
+ dispatchAddDiagnosedNumEle.clear();
+ dispatchAddDiagnosedNumEle.sendKeys(dispatchAddDiagnosedNum);
+ log.info("填写电网调度-新增-确诊----------");
+ Thread.sleep(300);
+
+
+ //填写电网调度-现有-确诊
+ String dispatchExistingDiagnosedNum = obj.getDispatchExistingDiagnosed();
+ WebElement dispatchExistingDiagnosedNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[3]/div[2]/div/div/div[3]/table/tbody/tr[1]/td[7]/div/div/div/input"));
+ dispatchExistingDiagnosedNumEle.clear();
+ dispatchExistingDiagnosedNumEle.sendKeys(dispatchExistingDiagnosedNum);
+ log.info("填写电网调度-现有-确诊----------");
+ Thread.sleep(300);
+
+
+ //填写运维检修-新增-确诊
+ String repairAddDiagnosedNum = obj.getRepairAddDiagnosed();
+ WebElement repairAddDiagnosedEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[3]/div[2]/div/div/div[3]/table/tbody/tr[1]/td[8]/div/div/div/input"));
+ repairAddDiagnosedEle.clear();
+ repairAddDiagnosedEle.sendKeys(repairAddDiagnosedNum);
+ log.info("填写运维检修-新增-确诊----------");
+
+ //填写运维检修-现有-确诊
+ String repairExistingDiagnosedNum = obj.getRepairExistingDiagnosed();
+ WebElement repairExistingDiagnosedEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[3]/div[2]/div/div/div[3]/table/tbody/tr[1]/td[9]/div/div/div/input"));
+ repairExistingDiagnosedEle.clear();
+ repairExistingDiagnosedEle.sendKeys(repairExistingDiagnosedNum);
+ log.info("填写运维检修-现有-确诊----------");
+
+ //填写营销服务-新增-确诊
+ String marketingAddDiagnosedNum = obj.getMarketingAddDiagnosed();
+ WebElement marketingAddDiagnosedEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[3]/div[2]/div/div/div[3]/table/tbody/tr[1]/td[10]/div/div/div/input"));
+ marketingAddDiagnosedEle.clear();
+ marketingAddDiagnosedEle.sendKeys(marketingAddDiagnosedNum);
+ log.info("填写营销服务-新增-确诊----------");
+
+ //填写营销服务-现有-确诊
+ String marketingExistingDiagnosedNum = obj.getMarketingExistingDiagnosed();
+ WebElement marketingExistingDiagnosedEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[3]/div[2]/div/div/div[3]/table/tbody/tr[1]/td[11]/div/div/div/input"));
+ marketingExistingDiagnosedEle.clear();
+ marketingExistingDiagnosedEle.sendKeys(marketingExistingDiagnosedNum);
+ log.info("填写营销服务-现有-确诊----------");
+
+ //填写电网建设-新增-确诊
+ String constructionAddDiagnosedNum = obj.getConstructionAddDiagnosed();
+ WebElement constructionAddDiagnosedEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[3]/div[2]/div/div/div[3]/table/tbody/tr[1]/td[12]/div/div/div/input"));
+ constructionAddDiagnosedEle.clear();
+ constructionAddDiagnosedEle.sendKeys(constructionAddDiagnosedNum);
+ log.info("填写营销服务-新增-确诊----------");
+
+ //填写电网建设-现有-确诊
+ String constructionExistingDiagnosedNum = obj.getConstructionExistingDiagnosed();
+ WebElement constructionExistingDiagnosedEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[3]/div[2]/div/div/div[3]/table/tbody/tr[1]/td[13]/div/div/div/input"));
+ constructionExistingDiagnosedEle.clear();
+ constructionExistingDiagnosedEle.sendKeys(constructionExistingDiagnosedNum);
+ log.info("填写营销服务-现有-确诊----------");
+
+// //填写合计-新增-治愈
+// String totalAddHealNum = obj.getTotalAddHeal();
+// WebElement totalAddHealEle= webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[2]/div[2]/div/div/div[3]/table/tbody/tr/td[3]/div/div/input"));
+// totalAddHealEle.clear();
+// totalAddHealEle.sendKeys(totalAddHealNum);
+// log.info("填写合计-新增-治愈----------");
+// Thread.sleep(300);
+//
+// //填写合计-现有-治愈
+// String totalExistingHealNum = obj.getTotalExistingHeal();
+// WebElement totalExistingHealNumEle= webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[2]/div[2]/div/div/div[3]/table/tbody/tr/td[4]/div/div/input"));
+// totalExistingHealNumEle.clear();
+// totalExistingHealNumEle.sendKeys(totalExistingHealNum);
+// log.info("填写合计-现有-治愈----------");
+// Thread.sleep(300);
+
+ //填写电网调度-新增-治愈
+ String dispatchAddHealNum = obj.getDispatchAddHeal();
+ WebElement dispatchAddHealNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[3]/div[2]/div/div/div[3]/table/tbody/tr[2]/td[4]/div/div/div/input"));
+ dispatchAddHealNumEle.clear();
+ dispatchAddHealNumEle.sendKeys(dispatchAddHealNum);
+ log.info("填写电网调度-新增-治愈----------");
+ Thread.sleep(300);
+
+
+ //填写电网调度-现有-治愈
+ String dispatchExistingHealNum = obj.getDispatchExistingHeal();
+ WebElement dispatchExistingHealNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[3]/div[2]/div/div/div[3]/table/tbody/tr[2]/td[5]/div/div/div/input"));
+ dispatchExistingHealNumEle.clear();
+ dispatchExistingHealNumEle.sendKeys(dispatchExistingHealNum);
+ log.info("填写电网调度-现有-治愈----------");
+ Thread.sleep(300);
+
+
+ //填写运维检修-新增-治愈
+ String repairAddHealNum = obj.getRepairAddHeal();
+ WebElement repairAddHealEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[3]/div[2]/div/div/div[3]/table/tbody/tr[2]/td[6]/div/div/div/input"));
+ repairAddHealEle.clear();
+ repairAddHealEle.sendKeys(repairAddHealNum);
+ log.info("填写运维检修-新增-治愈----------");
+
+ //填写运维检修-现有-治愈
+ String repairExistingHealNum = obj.getRepairExistingHeal();
+ WebElement repairExistingHealEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[3]/div[2]/div/div/div[3]/table/tbody/tr[2]/td[7]/div/div/div/input"));
+ repairExistingHealEle.clear();
+ repairExistingHealEle.sendKeys(repairExistingHealNum);
+ log.info("填写运维检修-现有-治愈----------");
+
+ //填写营销服务-新增-治愈
+ String marketingAddHealNum = obj.getMarketingAddHeal();
+ WebElement marketingAddHealEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[3]/div[2]/div/div/div[3]/table/tbody/tr[2]/td[8]/div/div/div/input"));
+ marketingAddHealEle.clear();
+ marketingAddHealEle.sendKeys(marketingAddHealNum);
+ log.info("填写营销服务-新增-治愈----------");
+
+ //填写营销服务-现有-治愈
+ String marketingExistingHealNum = obj.getMarketingExistingHeal();
+ WebElement marketingExistingHealEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[3]/div[2]/div/div/div[3]/table/tbody/tr[2]/td[9]/div/div/div/input"));
+ marketingExistingHealEle.clear();
+ marketingExistingHealEle.sendKeys(marketingExistingHealNum);
+ log.info("填写营销服务-现有-治愈----------");
+
+ //填写电网建设-新增-治愈
+ String constructionAddHealNum = obj.getConstructionAddHeal();
+ WebElement constructionAddHealEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[3]/div[2]/div/div/div[3]/table/tbody/tr[2]/td[10]/div/div/div/input"));
+ constructionAddHealEle.clear();
+ constructionAddHealEle.sendKeys(constructionAddHealNum);
+ log.info("填写营销服务-新增-治愈----------");
+
+ //填写电网建设-现有-治愈
+ String constructionExistingHealNum = obj.getConstructionExistingHeal();
+ WebElement constructionExistingHealEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[3]/div[2]/div/div/div[3]/table/tbody/tr[2]/td[11]/div/div/div/input"));
+ constructionExistingHealEle.clear();
+ constructionExistingHealEle.sendKeys(constructionExistingHealNum);
+ log.info("填写营销服务-现有-治愈----------");
+
+// //填写合计-新增-疑似
+// String totalAddSuspectedNum = obj.getTotalAddSuspected();
+// WebElement totalAddSuspectedEle= webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[2]/div[2]/div/div/div[3]/table/tbody/tr/td[3]/div/div/input"));
+// totalAddSuspectedEle.clear();
+// totalAddSuspectedEle.sendKeys(totalAddSuspectedNum);
+// log.info("填写合计-新增-疑似----------");
+// Thread.sleep(300);
+//
+// //填写合计-现有-疑似
+// String totalExistingSuspectedNum = obj.getTotalExistingSuspected();
+// WebElement totalExistingSuspectedNumEle= webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[2]/div[2]/div/div/div[3]/table/tbody/tr/td[4]/div/div/input"));
+// totalExistingSuspectedNumEle.clear();
+// totalExistingSuspectedNumEle.sendKeys(totalExistingSuspectedNum);
+// log.info("填写合计-现有-疑似----------");
+// Thread.sleep(300);
+
+ //填写电网调度-新增-疑似
+ String dispatchAddSuspectedNum = obj.getDispatchAddSuspected();
+ WebElement dispatchAddSuspectedNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[3]/div[2]/div/div/div[3]/table/tbody/tr[3]/td[4]/div/div/div/input"));
+ dispatchAddSuspectedNumEle.clear();
+ dispatchAddSuspectedNumEle.sendKeys(dispatchAddSuspectedNum);
+ log.info("填写电网调度-新增-疑似----------");
+ Thread.sleep(300);
+
+
+ //填写电网调度-现有-疑似
+ String dispatchExistingSuspectedNum = obj.getDispatchExistingSuspected();
+ WebElement dispatchExistingSuspectedNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[3]/div[2]/div/div/div[3]/table/tbody/tr[3]/td[5]/div/div/div/input"));
+ dispatchExistingSuspectedNumEle.clear();
+ dispatchExistingSuspectedNumEle.sendKeys(dispatchExistingSuspectedNum);
+ log.info("填写电网调度-现有-疑似----------");
+ Thread.sleep(300);
+
+
+ //填写运维检修-新增-疑似
+ String repairAddSuspectedNum = obj.getRepairAddSuspected();
+ WebElement repairAddSuspectedEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[3]/div[2]/div/div/div[3]/table/tbody/tr[3]/td[6]/div/div/div/input"));
+ repairAddSuspectedEle.clear();
+ repairAddSuspectedEle.sendKeys(repairAddSuspectedNum);
+ log.info("填写运维检修-新增-疑似----------");
+
+ //填写运维检修-现有-疑似
+ String repairExistingSuspectedNum = obj.getRepairExistingSuspected();
+ WebElement repairExistingSuspectedEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[3]/div[2]/div/div/div[3]/table/tbody/tr[3]/td[7]/div/div/div/input"));
+ repairExistingSuspectedEle.clear();
+ repairExistingSuspectedEle.sendKeys(repairExistingSuspectedNum);
+ log.info("填写运维检修-现有-疑似----------");
+
+ //填写营销服务-新增-疑似
+ String marketingAddSuspectedNum = obj.getMarketingAddSuspected();
+ WebElement marketingAddSuspectedEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[3]/div[2]/div/div/div[3]/table/tbody/tr[3]/td[8]/div/div/div/input"));
+ marketingAddSuspectedEle.clear();
+ marketingAddSuspectedEle.sendKeys(marketingAddSuspectedNum);
+ log.info("填写营销服务-新增-疑似----------");
+
+ //填写营销服务-现有-疑似
+ String marketingExistingSuspectedNum = obj.getMarketingExistingSuspected();
+ WebElement marketingExistingSuspectedEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[3]/div[2]/div/div/div[3]/table/tbody/tr[3]/td[9]/div/div/div/input"));
+ marketingExistingSuspectedEle.clear();
+ marketingExistingSuspectedEle.sendKeys(marketingExistingSuspectedNum);
+ log.info("填写营销服务-现有-疑似----------");
+
+ //填写电网建设-新增-疑似
+ String constructionAddSuspectedNum = obj.getConstructionAddSuspected();
+ WebElement constructionAddSuspectedEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[3]/div[2]/div/div/div[3]/table/tbody/tr[3]/td[10]/div/div/div/input"));
+ constructionAddSuspectedEle.clear();
+ constructionAddSuspectedEle.sendKeys(constructionAddSuspectedNum);
+ log.info("填写营销服务-新增-疑似----------");
+
+ //填写电网建设-现有-疑似
+ String constructionExistingSuspectedNum = obj.getConstructionExistingSuspected();
+ WebElement constructionExistingSuspectedEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[3]/div[2]/div/div/div[3]/table/tbody/tr[3]/td[11]/div/div/div/input"));
+ constructionExistingSuspectedEle.clear();
+ constructionExistingSuspectedEle.sendKeys(constructionExistingSuspectedNum);
+ log.info("填写营销服务-现有-疑似----------");
+
+ dailySchedule4(bean.getFourBean(), bean);
+ }
+
+ //操作附表4
+ private void dailySchedule4(AnnexFourBean obj, DailyBean bean) throws InterruptedException {
+ //填写定点医院
+ String ddyy = obj.getDesignated_hospitals();
+ WebElement ddyEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[4]/div[2]/div/div/div[3]/table/tbody/tr/td[3]/div/div/div/input"));
+ ddyEle.clear();
+ ddyEle.sendKeys(ddyy);
+ log.info("填写定点医院----------");
+ Thread.sleep(300);
+
+
+ //填写发热门诊
+ String frmz = obj.getFever_clinic();
+ WebElement frmzEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[4]/div[2]/div/div/div[3]/table/tbody/tr/td[4]/div/div/div/input"));
+ frmzEle.clear();
+ frmzEle.sendKeys(frmz);
+ log.info("填写发热门诊----------");
+ Thread.sleep(300);
+
+
+ //填写防疫用品企业
+ String fyypqy = obj.getEpidemic_enterprise();
+ WebElement fyypqyEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[4]/div[2]/div/div/div[3]/table/tbody/tr/td[5]/div/div/div/input"));
+ fyypqyEle.clear();
+ fyypqyEle.sendKeys(fyypqy);
+ log.info("填写防疫用品企业----------");
+ Thread.sleep(300);
+
+
+ //填写其他重要用户
+ String qtzyyh = obj.getOther_important_users();
+ WebElement qtzyyhEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[4]/div[2]/div/div/div[3]/table/tbody/tr/td[6]/div/div/div/input"));
+ qtzyyhEle.clear();
+ qtzyyhEle.sendKeys(qtzyyh);
+ log.info("填写其他重要用户----------");
+ Thread.sleep(300);
+
+
+ //填写客户用电保障人员
+ String khydbz = obj.getCustomer_power_personnel();
+ WebElement khydbzEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[4]/div[2]/div/div/div[3]/table/tbody/tr/td[7]/div/div/div/input"));
+ khydbzEle.clear();
+ khydbzEle.sendKeys(khydbz);
+ log.info("填写客户用电保障人员----------");
+ Thread.sleep(300);
+
+
+ //填写电网运维保障人员
+ String dwywbzry = obj.getPower_devops_personnel();
+ WebElement dwywbzryEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[4]/div[2]/div/div/div[3]/table/tbody/tr/td[8]/div/div/div/input"));
+ dwywbzryEle.clear();
+ dwywbzryEle.sendKeys(dwywbzry);
+ log.info("填写电网运维保障人员----------");
+ Thread.sleep(300);
+
+
+ //填写保电车辆
+ String bdcl = obj.getElectrically_vehicles();
+ WebElement bdclEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[4]/div[2]/div/div/div[3]/table/tbody/tr/td[9]/div/div/div/input"));
+ bdclEle.clear();
+ bdclEle.sendKeys(bdcl);
+ log.info("填写保电车辆----------");
+ Thread.sleep(300);
+
+
+ //填写应急发电车
+ String yjfdc = obj.getEmergency_power_vehicles();
+ WebElement yjfdcEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[4]/div[2]/div/div/div[3]/table/tbody/tr/td[10]/div/div/div/input"));
+ yjfdcEle.clear();
+ yjfdcEle.sendKeys(yjfdc);
+ log.info("填写应急发电车----------");
+ Thread.sleep(300);
+
+
+ //填写应急发电机
+ String yjfdj = obj.getEmergency_generator();
+ WebElement yjfdjEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[4]/div[2]/div/div/div[3]/table/tbody/tr/td[11]/div/div/div/input"));
+ yjfdjEle.clear();
+ yjfdjEle.sendKeys(yjfdj);
+ log.info("填写应急发电机----------");
+ Thread.sleep(300);
+ dailySchedule5(bean.getFiveBean(), bean);
+ }
+
+ //操作附表5
+ private void dailySchedule5(AnnexFiveBean obj, DailyBean bean) throws InterruptedException {
+ //填写机场/港口
+ String airportPortNum = obj.getAirportPort();
+ WebElement airportPortEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[5]/div[2]/div/div/div[3]/table/tbody/tr/td[3]/div/div/div/input"));
+ airportPortEle.clear();
+ airportPortEle.sendKeys(airportPortNum);
+ log.info("填写机场/港口----------");
+ Thread.sleep(300);
+
+ //填写机场/港口
+ String venueHospitalNum = obj.getVenueHospital();
+ WebElement venueHospitalNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[5]/div[2]/div/div/div[3]/table/tbody/tr/td[4]/div/div/div/input"));
+ venueHospitalNumEle.clear();
+ venueHospitalNumEle.sendKeys(venueHospitalNum);
+ log.info("填写机场/港口----------");
+ Thread.sleep(300);
+
+ //填写宾馆酒店
+ String guesthouseHotelNum = obj.getGuesthouseHotel();
+ WebElement guesthouseHotelNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[5]/div[2]/div/div/div[3]/table/tbody/tr/td[5]/div/div/div/input"));
+ guesthouseHotelNumEle.clear();
+ guesthouseHotelNumEle.sendKeys(guesthouseHotelNum);
+ log.info("填写宾馆酒店---------");
+ Thread.sleep(300);
+
+
+ //填写保障人员
+ String safeguardPersonnelNum = obj.getSafeguardPersonnel();
+ WebElement safeguardPersonnelNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[5]/div[2]/div/div/div[3]/table/tbody/tr/td[6]/div/div/div/input"));
+ safeguardPersonnelNumEle.clear();
+ safeguardPersonnelNumEle.sendKeys(safeguardPersonnelNum);
+ log.info("填写保障人员---------");
+ Thread.sleep(300);
+
+
+ //填写保电车辆
+ String electricallyGuaranteedVehiclesNum = obj.getElectricallyGuaranteedVehicles();
+ WebElement electricallyGuaranteedVehiclesEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[5]/div[2]/div/div/div[3]/table/tbody/tr/td[7]/div/div/div/input"));
+ electricallyGuaranteedVehiclesEle.clear();
+ electricallyGuaranteedVehiclesEle.sendKeys(electricallyGuaranteedVehiclesNum);
+ log.info("填写保电车辆----------");
+
+ //填写发电车
+ String powerGenerationVehiclesNum = obj.getPowerGenerationVehicles();
+ WebElement powerGenerationVehiclesEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[5]/div[2]/div/div/div[3]/table/tbody/tr/td[8]/div/div/div/input"));
+ powerGenerationVehiclesEle.clear();
+ powerGenerationVehiclesEle.sendKeys(powerGenerationVehiclesNum);
+ log.info("填写发电车---------");
+
+ //填写发电机
+ String dynamoNum = obj.getDynamo();
+ WebElement dynamoEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[5]/div[2]/div/div/div[3]/table/tbody/tr/td[9]/div/div/div/input"));
+ dynamoEle.clear();
+ dynamoEle.sendKeys(dynamoNum);
+ log.info("填写发电机---------");
+
+ //填写备注
+ String fiveRemark = obj.getRemark();
+ WebElement fiveRemarkEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[5]/div[2]/div/div/div[3]/table/tbody/tr/td[10]/div/div/input"));
+ fiveRemarkEle.clear();
+ fiveRemarkEle.sendKeys(fiveRemark);
+ log.info("填写备注----------");
+ Thread.sleep(300);
+ dailySchedule6(bean.getSixBean(), bean);
+ }
+
+ //操作附表6
+ private void dailySchedule6(AnnexSixBean obj, DailyBean bean) throws InterruptedException {
+ //判断是否需要填写
+ WebElement tbody = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[6]/div/div[2]/div/div/div[3]/table/tbody"));
+
+ List trlist = tbody.findElements(By.tagName("tr"));
+ log.info("附表6tr:" + trlist.size());
+ if (trlist == null || trlist.size() <= 0) {
+ log.info("附表6没有数据不需要填写");
+ } else {
+ //填写领导及指挥人员
+ String ldjzhry = obj.getLeaders_command_staff();
+
+ WebElement ldjzhryEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[6]/div/div[2]/div/div/div[3]/table/tbody/tr/td[9]/div/div/input"));
+ ldjzhryEle.clear();
+ ldjzhryEle.sendKeys(ldjzhry);
+ log.info("填写领导及指挥人员----------");
+ Thread.sleep(300);
+
+
+ //填写人员数量
+ String personNum = obj.getInput_amount_person();
+ WebElement ryslEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[6]/div/div[2]/div/div/div[3]/table/tbody/tr/td[10]/div/div/div/input"));
+ ryslEle.clear();
+ Thread.sleep(300);
+ ryslEle.sendKeys(personNum);
+ log.info("填写人员数量----------");
+ Thread.sleep(300);
+
+
+ //填写车辆数量
+ String carNum = obj.getInput_amount_vehicle();
+ WebElement clslEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[6]/div/div[2]/div/div/div[3]/table/tbody/tr/td[11]/div/div/div/input"));
+ clslEle.clear();
+ Thread.sleep(300);
+ clslEle.sendKeys(carNum);
+ log.info("填写车辆数量----------");
+ Thread.sleep(300);
+
+
+ //填写发电车数量
+ String fdcNum = obj.getInput_amount_power_vehicle();
+ WebElement fdcNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[6]/div/div[2]/div/div/div[3]/table/tbody/tr/td[12]/div/div/div/input"));
+ fdcNumEle.clear();
+ Thread.sleep(300);
+ fdcNumEle.sendKeys(fdcNum);
+ log.info("填写发电车数量----------");
+ Thread.sleep(300);
+
+
+ //填写发电机数量
+ String fdjNum = obj.getInput_amount_dynamo();
+ WebElement fdjNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[6]/div/div[2]/div/div/div[3]/table/tbody/tr/td[13]/div/div/div/input"));
+ fdjNumEle.clear();
+ Thread.sleep(300);
+ fdjNumEle.sendKeys(fdjNum);
+ log.info("填写发电机数量----------");
+ Thread.sleep(300);
+
+
+ String bz = obj.getRemark();
+ WebElement bzEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[6]/div/div[2]/div/div/div[3]/table/tbody/tr/td[14]/div/div/input"));
+ bzEle.clear();
+ bzEle.sendKeys(bz);
+ log.info("填写备注----------");
+ Thread.sleep(300);
+ }
+ dailySchedule7(bean.getSevenBean(), bean);
+// submitData();
+ }
+
+ //操作附表7
+ private void dailySchedule7(AnnexSevenBean obj, DailyBean bean) throws InterruptedException {
+ //填写因灾停运-特高压
+ String psaou = obj.getPower_substation_add_outage_uvh();
+ WebElement psaouEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[7]/div[2]/div/div/div[3]/table/tbody/tr/td[4]/div/div/div/input"));
+ psaouEle.clear();
+ psaouEle.sendKeys(psaou);
+ log.info("填写新增-因灾停运-特高压----------");
+ Thread.sleep(300);
+
+
+ //填写因灾停运-500
+ String psaof = obj.getPower_substation_add_outage_five();
+ WebElement psaofEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[7]/div[2]/div/div/div[3]/table/tbody/tr/td[5]/div/div/div/input"));
+ psaofEle.clear();
+ psaofEle.sendKeys(psaof);
+ log.info("填写新增-因灾停运-500kv----------");
+ Thread.sleep(300);
+
+
+ //填写因灾停运-300
+ String psaot = obj.getPower_substation_add_outage_two();
+ WebElement psaotEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[7]/div[2]/div/div/div[3]/table/tbody/tr/td[6]/div/div/div/input"));
+ psaotEle.clear();
+ psaotEle.sendKeys(psaot);
+ log.info("填写新增-因灾停运-220/300kv----------");
+ Thread.sleep(300);
+
+ //填写因灾停运-100
+ String psaoo = obj.getPower_substation_add_outage_one();
+ WebElement psaooEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[7]/div[2]/div/div/div[3]/table/tbody/tr/td[7]/div/div/div/input"));
+ psaooEle.clear();
+ psaooEle.sendKeys(psaoo);
+ log.info("填写新增-因灾停运-100/66kv----------");
+ Thread.sleep(300);
+
+ //填写因灾停运-35
+ String psaoth = obj.getPower_substation_add_outage_three();
+ WebElement psaothEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[7]/div[2]/div/div/div[3]/table/tbody/tr/td[8]/div/div/div/input"));
+ psaothEle.clear();
+ psaothEle.sendKeys(psaoth);
+ log.info("填写新增-因灾停运-35kv----------");
+ Thread.sleep(300);
+
+
+ //填写抢修恢复-特高压
+ String psaru = obj.getPower_substation_add_repair_uvh();
+ WebElement psaruEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[7]/div[2]/div/div/div[3]/table/tbody/tr/td[9]/div/div/div/input"));
+ psaruEle.clear();
+ psaruEle.sendKeys(psaru);
+ log.info("填写新增-抢修恢复-特高压----------");
+ Thread.sleep(300);
+
+ //填写抢修恢复-500
+ String psarf = obj.getPower_substation_add_repair_five();
+ WebElement psarfEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[7]/div[2]/div/div/div[3]/table/tbody/tr/td[10]/div/div/div/input"));
+ psarfEle.clear();
+ psarfEle.sendKeys(psarf);
+ log.info("填写新增-抢修恢复-500kv----------");
+ Thread.sleep(300);
+
+ //填写抢修恢复-220/300
+ String psart = obj.getPower_substation_add_repair_two();
+ WebElement psartEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[7]/div[2]/div/div/div[3]/table/tbody/tr/td[11]/div/div/div/input"));
+ psartEle.clear();
+ psartEle.sendKeys(psart);
+ log.info("填写新增-抢修恢复-220/300kv----------");
+ Thread.sleep(300);
+
+ //填写抢修恢复-100
+ String psaro = obj.getPower_substation_add_repair_one();
+ WebElement psaroEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[7]/div[2]/div/div/div[3]/table/tbody/tr/td[12]/div/div/div/input"));
+ psaroEle.clear();
+ psaroEle.sendKeys(psaro);
+ log.info("填写新增-抢修恢复-100/66kv----------");
+ Thread.sleep(300);
+
+ //填写抢修恢复-35
+ String psarth = obj.getPower_substation_add_repair_three();
+ WebElement psarthEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[7]/div[2]/div/div/div[3]/table/tbody/tr/td[13]/div/div/div/input"));
+ psarthEle.clear();
+ psarthEle.sendKeys(psarth);
+ log.info("填写新增-抢修恢复-35kv----------");
+ Thread.sleep(300);
+
+
+ //填写尚未恢复-特高压
+ String psanru = obj.getPower_substation_add_no_repair_uvh();
+ WebElement psanruEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[7]/div[2]/div/div/div[3]/table/tbody/tr/td[14]/div/div/div/input"));
+ psanruEle.clear();
+ psanruEle.sendKeys(psanru);
+ log.info("填写新增-尚未恢复-特高压----------");
+ Thread.sleep(300);
+
+ //填写尚未恢复-500
+ String psanrf = obj.getPower_substation_add_no_repair_five();
+ WebElement psanrfEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[7]/div[2]/div/div/div[3]/table/tbody/tr/td[15]/div/div/div/input"));
+ psanrfEle.clear();
+ psanrfEle.sendKeys(psanrf);
+ log.info("填写新增-尚未恢复-500kv----------");
+ Thread.sleep(300);
+
+ //填写尚未恢复-220/300
+ String psanrt = obj.getPower_substation_add_no_repair_two();
+ WebElement psanrtEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[7]/div[2]/div/div/div[3]/table/tbody/tr/td[16]/div/div/div/input"));
+ psanrtEle.clear();
+ psanrtEle.sendKeys(psanrt);
+ log.info("填写新增-尚未恢复-220/300kv----------");
+ Thread.sleep(300);
+
+ //填写尚未恢复-100
+ String psanro = obj.getPower_substation_add_no_repair_one();
+ WebElement psanroEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[7]/div[2]/div/div/div[3]/table/tbody/tr/td[17]/div/div/div/input"));
+ psanroEle.clear();
+ psanroEle.sendKeys(psanro);
+ log.info("填写新增-尚未恢复-100/66kv----------");
+ Thread.sleep(300);
+
+ //填写尚未恢复-35
+ String psanrth = obj.getPower_substation_add_no_repair_three();
+ WebElement psanrthEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[7]/div[2]/div/div/div[3]/table/tbody/tr/td[18]/div/div/div/input"));
+ psanrthEle.clear();
+ psanrthEle.sendKeys(psanrth);
+ log.info("填写新增-尚未恢复-35kv----------");
+ Thread.sleep(300);
+
+
+ //填写因灾停运-特高压
+ String pscou = obj.getPower_substation_cumulative_outage_uvh();
+ WebElement pscouEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[8]/div[2]/div/div/div[3]/table/tbody/tr/td[4]/div/div/div/input"));
+ pscouEle.clear();
+ pscouEle.sendKeys(pscou);
+ log.info("填写累计-因灾停运-特高压----------");
+ Thread.sleep(300);
+
+
+ //填写因灾停运-500
+ String pscof = obj.getPower_substation_cumulative_outage_five();
+ WebElement pscofEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[8]/div[2]/div/div/div[3]/table/tbody/tr/td[5]/div/div/div/input"));
+ pscofEle.clear();
+ pscofEle.sendKeys(pscof);
+ log.info("填写累计-因灾停运-500kv----------");
+ Thread.sleep(300);
+
+
+ //填写因灾停运-300
+ String pscot = obj.getPower_substation_cumulative_outage_two();
+ WebElement pscotEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[8]/div[2]/div/div/div[3]/table/tbody/tr/td[6]/div/div/div/input"));
+ pscotEle.clear();
+ pscotEle.sendKeys(pscot);
+ log.info("填写累计-因灾停运-220/300kv----------");
+ Thread.sleep(300);
+
+ //填写因灾停运-100
+ String pscoo = obj.getPower_substation_cumulative_outage_one();
+ WebElement pscooEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[8]/div[2]/div/div/div[3]/table/tbody/tr/td[7]/div/div/div/input"));
+ pscooEle.clear();
+ pscooEle.sendKeys(pscoo);
+ log.info("填写累计-因灾停运-100/66kv----------");
+ Thread.sleep(300);
+
+ //填写因灾停运-35
+ String pscoth = obj.getPower_substation_cumulative_outage_three();
+ WebElement pscothEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[8]/div[2]/div/div/div[3]/table/tbody/tr/td[8]/div/div/div/input"));
+ pscothEle.clear();
+ pscothEle.sendKeys(pscoth);
+ log.info("填写累计-因灾停运-35kv----------");
+ Thread.sleep(300);
+
+
+ //填写抢修恢复-特高压
+ String pscru = obj.getPower_substation_cumulative_repair_uvh();
+ WebElement pscruEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[8]/div[2]/div/div/div[3]/table/tbody/tr/td[9]/div/div/div/input"));
+ pscruEle.clear();
+ pscruEle.sendKeys(pscru);
+ log.info("填写累计-抢修恢复-特高压----------");
+ Thread.sleep(300);
+
+ //填写抢修恢复-500
+ String pscrf = obj.getPower_substation_cumulative_repair_five();
+ WebElement pscrfEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[8]/div[2]/div/div/div[3]/table/tbody/tr/td[10]/div/div/div/input"));
+ pscrfEle.clear();
+ pscrfEle.sendKeys(pscrf);
+ log.info("填写累计-抢修恢复-500kv----------");
+ Thread.sleep(300);
+
+ //填写抢修恢复-220/300
+ String pscrt = obj.getPower_substation_cumulative_outage_two();
+ WebElement pscrtEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[8]/div[2]/div/div/div[3]/table/tbody/tr/td[11]/div/div/div/input"));
+ pscrtEle.clear();
+ pscrtEle.sendKeys(pscrt);
+ log.info("填写累计-抢修恢复-220/300kv----------");
+ Thread.sleep(300);
+
+ //填写抢修恢复-100
+ String pscro = obj.getPower_substation_cumulative_repair_one();
+ WebElement pscroEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[8]/div[2]/div/div/div[3]/table/tbody/tr/td[12]/div/div/div/input"));
+ pscroEle.clear();
+ pscroEle.sendKeys(pscro);
+ log.info("填写累计-抢修恢复-100/66kv----------");
+ Thread.sleep(300);
+
+ //填写抢修恢复-35
+ String pscrth = obj.getPower_substation_cumulative_outage_three();
+ WebElement pscrthEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[8]/div[2]/div/div/div[3]/table/tbody/tr/td[13]/div/div/div/input"));
+ pscrthEle.clear();
+ pscrthEle.sendKeys(pscrth);
+ log.info("填写累计-抢修恢复-35kv----------");
+ Thread.sleep(300);
+
+
+ //填写尚未恢复-特高压
+ String pscnru = obj.getPower_substation_cumulative_no_repair_uvh();
+ WebElement pscnruEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[8]/div[2]/div/div/div[3]/table/tbody/tr/td[14]/div/div/div/input"));
+ pscnruEle.clear();
+ pscnruEle.sendKeys(pscnru);
+ log.info("填写累计-尚未恢复-特高压----------");
+ Thread.sleep(300);
+
+ //填写尚未恢复-500
+ String pscnrf = obj.getPower_substation_cumulative_no_repair_five();
+ WebElement pscnrfEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[8]/div[2]/div/div/div[3]/table/tbody/tr/td[15]/div/div/div/input"));
+ pscnrfEle.clear();
+ pscnrfEle.sendKeys(pscnrf);
+ log.info("填写累计-尚未恢复-500kv----------");
+ Thread.sleep(300);
+
+ //填写尚未恢复-220/300
+ String pscnrt = obj.getPower_substation_cumulative_no_repair_two();
+ WebElement pscnrtEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[8]/div[2]/div/div/div[3]/table/tbody/tr/td[16]/div/div/div/input"));
+ pscnrtEle.clear();
+ pscnrtEle.sendKeys(pscnrt);
+ log.info("填写累计-尚未恢复-220/300kv----------");
+ Thread.sleep(300);
+
+ //填写尚未恢复-100
+ String pscnro = obj.getPower_substation_cumulative_no_repair_one();
+ WebElement pscnroEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[8]/div[2]/div/div/div[3]/table/tbody/tr/td[17]/div/div/div/input"));
+ pscnroEle.clear();
+ pscnroEle.sendKeys(pscnro);
+ log.info("填写累计-尚未恢复-100/66kv----------");
+ Thread.sleep(300);
+
+ //填写尚未恢复-35
+ String pscnrth = obj.getPower_substation_cumulative_no_repair_three();
+ WebElement pscnrthEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[8]/div[2]/div/div/div[3]/table/tbody/tr/td[18]/div/div/div/input"));
+ pscnrthEle.clear();
+ pscnrthEle.sendKeys(pscnrth);
+ log.info("填写累计-尚未恢复-35kv----------");
+ Thread.sleep(300);
+ dailySchedule8(bean.getEightBean(), bean);
+ }
+
+ private void dailySchedule8(AnnexEightBean obj, DailyBean bean) throws InterruptedException {
+ //填写因灾停运-特高压
+ String traou = obj.getTransmit_electricity_add_outage_uvh();
+ WebElement traouEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[9]/div[2]/div/div/div[3]/table/tbody/tr/td[4]/div/div/div/input"));
+ traouEle.clear();
+ traouEle.sendKeys(traou);
+ log.info("填写新增-因灾停运-特高压----------");
+ Thread.sleep(300);
+
+
+ //填写因灾停运-500
+ String traof = obj.getTransmit_electricity_add_outage_five();
+ WebElement traofEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[9]/div[2]/div/div/div[3]/table/tbody/tr/td[5]/div/div/div/input"));
+ traofEle.clear();
+ traofEle.sendKeys(traof);
+ log.info("填写新增-因灾停运-500kv----------");
+ Thread.sleep(300);
+
+
+ //填写因灾停运-300
+ String traot = obj.getTransmit_electricity_add_outage_two();
+ WebElement traotEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[9]/div[2]/div/div/div[3]/table/tbody/tr/td[6]/div/div/div/input"));
+ traotEle.clear();
+ traotEle.sendKeys(traot);
+ log.info("填写新增-因灾停运-220/300kv----------");
+ Thread.sleep(300);
+
+ //填写因灾停运-100
+ String traoo = obj.getTransmit_electricity_add_outage_one();
+ WebElement traooEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[9]/div[2]/div/div/div[3]/table/tbody/tr/td[7]/div/div/div/input"));
+ traooEle.clear();
+ traooEle.sendKeys(traoo);
+ log.info("填写新增-因灾停运-100/66kv----------");
+ Thread.sleep(300);
+
+ //填写因灾停运-35
+ String traoth = obj.getTransmit_electricity_add_outage_three();
+ WebElement traothEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[9]/div[2]/div/div/div[3]/table/tbody/tr/td[8]/div/div/div/input"));
+ traothEle.clear();
+ traothEle.sendKeys(traoth);
+ log.info("填写新增-因灾停运-35kv----------");
+ Thread.sleep(300);
+
+ //填写因灾停运-10
+ String traote = obj.getTransmit_electricity_add_outage_ten();
+ WebElement traoteEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[9]/div[2]/div/div/div[3]/table/tbody/tr/td[9]/div/div/div/input"));
+ traoteEle.clear();
+ traoteEle.sendKeys(traote);
+ log.info("填写新增-因灾停运-10kv----------");
+ Thread.sleep(300);
+
+
+ //填写抢修恢复-特高压
+ String traru = obj.getTransmit_electricity_add_repair_uvh();
+ WebElement traruEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[9]/div[2]/div/div/div[3]/table/tbody/tr/td[10]/div/div/div/input"));
+ traruEle.clear();
+ traruEle.sendKeys(traru);
+ log.info("填写新增-抢修恢复-特高压----------");
+ Thread.sleep(300);
+
+ //填写抢修恢复-500
+ String trarf = obj.getTransmit_electricity_add_repair_five();
+ WebElement trarfEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[9]/div[2]/div/div/div[3]/table/tbody/tr/td[11]/div/div/div/input"));
+ trarfEle.clear();
+ trarfEle.sendKeys(trarf);
+ log.info("填写新增-抢修恢复-500kv----------");
+ Thread.sleep(300);
+
+ //填写抢修恢复-220/300
+ String trart = obj.getTransmit_electricity_add_repair_two();
+ WebElement trartEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[9]/div[2]/div/div/div[3]/table/tbody/tr/td[12]/div/div/div/input"));
+ trartEle.clear();
+ trartEle.sendKeys(trart);
+ log.info("填写新增-抢修恢复-220/300kv----------");
+ Thread.sleep(300);
+
+ //填写抢修恢复-100
+ String traro = obj.getTransmit_electricity_add_repair_one();
+ WebElement traroEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[9]/div[2]/div/div/div[3]/table/tbody/tr/td[13]/div/div/div/input"));
+ traroEle.clear();
+ traroEle.sendKeys(traro);
+ log.info("填写新增-抢修恢复-100/66kv----------");
+ Thread.sleep(300);
+
+ //填写抢修恢复-35
+ String trarth = obj.getTransmit_electricity_add_repair_three();
+ WebElement trarthEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[9]/div[2]/div/div/div[3]/table/tbody/tr/td[14]/div/div/div/input"));
+ trarthEle.clear();
+ trarthEle.sendKeys(trarth);
+ log.info("填写新增-抢修恢复-35kv----------");
+ Thread.sleep(300);
+
+ //填写抢修恢复-10
+ String trarte = obj.getTransmit_electricity_add_repair_ten();
+ WebElement trarteEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[9]/div[2]/div/div/div[3]/table/tbody/tr/td[15]/div/div/div/input"));
+ trarteEle.clear();
+ trarteEle.sendKeys(trarte);
+ log.info("填写新增-抢修恢复-10kv----------");
+ Thread.sleep(300);
+
+ //填写尚未恢复-特高压
+ String tranru = obj.getTransmit_electricity_add_no_repair_uvh();
+ WebElement tranruEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[9]/div[2]/div/div/div[3]/table/tbody/tr/td[16]/div/div/div/input"));
+ tranruEle.clear();
+ tranruEle.sendKeys(tranru);
+ log.info("填写新增-尚未恢复-特高压----------");
+ Thread.sleep(300);
+
+ //填写尚未恢复-500
+ String tranrf = obj.getTransmit_electricity_add_no_repair_five();
+ WebElement tranrfEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[9]/div[2]/div/div/div[3]/table/tbody/tr/td[17]/div/div/div/input"));
+ tranrfEle.clear();
+ tranrfEle.sendKeys(tranrf);
+ log.info("填写新增-尚未恢复-500kv----------");
+ Thread.sleep(300);
+
+ //填写尚未恢复-220/300
+ String tranrt = obj.getTransmit_electricity_add_no_repair_two();
+ WebElement tranrtEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[9]/div[2]/div/div/div[3]/table/tbody/tr/td[18]/div/div/div/input"));
+ tranrtEle.clear();
+ tranrtEle.sendKeys(tranrt);
+ log.info("填写新增-尚未恢复-220/300kv----------");
+ Thread.sleep(300);
+
+ //填写尚未恢复-100
+ String tranro = obj.getTransmit_electricity_add_no_repair_one();
+ WebElement tranroEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[9]/div[2]/div/div/div[3]/table/tbody/tr/td[19]/div/div/div/input"));
+ tranroEle.clear();
+ tranroEle.sendKeys(tranro);
+ log.info("填写新增-尚未恢复-100/66kv----------");
+ Thread.sleep(300);
+
+ //填写尚未恢复-35
+ String tranrth = obj.getTransmit_electricity_add_no_repair_three();
+ WebElement tranrthEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[9]/div[2]/div/div/div[3]/table/tbody/tr/td[20]/div/div/div/input"));
+ tranrthEle.clear();
+ tranrthEle.sendKeys(tranrth);
+ log.info("填写新增-尚未恢复-35kv----------");
+ Thread.sleep(300);
+
+ //填写尚未恢复-10
+ String tranrte = obj.getTransmit_electricity_add_no_repair_ten();
+ WebElement tranrteEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[9]/div[2]/div/div/div[3]/table/tbody/tr/td[21]/div/div/div/input"));
+ tranrteEle.clear();
+ tranrteEle.sendKeys(tranrte);
+ log.info("填写新增-尚未恢复-10kv----------");
+ Thread.sleep(300);
+
+ //填写因灾停运-特高压
+ String trcou = obj.getTransmit_electricity_cumulative_outage_uvh();
+ WebElement trcouEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[10]/div[2]/div/div/div[3]/table/tbody/tr/td[4]/div/div/div/input"));
+ trcouEle.clear();
+ trcouEle.sendKeys(trcou);
+ log.info("填写累计-因灾停运-特高压----------");
+ Thread.sleep(300);
+
+
+ //填写因灾停运-500
+ String trcof = obj.getTransmit_electricity_cumulative_outage_five();
+ WebElement trcofEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[10]/div[2]/div/div/div[3]/table/tbody/tr/td[5]/div/div/div/input"));
+ trcofEle.clear();
+ trcofEle.sendKeys(trcof);
+ log.info("填写累计-因灾停运-500kv----------");
+ Thread.sleep(300);
+
+
+ //填写因灾停运-300
+ String trcot = obj.getTransmit_electricity_cumulative_outage_two();
+ WebElement trcotEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[10]/div[2]/div/div/div[3]/table/tbody/tr/td[6]/div/div/div/input"));
+ trcotEle.clear();
+ trcotEle.sendKeys(trcot);
+ log.info("填写累计-因灾停运-220/300kv----------");
+ Thread.sleep(300);
+
+ //填写因灾停运-100
+ String trcoo = obj.getTransmit_electricity_cumulative_outage_one();
+ WebElement trcooEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[10]/div[2]/div/div/div[3]/table/tbody/tr/td[7]/div/div/div/input"));
+ trcooEle.clear();
+ trcooEle.sendKeys(trcoo);
+ log.info("填写累计-因灾停运-100/66kv----------");
+ Thread.sleep(300);
+
+ //填写因灾停运-35
+ String trcoth = obj.getTransmit_electricity_cumulative_outage_three();
+ WebElement trcothEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[10]/div[2]/div/div/div[3]/table/tbody/tr/td[8]/div/div/div/input"));
+ trcothEle.clear();
+ trcothEle.sendKeys(trcoth);
+ log.info("填写累计-因灾停运-35kv----------");
+ Thread.sleep(300);
+
+ //填写因灾停运-10
+ String trcote = obj.getTransmit_electricity_cumulative_outage_ten();
+ WebElement trcoteEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[10]/div[2]/div/div/div[3]/table/tbody/tr/td[9]/div/div/div/input"));
+ trcoteEle.clear();
+ trcoteEle.sendKeys(trcote);
+ log.info("填写累计-因灾停运-35kv----------");
+ Thread.sleep(300);
+
+ //填写抢修恢复-特高压
+ String trcru = obj.getTransmit_electricity_cumulative_repair_uvh();
+ WebElement trcruEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[10]/div[2]/div/div/div[3]/table/tbody/tr/td[10]/div/div/div/input"));
+ trcruEle.clear();
+ trcruEle.sendKeys(trcru);
+ log.info("填写累计-抢修恢复-特高压----------");
+ Thread.sleep(300);
+
+ //填写抢修恢复-500
+ String trcrf = obj.getTransmit_electricity_cumulative_repair_five();
+ WebElement trcrfEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[10]/div[2]/div/div/div[3]/table/tbody/tr/td[11]/div/div/div/input"));
+ trcrfEle.clear();
+ trcrfEle.sendKeys(trcrf);
+ log.info("填写累计-抢修恢复-500kv----------");
+ Thread.sleep(300);
+
+ //填写抢修恢复-220/300
+ String trcrt = obj.getTransmit_electricity_cumulative_repair_two();
+ WebElement trcrtEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[10]/div[2]/div/div/div[3]/table/tbody/tr/td[12]/div/div/div/input"));
+ trcrtEle.clear();
+ trcrtEle.sendKeys(trcrt);
+ log.info("填写累计-抢修恢复-220/300kv----------");
+ Thread.sleep(300);
+
+ //填写抢修恢复-100
+ String trcro = obj.getTransmit_electricity_cumulative_repair_one();
+ WebElement trcroEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[10]/div[2]/div/div/div[3]/table/tbody/tr/td[13]/div/div/div/input"));
+ trcroEle.clear();
+ trcroEle.sendKeys(trcro);
+ log.info("填写累计-抢修恢复-100/66kv----------");
+ Thread.sleep(300);
+
+ //填写抢修恢复-35
+ String trcrth = obj.getTransmit_electricity_cumulative_repair_three();
+ WebElement trcrthEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[10]/div[2]/div/div/div[3]/table/tbody/tr/td[14]/div/div/div/input"));
+ trcrthEle.clear();
+ trcrthEle.sendKeys(trcrth);
+ log.info("填写累计-抢修恢复-35kv----------");
+ Thread.sleep(300);
+
+ //填写抢修恢复-10
+ String trcrte = obj.getTransmit_electricity_cumulative_repair_ten();
+ WebElement trcrteEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[10]/div[2]/div/div/div[3]/table/tbody/tr/td[15]/div/div/div/input"));
+ trcrteEle.clear();
+ trcrteEle.sendKeys(trcrte);
+ log.info("填写累计-抢修恢复-10kv----------");
+ Thread.sleep(300);
+
+ //填写尚未恢复-特高压
+ String trcnru = obj.getTransmit_electricity_cumulative_no_repair_uvh();
+ WebElement trcnruEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[10]/div[2]/div/div/div[3]/table/tbody/tr/td[16]/div/div/div/input"));
+ trcnruEle.clear();
+ trcnruEle.sendKeys(trcnru);
+ log.info("填写累计-尚未恢复-特高压----------");
+ Thread.sleep(300);
+
+ //填写尚未恢复-500
+ String trcnrf = obj.getTransmit_electricity_cumulative_no_repair_five();
+ WebElement trcnrfEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[10]/div[2]/div/div/div[3]/table/tbody/tr/td[17]/div/div/div/input"));
+ trcnrfEle.clear();
+ trcnrfEle.sendKeys(trcnrf);
+ log.info("填写累计-尚未恢复-500kv----------");
+ Thread.sleep(300);
+
+ //填写尚未恢复-220/300
+ String trcnrt = obj.getTransmit_electricity_cumulative_no_repair_two();
+ WebElement trcnrtEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[10]/div[2]/div/div/div[3]/table/tbody/tr/td[18]/div/div/div/input"));
+ trcnrtEle.clear();
+ trcnrtEle.sendKeys(trcnrt);
+ log.info("填写累计-尚未恢复-220/300kv----------");
+ Thread.sleep(300);
+
+ //填写尚未恢复-100
+ String trcnro = obj.getTransmit_electricity_cumulative_no_repair_one();
+ WebElement trcnroEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[10]/div[2]/div/div/div[3]/table/tbody/tr/td[19]/div/div/div/input"));
+ trcnroEle.clear();
+ trcnroEle.sendKeys(trcnro);
+ log.info("填写累计-尚未恢复-100/66kv----------");
+ Thread.sleep(300);
+
+ //填写尚未恢复-35
+ String trcnrth = obj.getTransmit_electricity_cumulative_no_repair_three();
+ WebElement trcnrthEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[10]/div[2]/div/div/div[3]/table/tbody/tr/td[20]/div/div/div/input"));
+ trcnrthEle.clear();
+ trcnrthEle.sendKeys(trcnrth);
+ log.info("填写累计-尚未恢复-35kv----------");
+ Thread.sleep(300);
+
+ //填写尚未恢复-10
+ String trcnrte = obj.getTransmit_electricity_cumulative_no_repair_ten();
+ WebElement trcnrteEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[10]/div[2]/div/div/div[3]/table/tbody/tr/td[21]/div/div/div/input"));
+ trcnrteEle.clear();
+ trcnrteEle.sendKeys(trcnrte);
+ log.info("填写累计-尚未恢复-10kv----------");
+ Thread.sleep(300);
+
+ dailySchedule9(bean.getNineBean(), bean);
+ }
+
+ private void dailySchedule9(AnnexNineBean obj, DailyBean bean) throws InterruptedException {
+
+ //因灾停电-台区
+ String abtd = obj.getAdd_blackout_tai_district();
+ WebElement abtdEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[11]/div/div[2]/div/div/div[3]/table/tbody/tr/td[4]/div/div/div/input"));
+ abtdEle.clear();
+ abtdEle.sendKeys(abtd);
+ log.info("填写新增-因灾停电-台区----------");
+ Thread.sleep(300);
+
+ //因灾停电-用户
+ String abtu = obj.getAdd_blackout_user();
+ WebElement abtuEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[11]/div/div[2]/div/div/div[3]/table/tbody/tr/td[5]/div/div/div/input"));
+ abtuEle.clear();
+ abtuEle.sendKeys(abtu);
+ log.info("填写新增-因灾停电-用户----------");
+ Thread.sleep(300);
+
+ //抢修恢复-台区
+ String artd = obj.getAdd_repair_tai_district();
+ WebElement artdEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[11]/div/div[2]/div/div/div[3]/table/tbody/tr/td[6]/div/div/div/input"));
+ artdEle.clear();
+ artdEle.sendKeys(artd);
+ log.info("填写新增-抢修恢复-台区----------");
+ Thread.sleep(300);
+
+ //抢修恢复-用户
+ String artu = obj.getAdd_repair_user();
+ WebElement artuEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[11]/div/div[2]/div/div/div[3]/table/tbody/tr/td[7]/div/div/div/input"));
+ artuEle.clear();
+ artuEle.sendKeys(artu);
+ log.info("填写新增-抢修恢复-用户----------");
+ Thread.sleep(300);
+
+ //尚未恢复-台区
+ String anrtd = obj.getAdd_no_repair_tai_district();
+ WebElement anrtdEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[11]/div/div[2]/div/div/div[3]/table/tbody/tr/td[8]/div/div/div/input"));
+ anrtdEle.clear();
+ anrtdEle.sendKeys(anrtd);
+ log.info("填写新增-尚未恢复-台区----------");
+ Thread.sleep(300);
+
+ //尚未恢复-用户
+ String anrtu = obj.getAdd_no_repair_user();
+ WebElement anrtuEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[11]/div/div[2]/div/div/div[3]/table/tbody/tr/td[9]/div/div/div/input"));
+ anrtuEle.clear();
+ anrtuEle.sendKeys(anrtu);
+ log.info("填写新增-尚未恢复-用户----------");
+ Thread.sleep(300);
+
+ //出动抢修力量-用户
+ String app = obj.getAdd_power_personnel();
+ WebElement appEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[11]/div/div[2]/div/div/div[3]/table/tbody/tr/td[10]/div/div/div/input"));
+ appEle.clear();
+ appEle.sendKeys(app);
+ log.info("填写新增-出动抢修力量-台区----------");
+ Thread.sleep(300);
+
+ //出动抢修力量-车辆
+ String apv = obj.getAdd_power_vehicle();
+ WebElement apvEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[11]/div/div[2]/div/div/div[3]/table/tbody/tr/td[11]/div/div/div/input"));
+ apvEle.clear();
+ apvEle.sendKeys(apv);
+ log.info("填写新增-出动抢修力量-用户----------");
+ Thread.sleep(300);
+
+
+ //因灾停电-台区
+ String cbtd = obj.getCumulative_blackout_tai_district();
+ WebElement cbtdEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[12]/div[2]/div/div/div[3]/table/tbody/tr/td[4]/div/div/div/input"));
+ cbtdEle.clear();
+ cbtdEle.sendKeys(cbtd);
+ log.info("填写累计-因灾停电-台区----------");
+ Thread.sleep(300);
+
+ //因灾停电-用户
+ String cbtu = obj.getCumulative_blackout_user();
+ WebElement cbtuEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[12]/div[2]/div/div/div[3]/table/tbody/tr/td[5]/div/div/div/input"));
+ cbtuEle.clear();
+ cbtuEle.sendKeys(cbtu);
+ log.info("填写累计-因灾停电-用户----------");
+ Thread.sleep(300);
+
+ //抢修恢复-台区
+ String crtd = obj.getCumulative_repair_tai_district();
+ WebElement crtdEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[12]/div[2]/div/div/div[3]/table/tbody/tr/td[6]/div/div/div/input"));
+ crtdEle.clear();
+ crtdEle.sendKeys(crtd);
+ log.info("填写累计-抢修恢复-台区----------");
+ Thread.sleep(300);
+
+ //抢修恢复-用户
+ String crtu = obj.getCumulative_repair_user();
+ WebElement crtuEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[12]/div[2]/div/div/div[3]/table/tbody/tr/td[7]/div/div/div/input"));
+ crtuEle.clear();
+ crtuEle.sendKeys(crtu);
+ log.info("填写累计-抢修恢复-用户----------");
+ Thread.sleep(300);
+
+ //尚未恢复-台区
+ String cnrtd = obj.getCumulative_no_repair_tai_district();
+ WebElement cnrtdEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[12]/div[2]/div/div/div[3]/table/tbody/tr/td[8]/div/div/div/input"));
+ cnrtdEle.clear();
+ cnrtdEle.sendKeys(cnrtd);
+ log.info("填写累计-尚未恢复-台区----------");
+ Thread.sleep(300);
+
+ //尚未恢复-用户
+ String cnrtu = obj.getCumulative_no_repair_user();
+ WebElement cnrtuEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[12]/div[2]/div/div/div[3]/table/tbody/tr/td[9]/div/div/div/input"));
+ cnrtuEle.clear();
+ cnrtuEle.sendKeys(cnrtu);
+ log.info("填写累计-尚未恢复-用户----------");
+ Thread.sleep(300);
+
+ //出动抢修力量-用户
+ String cpp = obj.getCumulative_power_personnel();
+ WebElement cppEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[12]/div[2]/div/div/div[3]/table/tbody/tr/td[10]/div/div/div/input"));
+ cppEle.clear();
+ cppEle.sendKeys(cpp);
+ log.info("填写累计-出动抢修力量-台区----------");
+ Thread.sleep(300);
+
+ //出动抢修力量-车辆
+ String cpv = obj.getCumulative_power_vehicle();
+ WebElement cpvEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[12]/div[2]/div/div/div[3]/table/tbody/tr/td[11]/div/div/div/input"));
+ cpvEle.clear();
+ cpvEle.sendKeys(cpv);
+ log.info("填写累计-出动抢修力量-用户----------");
+ Thread.sleep(300);
+ dailySchedule10(bean.getTenBean(), bean);
+ }
+
+ private void dailySchedule10(AnnexTenBean obj, DailyBean bean) throws InterruptedException {
+
+ WebElement kaiguanEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[13]/div[1]/div/div/div"));
+ String className = kaiguanEle.getAttribute("class");
+ if ("el-switch".equals(className)) {
+ log.info("附表十未开启,跳过");
+ } else {
+ //填写特高压
+ String tenUhvNum = obj.getUhv();
+ WebElement tenUhvEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[13]/div[2]/div/div/div[3]/table/tbody/tr/td[4]/div/div/div/input"));
+ tenUhvEle.clear();
+ tenUhvEle.sendKeys(tenUhvNum);
+ log.info("填写特高压----------");
+ Thread.sleep(300);
+
+ //填写500k
+ String tenFiveHundredKvNum = obj.getFiveHundredKv();
+ WebElement tenFiveHundredKvNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[13]/div[2]/div/div/div[3]/table/tbody/tr/td[5]/div/div/div/input"));
+ tenFiveHundredKvNumEle.clear();
+ tenFiveHundredKvNumEle.sendKeys(tenFiveHundredKvNum);
+ log.info("填写500k----------");
+ Thread.sleep(300);
+
+ //填写220/330kV
+ String tenTwoHundredTwentyKvNum = obj.getTwoHundredTwentyKv();
+ WebElement tenTwoHundredTwentyKvNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[13]/div[2]/div/div/div[3]/table/tbody/tr/td[6]/div/div/div/input"));
+ tenTwoHundredTwentyKvNumEle.clear();
+ tenTwoHundredTwentyKvNumEle.sendKeys(tenTwoHundredTwentyKvNum);
+ log.info("填写220/330kV---------");
+ Thread.sleep(300);
+
+
+ //填写110/66kV
+ String tenOneHundredTenKvNum = obj.getOneHundredTenKv();
+ WebElement tenOneHundredTenKvNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[13]/div[2]/div/div/div[3]/table/tbody/tr/td[7]/div/div/div/input"));
+ tenOneHundredTenKvNumEle.clear();
+ tenOneHundredTenKvNumEle.sendKeys(tenOneHundredTenKvNum);
+ log.info("填写110/66kV---------");
+ Thread.sleep(300);
+
+
+ //填写35kV
+ String tenThirtyFiveKvNum = obj.getThirtyFiveKv();
+ WebElement tenThirtyFiveKvNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[13]/div[2]/div/div/div[3]/table/tbody/tr/td[8]/div/div/div/input"));
+ tenThirtyFiveKvNumEle.clear();
+ tenThirtyFiveKvNumEle.sendKeys(tenThirtyFiveKvNum);
+ log.info("填写35kV----------");
+
+ //填写10kV
+ String tenTenKvNum = obj.getTenKv();
+ WebElement tenTenKvNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[13]/div[2]/div/div/div[3]/table/tbody/tr/td[9]/div/div/div/input"));
+ tenTenKvNumEle.clear();
+ tenTenKvNumEle.sendKeys(tenTenKvNum);
+ log.info("填写10kV---------");
+
+ //填写平均覆冰
+ String tenAverageWaterLevelNum = obj.getAverageWaterLevel();
+ WebElement tenAverageWaterLevelNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[13]/div[2]/div/div/div[3]/table/tbody/tr/td[10]/div/div/div/input"));
+ tenAverageWaterLevelNumEle.clear();
+ tenAverageWaterLevelNumEle.sendKeys(tenAverageWaterLevelNum);
+ log.info("填写平均覆冰---------");
+
+ //填写最大覆冰-实际值
+ String tenMeasuredValueNum = obj.getMeasuredValue();
+ WebElement tenMeasuredValueNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[13]/div[2]/div/div/div[3]/table/tbody/tr/td[11]/div/div/div/input"));
+ tenMeasuredValueNumEle.clear();
+ tenMeasuredValueNumEle.sendKeys(tenMeasuredValueNum);
+ log.info("填写最大覆冰-实际值---------");
+
+ //填写最大覆冰-设计值
+ String tenDesignValuesNum = obj.getDesignValues();
+ WebElement tenDesignValuesNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[13]/div[2]/div/div/div[3]/table/tbody/tr/td[12]/div/div/div/input"));
+ tenDesignValuesNumEle.clear();
+ tenDesignValuesNumEle.sendKeys(tenDesignValuesNum);
+ log.info("填写最大覆冰-设计值---------");
+
+ //填写已采取措施行动
+ String tenActionHasBeenTaken = obj.getActionHasBeenTaken();
+ WebElement tenActionHasBeenTakenEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[13]/div[2]/div/div/div[3]/table/tbody/tr/td[13]/div/div/input"));
+ tenActionHasBeenTakenEle.clear();
+ tenActionHasBeenTakenEle.sendKeys(tenActionHasBeenTaken);
+ log.info("填写已采取措施行动----------");
+ }
+
+
+ Thread.sleep(300);
+ dailySchedule11(bean.getElevenBean(), bean);
+ }
+
+ private void dailySchedule11(AnnexElevenBean obj, DailyBean bean) throws InterruptedException {
+ try{
+ WebElement kaiguanEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[14]/div[1]/div/div/div"));
+ String className = kaiguanEle.getAttribute("class");
+ if ("el-switch".equals(className)) {
+ log.info("附表十一未开启,跳过");
+ } else {
+ //填写线路电压等级
+ String elevenUhvNum = obj.getUhv();
+ WebElement elevenUhvEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[14]/div/div[2]/div/div/div[3]/table/tbody/tr/td[4]/div/div/div/input"));
+ elevenUhvEle.clear();
+ elevenUhvEle.sendKeys(elevenUhvNum);
+ log.info("填写线路电压等级----------");
+ Thread.sleep(300);
+
+ //填写线路名称
+ String elevenFiveHundredKvNum = obj.getFiveHundredKv();
+ WebElement elevenFiveHundredKvNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[14]/div/div[2]/div/div/div[3]/table/tbody/tr/td[5]/div/div/input"));
+ elevenFiveHundredKvNumEle.clear();
+ elevenFiveHundredKvNumEle.sendKeys(elevenFiveHundredKvNum);
+ log.info("填写线路名称----------");
+ Thread.sleep(300);
+
+ //填写起始杆塔号
+ String elevenTwoHundredTwentyKvNum = obj.getTwoHundredTwentyKv();
+ WebElement elevenTwoHundredTwentyKvNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[14]/div/div[2]/div/div/div[3]/table/tbody/tr/td[6]/div/div/input"));
+ elevenTwoHundredTwentyKvNumEle.clear();
+ elevenTwoHundredTwentyKvNumEle.sendKeys(elevenTwoHundredTwentyKvNum);
+ log.info("填写起始杆塔号---------");
+ Thread.sleep(300);
+
+
+ //填写结束杆塔号
+ String elevenOneHundredTenKvNum = obj.getOneHundredTenKv();
+ WebElement elevenOneHundredTenKvNumNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[14]/div/div[2]/div/div/div[3]/table/tbody/tr/td[7]/div/div/input"));
+ elevenOneHundredTenKvNumNumEle.clear();
+ elevenOneHundredTenKvNumNumEle.sendKeys(elevenOneHundredTenKvNum);
+ log.info("填写结束杆塔号---------");
+ Thread.sleep(300);
+
+
+ //填写覆冰厚度
+ String elevenThirtyFiveKvNum = obj.getThirtyFiveKv();
+ WebElement elevenThirtyFiveKvNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[14]/div/div[2]/div/div/div[3]/table/tbody/tr/td[8]/div/div/div/input"));
+ elevenThirtyFiveKvNumEle.clear();
+ elevenThirtyFiveKvNumEle.sendKeys(elevenThirtyFiveKvNum);
+ log.info("填写覆冰厚度---------");
+
+ //填写设计覆冰厚度
+ String elevenTenKvNum = obj.getTenKv();
+ WebElement elevenTenKvNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[14]/div/div[2]/div/div/div[3]/table/tbody/tr/td[9]/div/div/div/input"));
+ elevenTenKvNumEle.clear();
+ elevenTenKvNumEle.sendKeys(elevenTenKvNum);
+ log.info("填写设计覆冰厚度---------");
+
+ //填写采取措施冰厚
+ String elevenAverageWaterLevelNum = obj.getAverageWaterLevel();
+ WebElement elevenAverageWaterLevelNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[14]/div/div[2]/div/div/div[3]/table/tbody/tr/td[10]/div/div/div/input"));
+ elevenAverageWaterLevelNumEle.clear();
+ elevenAverageWaterLevelNumEle.sendKeys(elevenAverageWaterLevelNum);
+ log.info("填写采取措施冰厚---------");
+
+ //填写可供使用抗冰装备
+ String elevenMeasuredValueNum = obj.getMeasuredValue();
+ WebElement elevenMeasuredValueNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[14]/div/div[2]/div/div/div[3]/table/tbody/tr/td[11]/div/div/input"));
+ elevenMeasuredValueNumEle.clear();
+ elevenMeasuredValueNumEle.sendKeys(elevenMeasuredValueNum);
+ log.info("填写可供使用抗冰装备---------");
+
+ //填写已采取措施行动
+ String elevenActionHasBeenTaken = obj.getActionHasBeenTaken();
+ WebElement elevenActionHasBeenTakenEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[14]/div/div[2]/div/div/div[3]/table/tbody/tr/td[12]/div/div/input"));
+ elevenActionHasBeenTakenEle.clear();
+ elevenActionHasBeenTakenEle.sendKeys(elevenActionHasBeenTaken);
+ log.info("填写已采取措施行动----------");
+ }
+
+ }catch (Exception e){
+ log.info("附表十一出现问题");
+ }
+ Thread.sleep(300);
+ dailySchedule12(bean.getTwelveBean(), bean);
+ }
+
+ //操作附表12
+ private void dailySchedule12(AnnexTwelveBean obj, DailyBean bean) throws InterruptedException {
+ try {
+ WebElement kaiguanEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[15]/div[1]/div/div/div"));
+ String className = kaiguanEle.getAttribute("class");
+ if ("el-switch".equals(className)) {
+ log.info("附表十二未开启,跳过");
+ } else {
+ //填写特高压
+ String twelveUhvNum = obj.getUhv();
+ WebElement twelveUhvEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[15]/div[2]/div/div/div[3]/table/tbody/tr/td[3]/div/div/div/input"));
+ twelveUhvEle.clear();
+ twelveUhvEle.sendKeys(twelveUhvNum);
+ log.info("填写特高压----------");
+ Thread.sleep(300);
+
+ //填写500k
+ String twelveFiveHundredKvNum = obj.getFiveHundredKv();
+ WebElement twelveFiveHundredKvNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[15]/div[2]/div/div/div[3]/table/tbody/tr/td[4]/div/div/div/input"));
+ twelveFiveHundredKvNumEle.clear();
+ twelveFiveHundredKvNumEle.sendKeys(twelveFiveHundredKvNum);
+ log.info("填写500k----------");
+ Thread.sleep(300);
+
+ //填写220/330kV
+ String twelveTwoHundredTwentyKvNum = obj.getTwoHundredTwentyKv();
+ WebElement twelveTwoHundredTwentyKvNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[15]/div[2]/div/div/div[3]/table/tbody/tr/td[5]/div/div/div/input"));
+ twelveTwoHundredTwentyKvNumEle.clear();
+ twelveTwoHundredTwentyKvNumEle.sendKeys(twelveTwoHundredTwentyKvNum);
+ log.info("填写220/330kV---------");
+ Thread.sleep(300);
+
+
+ //填写110/66kV
+ String twelveOneHundredTenKvNum = obj.getOneHundredTenKv();
+ WebElement twelveOneHundredTenKvNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[15]/div[2]/div/div/div[3]/table/tbody/tr/td[6]/div/div/div/input"));
+ twelveOneHundredTenKvNumEle.clear();
+ twelveOneHundredTenKvNumEle.sendKeys(twelveOneHundredTenKvNum);
+ log.info("填写110/66kV---------");
+ Thread.sleep(300);
+
+
+ //填写35kV
+ String twelveThirtyFiveKvNum = obj.getThirtyFiveKv();
+ WebElement twelveThirtyFiveKvNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[15]/div[2]/div/div/div[3]/table/tbody/tr/td[7]/div/div/div/input"));
+ twelveThirtyFiveKvNumEle.clear();
+ twelveThirtyFiveKvNumEle.sendKeys(twelveThirtyFiveKvNum);
+ log.info("填写35kV----------");
+
+ //填写10kV
+ String twelveTenKvNum = obj.getTenKv();
+ WebElement twelveTenKvNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[15]/div[2]/div/div/div[3]/table/tbody/tr/td[8]/div/div/div/input"));
+ twelveTenKvNumEle.clear();
+ twelveTenKvNumEle.sendKeys(twelveTenKvNum);
+ log.info("填写10kV---------");
+
+ //填写平均水位
+ String twelveAverageWaterLevelNum = obj.getAverageWaterLevel();
+ WebElement twelveAverageWaterLevelNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[15]/div[2]/div/div/div[3]/table/tbody/tr/td[9]/div/div/div/input"));
+ twelveAverageWaterLevelNumEle.clear();
+ twelveAverageWaterLevelNumEle.sendKeys(twelveAverageWaterLevelNum);
+ log.info("填写平均水位---------");
+
+ //填写最大水位-实际值
+ String twelveMeasuredValueNum = obj.getMeasuredValue();
+ WebElement twelveMeasuredValueNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[15]/div[2]/div/div/div[3]/table/tbody/tr/td[10]/div/div/div/input"));
+ twelveMeasuredValueNumEle.clear();
+ twelveMeasuredValueNumEle.sendKeys(twelveMeasuredValueNum);
+ log.info("填写最大水位-实际值---------");
+
+ //填写最大水位-设计值
+ String twelveDesignValuesNum = obj.getDesignValues();
+ WebElement twelveDesignValuesNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[15]/div[2]/div/div/div[3]/table/tbody/tr/td[11]/div/div/div/input"));
+ twelveDesignValuesNumEle.clear();
+ twelveDesignValuesNumEle.sendKeys(twelveDesignValuesNum);
+ log.info("填写最大水位-设计值---------");
+
+ //填写已采取措施行动
+ String twelveActionHasBeenTaken = obj.getActionHasBeenTaken();
+ WebElement twelveActionHasBeenTakenEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[15]/div[2]/div/div/div[3]/table/tbody/tr/td[12]/div/div/div/input"));
+ twelveActionHasBeenTakenEle.clear();
+ twelveActionHasBeenTakenEle.sendKeys(twelveActionHasBeenTaken);
+ log.info("填写已采取措施行动----------");
+ }
+ }catch (Exception e){
+ log.info("附表12出现问题");
+ }
+
+ Thread.sleep(300);
+ dailySchedule13(bean.getThirteenBean(), bean);
+ }
+
+ //操作附表13
+ private void dailySchedule13(AnnexThirteenBean obj, DailyBean bean) throws InterruptedException {
+ try{
+ WebElement kaiguanEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[16]/div/div[1]/div/div/div"));
+ String className = kaiguanEle.getAttribute("class");
+ if ("el-switch".equals(className)) {
+ log.info("附表十三未开启,跳过");
+ } else {
+ //填写特高压
+ String thirteenUhvNum = obj.getUhv();
+ WebElement thirteenUhvEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[16]/div[2]/div/div/div[3]/table/tbody/tr/td[3]/div/div/div/input"));
+ thirteenUhvEle.clear();
+ thirteenUhvEle.sendKeys(thirteenUhvNum);
+ log.info("填写特高压----------");
+ Thread.sleep(300);
+
+ //填写500k
+ String thirteenFiveHundredKvNum = obj.getFiveHundredKv();
+ WebElement thirteenFiveHundredKvNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[16]/div[2]/div/div/div[3]/table/tbody/tr/td[4]/div/div/div/input"));
+ thirteenFiveHundredKvNumEle.clear();
+ thirteenFiveHundredKvNumEle.sendKeys(thirteenFiveHundredKvNum);
+ log.info("填写500k----------");
+ Thread.sleep(300);
+
+ //填写220/330kV
+ String thirteenTwoHundredTwentyKvNum = obj.getTwoHundredTwentyKv();
+ WebElement thirteenTwoHundredTwentyKvNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[16]/div[2]/div/div/div[3]/table/tbody/tr/td[5]/div/div/div/input"));
+ thirteenTwoHundredTwentyKvNumEle.clear();
+ thirteenTwoHundredTwentyKvNumEle.sendKeys(thirteenTwoHundredTwentyKvNum);
+ log.info("填写220/330kV---------");
+ Thread.sleep(300);
+
+
+ //填写110/66kV
+ String thirteenOneHundredTenKvNum = obj.getOneHundredTenKv();
+ WebElement thirteenOneHundredTenKvNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[16]/div[2]/div/div/div[3]/table/tbody/tr/td[6]/div/div/div/input"));
+ thirteenOneHundredTenKvNumEle.clear();
+ thirteenOneHundredTenKvNumEle.sendKeys(thirteenOneHundredTenKvNum);
+ log.info("填写110/66kV---------");
+ Thread.sleep(300);
+
+
+ //填写35kV
+ String thirteenThirtyFiveKvNum = obj.getThirtyFiveKv();
+ WebElement thirteenThirtyFiveKvNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[16]/div[2]/div/div/div[3]/table/tbody/tr/td[7]/div/div/div/input"));
+ thirteenThirtyFiveKvNumEle.clear();
+ thirteenThirtyFiveKvNumEle.sendKeys(thirteenThirtyFiveKvNum);
+ log.info("填写35kV----------");
+
+ //填写10kV
+ String thirteenTenKvNum = obj.getTenKv();
+ WebElement thirteenTenKvNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[16]/div[2]/div/div/div[3]/table/tbody/tr/td[8]/div/div/div/input"));
+ thirteenTenKvNumEle.clear();
+ thirteenTenKvNumEle.sendKeys(thirteenTenKvNum);
+ log.info("填写10kV---------");
+
+ //填写平均水位
+ String thirteenAverageWaterLevelNum = obj.getAverageWaterLevel();
+ WebElement thirteenAverageWaterLevelNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[16]/div[2]/div/div/div[3]/table/tbody/tr/td[9]/div/div/div/input"));
+ thirteenAverageWaterLevelNumEle.clear();
+ thirteenAverageWaterLevelNumEle.sendKeys(thirteenAverageWaterLevelNum);
+ log.info("填写平均水位---------");
+
+ //填写最大水位-实际值
+ String thirteenMeasuredValueNum = obj.getMeasuredValue();
+ WebElement thirteenMeasuredValueNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[16]/div[2]/div/div/div[3]/table/tbody/tr/td[10]/div/div/div/input"));
+ thirteenMeasuredValueNumEle.clear();
+ thirteenMeasuredValueNumEle.sendKeys(thirteenMeasuredValueNum);
+ log.info("填写最大水位-实际值---------");
+
+ //填写最大水位-设计值
+ String thirteenDesignValuesNum = obj.getDesignValues();
+ WebElement thirteenDesignValuesNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[16]/div[2]/div/div/div[3]/table/tbody/tr/td[11]/div/div/div/input"));
+ thirteenDesignValuesNumEle.clear();
+ thirteenDesignValuesNumEle.sendKeys(thirteenDesignValuesNum);
+ log.info("填写最大水位-设计值---------");
+
+ //填写已采取措施行动
+ String thirteenActionHasBeenTaken = obj.getActionHasBeenTaken();
+ WebElement thirteenActionHasBeenTakenEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[16]/div[2]/div/div/div[3]/table/tbody/tr/td[12]/div/div/div/input"));
+ thirteenActionHasBeenTakenEle.clear();
+ thirteenActionHasBeenTakenEle.sendKeys(thirteenActionHasBeenTaken);
+ log.info("填写已采取措施行动----------");
+ }
+ }catch (Exception e){
+ log.info("附表十三未出现问题,跳过");
+ }
+ Thread.sleep(300);
+ dailySchedule14(bean.getFourteenBean(), bean);
+ }
+
+ //操作附表14
+ private void dailySchedule14(AnnexFourteenBean obj, DailyBean bean) throws InterruptedException {
+ try {
+ //填写特高压
+ String fourteenUhvNum = obj.getUhv();
+ WebElement fourteenUhvEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[17]/div[2]/div/div/div[3]/table/tbody/tr/td[3]/div/div/div/input"));
+ fourteenUhvEle.clear();
+ fourteenUhvEle.sendKeys(fourteenUhvNum);
+ log.info("填写特高压----------");
+ Thread.sleep(300);
+
+ //填写500k
+ String fourteenFiveHundredKvNum = obj.getFiveHundredKv();
+ WebElement fourteenFiveHundredKvNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[17]/div[2]/div/div/div[3]/table/tbody/tr/td[4]/div/div/div/input"));
+ fourteenFiveHundredKvNumEle.clear();
+ fourteenFiveHundredKvNumEle.sendKeys(fourteenFiveHundredKvNum);
+ log.info("填写500k----------");
+ Thread.sleep(300);
+
+ //填写220/330kV
+ String fourteenTwoHundredTwentyKvNum = obj.getTwoHundredTwentyKv();
+ WebElement fourteenTwoHundredTwentyKvNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[17]/div[2]/div/div/div[3]/table/tbody/tr/td[5]/div/div/div/input"));
+ fourteenTwoHundredTwentyKvNumEle.clear();
+ fourteenTwoHundredTwentyKvNumEle.sendKeys(fourteenTwoHundredTwentyKvNum);
+ log.info("填写220/330kV---------");
+ Thread.sleep(300);
+
+
+ //填写110/66kV
+ String fourteenOneHundredTenKvNum = obj.getOneHundredTenKv();
+ WebElement fourteenOneHundredTenKvNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[17]/div[2]/div/div/div[3]/table/tbody/tr/td[6]/div/div/div/input"));
+ fourteenOneHundredTenKvNumEle.clear();
+ fourteenOneHundredTenKvNumEle.sendKeys(fourteenOneHundredTenKvNum);
+ log.info("填写110/66kV---------");
+ Thread.sleep(300);
+
+
+ //填写35kV
+ String fourteenThirtyFiveKvNum = obj.getThirtyFiveKv();
+ WebElement fourteenThirtyFiveKvNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[17]/div[2]/div/div/div[3]/table/tbody/tr/td[7]/div/div/div/input"));
+ fourteenThirtyFiveKvNumEle.clear();
+ fourteenThirtyFiveKvNumEle.sendKeys(fourteenThirtyFiveKvNum);
+ log.info("填写35kV----------");
+
+ //填写10kV
+ String fourteenTenKvNum = obj.getTenKv();
+ WebElement fourteenTenKvNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[17]/div[2]/div/div/div[3]/table/tbody/tr/td[8]/div/div/div/input"));
+ fourteenTenKvNumEle.clear();
+ fourteenTenKvNumEle.sendKeys(fourteenTenKvNum);
+ log.info("填写10kV---------");
+
+ //填写平均水位
+ String fourteenAverageWaterLevelNum = obj.getAverageWaterLevel();
+ WebElement fourteenAverageWaterLevelNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[17]/div[2]/div/div/div[3]/table/tbody/tr/td[9]/div/div/div/input"));
+ fourteenAverageWaterLevelNumEle.clear();
+ fourteenAverageWaterLevelNumEle.sendKeys(fourteenAverageWaterLevelNum);
+ log.info("填写平均水位---------");
+
+ //填写最大水位-实际值
+ String fourteenMeasuredValueNum = obj.getMeasuredValue();
+ WebElement fourteenMeasuredValueNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[17]/div[2]/div/div/div[3]/table/tbody/tr/td[10]/div/div/div/input"));
+ fourteenMeasuredValueNumEle.clear();
+ fourteenMeasuredValueNumEle.sendKeys(fourteenMeasuredValueNum);
+ log.info("填写最大水位-实际值---------");
+
+ //填写最大水位-设计值
+ String fourteenDesignValuesNum = obj.getDesignValues();
+ WebElement fourteenDesignValuesNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[17]/div[2]/div/div/div[3]/table/tbody/tr/td[11]/div/div/div/input"));
+ fourteenDesignValuesNumEle.clear();
+ fourteenDesignValuesNumEle.sendKeys(fourteenDesignValuesNum);
+ log.info("填写最大水位-设计值---------");
+
+ //填写已采取措施行动
+ String fourteenActionHasBeenTaken = obj.getActionHasBeenTaken();
+ WebElement fourteenActionHasBeenTakenEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[17]/div[2]/div/div/div[3]/table/tbody/tr/td[12]/div/div/input"));
+ fourteenActionHasBeenTakenEle.clear();
+ fourteenActionHasBeenTakenEle.sendKeys(fourteenActionHasBeenTaken);
+ log.info("填写已采取措施行动----------");
+ Thread.sleep(300);
+ }catch (Exception e){
+ log.info("附表十四中存在问题,等待修改");
+ }
+ submitData();
+ }
+
+ //提交数据
+ private void submitData() throws InterruptedException {
+// //点击提交按钮,提交数据
+ WebElement submitBtn = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[19]/button[3]"));
+ if (submitBtn.isDisplayed()) {
+ //存在
+ log.info("日报提交按钮存在-----------");
+ log.info("日报提交按钮:" + submitBtn.getAttribute("class"));
+ log.info("日报提交按钮:" + submitBtn.getAttribute("type"));
+ log.info("日报提交按钮:" + submitBtn.getText());
+ submitBtn.click();
+ } else {
+ log.info("日报提交按钮不存在-----------");
+ }
+ log.info("点击提交按钮,提交数据----------");
+ Thread.sleep(300);
+
+ //点击弹出框确认
+///html/body/div[3]/div/div[3]/button[2]
+ WebElement qrBtn = webDriver.findElement(By.xpath("/html/body/div[2]/div/div[3]/button[2]"));
+ if (qrBtn.isDisplayed()) {
+ //存在
+ log.info("日报确认按钮存在-----------");
+ log.info("日报确认按钮:" + qrBtn.getAttribute("class"));
+ log.info("日报确认按钮:" + qrBtn.getAttribute("type"));
+ log.info("日报确认按钮:" + qrBtn.getText());
+ qrBtn.click();
+
+ Thread.sleep(1000);
+ //取消弹框
+// webDriver.findElement(By.xpath("/html/body/div[3]/div/div[3]/button[1]")).click();
+ } else {
+ log.info("日报确认按钮不存在-----------");
+ }
+ log.info("点击弹出框确认----------");
+ Thread.sleep(300);
+
+ //测试 点击取消按钮
+ /* webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[19]/button[1]")).click();
+ log.info("点击取消----------");
+ Thread.sleep(300);*/
+
+ //退出当前iframe,
+ webDriver.switchTo().defaultContent();
+ log.info("退出当前iframe----------");
+ Thread.sleep(300);
+
+ //定位值班管理iframe的标签
+ WebElement dutyIframe = webDriver.findElement(By.id("zbgln"));
+ webDriver.switchTo().frame(dutyIframe);
+ log.info("定位值班管理iframe的标签----------");
+ Thread.sleep(300);
+ }
+
+
+}
diff --git a/src/main/java/com/bonus/autoweb/base/DutyLogIOp.java b/src/main/java/com/bonus/autoweb/base/DutyLogIOp.java
new file mode 100644
index 0000000..0105e81
--- /dev/null
+++ b/src/main/java/com/bonus/autoweb/base/DutyLogIOp.java
@@ -0,0 +1,391 @@
+package com.bonus.autoweb.base;
+
+import com.bonus.autoweb.DateTimeUtils;
+import com.bonus.autoweb.TestMain;
+import com.bonus.autoweb.UI.entity.LogBean;
+import com.thoughtworks.xstream.XStream;
+import com.thoughtworks.xstream.io.json.JettisonMappedXmlDriver;
+import org.openqa.selenium.By;
+import org.openqa.selenium.WebDriver;
+import org.openqa.selenium.WebElement;
+import org.slf4j.LoggerFactory;
+
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.InputStreamReader;
+import java.nio.charset.Charset;
+import java.text.ParseException;
+
+import org.slf4j.Logger;
+
+/**
+ * 操作值班日志类
+ */
+public class DutyLogIOp {
+ private Logger log = LoggerFactory.getLogger(DutyLogIOp.class);
+ private WebDriver webDriver;
+
+ public DutyLogIOp(WebDriver webDriver) {
+ this.webDriver = webDriver;
+ }
+
+ /**
+ * 打开日志新增页面
+ *
+ * @param type 1 早 2晚
+ */
+ public void openDutyLog(int type) throws Exception {
+ if (type == 1) {
+ //早上填写前一天的日志,将标签改为前一天
+ changeDay();
+ }
+ Thread.sleep(5000);
+ //定位值班日志并点击
+ webDriver.findElement(By.id("tab-5")).click();
+ log.info("定位值班日志并点击----------");
+ Thread.sleep(5000);
+
+ // /html/body/div[2] 弹窗 您没有填写值班日志的排班班次
+
+ //定位写日志标签,打开日志页面
+ webDriver.findElement(By.xpath("//*[@id=\"pane-5\"]/div/div[2]/div[2]/button")).click();
+ log.info("定位写日志标签,打开日志页面----------");
+ Thread.sleep(500);
+
+
+ //退出当前iframe,进入到日报编辑iframe
+ webDriver.switchTo().defaultContent();
+ log.info("退出当前iframe----------");
+ Thread.sleep(1500);
+
+ //定位日志编辑iframe的标签
+ WebElement dutyEditIframe = webDriver.findElement(By.id("add-local-zbrzbz"));
+ webDriver.switchTo().frame(dutyEditIframe);
+ log.info("定位日志编辑iframe的标签----------");
+ Thread.sleep(1000);
+ dutyLogContent();
+
+ if (type == 1) {
+ //昨天的日志填写完毕之后将日期改为今天
+ webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/main/div/div[1]/div[1]/div[3]/div[1]/div[2]/div/button[2]")).click();
+ log.info("将日期选择回当日----------");
+ Thread.sleep(500);
+ }
+ }
+
+ public void changeDay() throws Exception {
+
+ Thread.sleep(1000);
+ //判断当前日期是不是每月第一天的日期,true
+ boolean tf = false;
+ int tr = 1;
+ int td = 1;
+ String xpath;
+ if (!DateTimeUtils.isOneDay()) {
+ //不是本月第一天
+ String currentDay = DateTimeUtils.getCurrentDay();
+ log.info("currentDay:" + currentDay);
+ int weekNum = DateTimeUtils.getWeekNum(currentDay);
+ log.info("weekNum:" + weekNum);
+ int dayNum = DateTimeUtils.getWeekOfDate(currentDay);
+ log.info("dayNum:" + dayNum);
+ /*if (dayNum == 1) {
+ tr = weekNum - 1;
+ td = 7;
+ } else {
+ tr = weekNum;
+ td = dayNum - 1;
+ }*/
+ if (dayNum == 1) {
+ if (DateTimeUtils.getMonthOneDayIs0()) {//第一天是0
+ tr = weekNum;
+ } else {
+ tr = weekNum - 1;
+ if (weekNum == 1) {
+ tr = 5;
+ }
+ }
+ td = 7;
+ } else {
+ if (DateTimeUtils.getMonthOneDayIs0()) {//第一天是0
+ tr = weekNum + 1;
+ } else {
+ tr = weekNum;
+ }
+ td = dayNum - 1;
+ }
+ log.info("标签位置:tr:" + tr + ",td:" + td);
+ xpath = "//*[@id=\"app\"]/div/section/main/div/div[1]/div[1]/div[3]/div[2]/table/tbody/tr[" + tr + "]" + "/td[" + td + "]/div";
+ } else {
+ //点击上月按钮,切换至上月
+ webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/main/div/div[1]/div[1]/div[3]/div[1]/div[2]/div/button[1]")).click();
+ log.info("点击上月按钮,切换至上月----------");
+ Thread.sleep(500);
+
+ //获取上月最后一天日期
+ String mothDay = DateTimeUtils.getBeforeLastMonthdate();
+ //判断上个月最后一天的位置
+ tr = DateTimeUtils.getWeekNum(mothDay);
+ td = DateTimeUtils.getWeekOfDate(mothDay);
+ xpath = "//*[@id=\"app\"]/div/section/main/div/div[1]/div[1]/div[3]/div[2]/table/tbody/tr[" + tr + "]" + "/td[" + td + "]/div";
+// String dayNum = mothDay.substring(8, 10);
+// WebElement spanElement = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/main/div/div[1]/div[1]/div[3]/div[2]/table/tbody/tr[" + tr + "]" + "/td[" + td + "]/div/div/div[1]/span"));
+// if (dayNum.equals(spanElement.getText())) {
+// xpath = "//*[@id=\"app\"]/div/section/main/div/div[1]/div[1]/div[3]/div[2]/table/tbody/tr[" + (tr + 1) + "]" + "/td[" + td + "]/div";
+// }
+
+ }
+ //选择前一天的日期
+
+ log.info("前一天的标签:" + xpath);
+
+ webDriver.findElement(By.xpath(xpath)).click();
+ log.info("选择前一天的日期----------");
+ Thread.sleep(500);
+ }
+
+ /**
+ * 内容填写
+ */
+ private void dutyLogContent() throws InterruptedException {
+ //值班时间
+// /html/body/div[3]/div/div[2]/div/form/div[1]/div/div/div[1]/div/div/div/div
+ webDriver.findElement(By.xpath("/html/body/div[3]/div/div[2]/div/form/div[1]/div/div/div[1]/div/div/div/div[1]")).click();
+ log.info("值班时间----------");
+ Thread.sleep(500);
+ webDriver.findElement(By.xpath("/html/body/div[4]/div[1]/div[1]/ul/li")).click();
+ log.info("值班时间----------");
+ Thread.sleep(500);
+
+ // 反序列化--> 解决乱码问题
+ File file = new File(DataConfig.filePath + "\\log.xml");
+ InputStreamReader in = null;
+ String xml = null;
+ try {
+ //主要就是这里的设置
+ in = new InputStreamReader(new FileInputStream(file), Charset.forName("gbk"));
+ StringBuffer sb = new StringBuffer();
+ char[] array = new char[1024];
+ int length = -1;
+ while ((length = in.read(array)) != -1) {
+ sb.append(array, 0, length);
+ }
+ in.close();
+ xml = sb.toString().trim();
+ System.out.println(xml);
+ } catch (Exception e) {
+ // TODO: handle exception
+ }
+
+ XStream xstream = new XStream(new JettisonMappedXmlDriver());
+ xstream.alias("log", LogBean.class);
+ LogBean bean = (LogBean) xstream.fromXML(xml);
+
+
+// //输入天气
+// String tq = bean.getWeather();
+//// /html/body/div[3]/div/div[2]/div/form/div[3]/div/div/div[3]/div/div/div[1]/input
+// webDriver.findElement(By.xpath("/html/body/div[3]/div/div[2]/div/form/div[3]/div/div/div[5]/div/div/div/input")).sendKeys(tq);
+// log.info("输入天气----------");
+// Thread.sleep(500);
+
+// //输入最低气温
+// String zdqw = bean.getMin_temperature();
+//// /html/body/div[3]/div/div[2]/div/form/div[3]/div/div/div[4]/div/div/div[1]/input
+// webDriver.findElement(By.xpath("/html/body/div[3]/div/div[2]/div/form/div[3]/div/div/div[7]/div/div/div/input")).sendKeys(zdqw);
+// log.info("输入最高气温----------");
+// Thread.sleep(500);
+
+// //输入最高气温
+// String zgqw = bean.getMax_temperature();
+//// /html/body/div[3]/div/div[2]/div/form/div[3]/div/div/div[4]/div/div/div[1]/input
+// webDriver.findElement(By.xpath("/html/body/div[3]/div/div[2]/div/form/div[3]/div/div/div[9]/div/div/div/input")).sendKeys(zgqw);
+// log.info("输入最高气温----------");
+// Thread.sleep(500);
+
+ //事件监测 标题
+ String sjjc_title = bean.getEvent_detection_title();
+ // /html/body/div[3]/div/div[2]/div/form/div[4]/table/tr[2]/td/table[1]/tr[1]/td/div[3]/div/div[1]/textarea
+ webDriver.findElement(By.xpath("/html/body/div[3]/div/div[2]/div/form/div[4]/table/tr[2]/td/table[1]/tr[1]/td/div[3]/div/div/textarea")).sendKeys(sjjc_title);
+ log.info("事件监测 标题----------");
+ Thread.sleep(500);
+ //事件监测 内容
+ String sjjc_content = bean.getEvent_detection_content();
+ webDriver.findElement(By.xpath("/html/body/div[3]/div/div[2]/div/form/div[4]/table/tr[2]/td/table[1]/tr[2]/td/div/div/div/textarea")).sendKeys(sjjc_content);
+ log.info("事件监测 内容----------");
+ Thread.sleep(500);
+
+ //保电工作 标题
+ String bdgz_title = bean.getPower_work_title();
+ webDriver.findElement(By.xpath("/html/body/div[3]/div/div[2]/div/form/div[4]/table/tr[2]/td/table[2]/tr[1]/td/div[3]/div/div/textarea")).sendKeys(bdgz_title);
+ log.info("保电工作 标题----------");
+ Thread.sleep(2000);
+
+ //保电工作 内容
+ String bdgz_content = bean.getPower_work_content();
+ System.out.println("bdgz_content:" + bdgz_content);
+ WebElement bdgzContentElement = webDriver.findElement(By.xpath("/html/body/div[3]/div/div[2]/div/form/div[4]/table/tr[2]/td/table[2]/tr[2]/td/div/div/div[1]/textarea"));
+
+ bdgzContentElement.clear();
+ bdgzContentElement.sendKeys(bdgz_content.trim());
+// webDriver.findElement(By.xpath("/html/body/div[3]/div/div[2]/div/form/div[4]/table/tr[2]/td/table[2]/tr[2]/td/div/div/div[1]/textarea")).sendKeys(bdgz_content);
+ log.info("保电工作 内容----------");
+ Thread.sleep(2000);
+
+ //资源核查 标题
+ String zyhc_title = bean.getResource_check_title();
+ webDriver.findElement(By.xpath("/html/body/div[3]/div/div[2]/div/form/div[4]/table/tr[2]/td/table[3]/tr[1]/td/div[3]/div/div/textarea")).sendKeys(zyhc_title);
+ log.info("资源核查 标题----------");
+ Thread.sleep(500);
+ //资源核查 内容
+ String zyhc_content = bean.getResource_check_content();
+ webDriver.findElement(By.xpath("/html/body/div[3]/div/div[2]/div/form/div[4]/table/tr[2]/td/table[3]/tr[2]/td/div/div/div/textarea")).sendKeys(zyhc_content);
+ log.info("资源核查 内容----------");
+ Thread.sleep(500);
+
+ //通信测试 标题
+ String txcs_title = bean.getCommunications_test_title();
+ webDriver.findElement(By.xpath("/html/body/div[3]/div/div[2]/div/form/div[4]/table/tr[2]/td/table[4]/tr[1]/td/div[3]/div/div/textarea")).sendKeys(txcs_title);
+ log.info("通信测试 标题----------");
+ Thread.sleep(500);
+ //通信测试 内容
+ String txcs_content = bean.getCommunications_test_content();
+ webDriver.findElement(By.xpath("/html/body/div[3]/div/div[2]/div/form/div[4]/table/tr[2]/td/table[4]/tr[2]/td/div/div/div/textarea")).sendKeys(txcs_content);
+ log.info("通信测试 内容----------");
+ Thread.sleep(500);
+
+
+ //日常操练情况 标题
+ String rcclqk_title = bean.getDaily_operation_title();
+ webDriver.findElement(By.xpath("/html/body/div[3]/div/div[2]/div/form/div[4]/table/tr[2]/td/table[5]/tr[1]/td/div[3]/div/div/textarea")).sendKeys(rcclqk_title);
+ log.info("日常操练情况 标题----------");
+ Thread.sleep(500);
+ //日常操练情况 内容
+ String rcclqk_content = bean.getDaily_operation_content();
+ webDriver.findElement(By.xpath("/html/body/div[3]/div/div[2]/div/form/div[4]/table/tr[2]/td/table[5]/tr[2]/td/div/div/div/textarea")).sendKeys(rcclqk_content);
+ log.info("日常操练情况 内容----------");
+ Thread.sleep(500);
+
+ //日报填写情况 标题
+ String rbtxqk_title = bean.getDaily_submission_title();
+ webDriver.findElement(By.xpath("/html/body/div[3]/div/div[2]/div/form/div[4]/table/tr[2]/td/table[6]/tr[1]/td/div[3]/div/div/textarea")).sendKeys(rbtxqk_title);
+ log.info("日报填写情况 标题----------");
+ Thread.sleep(500);
+ //日常操练情况 内容
+ String rbtxqk_content = bean.getDaily_submission_content();
+ webDriver.findElement(By.xpath("/html/body/div[3]/div/div[2]/div/form/div[4]/table/tr[2]/td/table[6]/tr[2]/td/div/div/div/textarea")).sendKeys(rbtxqk_content);
+ log.info("日常操练情况 内容----------");
+ Thread.sleep(500);
+
+ //预警处置 标题
+ String yjcz_title = bean.getWarning_disposal_title();
+ webDriver.findElement(By.xpath("/html/body/div[3]/div/div[2]/div/form/div[4]/table/tr[2]/td/table[7]/tr[1]/td/div[3]/div/div/textarea")).sendKeys(yjcz_title);
+ log.info("预警处置 标题----------");
+ Thread.sleep(500);
+ //预警处置 内容
+ String yjcz_content = bean.getWarning_disposal_content();
+ webDriver.findElement(By.xpath("/html/body/div[3]/div/div[2]/div/form/div[4]/table/tr[2]/td/table[7]/tr[2]/td/div/div/div/textarea")).sendKeys(yjcz_content);
+ log.info("预警处置 内容----------");
+ Thread.sleep(500);
+
+ //一般记事 标题
+ String ybjs_title = bean.getGeneral_chronicles_title();
+ webDriver.findElement(By.xpath("/html/body/div[3]/div/div[2]/div/form/div[4]/table/tr[2]/td/table[8]/tr[1]/td/div[3]/div/div/textarea")).sendKeys(ybjs_title);
+ log.info("一般记事 标题----------");
+ Thread.sleep(500);
+ //一般记事 内容
+ String ybjs_content = bean.getGeneral_chronicles_content();
+ webDriver.findElement(By.xpath("/html/body/div[3]/div/div[2]/div/form/div[4]/table/tr[2]/td/table[8]/tr[2]/td/div/div/div/textarea")).sendKeys(ybjs_content);
+ log.info("一般记事 内容----------");
+ Thread.sleep(500);
+
+
+ //提交日志
+
+ WebElement submitDay = webDriver.findElement(By.xpath("/html/body/div[3]/div/div[3]/div/button[3]"));
+ log.info("提交日志按钮:" + submitDay.getText());
+ submitDay.click();
+ log.info("提交日志----------");
+ Thread.sleep(500);
+
+
+ //点击弹出框确认
+ WebElement qrBtn = webDriver.findElement(By.xpath("/html/body/div[4]/div/div[3]/button[2]"));
+ log.info("确认日志按钮:" + qrBtn.getText());
+ qrBtn.click();
+
+ Thread.sleep(1000 * 3);
+ //取消
+// webDriver.findElement(By.xpath("/html/body/div[4]/div/div[3]/button[1]")).click();
+
+ log.info("点击弹出框确认----------");
+ Thread.sleep(500);
+
+ //测试 点击取消按钮
+ /*webDriver.findElement(By.xpath("/html/body/div[3]/div/div[3]/div/button[1]")).click();
+ log.info("点击取消----------");
+ Thread.sleep(500);*/
+
+
+ //退出当前iframe,
+ webDriver.switchTo().defaultContent();
+ log.info("退出当前iframe----------");
+ Thread.sleep(500);
+
+
+ //定位值班管理iframe的标签
+ WebElement dutyIframe = webDriver.findElement(By.id("zbgln"));
+ webDriver.switchTo().frame(dutyIframe);
+ log.info("定位值班管理iframe的标签----------");
+ Thread.sleep(500);
+
+ }
+
+ public static void main(String[] args) throws ParseException {
+ int tr = 1;
+ int td = 1;
+ String currentDay = "2024-01-01";
+ System.out.println(currentDay);
+ int weekNum = DateTimeUtils.getWeekNum(currentDay);
+ System.out.println(weekNum);
+ int dayNum = DateTimeUtils.getWeekOfDate(currentDay);
+ System.out.println(dayNum);
+ /*if (dayNum == 1) {
+ tr = weekNum - 1;
+ td = 7;
+ } else {
+ tr = weekNum;
+ td = dayNum - 1;
+ }*/
+ if (dayNum == 1) {
+ if (DateTimeUtils.getMonthOneDayIs0()) {//第一天是0
+ tr = weekNum;
+ } else {
+ tr = weekNum - 1;
+ if (weekNum == 1) {
+ tr = 5;
+ }
+ }
+ td = 7;
+ } else {
+ if (DateTimeUtils.getMonthOneDayIs0()) {//第一天是0
+ tr = weekNum + 1;
+ } else {
+ tr = weekNum;
+ }
+ td = dayNum - 1;
+ }
+ System.out.println(tr);
+ System.out.println(td);
+ System.out.println("-------------------------");
+ //获取上月最后一天日期
+ String mothDay = "2023-12-31";
+ System.out.println(mothDay);
+ //判断上个月最后一天的位置
+ tr = DateTimeUtils.getWeekNum(mothDay);
+ td = DateTimeUtils.getWeekOfDate(mothDay);
+ System.out.println(tr);
+ System.out.println(td);
+ System.out.println(mothDay.substring(8,10));
+ }
+}
diff --git a/src/main/java/com/bonus/autoweb/task/AutoWebTask.java b/src/main/java/com/bonus/autoweb/task/AutoWebTask.java
new file mode 100644
index 0000000..789ca26
--- /dev/null
+++ b/src/main/java/com/bonus/autoweb/task/AutoWebTask.java
@@ -0,0 +1,459 @@
+package com.bonus.autoweb.task;
+
+import com.bonus.autoweb.DateTimeUtils;
+import com.bonus.autoweb.GetBasicData;
+import com.bonus.autoweb.base.*;
+import org.apache.poi.ss.usermodel.Cell;
+import org.apache.poi.ss.usermodel.Row;
+import org.apache.poi.ss.usermodel.Sheet;
+import org.apache.poi.ss.usermodel.Workbook;
+import org.apache.poi.xssf.usermodel.XSSFWorkbook;
+import org.openqa.selenium.By;
+import org.openqa.selenium.WebElement;
+import org.slf4j.Logger;
+import org.openqa.selenium.WebDriver;
+import org.slf4j.LoggerFactory;
+
+import java.io.BufferedReader;
+import java.io.FileInputStream;
+import java.io.FileReader;
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.Collections;
+
+/**
+ * 应急指挥中心打卡任务类
+ */
+public class AutoWebTask {
+
+ Logger log = LoggerFactory.getLogger(AutoWebTask.class);
+
+ /**
+ * 打卡任务
+ *
+ * @param classes 班次,,1早班 2晚班
+ */
+ public void dutyClockTask(int classes) {
+ log.info("开始打卡任务---------------------");
+ log.info("房万春开始打卡任务---------------------");
+ //使用房万春账号签到
+ dutySigin(classes, 1, DataConfig.USER_NAME2, DataConfig.PASS2);
+ try {
+ Thread.sleep(1000 * 2);
+ } catch (Exception e) {
+ log.error("打卡任务", e);
+ }
+ //使用韩宏宇账号签到
+ log.info("韩宏宇开始打卡任务---------------------");
+ dutySigin(classes, 1, DataConfig.USER_NAME1, DataConfig.PASS1);
+ }
+
+ /**
+ * 签到任务
+ *
+ * @param classes
+ * @param type
+ * @param userName
+ * @param pass
+ * @throws Exception
+ */
+ public int dutySigin(int classes, int type, String userName, String pass) {
+ //打开浏览器,进入应急指挥中心网站
+ AutoMain autoMain = new AutoMain();
+ int count = 0;
+ try {
+ autoMain.initDrive(2);
+ WebDriver webDriver = autoMain.getWebDriver();
+ autoMain.startAuto(userName, pass);
+ DutyClock dutyClock = new DutyClock(webDriver);
+ dutyClock.openDutyClock();
+ dutyClock.dutyClockOper(classes, type);
+ //关闭浏览器
+ autoMain.closeDrive();
+ count = 1;
+ } catch (Exception e) {
+ log.error("签到任务", e);
+ } finally {
+ autoMain.closeDrive();
+ }
+ return count;
+ }
+
+
+ /**
+ * 填报日志和日报任务
+ *
+ * @param type 1 早报 2晚报
+ */
+ public int dutyAddDailyLogsTask(int type, String username, String password) {
+ log.info("开始日报填写任务---------------------");
+ //打开浏览器,进入应急指挥中心网站
+ AutoMain autoMain = new AutoMain();
+ WebDriver webDriver;
+ int count = 0;
+ try {
+ autoMain.initDrive(1);
+ autoMain.startAuto(username, password);
+ webDriver = autoMain.getWebDriver();
+ //操作日报
+ DutyDailyOp ddo = new DutyDailyOp(webDriver);
+ ddo.openDutyDaily(type);
+ Thread.sleep(1000);
+ count = 1;
+ } catch (Exception e) {
+ log.error("日报填写任务", e);
+ }
+ try {
+ //日报审核工作
+ webDriver = autoMain.getWebDriver();
+ DutyDailyCheck dutyDailyCheck = new DutyDailyCheck(webDriver);
+ dutyDailyCheck.dutyCheckOp(type);
+ Thread.sleep(1000);
+ count = 1;
+ } catch (Exception e) {
+ count = 0;
+ log.error("日报审核工作", e);
+ } finally {
+ autoMain.closeDrive();
+ }
+ return count;
+ }
+
+ public int dutyAddLogsTask(int type, String username, String password) {
+ log.info("开始日志填写任务---------------------");
+ //打开浏览器,进入应急指挥中心网站
+ int count = 0;
+ AutoMain autoMain = new AutoMain();
+ WebDriver webDriver;
+ try {
+ autoMain.initDrive(1);
+ autoMain.startAuto(username, password);
+ //操作日志
+ webDriver = autoMain.getWebDriver();
+ DutyLogIOp dlo = new DutyLogIOp(webDriver);
+ dlo.openDutyLog(type);
+ count = 1;
+ } catch (Exception e) {
+ count = 0;
+ log.error("操作日志任务", e);
+ } finally {
+ autoMain.closeDrive();
+ }
+ return count;
+ }
+
+ public int changeTodayPersonaTask(int type, String username, String password) throws IOException {
+ log.info("开始日志填写任务---------------------");
+ //打开浏览器,进入应急指挥中心网站
+ int count = 0;
+ AutoMain autoMain = new AutoMain();
+ WebDriver webDriver;
+ FileInputStream excelFile = null;
+ Workbook workbook = null;
+ try {
+ autoMain.initDrive(1);
+ autoMain.startAuto(username, password);
+ //操作日志
+ webDriver = autoMain.getWebDriver();
+ //获取账号姓名 和 账号名
+ WebElement personNameEle = webDriver.findElement(By.xpath("//*[@id='pane-1']/div/div[3]/div/div/div[3" +
+ "]/table/tbody/tr[2]/td[2]/div/div/p[1]"));
+ String personName = personNameEle.getText();
+ log.info("今日值班人员:" + personName);
+ WebElement accountEle = webDriver.findElement(By.xpath("//*[@id='pane-1']/div/div[3]/div/div/div[3" +
+ "]/table/tbody/tr[2]/td[2]/div/div/p[2]"));
+ String account = accountEle.getText();
+ log.info("今日值班人员账号:" + account);
+ excelFile = new FileInputStream("E:\\bns\\config\\zhibanaccount.xlsx");
+ workbook = new XSSFWorkbook(excelFile);
+ Sheet datatypeSheet = workbook.getSheetAt(0);
+ for (Row row : datatypeSheet) {
+ String value = "";
+ for (Cell cell : row) {
+ value += cell.getStringCellValue() + "]]]";
+ }
+ value = value.substring(0, value.length() - 3);
+ if (value.contains(account)) {
+ System.out.println("今天:" + value);
+ AutoUtils.write("E:\\bns\\config\\今日值班账号.txt", "今日账号:" + value.split("]]]")[1] + ";密码:" + value.split(
+ "]]]")[2]);
+ break;
+ }
+ }
+ excelFile.close();
+ count = 1;
+ } catch (Exception e) {
+ log.error("操作日志任务", e);
+ } finally {
+ autoMain.closeDrive();
+ }
+ return count;
+ }
+
+
+ /**
+ * 交接班任务
+ *
+ * @param classes 班次,,1早班 2晚班
+ */
+ public int dutyChangeTask1(int classes, String userName, String password) {
+ // 先交班 1 在接班 2
+ //先走class1 在走class2
+ log.info("开始交班任务---------------------");
+ AutoMain autoMain = new AutoMain();
+ int count = 0;
+ WebDriver webDriver;
+ try {
+ //打开浏览器,进入应急指挥中心网站
+ autoMain.initDrive(2);
+ autoMain.startAuto(userName, password);
+ webDriver = autoMain.getWebDriver();
+
+ DutyChangeShifts dutyChangeShifts = new DutyChangeShifts(webDriver);
+ if (classes == 2) {
+ dutyChangeShifts.openChangeShifts();
+ dutyChangeShifts.dutychangeOper(1, 2);
+ } else {
+ dutyChangeShifts.changeDay();
+ }
+ Thread.sleep(1000);
+
+ //关闭浏览器
+ autoMain.closeDrive();
+ count = 1;
+ } catch (Exception e) {
+ count = 0;
+ log.error("交接班任务:" + e);
+ } finally {
+ autoMain.closeDrive();
+ }
+ return count;
+ }
+
+ public int dutyChangeTask2(int classes, String userName, String password) {
+ log.info("开始接班任务---------------------");
+ AutoMain autoMain = new AutoMain();
+ WebDriver webDriver;
+ int count = 0;
+ try {
+ //打开浏览器,进入应急指挥中心网站
+ autoMain.initDrive(2);
+ autoMain.startAuto(userName, password);
+ webDriver = autoMain.getWebDriver();
+
+ DutyChangeShifts dutyChangeShifts = new DutyChangeShifts(webDriver);
+ //进行接班工作
+ dutyChangeShifts.openChangeShifts();
+ dutyChangeShifts.dutychangeOper(classes, 2);
+
+ //关闭浏览器
+ autoMain.closeDrive();
+ count = 1;
+ } catch (Exception e) {
+ count = 0;
+ log.error("交接班任务:" + e);
+ } finally {
+ autoMain.closeDrive();
+ }
+ return count;
+ }
+
+ /**
+ * 签退任务
+ *
+ * @param classes 班次,,1早班 2晚班
+ */
+ public int dutySignOutTask(int classes, String userName, String pass) {
+ log.info("开始签退任务---------------------");
+ AutoMain autoMain = new AutoMain();
+ int count = 0;
+ try {
+ //打开浏览器,进入应急指挥中心网站
+ autoMain.initDrive(2);
+ autoMain.startAuto(userName, pass);
+ WebDriver webDriver = autoMain.getWebDriver();
+
+ DutyClock dutyClock = new DutyClock(webDriver);
+ if (classes == 1) {
+ dutyClock.changeDay();
+ } else {
+ dutyClock.dutyClockOper(1, 2);
+ }
+ //关闭浏览器
+ autoMain.closeDrive();
+ count = 1;
+ } catch (Exception e) {
+ count = 0;
+ log.error("签退任务", e);
+ } finally {
+ autoMain.closeDrive();
+ }
+ return count;
+ }
+
+ /**
+ * 定时获取基础数据
+ */
+ public int getYuJingData(int classes, String username, String password) {
+ AutoMain autoMain = new AutoMain();
+ WebDriver webDriver;
+ int count = 0;
+ try {
+ autoMain.initDrive(2);
+ log.info("初始化驱动成功");
+ autoMain.startYuJingAuto(username, password);
+ log.info("startYuJingAuto成功");
+ //获取基础数据
+ webDriver = autoMain.getWebDriver();
+ GetBasicData gbd = new GetBasicData(webDriver);
+ log.info("获取天气预警值启动----");
+ gbd.getYuJingBasicData(classes);
+ count = 1;
+ } catch (Exception e) {
+ count = 0;
+ log.error("获取基础数据任务", e);
+ } finally {
+ autoMain.closeDrive();
+ }
+ return count;
+ }
+
+ /**
+ * 预警行动
+ *
+ * @param classes
+ * @return
+ */
+ public int getYuJingActionData(int classes, String username, String password) {
+ AutoMain autoMain = new AutoMain();
+ WebDriver webDriver;
+ int count = 0;
+ try {
+ autoMain.initDrive(2);
+ log.info("初始化驱动成功");
+ autoMain.startYuJingActionAuto(username, password);
+ log.info("startYuJingAuto成功");
+ //获取基础数据
+ webDriver = autoMain.getWebDriver();
+ GetBasicData gbd = new GetBasicData(webDriver);
+ log.info("获取天气预警值启动----");
+ gbd.getYuJingActionBasicData(classes);
+ count = 1;
+ } catch (Exception e) {
+ count = 0;
+ log.error("获取基础数据任务", e);
+ } finally {
+ autoMain.closeDrive();
+ }
+ return count;
+ }
+
+ public int getCaoLianData(int classes, String username, String password) {
+ AutoMain autoMain = new AutoMain();
+ WebDriver webDriver;
+ int count = 0;
+ try {
+ autoMain.initDrive(2);
+ autoMain.startCaoLianAuto(username, password);
+ //获取基础数据
+ webDriver = autoMain.getWebDriver();
+ GetBasicData gbd = new GetBasicData(webDriver);
+ gbd.getCaoLianBasicData(classes);
+ count = 1;
+ } catch (Exception e) {
+ count = 0;
+ log.error("获取基础操练数据任务", e);
+ } finally {
+ autoMain.closeDrive();
+ }
+ return count;
+ }
+
+
+ public static void main(String[] args) {
+ try {
+ String accountContent = GetBasicData.resolveGarbledCode("E:\\bns2\\config\\值班账号.txt");
+ String content = GetBasicData.resolveGarbledCode("E:\\bns2\\config\\值班账号.txt");
+ String todayContent = GetBasicData.resolveGarbledCode("E:\\bns2\\config\\今日值班账号.txt");
+ String yesterdayContent = GetBasicData.resolveGarbledCode("E:\\bns2\\config\\昨日值班账号.txt");
+
+ String emergencyPerson = content.toString().split(";")[0].split(":")[1];
+ String emergencyPersonPassword = content.toString().split(";")[1].split(":")[1];
+ //今日签到值班人员
+ String todaySignInPerson = todayContent.toString().split(";")[0].split(":")[1];
+ String todaySignInPersonPassword = todayContent.toString().split(";")[1].split(":")[1];
+ //昨日签退人员
+ String yesterdaySignOutPerson = yesterdayContent.toString().split(";")[0].split(":")[1];
+ String yesterdaySignOutPersonPassword = yesterdayContent.toString().split(";")[1].split(":")[1];
+ System.out.println(emergencyPerson);
+ System.out.println(emergencyPersonPassword);
+ System.out.println(todaySignInPerson);
+ System.out.println(todaySignInPersonPassword);
+ System.out.println(yesterdaySignOutPerson);
+ System.out.println(yesterdaySignOutPersonPassword);
+ String[] accountArray = accountContent.split("--账号--:");
+ String personName = "张天强";
+ String personAccount = "ztq";
+ FileInputStream excelFile = new FileInputStream("E:\\bns2\\config\\zhibanaccount.xlsx");
+ Workbook workbook = new XSSFWorkbook(excelFile);
+ Sheet datatypeSheet = workbook.getSheetAt(0);
+ for (Row row : datatypeSheet) {
+ String value = "";
+ for (Cell cell : row) {
+ value += cell.getStringCellValue() + "]]]";
+ }
+ value = value.substring(0, value.length() - 3);
+ System.out.println(value);
+ if (value.indexOf(personName) != -1) {
+ System.out.println("今天:" + value);
+ AutoUtils.write("E:\\bns2\\config\\今日值班账号.txt", "今日账号:" + value.split("]]]")[1] + ";密码:" + value.split(
+ "]]]")[2]);
+ break;
+ }
+ }
+
+ //TODO 昨日的账号在今日的签退任务完成后,拿取今天的打卡人员数据放入昨日值班账号txt即可
+
+ } catch (IOException e) {
+ e.printStackTrace();
+ }
+
+ }
+
+ public static String read(String filename) {
+ String line;
+ StringBuilder content = new StringBuilder();
+ try {
+ BufferedReader reader = new BufferedReader(new FileReader(filename));
+ while ((line = reader.readLine()) != null) {
+ content.append(line).append("\n");
+ }
+ reader.close();
+ } catch (IOException e) {
+ System.out.println("An error occurred while reading the text file.");
+ e.printStackTrace();
+ }
+ return content.toString();
+ }
+
+ public int addExercisePlan(String type, String company, int code, String userName, String pass) {
+ AutoMain autoMain = new AutoMain();
+ WebDriver webDriver;
+ int count = 0;
+ try {
+ autoMain.initDrive(2);
+ autoMain.startAddExercisePlan(userName, pass);
+ //获取基础数据
+ webDriver = autoMain.getWebDriver();
+ GetBasicData gbd = new GetBasicData(webDriver);
+ gbd.addExercisePlan(type, company, code);
+ count = 1;
+ } catch (Exception e) {
+ count = 0;
+ log.error("获取基础操练数据任务", e);
+ } finally {
+ autoMain.closeDrive();
+ }
+ return count;
+ }
+}
diff --git a/src/main/resources/META-INF/MANIFEST.MF b/src/main/resources/META-INF/MANIFEST.MF
new file mode 100644
index 0000000..1d285bc
--- /dev/null
+++ b/src/main/resources/META-INF/MANIFEST.MF
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Main-Class: com.bonus.autoweb.TestMain
+
diff --git a/src/main/resources/lib/freetts.jar b/src/main/resources/lib/freetts.jar
new file mode 100644
index 0000000..9c17194
Binary files /dev/null and b/src/main/resources/lib/freetts.jar differ
diff --git a/src/main/resources/log4j.properties b/src/main/resources/log4j.properties
new file mode 100644
index 0000000..66ea144
--- /dev/null
+++ b/src/main/resources/log4j.properties
@@ -0,0 +1,24 @@
+### ###
+log4j.rootLogger = debug,stdout,D,E
+
+### Ϣ̧ ###
+log4j.appender.stdout = org.apache.log4j.ConsoleAppender
+log4j.appender.stdout.Target = System.out
+log4j.appender.stdout.layout = org.apache.log4j.PatternLayout
+log4j.appender.stdout.layout.ConversionPattern = [%-5p] %d{yyyy-MM-dd HH:mm:ss,SSS} method:%l%n%m%n
+
+### DEBUG ϵ־=E://logs/error.log ###
+log4j.appender.D = org.apache.log4j.DailyRollingFileAppender
+log4j.appender.D.File = logs/log.log
+log4j.appender.D.Append = true
+log4j.appender.D.Threshold = DEBUG
+log4j.appender.D.layout = org.apache.log4j.PatternLayout
+log4j.appender.D.layout.ConversionPattern = %-d{yyyy-MM-dd HH:mm:ss} [ %t:%r ] - [ %p ] %m%n
+
+### ERROR ϵ־=E://logs/error.log ###
+log4j.appender.E = org.apache.log4j.DailyRollingFileAppender
+log4j.appender.E.File =logs/error.log
+log4j.appender.E.Append = true
+log4j.appender.E.Threshold = ERROR
+log4j.appender.E.layout = org.apache.log4j.PatternLayout
+log4j.appender.E.layout.ConversionPattern = %-d{yyyy-MM-dd HH:mm:ss} [ %t:%r ] - [ %p ] %m%n
\ No newline at end of file
diff --git a/src/main/serverRes/META-INF/MANIFEST.MF b/src/main/serverRes/META-INF/MANIFEST.MF
new file mode 100644
index 0000000..1d285bc
--- /dev/null
+++ b/src/main/serverRes/META-INF/MANIFEST.MF
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Main-Class: com.bonus.autoweb.TestMain
+
diff --git a/src/main/uiRes/META-INF/MANIFEST.MF b/src/main/uiRes/META-INF/MANIFEST.MF
new file mode 100644
index 0000000..a43d13d
--- /dev/null
+++ b/src/main/uiRes/META-INF/MANIFEST.MF
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Main-Class: com.bonus.autoweb.UI.frame.Jframe
+