public void GetAllData() { DataSet ds = SysTools.basicService.GetAllDepartment(); TCOM_DEPT.Clear(); DataManager.ImpDataSet(ds.Tables[0], this.TCOM_DEPT); TCOM_DEPT.AcceptChanges(); }
public void Save() { DataTable tb = this.TCOM_DEPT.GetChanges(); if (tb != null) { DataSet dst = new DataSet(); dst.Tables.Add(tb); SysTools.basicSer.SaveTable(dst, "TCOM_DEPT"); TCOM_DEPT.AcceptChanges(); } }