Ejemplo n.º 1
0
        public bool Update()
        {
            JBusDeviseTable AT = new JBusDeviseTable();

            AT.SetValueProperty(this);
            ClassLibrary.JHistory jHistory = new ClassLibrary.JHistory();
            jHistory.Save("BusManagment.JBusDevise", AT.Code, 0, 0, 0, "ویرایش دستگاه اتوبوس", "", 0);
            return(AT.Update());
        }
Ejemplo n.º 2
0
        public int Insert(JDataBase db = null)
        {
            JBusDeviseTable AT = new JBusDeviseTable();

            AT.SetValueProperty(this);
            if (db == null)
            {
                Code = AT.Insert();
            }
            else
            {
                Code = AT.Insert(db);
            }

            ClassLibrary.JHistory jHistory = new ClassLibrary.JHistory();
            jHistory.Save("BusManagment.JBusDevise", Code, 0, 0, 0, "ثبت دستگاه اتوبوس", "", 0);

            return(Code);
        }