请上传宽度大于 1200px,高度大于 164px 的封面图片
    调整图片尺寸与位置
    滚轮可以放大缩小图片尺寸,按住图片拖动可调整位置,多余的会自动被裁剪掉
取消
liu871113(uid:57523)
职业资格认证:尚未取得认证
  • 单元格计算在条件属性设定新值之前,我想在让计算在新值之后执行, 例如:K2公式为 sum(K5),而 K5的条件属性设置为满足一定条件时K5为0,而K2的值为K5原值进行加的,求解答,求方案
  • 如题,参数.getValue返回值是Object,怎么转换成int 我想实现“参数.getValue与int类型相加结果是int,求指教
  • 如题,Tomcat可以正常启动,但是把WebReport文件拷到webapps下重新部署后无法访问 jdk版本32829 tomcat32830 32831 求指点啊
  • 各位: FR填报预览时候支持自定义按钮做提交操作吗,怎么写啊
  • 各位: 分页预览的时候怎么可以添加按钮控件吗?怎么实现?
  • 各位大神: 如题,如何在隐藏检验按钮的情况下使用自定义提交按钮调用数据校验方法。 给条JS语句
  • 如题, 想要实现单元格联动内置数据集 33574 当第一个单元格选择北京仓库后后一个单元格选项为北京1到北京3,希望下拉菜单显示的是shelfName,而单元格实际值为shelfID。试过使用形态设置,但是无法改变下拉菜单的显示值,希望有空的大神指点。 33575
  • 33564 各位大神,看图,多谢
  • 本帖最后由 liu871113 于 2016-2-1 09:33 编辑 package com.fr.data; import com.fr.data.DefinedSubmitJob; import com.fr.data.JobValue; import com.fr.script.Calculator; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.Statement; public class DemoSubmitJob1 extends DefinedSubmitJob { /** * 当模板自定义事件增加的属性 名称与下面变量有对应时,则会自动赋值于此对应变量 */ static final String JDBC_DRIVER = "com.microsoft.sqlserver.jdbc.SQLServerDriver"; static final String DB_URL = "jdbc:sqlserver://localhost:1433;databaseName=EasyERP"; // Database credentials static final String USER = "sa"; static final String PASS = "Hammsen1"; private JobValue ItemID; // 物料ID private JobValue shelfID;//货架ID private JobValue InStore;//单元格中入库数量 private int quantityInStore;// 非单元格,则对应具体类型值 private int quantityOnBoard; private int BatchID; /** * 每一条记录执行一次此方法 * 同一提交事件在一个处理事务内,此对象是唯一的 */ public void doJob(Calculator calculator) throws Exception { Connection conn = null; Statement stmt = null; //STEP 2: Register JDBC driver Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver"); //STEP 3: Open a connection // System.out.println("Connecting to database..."); conn = DriverManager.getConnection(DB_URL,USER,PASS); //STEP 4: Execute a query //System.out.println("Creating statement..."); stmt = conn.createStatement(); String sql; sql = "select quantityInStore from MM_Storage where ItemID ='" + ItemID.getValue() + "' AND shelfID ='" + shelfID.getValue() + "' "; ResultSet rs = stmt.executeQuery(sql); if(rs.next()){ int Num = rs.getInt(1); if(Num==0){ stmt.executeUpdate("insert into MM_Storage(ItemID,shelfID,quantityInStore) values("+ItemID.getValue()+","+shelfID.getValue()+","+InStore.getValue()+")"); }else{ quantityInStore = Num+InStore.getValue(); stmt.executeUpdate("update MM_Storage set quantityInStore ="+quantityInStore+" "+ "where ItemID ="+ItemID.getValue()+"AND"+"shelfID = "+shelfID.getValue()); } } rs.close(); stmt.close(); conn.close(); } }
  • 本帖最后由 liu871113 于 2016-1-31 18:51 编辑 我又来了,各位大神,帮我看看代码, package com.fr.data; import com.fr.data.DefinedSubmitJob; import com.fr.data.JobValue; import com.fr.script.Calculator; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.Statement; public class DemoSubmitJob1 extends DefinedSubmitJob { /** * 当模板自定义事件增加的属性 名称与下面变量有对应时,则会自动赋值于此对应变量 */ static final String JDBC_DRIVER = "com.microsoft.sqlserver.jdbc.SQLServerDriver"; static final String DB_URL = "jdbc:sqlserver://localhost:1433;databaseName=EasyERP"; // Database credentials static final String USER = "sa"; static final String PASS = "Hammsen1"; private JobValue ItemID; // 物料ID private JobValue shelfID;//货架ID private JobValue InStore;//单元格中入库数量 public int quantityInStore;// 非单元格,则对应具体类型值 /** * 每一条记录执行一次此方法 * 同一提交事件在一个处理事务内,此对象是唯一的 */ public void doJob(Calculator calculator) throws Exception { Connection conn = null; Statement stmt = null; //STEP 2: Register JDBC driver Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver"); //STEP 3: Open a connection // System.out.println("Connecting to database..."); conn = DriverManager.getConnection(DB_URL,USER,PASS); //STEP 4: Execute a query //System.out.println("Creating statement..."); stmt = conn.createStatement(); String sql; sql = "select quantityInStore from MM_Storage where ItemID ='" + ItemID.getValue() + "' AND shelfID ='" + shelfID.getValue() + "' "; ResultSet rs = stmt.executeQuery(sql); rs.next(); int Num = rs.getInt(1); if(Num==0){ stmt.executeUpdate("insert into MM_Storage(ItemID,shelfID,quantityInStore) values("+ItemID.getValue()+","+shelfID.getValue()+","+InStore.getValue()+")"); }else{ quantityInStore = Num+InStore.getValue(); stmt.executeUpdate("update MM_Storage set quantityInStore ="+quantityInStore+" "+ "where ItemID ="+ItemID.getValue()+"AND"+"shelfID = "+shelfID.getValue()); } rs.close(); stmt.close(); conn.close(); } } 下面是日志: 2016-01-31 17:49:24 正常:Rollback Successfully 2016-01-31 17:49:24 警告:数据提交出错 null at com.fr.report.write.ReportWriteAttr.submit(Unknown Source) at com.fr.report.core.ReportUtils.submit(Unknown Source) at com.fr.report.core.ReportUtils.submit(Unknown Source) at com.fr.web.core.A.AB.actionCMD(Unknown Source) at com.fr.web.core.WebActionsDispatcher.dealForActionCMD(Unknown Source) at com.fr.web.core.WebActionsDispatcher.dealForActionDefaultCmd(Unknown Source) at com.fr.web.core.WebActionsDispatcher.dealForActionCMD(Unknown Source) at com.fr.web.core.A.cC.process(Unknown Source) at com.fr.web.core.ReportDispatcher.dealWithOp(Unknown Source) at com.fr.web.core.ReportDispatcher.dealWeblet(Unknown Source) at com.fr.web.core.ReportDispatcher.dealWithRequest(Unknown Source) at com.fr.web.BaseServlet.doGet(Unknown Source) at com.fr.web.BaseServlet.doPost(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:616) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:473) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568) at org.mortbay.http.HttpContext.handle(HttpContext.java:1530) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633) at org.mortbay.http.HttpContext.handle(HttpContext.java:1482) at org.mortbay.http.HttpServer.service(HttpServer.java:909) at org.mortbay.http.HttpConnection.service(HttpConnection.java:820) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:986) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:837) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:245) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534) 以上是日志信息,求帮助啊啊

24

17

24

10

123下一页
个人成就
内容被浏览0
加入社区9年313天
返回顶部