public void EditType(dynamic data) { var listWrapper = RequestWrapper.Instance().LoadSettingXmlString(@" <settings> <table>pms_materialType</table> <where> <field name='MaterialType' cp='equal'></field> </where> </settings>"); var service = new pms_materialService(); var result = service.Edit(null, listWrapper, data); }
public dynamic Get(RequestWrapper request) { request.LoadSettingXmlString(@" <settings defaultOrderBy='MaterialCode'> <where> <field name='MaterialType' cp='equal' ignoreEmpty='true'></field> </where> </settings>"); var service = new pms_materialService(); var result = service.GetModelListWithPaging(request.ToParamQuery()); return(result); }
public string GetNewCode(string id) { var service = new pms_materialService(); return(service.GetNewMaterialCode(id)); }