app选择车优化

This commit is contained in:
yjf 2021-11-10 17:21:50 +08:00
parent 7621e38354
commit 76d3ad6849
3 changed files with 19 additions and 17 deletions

View File

@ -293,7 +293,7 @@
<%/*~[Describe=Ñ¡Ôñ³µÆ·ÅÆ;]~*/%>
function selectProductModel()
{
AsDialog.OpenSelector("SelectCardataBrand","","dialogWidth=" + parseInt(window.screen.width * 0.4) + "px dialogHeight=" + parseInt(window.screen.height * 0.5) + "px",
AsDialog.OpenSelector("SelectCardataBrandNew","","dialogWidth=" + parseInt(window.screen.width * 0.4) + "px dialogHeight=" + parseInt(window.screen.height * 0.5) + "px",
function(sReturn){
if(!sReturn||sReturn=="_CANCEL_"||sReturn==""||sReturn=="_NONE_")
{
@ -337,7 +337,11 @@
var brandid="";
if(MyOjbect.brandid){
brandid=MyOjbect.brandid;
AsDialog.OpenSelector("SelectCardataSeries","brandid,"+brandid,"dialogWidth=" + parseInt(window.screen.width * 0.4) + "px dialogHeight=" + parseInt(window.screen.height * 0.5) + "px",
let selectType = 'SelectCardataSeriesCYC';
if (MyOjbect.cartypea == 'SYC') {
selectType = 'SelectCardataSeriesSYC';
}
AsDialog.OpenSelector(selectType,"brandid,"+brandid,"dialogWidth=" + parseInt(window.screen.width * 0.4) + "px dialogHeight=" + parseInt(window.screen.height * 0.5) + "px",
function(sReturn){
if(!sReturn||sReturn=="_CANCEL_"||sReturn==""||sReturn=="_NONE_")
{
@ -369,7 +373,11 @@
var seriesid="";
if(MyOjbect.seriesid){
seriesid=MyOjbect.seriesid;
AsDialog.OpenSelector("SelectCardataModel","seriesid,"+seriesid,"dialogWidth=" + parseInt(window.screen.width * 0.4) + "px dialogHeight=" + parseInt(window.screen.height * 0.5) + "px",
let selectType = 'SelectCardataModelCYC';
if (MyOjbect.cartypea == 'SYC') {
selectType = 'SelectCardataModelSYC';
}
AsDialog.OpenSelector(selectType,"seriesid,"+seriesid,"dialogWidth=" + parseInt(window.screen.width * 0.4) + "px dialogHeight=" + parseInt(window.screen.height * 0.5) + "px",
function(sReturn){
if(!sReturn||sReturn=="_CANCEL_"||sReturn==""||sReturn=="_NONE_")
{

View File

@ -44,10 +44,6 @@ public class SelectCatalogWin {
this.param.put(sKey, sValue);
}
public Map<String, Object> getParam() {
return param;
}
private String sGlobalText;
@SuppressWarnings("unchecked")
@ -89,6 +85,14 @@ public class SelectCatalogWin {
}
this.flowunid = param.get("flowunid") == null ? "" : param.get("flowunid").toString();
this.sSelName = sSelName;
if (param.size() > 0 && param.get("cartypea") != null) {
String cartypea = String.valueOf(param.get("cartypea")).trim();
if("SelectCardataSeries".equals(sSelName)){
this.sSelName = cartypea != null && cartypea.equals("SYC") ? "SelectCardataSeriesSYC" : "SelectCardataSeriesCYC";
}else if("SelectCardataModel".equals(sSelName)){
this.sSelName = cartypea != null && cartypea.equals("SYC") ? "SelectCardataModelSYC" : "SelectCardataModelCYC";
}
}
try {
BizObjectManager bom = JBOFactory
.getBizObjectManager(SELECT_CATALOG.CLASS_NAME);

View File

@ -37,11 +37,6 @@ public class SelectCarAttributeServiceImpl implements SelectCarAttributeService{
String sSelName = "SelectCardataSeries";
SelectCatalogWin select = new SelectCatalogWin(sSelName, tx, sqlca,
request);
if (select.getParam().size() > 0 && select.getParam().get("cartype") != null) {
String cartypea = String.valueOf(select.getParam().get("cartype")).trim();
sSelName = cartypea != null && cartypea.equals("ÉĚÓĂłľ") ? "SelectCardataSeriesSYC" : "SelectCardataSeriesCYC";
select.setsSelName(sSelName);
}
ASUser curUser = new ASUser((String) request.getSession().getAttribute(
"userid"), sqlca);
select.setParam("orgId", curUser.getOrgID());
@ -57,11 +52,6 @@ public class SelectCarAttributeServiceImpl implements SelectCarAttributeService{
String sSelName = "SelectCardataModel";
SelectCatalogWin select = new SelectCatalogWin(sSelName, tx, sqlca,
request);
if (select.getParam().size() > 0 && select.getParam().get("cartype") != null) {
String cartypea = String.valueOf(select.getParam().get("cartype")).trim();
sSelName = cartypea != null && cartypea.equals("ÉĚÓĂłľ") ? "SelectCardataModelSYC" : "SelectCardataModelCYC";
select.setsSelName(sSelName);
}
ASUser curUser = new ASUser((String) request.getSession().getAttribute(
"userid"), sqlca);
select.setParam("orgId", curUser.getOrgID());