private void CustomerEntryForm_AfterToolClick(object sender, Ice.Lib.Framework.AfterToolClickEventArgs args) { if (args.Tool.Key == "ClearTool") { this.LeadDistributorContact.ResetText(); } }
private void PartForm_AfterToolClick(object sender, Ice.Lib.Framework.AfterToolClickEventArgs args) { switch (args.Tool.Key) { case "DeleteTool": DeleteCustXPrtRecord(); break; } }
private void MainController_AfterToolClickForUD01(object sender, Ice.Lib.Framework.AfterToolClickEventArgs args) { // EpiMessageBox.Show(args.Tool.Key); switch (args.Tool.Key) { case "DeleteTool": if ((args.Cancelled == false)) { DeleteUD01Record(); } break; } }
private void PartForm_AfterToolClick(object sender, Ice.Lib.Framework.AfterToolClickEventArgs args) { switch (args.Tool.Key) { case "NewMenuTool": var ctxdata = oTrans.Factory("CallContextBpmData"); var edvPart = oTrans.Factory("Part"); if (ctxdata.HasRow && edvPart.HasRow) { var nextseq = GetNextPartSeq(); if (nextseq == 0) { MessageBox.Show("Unable to get next part sequence from UDCodeType AutoPart!", "Next Sequence Not Found", MessageBoxButtons.OK, MessageBoxIcon.Error); break; } edvPart.CurrentDataRow["PartNum"] = ctxdata.CurrentDataRow["ShortChar01"] + nextseq.ToString("-000000#"); edvPart.Notify(new EpiNotifyArgs(oTrans, edvPart.Row, EpiTransaction.NotifyType.Initialize)); } break; default: break; } }