SVN-Revision: r892
This commit is contained in:
wyf
2025-07-28 07:43:25 +00:00
parent cf35995f85
commit 08d577f579
+8 -7
View File
@@ -245,6 +245,7 @@ namespace Lskj.PubProductSysMge
case 1: case 1:
case 4://左侧为树节点 case 4://左侧为树节点
this.InitlizeSpiltLocation();//设置分割条位置 this.InitlizeSpiltLocation();//设置分割条位置
this.treeLeftViewEx.TreeInhibitSort = this.MainModuleObj.TreeInhibitSort;
this.SetLeftTreeView();//设置左侧树数据 this.SetLeftTreeView();//设置左侧树数据
if (this.MainModuleObj.IsHideTreeViewBoxs) if (this.MainModuleObj.IsHideTreeViewBoxs)
{ {
@@ -498,7 +499,7 @@ namespace Lskj.PubProductSysMge
if (selectHandler) if (selectHandler)
{ {
this.gcMain.GridView.FocusedRowHandle = handler; this.gcMain.GridView.FocusedRowHandle = handler;
if(topRowIndex>0) gcMain.GridView.TopRowIndex = topRowIndex; if (topRowIndex > 0) gcMain.GridView.TopRowIndex = topRowIndex;
} }
} }
/// <summary> /// <summary>
@@ -1052,7 +1053,7 @@ namespace Lskj.PubProductSysMge
{ {
foreach (DataRow item in dataTable.Rows) foreach (DataRow item in dataTable.Rows)
{ {
ComboBoxModel comboBoxModel = new ComboBoxModel(item) ComboBoxModel comboBoxModel = new ComboBoxModel(item)
{ {
ValueMember = dataTable.Columns[0].ColumnName, ValueMember = dataTable.Columns[0].ColumnName,
@@ -1300,7 +1301,7 @@ namespace Lskj.PubProductSysMge
{ {
// 获取特定路径的节点名称 // 获取特定路径的节点名称
TreeNode[] nodes = treeLeftViewEx.TreeView.Nodes.Find(this.speciesNoEdit.Text, true); // 搜索所有层级 TreeNode[] nodes = treeLeftViewEx.TreeView.Nodes.Find(this.speciesNoEdit.Text, true); // 搜索所有层级
if (nodes.Length == 0|| nodes[0].Nodes.Count>0) if (nodes.Length == 0 || nodes[0].Nodes.Count > 0)
{ {
MessageUtil.Show("请选择根节点"); MessageUtil.Show("请选择根节点");
return; return;
@@ -1548,7 +1549,7 @@ namespace Lskj.PubProductSysMge
} }
MessageUtil.Show(ResourceKeys.SaveSuccess); MessageUtil.Show(ResourceKeys.SaveSuccess);
string where = null; string where = null;
string nodeName = focusRow["speciesNo"] + ""; string nodeName = focusRow["speciesNo"] + "";
if (string.IsNullOrWhiteSpace(this.ParentUnionField)) if (string.IsNullOrWhiteSpace(this.ParentUnionField))
{ {
where = string.Format(" and {0} = N'{1}'", this.treeLeftViewEx.TreeNodeKeyField, nodeName); where = string.Format(" and {0} = N'{1}'", this.treeLeftViewEx.TreeNodeKeyField, nodeName);
@@ -1632,7 +1633,7 @@ namespace Lskj.PubProductSysMge
string sql = "select id,ItemName from p_productsyssetGrouptab where id = '{0}' and speciesNo='{1}'"; string sql = "select id,ItemName from p_productsyssetGrouptab where id = '{0}' and speciesNo='{1}'";
if (!string.IsNullOrWhiteSpace(this.MainModuleObj.TableClickSchemeSql)) sql = this.MainModuleObj.TableClickSchemeSql; if (!string.IsNullOrWhiteSpace(this.MainModuleObj.TableClickSchemeSql)) sql = this.MainModuleObj.TableClickSchemeSql;
DataTable dataTable = MainImpl.GetDataTableResult(string.Format(sql, projectId, speciesNo)); DataTable dataTable = MainImpl.GetDataTableResult(string.Format(sql, projectId, speciesNo));
this.projectComBoEdit.Text = ""; this.projectComBoEdit.Text = "";
this.projectComBoEdit.Properties.Items.Clear(); this.projectComBoEdit.Properties.Items.Clear();
foreach (DataRow item in dataTable.Rows) foreach (DataRow item in dataTable.Rows)
@@ -1981,11 +1982,11 @@ namespace Lskj.PubProductSysMge
//} //}
this.btnUpdate.Enabled = false; this.btnUpdate.Enabled = false;
this.btnSave.Enabled = true; this.btnSave.Enabled = true;
if (SystemInfo.Instance.PubProductSysMgeCopyAndSave) if (SystemInfo.Instance.PubProductSysMgeCopyAndSave)
{ {
this.OnBtnSaveClick(null, null); this.OnBtnSaveClick(null, null);
} }
} }
} }
catch (Exception ex) catch (Exception ex)