SVN r842
SVN-Revision: r842
This commit is contained in:
@@ -375,6 +375,14 @@ namespace Lskj.ProductiSched
|
|||||||
/// <param name="e"></param>
|
/// <param name="e"></param>
|
||||||
private void OnBtnSaveClick(object sender, EventArgs e)
|
private void OnBtnSaveClick(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
|
if (TreeMultiHeader)
|
||||||
|
{
|
||||||
|
treebandGcTop.GridView.PostEditor();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
bandGcTop.BandedView.PostEditor();
|
||||||
|
}
|
||||||
if (!string.IsNullOrEmpty(DataModel.TopModuleModel.MenuTable))
|
if (!string.IsNullOrEmpty(DataModel.TopModuleModel.MenuTable))
|
||||||
{
|
{
|
||||||
SaveGridRecord();
|
SaveGridRecord();
|
||||||
@@ -919,7 +927,7 @@ namespace Lskj.ProductiSched
|
|||||||
private string GetSearchSql(GridDetailModel model, DataRow rowItem, bool isLeft = false)
|
private string GetSearchSql(GridDetailModel model, DataRow rowItem, bool isLeft = false)
|
||||||
{
|
{
|
||||||
string fieldName = !string.IsNullOrEmpty(model.UnionParentField) && rowItem.Table.Columns.Contains(model.UnionParentField) ? model.UnionParentField : DataModel.TopModuleModel.ParmaryKey;
|
string fieldName = !string.IsNullOrEmpty(model.UnionParentField) && rowItem.Table.Columns.Contains(model.UnionParentField) ? model.UnionParentField : DataModel.TopModuleModel.ParmaryKey;
|
||||||
string sqlValue = model.Orderid == -1 ? DataModel.RightModuleModel.MenuSql: model.IsReadOnly || model.IsChart ? model.DetailSql : model.SystemModel.MenuSql;
|
string sqlValue = model.Orderid == -1 ? DataModel.RightModuleModel.MenuSql : model.IsReadOnly || model.IsChart ? model.DetailSql : model.SystemModel.MenuSql;
|
||||||
sqlValue = ReplaceHelper.ReplaceRowParam(rowItem, sqlValue);
|
sqlValue = ReplaceHelper.ReplaceRowParam(rowItem, sqlValue);
|
||||||
DataRow row = TreeMultiHeader ? treebandGcTop.GetViewFocusedDataRow() : bandGcTop.GetViewFocusedDataRow();
|
DataRow row = TreeMultiHeader ? treebandGcTop.GetViewFocusedDataRow() : bandGcTop.GetViewFocusedDataRow();
|
||||||
if (row != null && isLeft)
|
if (row != null && isLeft)
|
||||||
@@ -2230,6 +2238,7 @@ namespace Lskj.ProductiSched
|
|||||||
IniHelper.Write(string.Format("ProductSched_SplitLeft_{0}", DataModel.TopSysModel.ModuleCode), splitLeftControl.SplitterPosition + "");
|
IniHelper.Write(string.Format("ProductSched_SplitLeft_{0}", DataModel.TopSysModel.ModuleCode), splitLeftControl.SplitterPosition + "");
|
||||||
IniHelper.Write(string.Format("ProductSched_SplitMain_{0}", DataModel.TopSysModel.ModuleCode), splitMainControl.SplitterPosition + "");
|
IniHelper.Write(string.Format("ProductSched_SplitMain_{0}", DataModel.TopSysModel.ModuleCode), splitMainControl.SplitterPosition + "");
|
||||||
}
|
}
|
||||||
|
bandGcTop.gridControl.Refresh();
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user