/// <summary> /// 地址:GET api/mms/merchant/getnames /// 功能:取得收料单供应商 /// 调用:供应商自动完成 /// </summary> public List <dynamic> GetNames(string q) { var ReceiveService = new mms_merchantsService(); var pQuery = ParamQuery.Instance().Select("top 10 MerchantsName").AndWhere("MerchantsName", q, Cp.StartWithPY); return(ReceiveService.GetDynamicList(pQuery)); }
public void Edit(dynamic data) { var listWrapper = RequestWrapper.Instance().LoadSettingXmlString(@" <settings> <table>mms_merchants</table> <where> <field name='MerchantsCode' cp='equal'></field> </where> </settings>"); var service = new mms_merchantsService(); var result = service.Edit(null, listWrapper, data); }
public dynamic Get(RequestWrapper request) { request.LoadSettingXmlString(@" <settings defaultOrderBy='MerchantsCode'> <where> <field name='MerchantsTypeCode' cp='equal' ignoreEmpty='true'></field> </where> </settings>"); var service = new mms_merchantsService(); var result = service.GetModelListWithPaging(request.ToParamQuery()); return result; }
public void EditType(dynamic data) { var listWrapper = RequestWrapper.Instance().LoadSettingXmlString(@" <settings> <table>mms_merchantsType</table> <where> <field name='MerchantsTypeCode' cp='equal'></field> </where> </settings>"); var service = new mms_merchantsService(); var result = service.Edit(null, listWrapper, data); }
public void Edit(dynamic data) { var tabsWrapper = RequestWrapper.InstanceArray(1); tabsWrapper[0].SetXml(@" <settings> <table>mms_merchants</table> <where> <c column='MerchantsCode' symbol='equal'></c> </where> </settings>"); var service = new mms_merchantsService(); var result = service.Edit(data,null,tabsWrapper); }
public dynamic Get(RequestWrapper request) { request.SetXml(@" <settings> <where> <c column='MerchantsTypeCode' symbol='equal' ignore='empty'></c> </where> <orderby>MerchantsCode</orderby> </settings>"); var service = new mms_merchantsService(); var result = service.GetModelListWithPaging(request.ToParamQuery()); return result; }
public dynamic Get(RequestWrapper request) { request.LoadSettingXmlString(@" <settings defaultOrderBy='MerchantsCode'> <where> <field name='MerchantsTypeCode' cp='equal' ignoreEmpty='true'></field> </where> </settings>"); var service = new mms_merchantsService(); var result = service.GetModelListWithPaging(request.ToParamQuery()); return(result); }
public void EditType(dynamic data) { var tabsWrapper = RequestWrapper.InstanceArray(1); tabsWrapper[0].SetXml(@" <settings> <table>mms_merchantsType</table> <where> <c column='MerchantsTypeCode' symbol='equal'></c> </where> </settings>"); var service = new mms_merchantsService(); var result = service.Edit(data, null, tabsWrapper); }
public dynamic Get(RequestWrapper request) { request.SetXml(@" <settings> <where> <c column='MerchantsTypeCode' symbol='equal' ignore='empty'></c> </where> <orderby>MerchantsCode</orderby> </settings>"); var service = new mms_merchantsService(); var result = service.GetModelListWithPaging(request.ToParamQuery()); return(result); }
public dynamic Get(RequestWrapper query) { query.LoadSettingXmlString(@" <settings defaultOrderBy='ID'> <select>*</select> <from>mms_merchants</from> <where defaultForAll='true' defaultCp='equal' defaultIgnoreEmpty='true' > <field name='MerchantsTypeName' cp='equal'></field> <field name='RegisterFund' cp='equal'></field> </where> </settings>"); var service = new mms_merchantsService(); var pQuery = query.ToParamQuery(); var result = service.GetDynamicListWithPaging(pQuery); return result; }
public dynamic Get(RequestWrapper query) { query.LoadSettingXmlString(@" <settings defaultOrderBy='ID'> <select>*</select> <from>mms_merchants</from> <where defaultForAll='true' defaultCp='equal' defaultIgnoreEmpty='true' > <field name='MerchantsTypeName' cp='equal'></field> <field name='RegisterFund' cp='equal'></field> </where> </settings>"); var service = new mms_merchantsService(); var pQuery = query.ToParamQuery(); var result = service.GetDynamicListWithPaging(pQuery); return(result); }
public string GetNewCode(string id) { var service = new mms_merchantsService(); return service.GetNewKey("MerchantsCode", "maxplus").PadLeft(3, '0'); }
/// <summary> /// 地址:GET api/mms/merchant/getnames /// 功能:取得收料单供应商 /// 调用:供应商自动完成 /// </summary> public List<dynamic> GetNames(string q) { var ReceiveService = new mms_merchantsService(); var pQuery = ParamQuery.Instance().Select("top 10 MerchantsName").AndWhere("MerchantsName", q, Cp.StartWithPY); return ReceiveService.GetDynamicList(pQuery); }
public string GetNewCode(string id) { var service = new mms_merchantsService(); return(service.GetNewKey("MerchantsCode", "maxplus").PadLeft(3, '0')); }