二开打开任意单据
public override void BarItemClick(BarItemClickEventArgs e) { base.BarItemClick(e); #region if (e.BarItemKey.EqualsIgnoreCase("BEC_tbButton")) { string FBILLNO = Convert.ToString(this.View.Model.GetValue("F_BEC_BJDH")); if (StringUtils.IsEmpty(FBILLNO) || !FBILLNO.Contains("MNBJD")) { this.View.ShowErrMessage("单据编号为空!"); return; } List<SelectorItemInfo> Fields = new List<SelectorItemInfo>(); Fields.Add(new SelectorItemInfo("FID")); OQLFilter filter = new OQLFilter(); filter.Add(new OQLFilterHeadEntityItem() { FilterString = string.Format(" FBILLNO = '{0}' ", FBILLNO) }); DynamicObject[] baojiadan = BusinessDataServiceHelper.Load(this.Context, "Sal_SimulateQuotation", Fields, filter); if (baojiadan.Length > 0) { BillShowParameter showParam = new BillShowParameter(); showParam.FormId = "Sal_SimulateQuotation"; showParam.Status = OperationStatus.VIEW; showParam.PKey = Convert.ToString(baojiadan[0]["Id"]); showParam.OpenStyle.ShowType = ShowType.MainNewTabPage; this.View.ShowForm(showParam); } } #endregion }
二开打开任意单据
public override void BarItemClick(BarItemClickEventArgs e) { base.BarItemClick(e); #region if (e.BarItemKey.EqualsIgn...
点击下载文档
本文2024-09-16 17:13:09发表“云星空知识”栏目。
本文链接:https://wenku.my7c.com/article/kingdee-k3cloud-14298.html
您需要登录后才可以发表评论, 登录登录 或者 注册
最新文档
热门文章