Example #1
0
        public int Insert(bool isWeb = false)
        {
            if (!JPermission.CheckPermission("BusManagment.Query.JQuery.Insert"))
            {
                return(0);
            }
            QueryTable AT = new QueryTable();

            AT.SetValueProperty(this);
            Code = AT.Insert();
            ClassLibrary.JHistory jHistory = new ClassLibrary.JHistory();
            jHistory.Save("BusManagment.JQuery", Code, 0, 0, 0, "ثبت دستور", "", 0);
            return(Code);
        }
Example #2
0
        public bool Delete()
        {
            if (!JPermission.CheckPermission("BusManagment.Query.JQuery.Delete"))
            {
                return(false);
            }
            QueryTable AT = new QueryTable();

            AT.SetValueProperty(this);
            if (AT.Delete())
            {
                ClassLibrary.JHistory jHistory = new ClassLibrary.JHistory();
                jHistory.Save("BusManagment.JQuery", AT.Code, 0, 0, 0, "حذف دستور", "", 0);
                return(true);
            }
            else
            {
                return(false);
            }
        }