コード例 #1
0
        //todo 改成支持多个Tab
        // 地址:GET api/mms/@(controller)/getnewrowid 预取得新的明细表的行号
        public string GetNewRowId(string type, string key, int qty = 1)
        {
            switch (type)
            {
            case "grid0":
                var service0 = new REMP_ChangeService();
                return(service0.GetNewKey("CHANID", "maxplus", qty, ParamQuery.Instance().AndWhere("CHANID", key, Cp.Equal)));

            default:
                return("");
            }
        }
コード例 #2
0
        public List<dynamic> Get(RequestWrapper query)
        {
            query.LoadSettingXmlString(@"
<settings defaultOrderBy='CHANID'>
    <select>*</select>
    <from>REMP_Change</from>
    <where defaultForAll='true' defaultCp='equal' defaultIgnoreEmpty='true' >
    </where>
</settings>");
            var service = new REMP_ChangeService();
            var pQuery = query.ToParamQuery();
            var result = service.GetDynamicListWithPaging(pQuery);
            return result;
        }
コード例 #3
0
        public List <dynamic> Get(RequestWrapper query)
        {
            query.LoadSettingXmlString(@"
<settings defaultOrderBy='CHANID'>
    <select>*</select>
    <from>REMP_Change</from>
    <where defaultForAll='true' defaultCp='equal' defaultIgnoreEmpty='true' >
    </where>
</settings>");
            var service = new REMP_ChangeService();
            var pQuery  = query.ToParamQuery();
            var result  = service.GetDynamicListWithPaging(pQuery);

            return(result);
        }
コード例 #4
0
 //todo 改成支持多个Tab
 // 地址:GET api/mms/@(controller)/getnewrowid 预取得新的明细表的行号
 public string GetNewRowId(string type,string key,int qty=1)
 {
     switch (type)
     {
         case "grid0":
             var service0 = new REMP_ChangeService();
             return service0.GetNewKey("CHANID", "maxplus", qty, ParamQuery.Instance().AndWhere("CHANID", key, Cp.Equal));
         default:
             return "";
     }
 }