public void EditType(dynamic data)
        {
            var listWrapper = RequestWrapper.Instance().LoadSettingXmlString(@"
<settings>
    <table>mms_materialType</table>
    <where>
        <field name='MaterialType' cp='equal'></field>
    </where>
</settings>");
            var service = new mms_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 mms_materialService();
            var result = service.GetModelListWithPaging(request.ToParamQuery());
            return result;
        }
        public void Edit(dynamic data)
        {
            var tabsWrapper = RequestWrapper.InstanceArray(1);
            tabsWrapper[0].SetXml(@"
<settings>
    <table>mms_material</table>
    <where>
        <c column='MaterialCode' symbol='equal'></c>
    </where>
</settings>");
            var service = new mms_materialService();
            var result = service.Edit(data,null,tabsWrapper);
        }
        public dynamic Get(RequestWrapper request)
        {
            request.SetXml(@"
<settings>
   <where>
        <c column='MaterialType' symbol='equal' ignore='empty'></c>
    </where>
    <orderby>MaterialCode</orderby>
</settings>");
            var service = new mms_materialService();
            var result = service.GetModelListWithPaging(request.ToParamQuery());
            return result;
        }
 public string GetNewCode(string id)
 {
     var service = new mms_materialService();
     return service.GetNewMaterialCode(id);
 }
 //弹出材料选择窗口数据
 public dynamic GetMaterial(RequestWrapper request)
 {
     var service = new mms_materialService();
     return service.GetDynamicListWithPaging(request.ToParamQuery());
 }