public void Edit(dynamic data)
        {
            var formWrapper = RequestWrapper.Instance().LoadSettingXmlString(@"
<settings>
    <table>
        mms_project
    </table>
    <where>
        <field name='ProjectCode' cp='equal'></field>
    </where>
</settings>");

            var listWrapper = RequestWrapper.Instance().LoadSettingXmlString(@"
<settings>
    <table>
        mms_buildPart
    </table>
    <where>
        <field name='ProjectCode' cp='equal'></field>
        <field name='BuildPartCode'  cp='equal'></field>
    </where>
</settings>");

            var service = new mms_directService();
            var result  = service.Edit(formWrapper, listWrapper, data);
        }
Exemple #2
0
        public void Edit(dynamic data)
        {
            var formWrapper = RequestWrapper.Instance().SetXml(@"
<settings>
    <table>mms_project</table>
    <where><c column='ProjectCode'></c></where>
</settings>");

            var listWrapper = RequestWrapper.InstanceArray(1);

            listWrapper[0].SetXml(@"
<settings>
    <table>mms_buildPart</table>
    <where>
        <c column='ProjectCode' ></c>
        <c column='BuildPartCode' ></c>
    </where>
</settings>");

            var service = new mms_directService();
            var result  = service.Edit(data, formWrapper, listWrapper);
        }
        public void Edit(dynamic data)
        {
            var formWrapper = RequestWrapper.Instance().SetXml(@"
<settings>
    <table>mms_project</table>
    <where><c column='ProjectCode'></c></where>
</settings>");

            var listWrapper = RequestWrapper.InstanceArray(1);
            listWrapper[0].SetXml(@"
<settings>
    <table>mms_buildPart</table>
    <where>
        <c column='ProjectCode' ></c>
        <c column='BuildPartCode' ></c>
    </where>
</settings>");

            var service = new mms_directService();
            var result = service.Edit(data,formWrapper, listWrapper);
        }
        public void Edit(dynamic data)
        {
            var formWrapper = RequestWrapper.Instance().LoadSettingXmlString(@"
<settings>
    <table>
        mms_project
    </table>
    <where>
        <field name='ProjectCode' cp='equal'></field>
    </where>
</settings>");

            var listWrapper = RequestWrapper.Instance().LoadSettingXmlString(@"
<settings>
    <table>
        mms_buildPart
    </table>
    <where>
        <field name='ProjectCode' cp='equal'></field>
        <field name='BuildPartCode'  cp='equal'></field>
    </where>
</settings>");

            var service = new mms_directService();
            var result = service.Edit(formWrapper, listWrapper, data);
        }