Beispiel #1
0
        public void Edit(dynamic data)
        {
            var listWrapper = RequestWrapper.Instance().LoadSettingXmlString(@"
<settings>
    <table>mms_warehouse</table>
    <where>
        <field name='WarehouseCode' cp='equal'></field>
    </where>
</settings>");
            var service     = new mms_warehouseService();
            var result      = service.Edit(null, listWrapper, data);
        }
        public void Edit(dynamic data)
        {
            var listWrapper = RequestWrapper.Instance().LoadSettingXmlString(@"
<settings>
    <table>mms_warehouse</table>
    <where>
        <field name='WarehouseCode' cp='equal'></field>
    </where>
</settings>");
            var service = new mms_warehouseService();
            var result = service.Edit(null, listWrapper, data);
        }
        public dynamic Get(RequestWrapper request)
        {
            request.LoadSettingXmlString(@"
<settings defaultOrderBy='WarehouseCode'>
   <where>
        <field name='ProjectCode' cp='equal' ignoreEmpty='true'></field>
    </where>
</settings>");
            var service = new mms_warehouseService();
            var result = service.GetModelListWithPaging(request.ToParamQuery());
            return result;
        }
        public void Edit(dynamic data)
        {
            var tabsWrapper = RequestWrapper.InstanceArray(1);
            tabsWrapper[0].SetXml(@"
<settings>
    <table>mms_warehouse</table>
    <where>
        <c column='WarehouseCode' symbol='equal'></c>
    </where>
</settings>");
            var service = new mms_warehouseService();
            var result = service.Edit(data,null,tabsWrapper); 
        }
        public dynamic Get(RequestWrapper request)
        {
            request.SetXml(@"
<settings>
    <where>
        <c column='ProjectCode' symbol='equal' ignore='empty'></c>
    </where>
    <orderby>WarehouseCode</orderby>
</settings>");
            var service = new mms_warehouseService();
            var result = service.GetModelListWithPaging(request.ToParamQuery());
            return result;
        }
Beispiel #6
0
        public dynamic Get(RequestWrapper request)
        {
            request.LoadSettingXmlString(@"
<settings defaultOrderBy='WarehouseCode'>
   <where>
        <field name='ProjectCode' cp='equal' ignoreEmpty='true'></field>
    </where>
</settings>");
            var service = new mms_warehouseService();
            var result  = service.GetModelListWithPaging(request.ToParamQuery());

            return(result);
        }
Beispiel #7
0
        public void Edit(dynamic data)
        {
            var tabsWrapper = RequestWrapper.InstanceArray(1);

            tabsWrapper[0].SetXml(@"
<settings>
    <table>mms_warehouse</table>
    <where>
        <c column='WarehouseCode' symbol='equal'></c>
    </where>
</settings>");
            var service = new mms_warehouseService();
            var result  = service.Edit(data, null, tabsWrapper);
        }
Beispiel #8
0
        public dynamic Get(RequestWrapper request)
        {
            request.SetXml(@"
<settings>
    <where>
        <c column='ProjectCode' symbol='equal' ignore='empty'></c>
    </where>
    <orderby>WarehouseCode</orderby>
</settings>");
            var service = new mms_warehouseService();
            var result  = service.GetModelListWithPaging(request.ToParamQuery());

            return(result);
        }
 public string GetNewCode(string id)
 {
     var service = new mms_warehouseService();
     return service.GetNewKey("WarehouseCode", "maxplus").PadLeft(3, '0');
 }
Beispiel #10
0
        public string GetNewCode(string id)
        {
            var service = new mms_warehouseService();

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