public int Insert(bool isWeb = false)
        {
            JLineDailyTransactionCountTable AT = new JLineDailyTransactionCountTable();

            AT.SetValueProperty(this);
            Code = AT.Insert();
            if (Code > 0 && !isWeb)
            {
                Nodes.DataTable.Merge(JLines.GetDataTable(Code));
            }
            ClassLibrary.JHistory jHistory = new ClassLibrary.JHistory();
            jHistory.Save("BusManagment.JLineDailyTransactionCount", Code, 0, 0, 0, "ثبت متوسط درآمد خطوط", "", 0);
            return(Code);
        }
        public bool Delete(bool isWeb = false)
        {
            JLineDailyTransactionCountTable AT = new JLineDailyTransactionCountTable();

            AT.SetValueProperty(this);
            if (AT.Delete())
            {
                if (!isWeb)
                {
                    Nodes.Delete(Nodes.CurrentNode);
                }
                ClassLibrary.JHistory jHistory = new ClassLibrary.JHistory();
                jHistory.Save("BusManagment.JLineDailyTransactionCount", AT.Code, 0, 0, 0, "حذف متوسط درآمد خطوط", "", 0);
                return(true);
            }
            else
            {
                return(false);
            }
        }