|
@@ -110,7 +110,7 @@ namespace Vit.AutoTemp
|
|
|
Regex ctrlAttribute = new Regex("\\[[^\\[\\]]+?\\]"); //正则匹配 [editable:true]
|
|
|
foreach (var column in tableInfo.columns)
|
|
|
{
|
|
|
- // { field: 'name', title: '装修商', list_width: 200 ,visiable:false,editable:false }
|
|
|
+ // { field: 'name', title: '装修商', list_width: 200 ,visible:false,editable:false }
|
|
|
if (column.primary_key == 1)
|
|
|
{
|
|
|
idField = column.column_name;
|
|
@@ -141,7 +141,7 @@ namespace Vit.AutoTemp
|
|
|
SplitStringTo2(comm, ":", out key, out value);
|
|
|
value = value?.Replace("\\x5B", "[").Replace("\\x5D", "]");
|
|
|
if (string.IsNullOrWhiteSpace(key)) continue;
|
|
|
- #endregion
|
|
|
+ #endregion
|
|
|
|
|
|
//(x.x.2)
|
|
|
BuildFieldConfigFromComment(key, value);
|
|
@@ -221,13 +221,13 @@ namespace Vit.AutoTemp
|
|
|
}
|
|
|
#endregion
|
|
|
|
|
|
- #region (x.3)列表筛选条件
|
|
|
+ #region (x.3)列表筛选条件
|
|
|
// [filter:开始时间,>=] 当前列作为筛选条件,筛选条件名称为开始时间,筛选方式为">="
|
|
|
// filter:
|
|
|
// { field: 'name', title: '装修商',filterOpt:'=' }
|
|
|
if (key == "filter")
|
|
|
{
|
|
|
- var prorerty = value.Split(',');
|
|
|
+ var property = value.Split(',');
|
|
|
|
|
|
var filterField = new JObject()
|
|
|
{
|
|
@@ -239,16 +239,16 @@ namespace Vit.AutoTemp
|
|
|
filterFields.Add(filterField);
|
|
|
|
|
|
#region (x.x.1)筛选方式
|
|
|
- if (prorerty.Length > 1)
|
|
|
+ if (property.Length > 1)
|
|
|
{
|
|
|
- filterField["filterOpt"] = prorerty[1];
|
|
|
+ filterField["filterOpt"] = property[1];
|
|
|
}
|
|
|
#endregion
|
|
|
|
|
|
#region (x.x.2)title
|
|
|
- if (prorerty.Length > 0)
|
|
|
+ if (property.Length > 0)
|
|
|
{
|
|
|
- filterField["title"] = prorerty[0];
|
|
|
+ filterField["title"] = property[0];
|
|
|
}
|
|
|
#endregion
|
|
|
}
|
|
@@ -325,7 +325,7 @@ namespace Vit.AutoTemp
|
|
|
#region static dataProviderMap
|
|
|
public readonly static SortedDictionary<string, IDataProvider> dataProviderMap = new SortedDictionary<string, IDataProvider>();
|
|
|
|
|
|
- public static void RegistDataProvider(params IDataProvider[] dataProviders)
|
|
|
+ public static void RegisterDataProvider(params IDataProvider[] dataProviders)
|
|
|
{
|
|
|
lock (dataProviderMap)
|
|
|
{
|
|
@@ -337,7 +337,7 @@ namespace Vit.AutoTemp
|
|
|
}
|
|
|
|
|
|
|
|
|
- public static void UnRegistDataProvider(params IDataProvider[] dataProviders)
|
|
|
+ public static void UnRegisterDataProvider(params IDataProvider[] dataProviders)
|
|
|
{
|
|
|
lock (dataProviderMap)
|
|
|
foreach (var dataProvider in dataProviders)
|