|
@@ -426,7 +426,7 @@ public class HyWorkOrder extends Controller {
|
|
|
+ where.getString("frownum") + "'");
|
|
+ where.getString("frownum") + "'");
|
|
|
|
|
|
|
|
/** ½Úµã¹ØÁªÅàѵÎïÁϲéѯ **/
|
|
/** ½Úµã¹ØÁªÅàѵÎïÁϲéѯ **/
|
|
|
- Rows rows_traintitem = dbConnect.runSqlQuery("select t.fitemno,t2.fitemname,t2.fmodel,t2.fspec,t.fqty from HYORDERNODE_TITEM t left join titem t2 on t.fitemno=t2.fitemno and t.siteid=t2.siteid\n"
|
|
|
|
|
|
|
+ Rows rows_traintitem = dbConnect.runSqlQuery("select t.fitemno,t.fitemname,t.fmodel,t.fspec,t.fqty from HYORDERNODE_TITEM t left join titem t2 on t.fitemno=t2.fitemno and t.siteid=t2.siteid\n"
|
|
|
+ "where EXISTS(select 1 from hyordernode t1 where t1.hyordernodeid=t.fparentid and t1.hyordernodeid="
|
|
+ "where EXISTS(select 1 from hyordernode t1 where t1.hyordernodeid=t.fparentid and t1.hyordernodeid="
|
|
|
+ rowdetail.getInteger("ownerid") + ") and t.siteid='" + siteid + "'");
|
|
+ rowdetail.getInteger("ownerid") + ") and t.siteid='" + siteid + "'");
|
|
|
|
|
|
|
@@ -562,6 +562,15 @@ public class HyWorkOrder extends Controller {
|
|
|
if(resultObject.containsKey("fitemno") && resultObject.getString("fitemno")!=null && resultObject.getString("fitemno").length()!=0) {
|
|
if(resultObject.containsKey("fitemno") && resultObject.getString("fitemno")!=null && resultObject.getString("fitemno").length()!=0) {
|
|
|
remote.setValue("fitemno", resultObject.getString("fitemno"), 2l);
|
|
remote.setValue("fitemno", resultObject.getString("fitemno"), 2l);
|
|
|
}
|
|
}
|
|
|
|
|
+ if(resultObject.containsKey("fitemname") && resultObject.getString("fitemname")!=null && resultObject.getString("fitemno").length()!=0) {
|
|
|
|
|
+ remote.setValue("fitemname", resultObject.getString("fitemname"), 2l);
|
|
|
|
|
+ }
|
|
|
|
|
+ if(resultObject.containsKey("fmodel") && resultObject.getString("fmodel")!=null && resultObject.getString("fitemno").length()!=0) {
|
|
|
|
|
+ remote.setValue("fmodel", resultObject.getString("fmodel"), 2l);
|
|
|
|
|
+ }
|
|
|
|
|
+ if(resultObject.containsKey("fspec") && resultObject.getString("fspec")!=null && resultObject.getString("fitemno").length()!=0) {
|
|
|
|
|
+ remote.setValue("fspec", resultObject.getString("fspec"), 2l);
|
|
|
|
|
+ }
|
|
|
if(resultObject.containsKey("fqty") && resultObject.getString("fqty")!=null && resultObject.getString("fqty").length()!=0) {
|
|
if(resultObject.containsKey("fqty") && resultObject.getString("fqty")!=null && resultObject.getString("fqty").length()!=0) {
|
|
|
remote.setValue("fqty", resultObject.getString("fqty"), 2l);
|
|
remote.setValue("fqty", resultObject.getString("fqty"), 2l);
|
|
|
}
|
|
}
|