Esempio n. 1
0
        public int Insert()
        {
            JLineStationTable AT = new JLineStationTable();

            AT.SetValueProperty(this);
            Code = AT.Insert();
            //if (Code > 0)
            //Nodes.DataTable.Merge(JLines.GetDataTable(Code));
            return(Code);
        }
Esempio n. 2
0
        public bool Delete()
        {
            JLineStationTable AT = new JLineStationTable();

            AT.SetValueProperty(this);
            if (AT.Delete())
            {
                //Nodes.Delete(Nodes.CurrentNode);
                return(true);
            }
            else
            {
                return(false);
            }
        }
Esempio n. 3
0
        //public JLineStation(int pCode)
        //{
        //    if (pCode > 0)
        //        this.GetData(pCode);
        //}
        public bool Update()
        {
            JLineStationTable AT = new JLineStationTable();

            AT.SetValueProperty(this);
            if (AT.Update())
            {
                //Nodes.Refreshdata(Nodes.CurrentNode, JLines.GetDataTable(Code).Rows[0]);
                return(true);
            }
            else
            {
                return(false);
            }
        }