lxw
2020-07-11 9db52f2f2dd3665fe9da1ae5657e0167c3a34d40
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
package com.fgkj.actions;
 
import com.fgkj.dto.ServiceModel;
import com.fgkj.dto.User_task_batt_check;
import com.fgkj.services.User_task_batt_checkService;
import com.opensymphony.xwork2.ActionSupport;
 
public class User_task_batt_checkAction extends ActionSupport{
    private User_task_batt_checkService service=new User_task_batt_checkService();
    private User_task_batt_check utbc;
    private String result;
    
     public String add() {
        utbc=ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").fromJson(result,User_task_batt_check.class);
        ServiceModel model=service.add(utbc);
        result=ActionUtil.tojson(model);
        return SUCCESS;
        
    }
    //4.1提交,复查作业
    public String update() {
        utbc=ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").fromJson(result,User_task_batt_check.class);
        //System.out.println(utbc);
        ServiceModel model=service.update(utbc);
        result=ActionUtil.tojson(model);
        return SUCCESS;    
    }
    
    public String delete() {
        utbc=ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").fromJson(result,User_task_batt_check.class);
        ServiceModel model=service.delete(utbc);
        result=ActionUtil.tojson(model);
        return SUCCESS;
    }
     public String serchByCondition(){
        utbc=ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").fromJson(result,User_task_batt_check.class);
         ServiceModel model=service.serchByCondition(utbc);
         result=ActionUtil.tojson(model);
         return SUCCESS;
    } 
    public String searchAll(){
         ServiceModel model=service.searchAll();
         result=ActionUtil.tojson(model);
         return SUCCESS;
    }
    public String getResult() {
        return result;
    }
    public void setResult(String result) {
        this.result = result;
    }
    public void setUtbc(User_task_batt_check utbc) {
        this.utbc = utbc;
    }
    
    
}