CustomBtnShowTemplate.txt
1.23 KB
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
package weaver.formmode.interfaces.impl;
import weaver.conn.RecordSet;
import weaver.formmode.interfaces.PopedomCommonAction;
public class CustomBtnShowTemplate implements PopedomCommonAction {
/**
* 说明
* 修改时
* 类名要与文件名保持一致
* class文件存放位置与路径保持一致。
* 请把编译后的class文件,放在对应的目录中才能生效
* 注意 同一路径下java代码名不能相同。
*
* 得到是否显示操作项
* @param modeid 模块id
* @param customid 查询列表id
* @param uid 当前用户id
* @param billid 表单数据id
* @param buttonname 按钮名称
* @retrun "true"或者"false"true显示/false不显示
*/
@Override
public String getIsDisplayOperation(String modeid, String customid,String uid, String billid, String buttonname) {
RecordSet rs = new RecordSet();
String sql = "select * from xx where id=?";
rs.executeQuery(sql,billid);
if (rs.next()) {
String status = rs.getString("xx");
if("1".equals(status)){
return "true";
}else{
return "false";
}
}
return "true";
}
}