Beispiel #1
0
        public bool Update()
        {
            JBusFailureTable AT = new JBusFailureTable();

            AT.SetValueProperty(this);
            ClassLibrary.JHistory jHistory = new ClassLibrary.JHistory();
            jHistory.Save("BusManagment.JBusFailure", AT.Code, 0, 0, 0, "ویرایش دلیل عدم کارکرد اتوبوس", "", 0);
            return(AT.Update());
        }
Beispiel #2
0
        public int Insert(JDataBase db = null)
        {
            JBusFailureTable AT = new JBusFailureTable();

            AT.SetValueProperty(this);
            if (db == null)
            {
                Code = AT.Insert();
            }
            else
            {
                Code = AT.Insert(db);
            }
            ClassLibrary.JHistory jHistory = new ClassLibrary.JHistory();
            jHistory.Save("BusManagment.JBusFailure", Code, 0, 0, 0, "ثبت دلیل عدم کارکرد اتوبوس", "", 0);
            return(Code);
        }