SVN r949
SVN-Revision: r949
This commit is contained in:
@@ -133,9 +133,10 @@ namespace Lskj.Control
|
||||
hasBoolean = true;
|
||||
}
|
||||
GridColumnModel model = col.Tag as GridColumnModel;
|
||||
if (model != null && (model.FieldType == ControlType.LabMultiSelectValue || model.FieldType == ControlType.LabMultiSelectValueNew || model.FieldType == ControlType.LabTreeLookValue || model.FieldType == ControlType.LabMultiSelectValueParam || model.FieldType == ControlType.LabSelectReturnId))
|
||||
if (model != null && (model.FieldType == ControlType.LabMultiSelectValue || model.FieldType == ControlType.LabMultiSelectValueNew || model.FieldType == ControlType.LabTreeLookValue || model.FieldType == ControlType.LabMultiSelectValueParam || model.FieldType == ControlType.LabSelectReturnId|| (model.FieldType == ControlType.LabSelectReturnIdNew && model.ModuleFrameDisplayText)))
|
||||
{
|
||||
StoreValueList.Add(col.FieldName);
|
||||
hasBoolean = true;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -453,10 +454,11 @@ namespace Lskj.Control
|
||||
hasBoolean = true;
|
||||
}
|
||||
GridColumnModel model = col.Tag as GridColumnModel;
|
||||
|
||||
if (model != null && (model.FieldType == ControlType.LabMultiSelectValue || model.FieldType == ControlType.LabMultiSelectValueNew || model.FieldType == ControlType.LabTreeLookValue || model.FieldType == ControlType.LabMultiSelectValueParam || model.FieldType == ControlType.LabSelectReturnId))
|
||||
|
||||
if (model != null && (model.FieldType == ControlType.LabMultiSelectValue || model.FieldType == ControlType.LabMultiSelectValueNew || model.FieldType == ControlType.LabTreeLookValue || model.FieldType == ControlType.LabMultiSelectValueParam || model.FieldType == ControlType.LabSelectReturnId|| (model.FieldType == ControlType.LabSelectReturnIdNew && model.ModuleFrameDisplayText)))
|
||||
{
|
||||
StoreValueList.Add(col.FieldName);
|
||||
hasBoolean = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -618,9 +620,11 @@ namespace Lskj.Control
|
||||
if (gridColumn.Tag is GridColumnModel)
|
||||
{
|
||||
GridColumnModel model = gridColumn.Tag as GridColumnModel;
|
||||
//|| model.FieldType == ControlType.LabSelectReturnId
|
||||
|
||||
if ((model.FieldType == ControlType.LabMultiSelectValue || model.FieldType == ControlType.LabMultiSelectValueNew ||
|
||||
model.FieldType == ControlType.LabMultiSelectValueParam ) && row[col.ColumnName].ToString().Contains(","))
|
||||
model.FieldType == ControlType.LabMultiSelectValueParam) && row[col.ColumnName].ToString().Contains(",") ||
|
||||
(model.FieldType == ControlType.LabSelectReturnId && !model.IsRadio) ||
|
||||
(model.FieldType == ControlType.LabSelectReturnIdNew && !model.IsRadio && model.ModuleFrameDisplayText))
|
||||
{
|
||||
string[] cellText = row[col.ColumnName].ToString().Split(',');
|
||||
fieldValue = string.Empty;
|
||||
@@ -746,6 +750,7 @@ namespace Lskj.Control
|
||||
{
|
||||
for (int i = 1; i < this.gridView1.Columns.Count; i++)
|
||||
{
|
||||
|
||||
string columnName = this.gridView1.Columns[i].FieldName;
|
||||
GridSummaryItem gsi = gridView.Columns[columnName].SummaryItem;
|
||||
if (gsi.SummaryType != DevExpress.Data.SummaryItemType.None) //gsi.SummaryValue!=null&& !string.IsNullOrEmpty(gsi.SummaryValue.ToString())
|
||||
@@ -764,6 +769,8 @@ namespace Lskj.Control
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -967,15 +974,15 @@ namespace Lskj.Control
|
||||
ValueGridColumnTable.Add(model, translationDict);
|
||||
|
||||
}
|
||||
}
|
||||
else if (model.FieldType == ControlType.LabSelectReturnId)
|
||||
}
|
||||
else if (model.FieldType == ControlType.LabSelectReturnId|| (model.FieldType == ControlType.LabSelectReturnIdNew&& model.ModuleFrameDisplayText))
|
||||
{
|
||||
string sqlValue = model.SqlSource;
|
||||
if (model.IsRadio&& !string.IsNullOrWhiteSpace(model.addModuleld))
|
||||
string sqlValue = model.SqlSource;
|
||||
if ((model.IsRadio && !string.IsNullOrWhiteSpace(model.addModuleld))|| model.FieldType == ControlType.LabSelectReturnIdNew)
|
||||
{
|
||||
//单选模式数据源为模块sql
|
||||
//单选模式数据源为模块sql 新版模块选中返回id固定位模块sql
|
||||
DataRow modelRow = Business.Impl.MainImpl.GetSystemdllTab(model.addModuleld);
|
||||
sqlValue = modelRow["SQL"]+"";
|
||||
sqlValue = modelRow["SQL"] + "";
|
||||
}
|
||||
DataTable dataTable = Business.Impl.BaseImpl.GetDataTableResult(sqlValue);
|
||||
Dictionary<string, string> translationDict = new Dictionary<string, string>();
|
||||
|
||||
Reference in New Issue
Block a user