コード例 #1
0
        public bool Update()
        {
            JBusInstallAndUnistallDeviseTable AT = new JBusInstallAndUnistallDeviseTable();

            AT.SetValueProperty(this);
            ClassLibrary.JHistory jHistory = new ClassLibrary.JHistory();
            jHistory.Save("BusManagment.JBusInstallAndUnistallDevise", AT.Code, 0, 0, 0, "ویرایش نصب و فک دستگاه اتوبوس", "", 0);
            return(AT.Update());
        }
コード例 #2
0
        public int Insert(JDataBase db = null)
        {
            JBusInstallAndUnistallDeviseTable AT = new JBusInstallAndUnistallDeviseTable();

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

            ClassLibrary.JHistory jHistory = new ClassLibrary.JHistory();
            jHistory.Save("BusManagment.JBusInstallAndUnistallDevise", Code, 0, 0, 0, "ثبت نصب و فک دستگاه اتوبوس", "", 0);
            return(Code);
        }