2 changed files with 28 additions and 0 deletions
@ -0,0 +1,17 @@ |
|||||||
|
package apelet.association.comtroller.plugin.formPlugin; |
||||||
|
|
||||||
|
import apelet.association.utils.CreatNumberUtils; |
||||||
|
import apelet.common.core.object.ObjectValue; |
||||||
|
import apelet.common.online.abstractplugin.ExecutePluginParent; |
||||||
|
import apelet.common.online.model.constant.AttributeEnum; |
||||||
|
public class ClueManageFormPlugin extends ExecutePluginParent { |
||||||
|
@Override |
||||||
|
public void formCreated(String widgetVariableName, ObjectValue objectValue) { |
||||||
|
super.formCreated(widgetVariableName, objectValue); |
||||||
|
// this.setAttribute("seekInfo","11");
|
||||||
|
// this.setWidgetAttribute("number", AttributeEnum.VALUE_CHANGE, "123");
|
||||||
|
CreatNumberUtils creatNumberUtils = new CreatNumberUtils(); |
||||||
|
this.setWidgetAttribute("number", AttributeEnum.VALUE_CHANGE,creatNumberUtils.creatNumber()); |
||||||
|
} |
||||||
|
|
||||||
|
} |
||||||
@ -0,0 +1,11 @@ |
|||||||
|
package apelet.association.utils; |
||||||
|
|
||||||
|
import java.time.LocalDate; |
||||||
|
import java.time.format.DateTimeFormatter; |
||||||
|
|
||||||
|
public class CreatNumberUtils { |
||||||
|
public String creatNumber() { |
||||||
|
return LocalDate.now().format(DateTimeFormatter.ofPattern("yyyyMMdd")); |
||||||
|
} |
||||||
|
|
||||||
|
} |
||||||
Loading…
Reference in new issue