SVN r892
SVN-Revision: r892
This commit is contained in:
@@ -245,6 +245,7 @@ namespace Lskj.PubProductSysMge
|
||||
case 1:
|
||||
case 4://左侧为树节点
|
||||
this.InitlizeSpiltLocation();//设置分割条位置
|
||||
this.treeLeftViewEx.TreeInhibitSort = this.MainModuleObj.TreeInhibitSort;
|
||||
this.SetLeftTreeView();//设置左侧树数据
|
||||
if (this.MainModuleObj.IsHideTreeViewBoxs)
|
||||
{
|
||||
@@ -498,7 +499,7 @@ namespace Lskj.PubProductSysMge
|
||||
if (selectHandler)
|
||||
{
|
||||
this.gcMain.GridView.FocusedRowHandle = handler;
|
||||
if(topRowIndex>0) gcMain.GridView.TopRowIndex = topRowIndex;
|
||||
if (topRowIndex > 0) gcMain.GridView.TopRowIndex = topRowIndex;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
@@ -1052,7 +1053,7 @@ namespace Lskj.PubProductSysMge
|
||||
{
|
||||
foreach (DataRow item in dataTable.Rows)
|
||||
{
|
||||
|
||||
|
||||
ComboBoxModel comboBoxModel = new ComboBoxModel(item)
|
||||
{
|
||||
ValueMember = dataTable.Columns[0].ColumnName,
|
||||
@@ -1300,7 +1301,7 @@ namespace Lskj.PubProductSysMge
|
||||
{
|
||||
// 获取特定路径的节点名称
|
||||
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("请选择根节点");
|
||||
return;
|
||||
@@ -1548,7 +1549,7 @@ namespace Lskj.PubProductSysMge
|
||||
}
|
||||
MessageUtil.Show(ResourceKeys.SaveSuccess);
|
||||
string where = null;
|
||||
string nodeName = focusRow["speciesNo"] + "";
|
||||
string nodeName = focusRow["speciesNo"] + "";
|
||||
if (string.IsNullOrWhiteSpace(this.ParentUnionField))
|
||||
{
|
||||
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}'";
|
||||
if (!string.IsNullOrWhiteSpace(this.MainModuleObj.TableClickSchemeSql)) sql = this.MainModuleObj.TableClickSchemeSql;
|
||||
DataTable dataTable = MainImpl.GetDataTableResult(string.Format(sql, projectId, speciesNo));
|
||||
|
||||
|
||||
this.projectComBoEdit.Text = "";
|
||||
this.projectComBoEdit.Properties.Items.Clear();
|
||||
foreach (DataRow item in dataTable.Rows)
|
||||
@@ -1981,11 +1982,11 @@ namespace Lskj.PubProductSysMge
|
||||
//}
|
||||
this.btnUpdate.Enabled = false;
|
||||
this.btnSave.Enabled = true;
|
||||
if (SystemInfo.Instance.PubProductSysMgeCopyAndSave)
|
||||
if (SystemInfo.Instance.PubProductSysMgeCopyAndSave)
|
||||
{
|
||||
this.OnBtnSaveClick(null, null);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
||||
Reference in New Issue
Block a user