예제 #1
0
        public void GetAllData()
        {
            DataSet ds = SysTools.basicService.GetAllDepartment();

            TCOM_DEPT.Clear();
            DataManager.ImpDataSet(ds.Tables[0], this.TCOM_DEPT);
            TCOM_DEPT.AcceptChanges();
        }
예제 #2
0
        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();
            }
        }