yangle
2023-05-24 b129762a4bb5ec2cde5edf16bc9cbda57c73587d
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
 
namespace BLL
{
    public class ClsSc_PackUnionBill
    {
        ////生成包装单临时记录 
        public bool set_SavePackUnionBill_Temp(Model.ClsSc_PackUnionBillSub oEntry, ref string sErrMsg)
        {
            DAL.ClsSc_PackUnionBill dal = new DAL.ClsSc_PackUnionBill();
            //if (!dal.IsBarCode(oEntry.HBarCode, oEntry.HInterID, oEntry.HErpClsID))
            //{
            //    sErrMsg = "存在相同条码,请勿重复扫描!";
            //    return false;
            //}
            if (dal.AddBill_PDA(oEntry, ref sErrMsg))
            {
                //sErrMsg = "保存成功!";
                return true;
            }
            else
            {
                //sErrMsg = "保存失败!";
                return false;
            }
        }
 
        //生成包装单 
        public bool set_SavePackUnionBill(Model.ClsSc_PackUnionBillMain oMain, ref string sErrMsg)
        {
            DAL.ClsSc_PackUnionBill dal = new DAL.ClsSc_PackUnionBill();
            if (dal.AddBill_PDA(oMain, ref sErrMsg))
            {
                //sErrMsg = "保存成功!";
                return true;
            }
            else
            {
                //sErrMsg = "保存失败!";
                return false;
            }
        }
 
        //生成包装单临时记录
        /// <summary>
        /// 生成包装单临时记录
        /// </summary>
        /// <param name="sWhere">过滤条件</param>
        /// <returns></returns> 
        public DataSet GetSc_PackUnionBillSub_Temp(long HInterID, string sWhere)
        {
            DAL.ClsSc_PackUnionBill dal = new DAL.ClsSc_PackUnionBill();
            return dal.GetInfoByID_View(HInterID, sWhere);
        }
 
 
    }
}