Exemple #1
0
        public int Insert()
        {
            if (!ClassLibrary.JPermission.CheckPermission("AVL.Accounting.JAVLPaid.Insert"))
            {
                return(0);
            }
            JAVLPaidTable AT = new JAVLPaidTable();

            AT.SetValueProperty(this);
            code = AT.Insert();


            ClassLibrary.JHistory jHistory = new ClassLibrary.JHistory();
            jHistory.Save("AVL.Accounting.JAVLPaid", code, 0, 0, 0, "ثبت فیش پرداختی", "", 0);
            return(code);
        }
Exemple #2
0
        public bool Update()
        {
            if (!ClassLibrary.JPermission.CheckPermission("AVL.Accounting.JAVLPaid.Update"))
            {
                return(false);
            }
            JAVLPaidTable AT = new JAVLPaidTable();

            AT.SetValueProperty(this);
            if (AT.Update())
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Exemple #3
0
        public bool Delete(bool isWeb = false)
        {
            if (!ClassLibrary.JPermission.CheckPermission("AVL.Accounting.JAVLPaid.Delete"))
            {
                return(false);
            }
            JAVLPaidTable AT = new JAVLPaidTable();

            AT.SetValueProperty(this);
            if (AT.Delete())
            {
                if (!isWeb)
                {
                    Nodes.Delete(Nodes.CurrentNode);
                }
                ClassLibrary.JHistory jHistory = new ClassLibrary.JHistory();
                jHistory.Save("AVL.Accounting.JAVLPaid", AT.Code, 0, 0, 0, "حذف فیش", "", 0);
                return(true);
            }
            else
            {
                return(false);
            }
        }