예제 #1
0
파일: Payment.cs 프로젝트: CoolWirya/BS
        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);
            }
        }
예제 #2
0
파일: Payment.cs 프로젝트: CoolWirya/BS
        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);
        }