feat: 更新业务、控件及单据功能

This commit is contained in:
cyf
2026-08-10 09:59:46 +08:00
parent c07220bbf0
commit 000a69ce15
29 changed files with 919 additions and 359 deletions
+17 -17
View File
@@ -86,15 +86,15 @@ namespace Lskj.PubSpec2
this.treeLeft.TreeInhibitSort = this.SysModel.TreeInhibitSort;
this.gcMain.GridView.OptionsBehavior.Editable = this.SysModel.ModifyEnable;
if (BaseImpl.HasExistsTable("p_systemTreeNodeSetTab"))
{
DataRow treeNodedr = BaseImpl.TreeNodeSetTab(this.SysModel.MenuTable);
string tabname = treeNodedr["treeTable"] + "";
if (treeNodedr != null && BaseImpl.HasExistsColumn(tabname, "pid"))
{
SqlHelper.ExecuteNonQuery(String.Format("ALTER TABLE {0} DROP COLUMN orderid,pid", tabname));
}
}
//if (BaseImpl.HasExistsTable("p_systemTreeNodeSetTab"))
//{
// DataRow treeNodedr = BaseImpl.TreeNodeSetTab(this.SysModel.MenuTable);
// string tabname = treeNodedr["treeTable"] + "";
// if (treeNodedr != null && BaseImpl.HasExistsColumn(tabname, "pid"))
// {
// SqlHelper.ExecuteNonQuery(String.Format("ALTER TABLE {0} DROP COLUMN orderid,pid", tabname));
// }
//}
if (Model.HasReadPrivilege())
{
this.gcMain.GridView.OptionsBehavior.Editable = false;
@@ -176,14 +176,14 @@ namespace Lskj.PubSpec2
this.treeLeft.TreeNodeKeyField = this._leftTreeRow["fieldsqlid"] + "";
this.treeLeft.TreeNodeTextField = this._leftTreeRow["fieldsqlname"] + "";
this.treeLeft.TreeNodeSelectAfter += new TreeViewEventHandler(OnTreeNodeSelectAfter);
if (BaseImpl.HasExistsTable("p_systemTreeNodeSetTab"))
{
DataRow treeNodedr = BaseImpl.TreeNodeSetTab(this.SysModel.MenuTable);
if (treeNodedr != null)
{
specialId = treeNodedr["treeIdField"] + "";
}
}
//if (BaseImpl.HasExistsTable("p_systemTreeNodeSetTab"))
//{
// DataRow treeNodedr = BaseImpl.TreeNodeSetTab(this.SysModel.MenuTable);
// if (treeNodedr != null)
// {
// specialId = treeNodedr["treeIdField"] + "";
// }
//}
DataTable dt = BaseImpl.GetDataTableResult(fieldsql);
if (!string.IsNullOrEmpty(specialId) && dt.Columns.Contains("pid") && dt.Columns.Contains("orderid") && dt.Columns.Contains(specialId))
{