1.修改北财只传一条数据BUG。
This commit is contained in:
parent
d445380af0
commit
33808e42b6
@ -43,9 +43,10 @@
|
||||
}
|
||||
var Ids = "";
|
||||
for(var i in rows){
|
||||
Ids += ","+getItemValue(0,rows[i],"ID");
|
||||
Ids += "@"+getItemValue(0,rows[i],"ID");
|
||||
}
|
||||
Ids = Ids.substring(1);
|
||||
debugger;
|
||||
var result = RunJavaMethodTrans("paymentInfoUpdate.UpdatePaymentInfo","requestAndAction","Ids="+Ids);
|
||||
if("SUCCESS" == result){
|
||||
AsDebug.showMessage("提示","操作成功!","","",true);
|
||||
|
||||
@ -10,15 +10,13 @@
|
||||
|
||||
String sTempletNo = "BC_PAY_INFO_LOG_INFO";//--模板号--
|
||||
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
|
||||
//doTemp.setColTips("", "²âÊÔ");
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
|
||||
dwTemp.Style = "2";//freeform
|
||||
//dwTemp.ReadOnly = "-2";//Ö»¶Áģʽ
|
||||
dwTemp.genHTMLObjectWindow(CurPage.getParameter("SerialNo"));
|
||||
|
||||
String sButtons[][] = {
|
||||
{"true","All","Button","保存","保存所有修改","as_save(0,'returnList()')","","","",""},
|
||||
// {"true","All","Button","·µ»Ø","·µ»ØÁбí","returnList()","","","",""}
|
||||
{"true","All","Button","·µ»Ø","·µ»ØÁбí","returnList()","","","",""}
|
||||
// {String.valueOf(!com.amarsoft.are.lang.StringX.isSpace(sPrevUrl)),"All","Button","返回","返回列表","returnList()","","","",""}
|
||||
};
|
||||
sButtonPosition = "south";
|
||||
|
||||
@ -118,10 +118,18 @@ public class UpdatePaymentInfo {
|
||||
}
|
||||
public String requestAndAction (JBOTransaction tx) throws Exception{
|
||||
Conn conn = new Conn(tx);
|
||||
String sql = "select project_no,customername,certid,fact_money from BC_PAY_INFO_LOG where ID in(?)";
|
||||
String sql = "select project_no,customername,certid,fact_money from BC_PAY_INFO_LOG where ID =?";
|
||||
List<Map<String, String>> requests = null;
|
||||
String [] IdsArray = Ids.split("@");
|
||||
try {
|
||||
requests = conn.executeQuery(sql, Ids);
|
||||
for(int i=0;i<IdsArray.length;i++){
|
||||
List<Map<String, String>> request = conn.executeQuery(sql, IdsArray[i]);
|
||||
if(requests==null){
|
||||
requests=request;
|
||||
}else{
|
||||
requests.addAll(request);
|
||||
}
|
||||
}
|
||||
} catch (SQLException e) {
|
||||
// TODO Auto-generated catch block
|
||||
e.printStackTrace();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user