Admin
2025-12-02 9e42f0dafa019f5ecf6b0ff425ecb966b002171e
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
using System;
using System.Collections.Generic;
using System.Text;
using WIDESEA.Entity.DomainModels;
using WIDESEA.Services.Repositories;
 
namespace WIDESEA.Services.Services
{
    public partial class CommonFunction
    {
 
        /// <summary>
        /// 添加库存历史头
        /// </summary>
        /// <param name="container_Head"></param>
        /// <returns></returns>
        public static void AddContainerHeadToHistory(Dt_container_head container_Head, string operateType = "")
        {
 
            Dt_container_head_hty head_Hty = new Dt_container_head_hty();
 
            head_Hty.containerhead_id = Guid.NewGuid();
            head_Hty.containerhead_areaid = container_Head.containerhead_areaid;
            head_Hty.containerhead_barcode = container_Head.containerhead_barcode;
            head_Hty.containerhead_creator = container_Head.containerhead_creator;
            head_Hty.containerhead_createtime = container_Head.containerhead_createtime;
            head_Hty.containerhead_finishtime = DateTime.Now;
            head_Hty.containerhead_operatetype = operateType;
            head_Hty.containerhead_compeletor = "System-compeletor";
            head_Hty.containerhead_requstkey = container_Head.containerhead_requstkey;
            head_Hty.containerhead_text1 = container_Head.containerhead_text1;
            head_Hty.containerhead_text2 = container_Head.containerhead_text2;
            head_Hty.containerhead_text3 = container_Head.containerhead_text3;
            head_Hty.containerhead_palletweight = container_Head.containerhead_palletweight;
 
            Dt_container_head_htyRepository.Instance.Add(head_Hty, true);
            Dt_container_headRepository.Instance.Delete(container_Head, true);
        }
 
    }
}