Example #1
0
        private void Grid1_UpdateCommand(object sender, ComponentArt.Web.UI.GridItemEventArgs e)
        {
            GridItem theitem = e.Item;
            int      idRow   = int.Parse(theitem["c_id"] as string);

            ITcodeDictionary engine = new ITcodeDictionary(HELPERS.NewOdbcConn());

            engine.SetTcodeDescription(idRow, theitem["c_u_Description"] as string);
        }
Example #2
0
        private void RegisterNewTcode
            (System.Collections.Specialized.NameValueCollection P,
            HttpResponse httpResponse, string newname, string newdescr)
        {
            ITcodeDictionary engine = new ITcodeDictionary(HELPERS.NewOdbcConn());

            try
            {
                int IDbaby = engine.NewTcodeDictionary(newname);
                engine.SetTcodeDescription(IDbaby, newdescr);
            }
            catch (Exception eee)
            {
                throw new Exception("That TCode name is already registered.");
            }
        }