public int Insert() { JLineStationTable AT = new JLineStationTable(); AT.SetValueProperty(this); Code = AT.Insert(); //if (Code > 0) //Nodes.DataTable.Merge(JLines.GetDataTable(Code)); return(Code); }
public bool Delete() { JLineStationTable AT = new JLineStationTable(); AT.SetValueProperty(this); if (AT.Delete()) { //Nodes.Delete(Nodes.CurrentNode); return(true); } else { return(false); } }
//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); } }