为文件清单增加onchange事件校验
This commit is contained in:
parent
6d94e101f3
commit
1b2b092f88
@ -8,6 +8,7 @@ include
|
||||
String sTempletNo = "file_listconfigurationS";//--Ä£°åºÅ--
|
||||
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
|
||||
doTemp.setHtmlEvent("ITEMNO", "onchange", "fileInfoMethods");
|
||||
dwTemp.Style = "2";//freeform
|
||||
dwTemp.ReadOnly = "0";//Ö»¶Áģʽ
|
||||
dwTemp.genHTMLObjectWindow(CurPage.getParameter("ID"));
|
||||
@ -31,5 +32,9 @@ include
|
||||
as_save("myiframe0", "goBack()");
|
||||
}
|
||||
}
|
||||
function fileInfoMethods(){
|
||||
var ITEMNO = getItemValue(0,0,'ITEMNO');
|
||||
setItemValue(0,0,"SORTNO",ITEMNO);
|
||||
}
|
||||
</script>
|
||||
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||
|
||||
@ -22,7 +22,7 @@ public class CustomerGroupCompanyController {
|
||||
private String DISTRIBUTOR_CODING = "";
|
||||
private String flowunid;
|
||||
private String ITEMNO = "";
|
||||
|
||||
private String SORTNO = "";
|
||||
|
||||
public String getITEMNO() {
|
||||
return ITEMNO;
|
||||
@ -33,6 +33,14 @@ public class CustomerGroupCompanyController {
|
||||
}
|
||||
|
||||
|
||||
public String getSORTNO() {
|
||||
return SORTNO;
|
||||
}
|
||||
|
||||
public void setSORTNO(String sORTNO) {
|
||||
SORTNO = sORTNO;
|
||||
}
|
||||
|
||||
public String getFlowunid() {
|
||||
return flowunid;
|
||||
}
|
||||
@ -74,7 +82,7 @@ public class CustomerGroupCompanyController {
|
||||
}
|
||||
|
||||
/**
|
||||
* 废弃
|
||||
* <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
* @param tx
|
||||
* @return
|
||||
* @throws Exception
|
||||
@ -82,7 +90,7 @@ public class CustomerGroupCompanyController {
|
||||
public String del(JBOTransaction tx)throws Exception{
|
||||
BizObjectManager bom = JBOFactory.getBizObjectManager(CUSTOMER_GROUP_COMPANY.CLASS_NAME);
|
||||
tx.join(bom);
|
||||
//将此集团信息设置为废弃状态
|
||||
//<EFBFBD><EFBFBD><EFBFBD>˼<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϊ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>״̬
|
||||
BizObjectQuery boq = bom.createQuery("update O set status = 'status03' where id=:id ");
|
||||
boq.setParameter("id",id);
|
||||
int i = boq.executeUpdate();
|
||||
@ -95,7 +103,7 @@ public class CustomerGroupCompanyController {
|
||||
public String dis_del(JBOTransaction tx)throws Exception{
|
||||
BizObjectManager bom = JBOFactory.getBizObjectManager(DISTRIBUTOR_GROUP_COMPANY.CLASS_NAME);
|
||||
tx.join(bom);
|
||||
//将此集团信息设置为废弃状态
|
||||
//<EFBFBD><EFBFBD><EFBFBD>˼<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϊ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>״̬
|
||||
BizObjectQuery boq = bom.createQuery("update O set status = 'status03' where id=:id ");
|
||||
boq.setParameter("id",id);
|
||||
int i = boq.executeUpdate();
|
||||
@ -107,7 +115,7 @@ public class CustomerGroupCompanyController {
|
||||
public String deleterelation(JBOTransaction tx)throws Exception{
|
||||
BizObjectManager bom = JBOFactory.getBizObjectManager(DISTRIBUTOR_GROUP_RELATION.CLASS_NAME);
|
||||
tx.join(bom);
|
||||
//将此集团信息设置为废弃状态
|
||||
//<EFBFBD><EFBFBD><EFBFBD>˼<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϊ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>״̬
|
||||
BizObjectQuery boq = bom.createQuery("delete from O where id=:id ");
|
||||
boq.setParameter("id",id);
|
||||
int i = boq.executeUpdate();
|
||||
@ -118,7 +126,7 @@ public class CustomerGroupCompanyController {
|
||||
}
|
||||
|
||||
/**
|
||||
* 集团名称不可重复
|
||||
* <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʋ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ظ<EFBFBD>
|
||||
* @param tx
|
||||
* @return
|
||||
* @throws Exception
|
||||
@ -126,7 +134,7 @@ public class CustomerGroupCompanyController {
|
||||
public String group_name(JBOTransaction tx)throws Exception{
|
||||
BizObjectManager bom = JBOFactory.getBizObjectManager(CUSTOMER_GROUP_COMPANY.CLASS_NAME);
|
||||
tx.join(bom);
|
||||
//查询该集团名称是否已存在
|
||||
//<EFBFBD><EFBFBD>ѯ<EFBFBD>ü<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƿ<EFBFBD><EFBFBD>Ѵ<EFBFBD><EFBFBD><EFBFBD>
|
||||
BizObject CUSTOMER_GROUP_COMPANY = bom.createQuery("group_name=:group_name").setParameter("group_name",group_name).getSingleResult(false);
|
||||
if(CUSTOMER_GROUP_COMPANY != null){
|
||||
return CUSTOMER_GROUP_COMPANY.getAttribute("status").toString();
|
||||
@ -138,7 +146,7 @@ public class CustomerGroupCompanyController {
|
||||
public String distributor_group_name(JBOTransaction tx)throws Exception{
|
||||
BizObjectManager bom = JBOFactory.getBizObjectManager(DISTRIBUTOR_GROUP_COMPANY.CLASS_NAME);
|
||||
tx.join(bom);
|
||||
//查询该集团名称是否已存在
|
||||
//<EFBFBD><EFBFBD>ѯ<EFBFBD>ü<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƿ<EFBFBD><EFBFBD>Ѵ<EFBFBD><EFBFBD><EFBFBD>
|
||||
BizObject CUSTOMER_GROUP_COMPANY = bom.createQuery("group_name=:group_name").setParameter("group_name",group_name).getSingleResult(false);
|
||||
if(CUSTOMER_GROUP_COMPANY != null){
|
||||
return CUSTOMER_GROUP_COMPANY.getAttribute("status").toString();
|
||||
@ -150,7 +158,7 @@ public class CustomerGroupCompanyController {
|
||||
public String checkCode(JBOTransaction tx)throws Exception{
|
||||
BizObjectManager bom = JBOFactory.getBizObjectManager(COUNTRY_DISTRICT_INFO.CLASS_NAME);
|
||||
tx.join(bom);
|
||||
//查询该区域编号是否已存在
|
||||
//<EFBFBD><EFBFBD>ѯ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƿ<EFBFBD><EFBFBD>Ѵ<EFBFBD><EFBFBD><EFBFBD>
|
||||
BizObject CUSTOMER_GROUP_COMPANY = bom.createQuery("district_code=:district_code").setParameter("district_code",group_name).getSingleResult(false);
|
||||
if(CUSTOMER_GROUP_COMPANY != null){
|
||||
return "false";
|
||||
@ -178,7 +186,7 @@ public class CustomerGroupCompanyController {
|
||||
return "false";
|
||||
}
|
||||
}
|
||||
//判断经销商编码是否是当前页面
|
||||
//<EFBFBD>жϾ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>̱<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƿ<EFBFBD><EFBFBD>ǵ<EFBFBD>ǰҳ<EFBFBD><EFBFBD>
|
||||
/*public String distributor_basicS(JBOTransaction tx) throws Exception{
|
||||
BizObjectManager dgcm = JBOFactory.getBizObjectManager(DISTRIBUTOR_INFO_TEMP.CLASS_NAME);
|
||||
BizObject dgc = dgcm.createQuery("flowunid=:flowunid").setParameter("flowunid", this.flowunid).getSingleResult(true);
|
||||
@ -197,7 +205,7 @@ public class CustomerGroupCompanyController {
|
||||
|
||||
|
||||
|
||||
//校验文件清单配置代码项编号是否唯一
|
||||
//У<EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD><EFBFBD>嵥<EFBFBD><EFBFBD><EFBFBD>ô<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƿ<EFBFBD>Ψһ
|
||||
public String file_repeat(JBOTransaction tx) throws Exception{
|
||||
BizObjectManager filedc = JBOFactory.getBizObjectManager(CODE_LIBRARY.CLASS_NAME);
|
||||
BizObject dgfc = filedc.createQuery("ITEMNO=:ITEMNO and codeno='DocList'").setParameter("ITEMNO", ITEMNO).getSingleResult(false);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user