SVN-Revision: r810
This commit is contained in:
tdx
2025-06-29 02:55:51 +00:00
parent 30f66dfad4
commit 99460300ed
2 changed files with 28 additions and 43 deletions
@@ -256,18 +256,11 @@ namespace Lskj.Control.Model
ToolStripMenuItem item = sender as ToolStripMenuItem;
DXMenuItem items = sender as DXMenuItem;
GridRightMenuModel model = item == null ? items.Tag as GridRightMenuModel : item.Tag as GridRightMenuModel;
if (!string.IsNullOrEmpty(model.UnionZTid))
{
string condition = string.Format("where ShowName ='{0}'", ERPInfo.Instance.AccountBook);
DataTable dt = MainImpl.GetLedgerList(condition);
DataRow RT = BaseImpl.GetDataRowResult($"select * from p_sydbGroupTab where ID={model.UnionZTid}");
AccountItem = dt.Rows[0];
ToDBatching(RT, AccountItem);
}
DataRow[] rowArray = GetSelectedRows();
GridRightMenuModel model = item == null ? items.Tag as GridRightMenuModel : item.Tag as GridRightMenuModel;
if (!model.Mergeexec && !model.MoreClick && rowArray.Length > 1)
{
MessageUtil.Show(string.Format(ResourceKeys.ExecRightMenuOnlyOne, model.MenuName));
@@ -279,7 +272,15 @@ namespace Lskj.Control.Model
MessageUtil.Show(ResourceKeys.SelectRowIsNull);
return;
}
if (!string.IsNullOrEmpty(model.UnionZTid))
{
string UnionZTid = ReplaceHelper.ReplaceRowParam(rowArray[0], model.UnionZTid);
string condition = string.Format("where ShowName ='{0}'", ERPInfo.Instance.AccountBook);
DataTable dt = MainImpl.GetLedgerList(condition);
DataRow RT = BaseImpl.GetDataRowResult($"select * from p_sydbGroupTab where ID={UnionZTid}");
AccountItem = dt.Rows[0];
ToDBatching(RT, AccountItem);
}
try
{
this.MenuStripClickBefore(item, model);