Esempio n. 1
0
        public int Insert(bool isweb = false)
        {
            if (!JPermission.CheckPermission("BusManagment.OnlineReader.OnlineReaderConfig.Insert"))
            {
                return(0);
            }
            OnlineReaderConfigTable ORC = new OnlineReaderConfigTable();

            ORC.SetValueProperty(this);
            Code = ORC.Insert(0, true);
            ClassLibrary.JHistory jHistory = new ClassLibrary.JHistory();
            jHistory.Save("BusManagment.OnlineReaderConfig", Code, 0, 0, 0, "تنظیمات کارتخوان آنلاین", "", 0);
            return(Code);
        }
Esempio n. 2
0
        public bool Update(bool isWeb = false)

        {
            ClassLibrary.JConnection C  = new ClassLibrary.JConnection();
            ClassLibrary.JDataBase   db = new ClassLibrary.JDataBase(C.GetConnection("Server02", 0));
            try
            {
                OnlineReaderConfigTable ORC = new OnlineReaderConfigTable();
                ORC.SetValueProperty(this);
                return(ORC.Update(db));
            }
            finally
            {
                db.Dispose();
            }
        }