biz9-logic 4.9.91 → 4.9.92
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/biz9_config +1 -1
- package/index.js +13 -7
- package/package.json +1 -1
package/biz9_config
CHANGED
package/index.js
CHANGED
|
@@ -1103,7 +1103,7 @@ class Event_Logic {
|
|
|
1103
1103
|
};
|
|
1104
1104
|
}
|
|
1105
1105
|
class Field_Logic {
|
|
1106
|
-
static
|
|
1106
|
+
static get_field_value_old = (item_data_type,item_id,value_type,value_id,value,value_list) => {
|
|
1107
1107
|
return {item_data_type:item_data_type,item_id:item_id,value_type:value_type,value_id:value_id,value:value,value_list:value_list};
|
|
1108
1108
|
};
|
|
1109
1109
|
static get_item_field_value_type_list = () => {
|
|
@@ -1114,11 +1114,17 @@ class Field_Logic {
|
|
|
1114
1114
|
{value:'list',label:'List'},
|
|
1115
1115
|
];
|
|
1116
1116
|
};
|
|
1117
|
-
static get_field_value_value = (value_type,item,value_id,
|
|
1118
|
-
|
|
1117
|
+
//static get_field_value_value = (value_type,item,value_id,group_id,title) =>{
|
|
1118
|
+
static get_field_value_value = (value_type,item,value_id,title) =>{
|
|
1119
|
+
return !Str.check_is_null(item[Field_Logic.get_field_value_title(value_type,value_id,title)]) ? item[Field_Logic.get_field_value_title(value_type,value_id,title)] : "" ? value_type != Type.FIELD_VALUE_LIST : "";
|
|
1119
1120
|
};
|
|
1120
|
-
static get_field_value_title = (value_type,value_id,
|
|
1121
|
-
|
|
1121
|
+
//static get_field_value_title = (value_type,value_id,title) =>{
|
|
1122
|
+
static get_field_value_title = (value_type,value_id,group_id,title) =>{
|
|
1123
|
+
if(!title){
|
|
1124
|
+
title = '';
|
|
1125
|
+
}else{
|
|
1126
|
+
title = "_"+Str.get_title_url(title);
|
|
1127
|
+
}
|
|
1122
1128
|
switch(value_type){
|
|
1123
1129
|
case Type.FIELD_VALUE_TEXT:
|
|
1124
1130
|
return 'text'+'_value_'+value_id;
|
|
@@ -1130,10 +1136,10 @@ class Field_Logic {
|
|
|
1130
1136
|
return 'image'+'_value_'+value_id;
|
|
1131
1137
|
break;
|
|
1132
1138
|
case Type.FIELD_VALUE_LIST:
|
|
1133
|
-
return 'list'+'_value_'+value_id +
|
|
1139
|
+
return 'list'+'_value_'+value_id +'_group_' +group_id+title;
|
|
1134
1140
|
break;
|
|
1135
1141
|
default:
|
|
1136
|
-
return
|
|
1142
|
+
return 'text'+'_value_'+value_id;
|
|
1137
1143
|
};
|
|
1138
1144
|
}
|
|
1139
1145
|
static get_test_cost(){
|