Beispiel #1
0
        public int Insert(JDataBase db = null)
        {
            if (GetDailyData(BusNumber, StartDate, EndDate))
            {
                State = 0;
                Update();
                return(Code);
            }
            else
            {
                JBusPrintReportTable AT = new JBusPrintReportTable();
                AT.SetValueProperty(this);
                if (db == null)
                {
                    Code = AT.Insert();
                }
                else
                {
                    Code = AT.Insert(db);
                }
                ClassLibrary.JHistory jHistory = new ClassLibrary.JHistory();
                // jHistory.Save("BusManagment.JBusPrintReport", Code, 0, 0, 0, "ثبت پرینت اتوبوس", "", 0);

                return(Code);
            }
        }
Beispiel #2
0
        public bool Update()
        {
            JBusPrintReportTable AT = new JBusPrintReportTable();

            AT.SetValueProperty(this);
            ClassLibrary.JHistory jHistory = new ClassLibrary.JHistory();
            //    jHistory.Save("BusManagment.JBusPrintReport", AT.Code, 0, 0, 0, "ویرایش پرینت اتوبوس", "", 0);
            return(AT.Update());
        }