修改法人客户默认显示数据
This commit is contained in:
parent
fb88ba9790
commit
6a8933bbc7
@ -7,7 +7,7 @@
|
||||
String sTempletNo = "CustomerCompanyRegister";
|
||||
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
|
||||
doTemp.setDDDWJbo("certtype","jbo.sys.CODE_LIBRARY,itemNo,ItemName,Codeno='CertType' and SortNo like 'Ent%' and itemno<>'Ent03' and IsInuse='1' ");
|
||||
doTemp.setDDDWJbo("status","jbo.sys.CODE_LIBRARY,itemNo,ItemName,Codeno='customer_status' and itemno in('status01','status02') ");
|
||||
doTemp.setDDDWJbo("status","jbo.sys.CODE_LIBRARY,itemNo,ItemName,Codeno='customer_status' and itemno in('status02','status03') ");
|
||||
doTemp.setDefaultValue("nationcode","CHN");
|
||||
doTemp.setColInnerBtEvent("NATIONCODENAME", "");
|
||||
doTemp.setHtmlEvent("certtype","onchange","changeCertidRequired");
|
||||
|
||||
@ -199,12 +199,17 @@ public class NewCustomerCompanyController{
|
||||
BizObject newCustomerType = typeManager.newObject();
|
||||
newCustomerType.setAttributeValue("customerid",newCustomer.getAttribute("customerid").getString());
|
||||
newCustomerType.setAttributeValue("custtype","cust_type.cust");
|
||||
if("status01".equals(status)){
|
||||
/*if("status01".equals(status)){
|
||||
newCustomerType.setAttributeValue("custstatus", "status01");//ÇąÔÚ
|
||||
}else if("status02".equals(status)){
|
||||
newCustomerType.setAttributeValue("custstatus", "status02");//ŐýĘ˝
|
||||
}else{
|
||||
newCustomerType.setAttributeValue("custstatus", "status04");//ĆäËűÄŹČϲݸĺ
|
||||
}*/
|
||||
if("status03".equals(status)){
|
||||
newCustomerType.setAttributeValue("custstatus", "status03");//ˇĎĆú
|
||||
}else{
|
||||
newCustomerType.setAttributeValue("custstatus", "status02");//ĆäËűÄŹČĎŐýĘ˝
|
||||
}
|
||||
newCustomerType.setAttributeValue("status","valid");
|
||||
newCustomerType.setAttributeValue("isoriginal","yes");
|
||||
|
||||
@ -26,6 +26,7 @@ public class NewCustomerCompanyHandler extends CommonHandler{
|
||||
bo.setAttributeValue("enterprisename",cust.getAttribute("customername").getString());
|
||||
bo.setAttributeValue("certtype",cust.getAttribute("certtype").getString());
|
||||
bo.setAttributeValue("certid",cust.getAttribute("certid").getString());
|
||||
bo.setAttributeValue("customer_num",cust.getAttribute("customer_num").getString());
|
||||
bo.setAttributeValue("countrycode",cust.getAttribute("nationcode").getString());
|
||||
}
|
||||
|
||||
@ -43,6 +44,7 @@ public class NewCustomerCompanyHandler extends CommonHandler{
|
||||
bo.setAttributeValue("enterprisename",cust.getAttribute("customername").getString());
|
||||
bo.setAttributeValue("certtype",cust.getAttribute("certtype").getString());
|
||||
bo.setAttributeValue("certid",cust.getAttribute("certid").getString());
|
||||
bo.setAttributeValue("customer_num",cust.getAttribute("customer_num").getString());
|
||||
bo.setAttributeValue("countrycode",cust.getAttribute("nationcode").getString());
|
||||
super.initDisplayForEdit(bo);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user