public override void EntryButtonCellClick(EntryButtonCellClickEventArgs e)
{
if (e.FieldKey.EqualsIgnoreCase("FBILLNO") && e.Row >= 0)
{
BillShowParameter billShowParameter = new BillShowParameter
{
Status = OperationStatus.VIEW,
PKey = this.Model.GetValue("FID", e.Row).ToString()
};
billShowParameter.PageId = PLMGuid.NewGuidString();
billShowParameter.OpenStyle.ShowType = ShowType.MainNewTabPage;
billShowParameter.FormId = "PUR_Requisition";
this.View.ShowForm(billShowParameter);
}
if (e.FieldKey.EqualsIgnoreCase("FPURCHASEBILLNO") && e.Row >= 0)
{
BillShowParameter billShowParameter2 = new BillShowParameter
{
Status = OperationStatus.VIEW,
PKey = this.Model.GetValue("FSurchaseId", e.Row).ToString()
};
billShowParameter2.PageId = PLMGuid.NewGuidString();
billShowParameter2.OpenStyle.ShowType = ShowType.MainNewTabPage;
billShowParameter2.FormId = "PUR_PurchaseOrder";
this.View.ShowForm(billShowParameter2);
}
base.EntryButtonCellClick(e);
}
推荐阅读