示例#1
0
 /// <summary>
 /// ��ѯ���ֲִ����ű��
 /// </summary>
 /// <returns></returns>
 public DataTable GetDeptCode()
 {
     using (PersistentManager dbPm = new PersistentManager())
     {
         DownDeptDao dao = new DownDeptDao();
         return dao.GetDeptCode();
     }
 }
示例#2
0
 /// <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);
     }
 }
示例#3
0
 /// <summary>
 /// ��������������ӵ����ݿ�
 /// </summary>
 /// <param name="ds"></param>
 public void Insert(DataSet ds)
 {
     using (PersistentManager dbPm = new PersistentManager())
     {
         DownDeptDao dao = new DownDeptDao();
         dao.Insert(ds);
     }
 }