字段的校验
This commit is contained in:
parent
1aebc6533b
commit
18a9935367
@ -13,7 +13,7 @@
|
||||
dwTemp.Style = "2";//freeform
|
||||
dwTemp.genHTMLObjectWindow(CurPage.getParameter("ID"));
|
||||
String sButtons[][] = {
|
||||
/* {"true","All","Button","保存","保存所有修改","save()","","","",""}, */
|
||||
{"true","All","Button","保存","保存所有修改","save()","","","",""},
|
||||
{"true","All","Button","·µ»Ø","·µ»ØÁбí","returnList()","","","",""}
|
||||
};
|
||||
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
|
||||
|
||||
@ -19,7 +19,7 @@
|
||||
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格
|
||||
String sButtons[][] = {
|
||||
{"true","All","Button","详情","详情","detail()","","","","btn_icon_detail",""},
|
||||
{"true","All","Button","合作中","合作中","teaming()","","","","btn_icon_detail",""},
|
||||
{"true","All","Button","¼¤»î","¼¤»î","teaming()","","","","btn_icon_detail",""},
|
||||
{"true","","Button","合作暂停","合作暂停","teamingSuspend()","","","","btn_icon_detail",""},
|
||||
{"true","","Button","合作终止","合作终止","teamingStop()","","","","btn_icon_detail",""}
|
||||
};
|
||||
|
||||
@ -80,7 +80,7 @@
|
||||
}
|
||||
|
||||
//加载二级分类选项
|
||||
function initOneClass(){
|
||||
<%-- function initOneClass(){
|
||||
var doc="<%=doc%>";
|
||||
var docType=$("#DOC_TYPE").val();
|
||||
var condition="";
|
||||
@ -91,7 +91,7 @@
|
||||
}
|
||||
var sql="select itemno,itemname from code_library where "+condition;
|
||||
initSelectOption(sql,"itemname","itemno","ONE_CLASSIFY");
|
||||
}
|
||||
} --%>
|
||||
|
||||
function initTwoClass(){
|
||||
var oneClass=$("#ONE_CLASSIFY").val();
|
||||
|
||||
@ -44,7 +44,20 @@
|
||||
sButtonPosition = "north";
|
||||
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
|
||||
<script type="text/javascript">
|
||||
|
||||
function Checkfield(){
|
||||
var businessLicenseNo = getItemValue(0,getRow(0),"BUSINESS_LICENSE_NO");
|
||||
// if(businessLicenseNo==""){
|
||||
// alert("组织机构代码不能为空!");
|
||||
// return;
|
||||
// }
|
||||
if(checkORGRight1(businessLicenseNo)){
|
||||
return true;
|
||||
}else{
|
||||
setErrorTips("BUSINESS_LICENSE_NO","组织机构代码格式不正确!");
|
||||
alert("组织机构代码格式不正确!");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
<%-- $(function(){
|
||||
if("<%=PhaseNo%>"=="0020"){
|
||||
setItemRequired(0, "RETAIL_OPEN_DATE", true);
|
||||
@ -53,7 +66,10 @@
|
||||
}) --%>
|
||||
|
||||
function save(){
|
||||
as_save(0,"saveproj_name()");
|
||||
var result = Checkfield();
|
||||
if(result==true){
|
||||
as_save(0,"saveproj_name()");
|
||||
}
|
||||
}
|
||||
function saveproj_name(){
|
||||
var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.businesspply.CustomerInfoManage","saveDistributorInfo","flowunid=<%=sFlowUnid%>");
|
||||
|
||||
@ -83,6 +83,18 @@ function saveproj_name(){
|
||||
var end_date= year+"/"+ month +"/"+ day;
|
||||
setItemValue(0,0,"LIMIT_END_DATE",end_date);
|
||||
}
|
||||
|
||||
//请选择经销商名称
|
||||
function selectcompany(){
|
||||
AsDialog.OpenSelector("SelectCompany","","dialogWidth=" + parseInt(window.screen.width * 0.4) + "px dialogHeight=" + parseInt(window.screen.height * 0.6) + "px",function(sReturn){
|
||||
if(!sReturn||sReturn=="_CANCEL_"){
|
||||
alert(getHtmlMessage('1'));//请选择一条信息!
|
||||
return;
|
||||
}
|
||||
sReturn = sReturn.split("@");//"@"表示了向页面添加数据时的连续性
|
||||
setItemValue(0,getRow(),"SUBSIDIARY_COMPANY",sReturn[0]);//向页面的框中添加数据
|
||||
},"请选择经销商");
|
||||
}
|
||||
//Ê¡ÊÐ
|
||||
/* function selectRegionCode(){
|
||||
var area_code = getItemValue(0,getRow(),"DISTRIBUTOR_ADDRESS");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user