SVN r810
SVN-Revision: r810
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user