服务端的TigerApi 框架,基于.NET6 2024 版本
Rodney Chen
2024-04-10 5d639c50896850ee8065ee9b54b986dffd4593e2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
using Apache.NMS;
using Newtonsoft.Json;
using Rhea.Common;
using SqlSugar;
using System;
using System.Collections.Generic;
using Microsoft.AspNetCore.Mvc;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Tiger.IBusiness;
using Tiger.Model;
 
namespace Tiger.Business
{
    
    public partial class Biz : ControllerBase
    {
        public partial class BS
        {
            /// <summary>
            /// 创建调拨单号
            /// </summary>
            /// <returns></returns>
            public ApiAction CreateTFBillCode()
            {
                var action = new ApiAction();
 
                Result ruleResult = Biz.CodeRule["TF001"].Generate("TF");  //Biz.iWMS.GetBillNoByType("CI");
                if (!ruleResult.IsSuccessed)
                {
                    throw new Exception(ruleResult.ExceptionMsg.Message);
                }
 
 
                action.Data = ruleResult.Data;
                return action;
            }
        }
    }
}