feat: 更新控件及相关业务功能
This commit is contained in:
@@ -2016,7 +2016,7 @@ namespace Lskj.Control
|
||||
}
|
||||
|
||||
//选中上一次选中行行号
|
||||
if (SelectGridControlEx != null && oldRowHandle > 0)
|
||||
if (SelectGridControlEx != null && oldRowHandle >= 0)
|
||||
{
|
||||
SelectGridControlEx.GridView.SelectRowHandler(oldRowHandle);
|
||||
OnPcgridRowCellClick(SelectGridControlEx.GridView, null);
|
||||
@@ -2057,10 +2057,25 @@ namespace Lskj.Control
|
||||
string fieldValue = this.ControlObj.GetControlValue(model);
|
||||
if (fieldValue == "****") continue;
|
||||
|
||||
if (SystemInfo.Instance.IsSpecialAuditSave &&
|
||||
this._drBillInfoMsg != null &&
|
||||
this._drBillInfoMsg.Table != null &&
|
||||
this._drBillInfoMsg.Table.Columns.Contains(model.FieldName) &&
|
||||
AuditChangeLog.IsSameValue(this._drBillInfoMsg[model.FieldName] + "", fieldValue))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
//updateBuilder.AppendFormat("{0}='{1}',", model.FieldName, fieldValue);
|
||||
updateBuilder.Append(string.IsNullOrEmpty(fieldValue) ? string.Format("{0}={1}", model.FieldName, this.ControlObj.GetNullValue(model)) : string.Format("{0}=N'{1}',", model.FieldName, fieldValue.Contains("'") ? fieldValue.Replace("'", "''") : fieldValue));
|
||||
}
|
||||
}
|
||||
string updateFields = updateBuilder.ToString().TrimEnd(',');
|
||||
if (string.IsNullOrEmpty(updateFields))
|
||||
{
|
||||
return string.Empty;
|
||||
}
|
||||
return string.Format("update {0} set {1} where {2}='{3}'", this.BillModelObj.MasterTable, updateBuilder.ToString().TrimEnd(','), BillModelObj.PrimaryKey, this.SysModel.BillDocumentId);
|
||||
}
|
||||
#endregion
|
||||
|
||||
Reference in New Issue
Block a user