public void Edit(dynamic data)
        {
            var listWrapper = RequestWrapper.Instance().SetXml(@"
<settings>
    <table>
        mms_product
    </table>
    <where>
        <c column='ID' symbol='equal'></c>
    </where>
</settings>");
            var service     = new mms_productService();
            var result      = service.Edit(null, listWrapper, data);
        }
Esempio n. 2
0
        public void Edit(dynamic data)
        {
            var listWrapper = RequestWrapper.Instance().LoadSettingXmlString(@"
<settings>
    <table>
        mms_product
    </table>
    <where>
        <field name='ID' cp='equal'></field>
    </where>
</settings>");
            var service     = new mms_productService();
            var result      = service.Edit(null, listWrapper, data);
        }
        public dynamic Get(RequestWrapper query)
        {
            query.LoadSettingXmlString(@"
<settings defaultOrderBy='ID'>
    <select>*</select>
    <from>mms_product</from>
    <where defaultForAll='true' defaultCp='equal' defaultIgnoreEmpty='true' >
        <field name='ProductName'     cp='like'></field>
        <field name='Color'           cp='equal' ></field>
        <field name='Price'           cp='equal'></field>
        <field name='Unit'            cp='equal'></field>
        <field name='Remark'          cp='like'></field>
        <field name='CreateDate'      cp='daterange'></field>
    </where>
</settings>");
            var service = new mms_productService();
            var pQuery = query.ToParamQuery();
            var result = service.GetDynamicListWithPaging(pQuery);
            return result;
        }
Esempio n. 4
0
        public dynamic Get(RequestWrapper query)
        {
            query.LoadSettingXmlString(@"
<settings defaultOrderBy='ID'>
    <select>*</select>
    <from>mms_product</from>
    <where defaultForAll='true' defaultCp='equal' defaultIgnoreEmpty='true' >
        <field name='ProductName'     cp='like'></field>
        <field name='Color'           cp='equal' ></field>
        <field name='Price'           cp='equal'></field>
        <field name='Unit'            cp='equal'></field>
        <field name='Remark'          cp='like'></field>
        <field name='CreateDate'      cp='daterange'></field>
    </where>
</settings>");
            var service = new mms_productService();
            var pQuery  = query.ToParamQuery();
            var result  = service.GetDynamicListWithPaging(pQuery);

            return(result);
        }
        public dynamic Get(RequestWrapper query)
        {
            query.SetXml(@"
<settings>
    <select>*</select>
    <from>mms_product</from>
    <where>
        <c column='ProductName'   ignore='empty'  symbol='like'></c>
        <c column='Color'         ignore='empty'  symbol='equal' ></c>
        <c column='Price'         ignore='empty'  symbol='equal'></c>
        <c column='Unit'          ignore='empty'  symbol='equal'></c>
        <c column='Remark'        ignore='empty'  symbol='like'></c>
        <c column='CreateDate'    ignore='empty'  symbol='daterange'></c>
    </where>
    <orderby>ID</orderby>
</settings>");
            var service = new mms_productService();
            var pQuery = query.ToParamQuery();
            var result = service.GetDynamicListWithPaging(pQuery);
            return result;
        }
        public dynamic Get(RequestWrapper query)
        {
            query.SetXml(@"
<settings>
    <select>*</select>
    <from>mms_product</from>
    <where>
        <c column='ProductName'   ignore='empty'  symbol='like'></c>
        <c column='Color'         ignore='empty'  symbol='equal' ></c>
        <c column='Price'         ignore='empty'  symbol='equal'></c>
        <c column='Unit'          ignore='empty'  symbol='equal'></c>
        <c column='Remark'        ignore='empty'  symbol='like'></c>
        <c column='CreateDate'    ignore='empty'  symbol='daterange'></c>
    </where>
    <orderby>ID</orderby>
</settings>");
            var service = new mms_productService();
            var pQuery  = query.ToParamQuery();
            var result  = service.GetDynamicListWithPaging(pQuery);

            return(result);
        }
        public void Edit(dynamic data)
        {
            var listWrapper = RequestWrapper.Instance().LoadSettingXmlString(@"
<settings>
    <table>
        mms_product
    </table>
    <where>
        <field name='ID' cp='equal'></field>
    </where>
</settings>");
            var service = new mms_productService();
            var result = service.Edit(null, listWrapper, data);
        }
        public void Edit(dynamic data)
        {
            var listWrapper = RequestWrapper.Instance().SetXml(@"
<settings>
    <table>
        mms_product
    </table>
    <where>
        <c column='ID' symbol='equal'></c>
    </where>
</settings>");
            var service = new mms_productService();
            var result = service.Edit(null, listWrapper, data);
        }