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();