修改客户测试问题

This commit is contained in:
tangfutang 2021-11-24 09:22:23 +08:00
parent 8174080fc2
commit f9e66cf4d4
6 changed files with 15 additions and 9 deletions

View File

@ -10,7 +10,7 @@
dwTemp.Style="1"; //设置为Grid风格
dwTemp.ReadOnly = "1";//编辑模式
dwTemp.setPageSize(10);
dwTemp.setPageSize(100);
dwTemp.ConvertCode2Title = "1";
dwTemp.genHTMLObjectWindow(GROUP_CODE);

View File

@ -66,10 +66,15 @@
AsControl.OpenView(sUrl,'SerialNo=' +sPara ,'_self','');
}
function asDelete(){
var unionId=getItemValueArray(0,"ID");
if(typeof(unionId)=="undefined" || unionId.length==0 ){
alert("请选择先选择数据,再操作!");
return;
}
if(!confirm("是否确认删除?"))return;
var unionId = getItemValue(0,getRow(0),"ID");
//alert(unionId);
var sReturnInfo = RunJavaMethodTrans("com.tenwa.apzl.saveunioncar.saveUnionCarUtil","deleteLmDistributorToProduct","unionId="+unionId);
// var unionId = getItemValue(0,getRow(0),"ID");
var unionIds = unionId.join('@');
var sReturnInfo = RunJavaMethodTrans("com.tenwa.apzl.saveunioncar.saveUnionCarUtil","deleteLmDistributorToProduct","unionId="+unionIds);
if(sReturnInfo=="success"){
alert("删除成功!");
}

View File

@ -16,7 +16,7 @@
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="1"; //--设置为Grid风格--
dwTemp.ReadOnly = "0"; //只读模式
dwTemp.setPageSize(10);
dwTemp.setPageSize((pageSize==null||"undefined".equals(pageSize))?20:Integer.parseInt(pageSize));
String sButtons[][] =null;
if((null!=RightType&&RightType.equals("ReadOnly"))||(null!=ishistory&&ishistory.equals("true"))){

View File

@ -14,7 +14,7 @@
//dwTemp.MultiSelect = true; //多选
dwTemp.ReadOnly = "1"; //只读模式
dwTemp.ShowSummary = "1"; //显示小计
dwTemp.setPageSize(10);
dwTemp.setPageSize((pageSize==null||"undefined".equals(pageSize))?20:Integer.parseInt(pageSize));
dwTemp.genHTMLObjectWindow(HIRE_DATE+","+OWN_NUMBER+","+CHANNEL);
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标CSS层叠样式 10、风格

View File

@ -105,7 +105,7 @@
return;
}
var number=getItemValue(0, getRow(0), "acc_number");
var reg = /^(\d{14}|\d{16}|\d{19})$/;
var reg = /^(\d{14}|\d{16}|\d{18}|\d{19})$/;
if(!reg.test(number)){
setErrorTips("acc_number","银行账号格式错误!");
return ;

View File

@ -16,6 +16,7 @@ import com.amarsoft.are.jbo.BizObject;
import com.amarsoft.are.jbo.BizObjectManager;
import com.amarsoft.are.jbo.JBOFactory;
import com.amarsoft.are.jbo.JBOTransaction;
import com.amarsoft.awe.util.Transaction;
public class saveUnionCarUtil {
private String CarBrandId;
@ -226,8 +227,8 @@ public String getCarBrandId() {
return "success";
}
public String deleteLmDistributorToProduct(JBOTransaction tx)throws Exception {
BizObjectManager Lmpc = JBOFactory.getBizObjectManager(LM_DISTRIBUTOR_TO_PRODUCT.CLASS_NAME,tx);
Lmpc.createQuery("delete from o where id = :id").setParameter("id",unionId).executeUpdate();
Transaction sqlca = Transaction.createTransaction(tx);
sqlca.executeSQL("delete from LM_DISTRIBUTOR_TO_PRODUCT where id in ('"+unionId.replaceAll("@", "','")+"')");
return "success";
}
public String deleteLmDistributorToDistrict(JBOTransaction tx)throws Exception {