request 对象
- script
脚本对象
script.returnValue =-1;
script.message ="不能保存" + param.store("EDITDS").fv(0,"ecode" ) ;
根据脚本使用的位置,脚本中能够使用的变量不同。
- request
- db()
- info()
- session()
- Long roomid()
- Long houseid()
- parser()
- Object metaparam(String asDomainPath,String asParamCode)
- void sendSMS(String asphone,String asTopic,String asType,List<Object> asParam)
- void sendMail(String asTo,String asSubject, String asContent,List<Object> asKeys)
- String sendWxMsg(String asAppId,Long aUserId, ObjTemplateMsg aMsg)
public Object metaparam(String asDomainPath,String asParamCode) throws ASException {
- parser()
public Date hostTime()
public Long emid(String employeecode) ;
public List<Long> usersOfWorkgroups(Long...asWorkGroup)
人员id转化为userid
public Long emtouserid(Long employeeid)
当前用户是否在工作组中
public boolean inworkgroup(String asWorkGroupCode) throws ASException {
人员是否在工作组中
public boolean inworkgroupem(Long employeeid, String aWorkGroupCode) throws ASException
public boolean inworkgroupuser(Long aUserID, String aWorkGroupCode)
public Long userhouseid()
public Date hostDate() throws ASException {
public String userproperty(String asProppertyCode) 用户属性
- request.db()
- request.db().getValue(String sqlSQL,null) //查询sql
- request.db().exeUpdate(String sqlSQL,null) //执行更新语句
- request.db().getNow() 当前系统时间
- request.db().callProcedure(String asProcedureName,List<Object> lParams) 调用存储过程
- getNow() :Date
- getDBNow() :Timestamp
- Object : getValue(String asSQL, List<Object> aparam)
- ResultSet : createQuery(String asSQL,List<Object> aparam)
- request.info()
- String sessionid
- String housecode
- String roomcode
- String path
- String operation
- String systemcode;
- String sessionhousecode;
- request.session() 登录用户信息
- String usersessionid;
- String clienttype;
- String clientid;
- Long userid;
- String usercode;
- Long ahouseid;
- String username;
- Date begintime;
- Date endtime;
- Date logofftime;
- String isadminuser;
- String apionly;
- Long roomid; //gateroom的id
- Object metaparam(String asDomainPath,String asParamCode)
获得主题域的参数值,包括模型中定义的参数
- Object execute(String asDomainPath,String asOperation,Long aRecId)
记录操作包括所有的数据操作和资源操作
- public void sendWxMsgWorkgroup(String asAppId,Long aWorkgroupID,ObjTemplateMsg aMsg)
- public String sendWxMsgUser(String asAppId,Long aUserId,ObjTemplateMsg aMsg)
- public String sendWxMsg(String asAppId,ObjTemplateMsg aMsg)
发送微信模板消息,只能发送非拓跋公众号消息
class ObjTemplateMsg {
String template_id; //模板编号,例如:"ngqIpbwh8bUfcSsECmogfXcV14J0tQlEpBO27izEYtY",
String url; //点击详情跳转的网页http://weixin.qq.com/download,
ObjMp miniprogram = new ObjMp(); //点击详情跳转的小程序的设置
String client_msg_id;//可选防止重复的编号":"MSG_000001",//防重入id。对于同一个openid + client_msg_id,
addProp(String asKey,String asValue,String color) { }
addProp(String asKey,String asValue) {}
}
public static class ObjMp {
public String appid;//:"xiaochengxuappid12345",
public String pagepath;//:"index?foo=bar"
}
public ObjDatastore getStoreById(String asPath,String asAlias,Long aRecId) throws ASException
public ObjDatastore getStoreByIdList(String asPath,String asAlias,List<Object> aIds) throws ASException
根据id查询数据集
public void updateStore(String asPath,ObjDatastore aStore) throws ASException
更新数据集
- ObjDatastore
Object fv(int recno,String fieldname)
Object fv(ObjRow,String )
获取值
void fvSet(int ,String,Object)
void fvSet(ObjRow,String,Object)
/更新值
Created with the Personal Edition of HelpNDoc: Free Kindle producer