Ejemplo n.º 1
0
        public bool Update(JDataBase pDB)
        {
            JAUTPaymentTable AT = new JAUTPaymentTable();

            AT.SetValueProperty(this);
            if (AT.Update(pDB))
            {
                Nodes.Refreshdata(Nodes.CurrentNode, JAUTPayments.GetDataTable(pDB, Code).Rows[0]);
                ClassLibrary.JHistory jHistory = new ClassLibrary.JHistory();
                jHistory.Save("BusManagment.JAUTPayment", AT.Code, 0, 0, 0, "ویرایش سند پرداخت", "", 0);
                return(true);
            }
            else
            {
                return(false);
            }
        }
Ejemplo n.º 2
0
        public int Insert(JDataBase pDB, bool isWebProject)
        {
            //if (!JPermission.CheckPermission("BusManagment.Documents.JAUTPayment.Insert"))
            //   return 0;

            JAUTPaymentTable AT = new JAUTPaymentTable();

            AT.SetValueProperty(this);
            Code = AT.Insert(pDB);
            if (Code > 0)
            {
                if (!isWebProject)
                {
                    Nodes.DataTable.Merge(JAUTPayments.GetDataTable(pDB, Code));
                }
            }
            ClassLibrary.JHistory jHistory = new ClassLibrary.JHistory();
            jHistory.Save("BusManagment.JAUTPayment", Code, 0, 0, 0, "ثبت سند پرداخت", "", 0);
            return(Code);
        }