二开打开任意单据原创
7人赞赏了该文章
330次浏览
编辑于2023年10月31日 16:47:07
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 }
赞 7
7人点赞
还没有人点赞,快来当第一个点赞的人吧!
打赏
0人打赏
还没有人打赏,快来当第一个打赏的人吧!
推荐阅读