Esempio n. 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 mms_directDetailService();
                return(service0.GetNewKey("RowId", "maxplus", qty, ParamQuery.Instance().AndWhere("BillNo", key, Cp.Equal)));

            case "grid2":
                var service2 = new mms_rentInDetailService();
                return(service2.GetNewKey("BillNo", "maxplus", qty, ParamQuery.Instance().AndWhere("RowId", key, Cp.Equal)));

            default:
                return("");
            }
        }
 //todo 改成支持多个Tab
 // 地址:GET api/mms/@(controller)/getnewrowid 预取得新的明细表的行号
 public string GetNewRowId(string type,string key,int qty=1)
 {
     switch (type)
     {
         case "grid0":
             var service0 = new mms_directDetailService();
             return service0.GetNewKey("RowId", "maxplus", qty, ParamQuery.Instance().AndWhere("BillNo", key, Cp.Equal));
         case "grid2":
             var service2 = new mms_rentInDetailService();
             return service2.GetNewKey("BillNo", "maxplus", qty, ParamQuery.Instance().AndWhere("RowId", key, Cp.Equal));
         default:
             return "";
     }
 }