コード例 #1
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));
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        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;
        }
コード例 #4
0
        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);
        }
コード例 #5
0
        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);
        }
コード例 #6
0
        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;
        }
コード例 #7
0
        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);
        }
コード例 #8
0
        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);
        }
コード例 #9
0
        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);
        }
コード例 #10
0
        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;
        }
コード例 #11
0
ファイル: MerchantsController.cs プロジェクト: leo0530/Zephyr
        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);
        }
コード例 #12
0
 public string GetNewCode(string id)
 {
     var service = new mms_merchantsService();
     return service.GetNewKey("MerchantsCode", "maxplus").PadLeft(3, '0');
 }
コード例 #13
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);
 }
コード例 #14
0
        public string GetNewCode(string id)
        {
            var service = new mms_merchantsService();

            return(service.GetNewKey("MerchantsCode", "maxplus").PadLeft(3, '0'));
        }