【泛微E9】巧用计划任务更新建模授权
\WEAVER\ecology\classbean\weaver\interfaces\schedule\oft\XmSetHrmCronJob.java
package weaver.interfaces.schedule.oft;
import weaver.conn.RecordSet;
import weaver.formmode.setup.ModeRightInfo;
import weaver.interfaces.schedule.BaseCronJob;
public class XmSetHrmCronJob extends BaseCronJob {
public void execute() {
RecordSet rs = new RecordSet();
rs.writeLog("cf====开始执行定时任务:");
ModeRightInfo ModeRight = new ModeRightInfo();
String sql = "select id from formtable_main_358";
rs.execute(sql);
while(rs.next()){
int id = rs.getInt("id");
ModeRight.rebuildModeDataShareByEdit(1, 1105, id);
}
sql = "select id from uf_nscgddxz";
rs.execute(sql);
while(rs.next()){
int id = rs.getInt("id");
ModeRight.rebuildModeDataShareByEdit(1, 1097, id);
}
sql = "select id from uf_mrg_fm723info";
rs.execute(sql);
while(rs.next()){
int id = rs.getInt("id");
ModeRight.rebuildModeDataShareByEdit(1, 1267, id);
}
rs.writeLog("cf====执行定时任务结束:");
}
}
THE END
2
二维码
打赏
海报
【泛微E9】巧用计划任务更新建模授权
\WEAVER\ecology\classbean\weaver\interfaces\schedule\oft\XmSetHrmCronJob.java
package weaver.interfaces.schedule.oft;
import weaver.conn.Record……