1.复制产品增加校验
This commit is contained in:
parent
29919d2b7a
commit
f3226b788a
@ -28,10 +28,20 @@
|
||||
include file="/Frame/resources/include/ui/include_info.jspf"%>
|
||||
<script type="text/javascript">
|
||||
var oldTypeNo;
|
||||
|
||||
function saveRecord(){
|
||||
var catalogName = getItemValue(0, getRow(), "CatalogName");
|
||||
var productName = getItemValue(0, getRow(), "ProductName");
|
||||
var id = getItemValue(0, getRow(), "ID");
|
||||
if(id==''){
|
||||
alert("产品编号不能为空");
|
||||
return;
|
||||
}
|
||||
re = new RegExp("^[a-zA-Z0-9\-]+$");
|
||||
if(!re.test(id)){
|
||||
alert('只能输入英文数字以及-');
|
||||
return ;
|
||||
}
|
||||
if(catalogName != null && catalogName != ""){
|
||||
var res = RunJavaMethodTrans("com.amarsoft.app.als.prd.manager.ProductManager","copyProductCatalog","catalogName="+catalogName+",productName="+productName+",productID=<%=productId%>,id="+id + ",userId=<%=CurUser.getUserID()%>,orgId=<%=CurUser.getOrgID()%>");
|
||||
if(res == "SUCCESS"){
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user