public static Response MinMethod(Map<String,vObject> paramMap, Map<String, Object> tempMap){
Response taxResponse = currentTaxStatus(paramMap, tempMap)
if (!T0000.equals(taxResponse.getCode())) {
return taxResponse;
}
if (YI_SHEN_BAO.equals(taxResponse.getMsg())) {
return ResultUtil.buildResult(RET_BUS_ERROR_CODE, taxResponse.getData().toString());
}
WebDriver driver = (webDriver) paramMap.get("wenDriver");
switchWindowHandle(paramMap, tempMap);
clearReportData(paramMap, tempMap);
List<Map> formList = formOrderList(paramMap)
for(Map formMap : formList){
Response initResponse = init(formMap, paramMap, tempMap);
if(!T0000.equals(initResponse.getCode())){
clearReportData(paramMap, tempMap);
return initResponse
}
}
clearReportData(paramMap, tempMap);
return ResultUtil.buildResult(DECLARE_B1, "初始化成功!", initReturn(tempMap));
}
public static Response init(Map formMap, Map<String, Object> paramMap, Map<String, Object> tempMap) {
WebDriver driver = (WebDriver) paramMap.get("WebDriver");
String formName = MapUtil.getStr(formMap,"name");
String code = MapUtil.getStr(formMap,"code");
WebElement tablrElement = driver.findElement(By.cssSelector("body > div.menu-div > div > ul"))
List<WebElement> rows = tableElement.findElements(By.tagName("li"));
Response response = null;
for (int i = 0; i < rows.size(); i++) {
String xpath = MessageFormat.format("/html/body/div[3]/div/ul/li[{0}]/a", i + 1);
String title = getTextByXpath(driver, xpath);
if (formName.equals(title)) {
click(getElementByXpath(driver, xpath));
waitWhile(1500);
return executeBusMethod(ZheJiangInit10101Service.class, "init", code,
paramMap, tempMap);
}
}
return ResultUtil.buildResult(RET_BUS_CHECK_CODE, RET_BUS_005_MSG);
}
//表
.........略