Exemple #1
0
        public bool Delete()
        {
            JAutomobileTable AT = new JAutomobileTable();

            AT.SetValueProperty(this);
            return(AT.Delete());
        }
Exemple #2
0
        public int Insert()
        {
            JAutomobileTable AT = new JAutomobileTable();

            AT.SetValueProperty(this);


            /*
             * AVL Project
             */
            if (AVL.Tools.IsAvlProject())
            {
                JAutomobileDefine au = new JAutomobileDefine();
                au.GetData(this.Plaque);
                if (au.Code < 1)
                {
                    Code = AT.Insert();
                    if (Code > 0)
                    {
                        InsertAVLObjecList();

                        return(Code);
                    }
                }
                else
                {
                    return(-1);
                }
            }
            /*		 */

            if (Find(Plaque))
            {
                Code = AT.Insert();
                return(Code);
            }
            return(0);
        }