merge from 2023-03-14
This commit is contained in:
@@ -106,8 +106,6 @@ public class CodeGenWay
|
||||
ControlLabel = control.__config__.label,
|
||||
IsImportField = isImportField.ParseToBool(),
|
||||
ImportConfig = CodeGenControlsAttributeHelper.GetImportConfig(control, column.field, tableName),
|
||||
ParsJnpfKeyConstList = CodeGenControlsAttributeHelper.GetParsJnpfKeyConstList(controls, (bool)columnDesignModel?.type.Equals(4)),
|
||||
ParsJnpfKeyConstListDetails = CodeGenControlsAttributeHelper.GetParsJnpfKeyConstListDetails(controls),
|
||||
});
|
||||
break;
|
||||
default:
|
||||
@@ -149,8 +147,7 @@ public class CodeGenWay
|
||||
ControlLabel = control.__config__.label,
|
||||
IsImportField = isImportField.ParseToBool(),
|
||||
ImportConfig = CodeGenControlsAttributeHelper.GetImportConfig(control, column.field, tableName),
|
||||
ParsJnpfKeyConstList = CodeGenControlsAttributeHelper.GetParsJnpfKeyConstList(controls, (bool)columnDesignModel?.type.Equals(4)),
|
||||
ParsJnpfKeyConstListDetails = CodeGenControlsAttributeHelper.GetParsJnpfKeyConstListDetails(controls),
|
||||
ShowField = control.relational,
|
||||
});
|
||||
break;
|
||||
}
|
||||
@@ -292,6 +289,7 @@ public class CodeGenWay
|
||||
ImportConfig = CodeGenControlsAttributeHelper.GetImportConfig(control, column.field, tableName),
|
||||
IsImportField = isImportField.ParseToBool(),
|
||||
ChildControlKey = controlId,
|
||||
ShowField = control.relational,
|
||||
});
|
||||
break;
|
||||
case false:
|
||||
@@ -426,8 +424,6 @@ public class CodeGenWay
|
||||
ControlLabel = control.__config__.label,
|
||||
IsImportField = isImportField == null ? false : (bool)isImportField,
|
||||
ImportConfig = CodeGenControlsAttributeHelper.GetImportConfig(control, column.field, tableName),
|
||||
ParsJnpfKeyConstList = CodeGenControlsAttributeHelper.GetParsJnpfKeyConstList(controls, (bool)columnDesignModel?.type.Equals(4)),
|
||||
ParsJnpfKeyConstListDetails = CodeGenControlsAttributeHelper.GetParsJnpfKeyConstListDetails(controls),
|
||||
});
|
||||
break;
|
||||
default:
|
||||
@@ -465,8 +461,7 @@ public class CodeGenWay
|
||||
ControlLabel = control.__config__.label,
|
||||
IsImportField = isImportField == null ? false : (bool)isImportField,
|
||||
ImportConfig = CodeGenControlsAttributeHelper.GetImportConfig(control, column.field, tableName),
|
||||
ParsJnpfKeyConstList = CodeGenControlsAttributeHelper.GetParsJnpfKeyConstList(controls, (bool)columnDesignModel?.type.Equals(4)),
|
||||
ParsJnpfKeyConstListDetails = CodeGenControlsAttributeHelper.GetParsJnpfKeyConstListDetails(controls),
|
||||
ShowField = control.relational,
|
||||
});
|
||||
break;
|
||||
}
|
||||
@@ -580,8 +575,6 @@ public class CodeGenWay
|
||||
ControlLabel = control.__config__.label,
|
||||
IsImportField = isImportField.ParseToBool(),
|
||||
ImportConfig = CodeGenControlsAttributeHelper.GetImportConfig(control, column.field, tableName),
|
||||
ParsJnpfKeyConstList = CodeGenControlsAttributeHelper.GetParsJnpfKeyConstList(controls, (bool)columnDesignModel?.type.Equals(4)),
|
||||
ParsJnpfKeyConstListDetails = CodeGenControlsAttributeHelper.GetParsJnpfKeyConstListDetails(controls),
|
||||
});
|
||||
break;
|
||||
default:
|
||||
@@ -621,8 +614,6 @@ public class CodeGenWay
|
||||
ControlLabel = control.__config__.label,
|
||||
IsImportField = isImportField.ParseToBool(),
|
||||
ImportConfig = CodeGenControlsAttributeHelper.GetImportConfig(control, column.field, tableName),
|
||||
ParsJnpfKeyConstList = CodeGenControlsAttributeHelper.GetParsJnpfKeyConstList(controls, (bool)columnDesignModel?.type.Equals(4)),
|
||||
ParsJnpfKeyConstListDetails = CodeGenControlsAttributeHelper.GetParsJnpfKeyConstListDetails(controls),
|
||||
});
|
||||
break;
|
||||
}
|
||||
@@ -740,8 +731,6 @@ public class CodeGenWay
|
||||
ControlLabel = control.__config__.label,
|
||||
IsImportField = columnDesignModel?.uploaderTemplateJson?.selectKey?.Any(it => it.Equals(field)) == null ? false : (bool)columnDesignModel?.uploaderTemplateJson?.selectKey?.Any(it => it.Equals(field)),
|
||||
ImportConfig = CodeGenControlsAttributeHelper.GetImportConfig(control, column.field, tableName),
|
||||
ParsJnpfKeyConstList = CodeGenControlsAttributeHelper.GetParsJnpfKeyConstList(controls, (bool)columnDesignModel?.type.Equals(4)),
|
||||
ParsJnpfKeyConstListDetails = CodeGenControlsAttributeHelper.GetParsJnpfKeyConstListDetails(controls),
|
||||
});
|
||||
break;
|
||||
default:
|
||||
@@ -781,8 +770,7 @@ public class CodeGenWay
|
||||
ControlLabel = control.__config__.label,
|
||||
IsImportField = columnDesignModel?.uploaderTemplateJson?.selectKey?.Any(it => it.Equals(field)) == null ? false : (bool)columnDesignModel?.uploaderTemplateJson?.selectKey?.Any(it => it.Equals(field)),
|
||||
ImportConfig = CodeGenControlsAttributeHelper.GetImportConfig(control, column.field, tableName),
|
||||
ParsJnpfKeyConstList = CodeGenControlsAttributeHelper.GetParsJnpfKeyConstList(controls, (bool)columnDesignModel?.type.Equals(4)),
|
||||
ParsJnpfKeyConstListDetails = CodeGenControlsAttributeHelper.GetParsJnpfKeyConstListDetails(controls),
|
||||
ShowField = control.relational,
|
||||
});
|
||||
break;
|
||||
}
|
||||
@@ -893,8 +881,6 @@ public class CodeGenWay
|
||||
ControlLabel = control.__config__.label,
|
||||
IsImportField = isImportField.ParseToBool(),
|
||||
ImportConfig = CodeGenControlsAttributeHelper.GetImportConfig(control, column.field, tableName),
|
||||
ParsJnpfKeyConstList = CodeGenControlsAttributeHelper.GetParsJnpfKeyConstList(controls, (bool)columnDesignModel?.type.Equals(4)),
|
||||
ParsJnpfKeyConstListDetails = CodeGenControlsAttributeHelper.GetParsJnpfKeyConstListDetails(controls),
|
||||
});
|
||||
break;
|
||||
default:
|
||||
@@ -932,8 +918,7 @@ public class CodeGenWay
|
||||
ControlLabel = control.__config__.label,
|
||||
IsImportField = isImportField.ParseToBool(),
|
||||
ImportConfig = CodeGenControlsAttributeHelper.GetImportConfig(control, column.field, tableName),
|
||||
ParsJnpfKeyConstList = CodeGenControlsAttributeHelper.GetParsJnpfKeyConstList(controls, (bool)columnDesignModel?.type.Equals(4)),
|
||||
ParsJnpfKeyConstListDetails = CodeGenControlsAttributeHelper.GetParsJnpfKeyConstListDetails(controls),
|
||||
ShowField = control.relational,
|
||||
});
|
||||
break;
|
||||
}
|
||||
@@ -1214,7 +1199,7 @@ public class CodeGenWay
|
||||
var isAdd = indexTopButton.Any(it => it.Value == "add");
|
||||
var isTreeRelation = !string.IsNullOrEmpty(columnDesignModel?.treeRelation);
|
||||
var isRelationForm = formControlList.Any(it => it.IsRelationForm);
|
||||
var isFixed = columnDesignModel.childTableStyle == 1 ? indexColumnDesign.Any(it => it.Fixed.Any()) : false;
|
||||
var isFixed = columnDesignModel.childTableStyle == 1 ? indexColumnDesign.Any(it => it.Fixed.Equals("fixed='left' ") && !it.Name.Equals(columnDesignModel.groupField)) : false;
|
||||
|
||||
switch (logic)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user