コード例 #1
0
 private void CustomerEntryForm_AfterToolClick(object sender, Ice.Lib.Framework.AfterToolClickEventArgs args)
 {
     if (args.Tool.Key == "ClearTool")
     {
         this.LeadDistributorContact.ResetText();
     }
 }
コード例 #2
0
 private void PartForm_AfterToolClick(object sender, Ice.Lib.Framework.AfterToolClickEventArgs args)
 {
     switch (args.Tool.Key)
     {
     case "DeleteTool":
         DeleteCustXPrtRecord();
         break;
     }
 }
コード例 #3
0
ファイル: quote.cs プロジェクト: xdents/WebApplication3
 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;
     }
 }
コード例 #4
0
        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;
            }
        }