/// <summary> /// 地址:GET api/pms/merchant/getnames /// 功能:取得收料单供应商 /// 调用:供应商自动完成 /// </summary> public List <dynamic> GetNames(string q) { var ReceiveService = new pms_merchantsService(); var pQuery = ParamQuery.Instance().Select("top 10 MerchantsName").AndWhere("MerchantsName", q, Cp.StartWithPY); return(ReceiveService.GetDynamicList(pQuery)); }
public void EditType(dynamic data) { var listWrapper = RequestWrapper.Instance().LoadSettingXmlString(@" <settings> <table>pms_merchantsType</table> <where> <field name='MerchantsTypeCode' cp='equal'></field> </where> </settings>"); var service = new pms_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> <field name='MerchantsName' cp='like'></field> </where> </settings>"); var service = new pms_merchantsService(); var result = service.GetModelListWithPaging(request.ToParamQuery()); return(result); }
public string GetNewCode(string id) { var service = new pms_merchantsService(); return(service.GetNewKey("MerchantsCode", "maxplus").PadLeft(3, '0')); }