public override void EntryButtonCellClick(BOS.Core.DynamicForm.PlugIn.Args.EntryButtonCellClickEventArgs e)
{
base.EntryButtonCellClick(e);
if (e.Row == -1) return;
string billNo = this.View.Model.GetValue<string>(e.FieldKey, e.Row, "", e.EntryKey);
string formId = this.View.Model.GetValue<string>("单据标知字段", "", e.EntryKey); //可以写死
QueryBuilderParemeter queryParam = new QueryBuilderParemeter();
queryParam.SelectItems.Add(new SelectorItemInfo("FID"));
queryParam.FilterClauseWihtKey = string.Format(" FBillNo = '{0}' ", billNo);
queryParam.FormId = formId;
if (!formId.IsNullOrEmptyOrWhiteSpace())
{
var objs = QueryServiceHelper.GetDynamicObjectCollection(this.Context, queryParam);
if (objs != null && objs.Count > 0)
{
long billId = Convert.ToInt64(objs[0][0]);
MFGBillUtil.ShowBillForm(this.View, formId, billId, OperationStatus.VIEW);
}
}
}