public void Edit(dynamic data) { var listWrapper = RequestWrapper.Instance().LoadSettingXmlString(@" <settings> <table> SYS_BN_Supplier </table> <where> <field name='ID' cp='equal'></field> </where> </settings>"); var service = new SYS_BN_SupplierService(); var result = service.Edit(null, listWrapper, data); }
public dynamic Get(RequestWrapper query) { query.LoadSettingXmlString(@" <settings defaultOrderBy='ID'> <select>*</select> <from>SYS_BN_Supplier</from> <where defaultForAll='true' defaultCp='equal' defaultIgnoreEmpty='true'> <field name='SupplierName' cp='like'></field> <field name='IsEnable' cp='equal'></field> </where> </settings>"); var service = new SYS_BN_SupplierService(); var pQuery = query.ToParamQuery(); var result = service.GetDynamicListWithPaging(pQuery); return(result); }