Пример #1
0
        protected virtual void e_ItemPressed(ref SAPbouiCOM.ItemEvent pVal, ref bool BubbleEvent)
        {
            if (pVal.ItemUID == "1" & pVal.BeforeAction)
            {
                /*
                 *
                 * sInput = "Success";
                 * if (string.IsNullOrEmpty(sInput))
                 * {
                 *  BubbleEvent = false;
                 * }
                 * else
                 * {
                 *  bLoadInputEvents = false;
                 * }
                 * */
            }

            if (pVal.ItemUID == "mtSearch" && pVal.BeforeAction)
            {
                int rowNum             = pVal.Row;
                System.Data.DataRow dr = dtOut.NewRow();

                for (int i = 0; i < dtOut.Columns.Count; i++)
                {
                    dr[i] = dtTable.Rows[rowNum - 1][i].ToString();
                }
                dtOut.Rows.Add(dr);
                // BubbleEvent = false;
                //bLoadInputEvents = false;
                IbtChoos.Click();
            }
        }
Пример #2
0
        protected virtual void e_ItemPressed(ref SAPbouiCOM.ItemEvent pVal, ref bool BubbleEvent)
        {
            if (pVal.ItemUID == "1" && pVal.BeforeAction)
            {
                /*
                 *
                 * sInput = "Success";
                 * if (string.IsNullOrEmpty(sInput))
                 * {
                 *  BubbleEvent = false;
                 * }
                 * else
                 * {
                 *  bLoadInputEvents = false;
                 * }
                 * */
            }

            if (pVal.ItemUID.Contains("opt") && pVal.BeforeAction)
            {
                System.Data.DataRow dr = dtOut.NewRow();

                dr[0] = pVal.ItemUID;
                dtOut.Rows.Add(dr);
                IbtChoos.Visible = true;
                IbtChoos.Click();
            }
        }