/// <summary> /// ��ѯ���ֲִ����ű�� /// </summary> /// <returns></returns> public DataTable GetDeptCode() { using (PersistentManager dbPm = new PersistentManager()) { DownDeptDao dao = new DownDeptDao(); return dao.GetDeptCode(); } }
/// <summary> /// ����Ӫ��ϵͳ������Ϣ /// </summary> /// <returns></returns> public DataTable GetDeptInfo(string deptCode) { using (PersistentManager dbPm = new PersistentManager("YXConnection")) { DownDeptDao dao = new DownDeptDao(); dao.SetPersistentManager(dbPm); return dao.GetDeptInfo(deptCode); } }
/// <summary> /// ��������������ӵ����ݿ� /// </summary> /// <param name="ds"></param> public void Insert(DataSet ds) { using (PersistentManager dbPm = new PersistentManager()) { DownDeptDao dao = new DownDeptDao(); dao.Insert(ds); } }