webservice 使用

 

  [WebMethod]
        public List<EntityAdmin_Dept>  GetAdmin_DeptChild(string InstitutionID)
        {

            DataCondition<EntityAdmin_Dept.Field> conditionIn = new DataCondition<EntityAdmin_Dept.Field>();
            conditionIn.Add("{0}='" + InstitutionID + "'", EntityAdmin_Dept.Field.Dept_ParentId);
            List<EntityAdmin_Dept> deptlistIn = DbAdmin_Dept.ListView(conditionIn).ToList();
            return deptlistIn;
        }

  

 

ServiceAdmin_Dept.Admin_DeptSoapClient adc=new ServiceAdmin_Dept.Admin_DeptSoapClient();
List<ServiceAdmin_Dept.EntityAdmin_Dept> deptlistIn =adc.GetAdmin_DeptChild(Program.InstitutionID).ToList();

 

posted on 2013-06-10 09:04  gwazy  阅读(191)  评论(0编辑  收藏  举报

导航