feat: 优化初始化缓存及控件功能
This commit is contained in:
@@ -94,6 +94,11 @@ namespace Lskj.Control
|
||||
/// 父容器表格
|
||||
/// </summary>
|
||||
public GridControlEx ParentGridEx;
|
||||
/// <summary>
|
||||
/// 父容器表格条件
|
||||
/// </summary>
|
||||
public MyControl SearchObj;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 源表格
|
||||
@@ -391,6 +396,7 @@ namespace Lskj.Control
|
||||
//提交到数据库
|
||||
try
|
||||
{
|
||||
WaitForm.ShowForm();
|
||||
string sql = "select * from " + _tableName + " where 1<>1";
|
||||
//SqlDataAdapter dat = BaseImpl.GetAdapterResult(sql);
|
||||
//SqlCommandBuilder scb = new SqlCommandBuilder(dat);
|
||||
@@ -678,6 +684,10 @@ namespace Lskj.Control
|
||||
string errorMsg = string.Format("{0}\r\n第{1}行,第{2}列\r\n列名:{3}", mesage, rowNum, colNum, colName);
|
||||
XtraMessageBox.Show("数据提交错误:\n" + errorMsg + "\r\n", "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
}
|
||||
finally
|
||||
{
|
||||
WaitForm.HideForm();
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 数字转换时间格式
|
||||
@@ -954,7 +964,12 @@ namespace Lskj.Control
|
||||
DataRow SelectTheLine = this.ParentGridEx.GetViewFocusedDataRow();
|
||||
fieldValue = ReplaceHelper.ReplaceRowParam(SelectTheLine, fieldValue);
|
||||
}
|
||||
fieldValue= BaseImpl.GetDefaultValue(fieldValue);
|
||||
if (this.SearchObj != null)
|
||||
{
|
||||
fieldValue = this.SearchObj.ReplaceParentControlValue(fieldValue);
|
||||
}
|
||||
|
||||
fieldValue = BaseImpl.GetDefaultValue(fieldValue);
|
||||
if (!string.IsNullOrEmpty(fieldValue))
|
||||
{
|
||||
rowItem[col.FieldName] = fieldValue;
|
||||
|
||||
Reference in New Issue
Block a user