Exemplo n.º 1
0
        public void Edit(dynamic data)
        {
            var listWrapper = RequestWrapper.Instance().LoadSettingXmlString(@"
<settings>
    <table>
        psi_supplier
    </table>
    <where>
        <field name='Id' cp='equal'></field>
    </where>
</settings>");
            var service     = new psi_supplierService();
            var result      = service.Edit(null, listWrapper, data);
        }
        public void Edit(dynamic data)
        {
            var listWrapper = RequestWrapper.Instance().LoadSettingXmlString(@"
<settings>
    <table>
        psi_supplier
    </table>
    <where>
        <field name='Id' cp='equal'></field>
    </where>
</settings>");
            var service = new psi_supplierService();
            var result = service.Edit(null, listWrapper, data);
        }
        public dynamic Get(RequestWrapper query)
        {
            query.LoadSettingXmlString(@"
<settings defaultOrderBy='Id'>
    <select>*</select>
    <from>psi_supplier</from>
    <where defaultForAll='true' defaultCp='equal' defaultIgnoreEmpty='true' >
        <field name='Id'            cp='equal'></field>
        <field name='Name'          cp='like' ></field>
        <field name='ChargePerson'  cp='like'></field>
        <field name='Catagory'      cp='equal'></field>
    </where>
</settings>");
            var service = new psi_supplierService();
            var pQuery = query.ToParamQuery();
            var result = service.GetDynamicListWithPaging(pQuery);
            return result;
        }
Exemplo n.º 4
0
        public dynamic Get(RequestWrapper query)
        {
            query.LoadSettingXmlString(@"
<settings defaultOrderBy='Id'>
    <select>*</select>
    <from>psi_supplier</from>
    <where defaultForAll='true' defaultCp='equal' defaultIgnoreEmpty='true' >
        <field name='Id'            cp='equal'></field>
        <field name='Name'          cp='like' ></field>
        <field name='ChargePerson'  cp='like'></field>
        <field name='Catagory'      cp='equal'></field>
    </where>
</settings>");
            var service = new psi_supplierService();
            var pQuery  = query.ToParamQuery();
            var result  = service.GetDynamicListWithPaging(pQuery);

            return(result);
        }