Esempio n. 1
0
        public int Insert(bool isWeb = false)
        {
            //if (!JPermission.CheckPermission("BusManagment.Query.JQueryAuto.Insert"))
            //    return 0;
            QueryTableAuto AT = new QueryTableAuto();

            AT.SetValueProperty(this);
            Code = AT.Insert();
            ClassLibrary.JHistory jHistory = new ClassLibrary.JHistory();
            jHistory.Save("BusManagment.JQueryAuto", Code, 0, 0, 0, "ثبت کوئری", "", 0);
            return(Code);
        }
Esempio n. 2
0
        public bool Delete()
        {
            //if (!JPermission.CheckPermission("BusManagment.Query.JQueryAuto.Delete"))
            //    return false;
            QueryTableAuto AT = new QueryTableAuto();

            AT.SetValueProperty(this);
            if (AT.Delete())
            {
                ClassLibrary.JHistory jHistory = new ClassLibrary.JHistory();
                jHistory.Save("BusManagment.JQueryAuto", AT.Code, 0, 0, 0, "حذف کوئری", "", 0);
                return(true);
            }
            else
            {
                return(false);
            }
        }