Exemple #1
0
        public int Insert()
        {
            //if (!JPermission.CheckPermission("BusManagment.NotPayingBus.JNotPayingBus.Insert"))
            //    return 0;
            NotPayingBusTable AT = new NotPayingBusTable();

            AT.SetValueProperty(this);
            Code = AT.Insert();
            ClassLibrary.JHistory jHistory = new ClassLibrary.JHistory();
            jHistory.Save("BusManagment.JNotPayingBus", Code, 0, 0, 0, "ثبت شیفت", "", 0);
            return(Code);
        }
Exemple #2
0
        public bool Delete()
        {
            //if (!JPermission.CheckPermission("BusManagment.NotPayingBus.JNotPayingBus.Delete"))
            //    return false;
            NotPayingBusTable AT = new NotPayingBusTable();

            AT.SetValueProperty(this);
            if (AT.Delete())
            {
                ClassLibrary.JHistory jHistory = new ClassLibrary.JHistory();
                jHistory.Save("BusManagment.JNotPayingBus", AT.Code, 0, 0, 0, "حذف شیفت", "", 0);
                return(true);
            }
            else
            {
                return(false);
            }
        }