提交当前本机整理版本
This commit is contained in:
@@ -963,4 +963,59 @@ namespace Lskj.SweepCode
|
||||
GridColumnModel model = col.Tag as GridColumnModel;
|
||||
string fieldValue = BaseImpl.GetDefaultValue(model.DefaultValue);
|
||||
|
||||
if (!s
|
||||
if (!string.IsNullOrEmpty(model.DefaultValue))
|
||||
{
|
||||
newRow[col.FieldName] = fieldValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
table.Rows.Add(newRow);
|
||||
}
|
||||
|
||||
this.ParentGridEx.GridView.ClearSelection();
|
||||
this.ParentGridEx.GridView.SelectRowHandler(table.Rows.Count - 1);
|
||||
this.ParentGridEx.GridView.UpdateCurrentRow();
|
||||
this.ParentGridEx.GridView.ShowEditor();
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
LogUtil.WriteError("表格拖拽错误", ex);
|
||||
LogHelper.Instance.WriteError(ex);
|
||||
//MessageUtil.Show(ResourceKeys.OperFault);
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message, ex.Message);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 设置主表选中行
|
||||
/// </summary>
|
||||
public void SetMainRow(DataRow dataRow)
|
||||
{
|
||||
foreach (XtraTabPage page in this.TabIntoControlObj.TabPages)
|
||||
{
|
||||
Object moduleObject = page.Controls.Cast<Object>().FirstOrDefault();
|
||||
ModuleGridEx moduleGridEx = null;
|
||||
if (moduleObject is ModuleGridEx)
|
||||
{
|
||||
moduleGridEx = moduleObject as ModuleGridEx;
|
||||
if (moduleGridEx.SearchObj != null && moduleGridEx.SearchObj.SystemModel != null)
|
||||
{
|
||||
moduleGridEx.SearchObj.SystemModel.maintabFocusedRow = dataRow;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user