yxj
2024-02-28 faf45af2a9ad45e56ca441fdfdab92b83472a81f
新增PDA分步式调出单、分步式调入单上传方法
7个文件已修改
4个文件已添加
343 ■■■■■ 已修改文件
Model/Model.csproj 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Model/仓库管理/ClsKf_MoveStockBillMain.cs 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Model/仓库管理/ClsKf_MoveStockStepInBillMain.cs 24 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Model/仓库管理/ClsKf_MoveStockStepInBillScheme.cs 30 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Model/仓库管理/ClsKf_MoveStockStepInBillSub.cs 30 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Model/仓库管理/ClsKf_MoveStockStepOutBillMain.cs 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Model/仓库管理/ClsKf_MoveStockStepOutBillScheme.cs 30 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebAPI/Controllers/条码管理/WEBSController.cs 181 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebAPI/ListModels.cs 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebAPI/Web References/WebS/Reference.cs 24 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebAPI/Web References/WebS/WebService1.wsdl 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Model/Model.csproj
@@ -225,6 +225,9 @@
    <Compile Include="仓库管理\ClsKf_EntrustOutBillMain.cs" />
    <Compile Include="仓库管理\ClsKf_EntrustOutBillSub.cs" />
    <Compile Include="仓库管理\ClsKf_EntrustReplenishOutBillMain.cs" />
    <Compile Include="仓库管理\ClsKf_MoveStockStepInBillMain.cs" />
    <Compile Include="仓库管理\ClsKf_MoveStockStepInBillScheme.cs" />
    <Compile Include="仓库管理\ClsKf_MoveStockStepOutBillScheme.cs" />
    <Compile Include="仓库管理\ClsKf_MateReplenishOutBillMain.cs" />
    <Compile Include="仓库管理\ClsKf_MateOutBillMain.cs" />
    <Compile Include="仓库管理\ClsKf_MateOutBillScheme.cs" />
@@ -238,6 +241,7 @@
    <Compile Include="仓库管理\ClsKf_MoveStockStepOutBillMain.cs" />
    <Compile Include="仓库管理\ClsKf_MoveStockBillMain.cs" />
    <Compile Include="仓库管理\ClsKf_MoveStockBillScheme.cs" />
    <Compile Include="仓库管理\ClsKf_MoveStockStepInBillSub.cs" />
    <Compile Include="仓库管理\ClsKf_MoveStockStepOutBillSub.cs" />
    <Compile Include="仓库管理\ClsKf_MoveStockBillSub.cs" />
    <Compile Include="仓库管理\ClsKf_OtherInBillMain.cs" />
Model/²Ö¿â¹ÜÀí/ClsKf_MoveStockBillMain.cs
@@ -28,5 +28,7 @@
        public string HTransferDirect;  //    varchar(100)  //调拨方向
        public string HShipType;        //    varchar(100)  //出货类型
        public Int64 HGroupID;
        public int HStockInOrgID;       //     int             //调入组织ID
        public int HStockOutOrgID;      //     int             //调出组织ID
    }
}
Model/²Ö¿â¹ÜÀí/ClsKf_MoveStockStepInBillMain.cs
New file
@@ -0,0 +1,24 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Model
{
    public class ClsKf_MoveStockStepInBillMain : DBUtility.ClsXt_BaseBillMain
    {
        public Int64 HSupID;            //  int                --供应商
        public Int64 HWHID;             //  int             --仓库
        public Int64 HSCWHID;           //  int               --调出仓库
        public Int64 HEmpID;            //  int                --业务员
        public Int64 HManagerID;        //  int                --负责人
        public Int64 HSecManagerID;     //  int               --验收
        public Int64 HKeeperID;         //  int             --保管员
        public Int64 HDeptID;           //  int             --部门
        public string HExplanation;     //  varchar(200)    --ÕªÒª
        public string HInnerBillNo;     //  varchar(50)     --内部单据号
        public bool HRedBlueFlag;       //  bit                --红蓝单
        public string HStockStyle;      //  varchar(100)    --调拨类型
        public Int64 HStockInOrgID;     //  int             --调入库存组织
        public Int64 HStockOutOrgID;    //  int             --调出库存组织
    }
}
Model/²Ö¿â¹ÜÀí/ClsKf_MoveStockStepInBillScheme.cs
New file
@@ -0,0 +1,30 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Model
{
    public class ClsKf_MoveStockStepInBillScheme : DBUtility.ClsXt_BaseBillSub
    {
        public Int64 HInterID;
        public Int64 HEntryID;
        public Int64 HItemID;
        public string HBillType;
        public Int64 HMaterID;
        public Int64 HProcID;
        public Int64 HWhID;
        public Int64 HSCWhID;
        public Int64 HGroupID;
        public double HQty;
        public string HBarCode;
        public string HAddr;
        public string HMaker;
        public DateTime HMakeDate;
        public Int64 HSourceInterID;
        public Int64 HSourceEntryID;
        public string HSourceBillType;
        public string HSourceBillNo;
        public Int64 HSourceItemID;
    }
}
Model/²Ö¿â¹ÜÀí/ClsKf_MoveStockStepInBillSub.cs
New file
@@ -0,0 +1,30 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Model
{
    public class ClsKf_MoveStockStepInBillSub : DBUtility.ClsXt_BaseBillSub
    {
        public Int64 HMaterID;          //  int               --物料ID
        public string HBatchNo;         //  varchar(50)     --批次
        public Int64 HPropertyID;       //  int                --辅助属性
        public Int64 HSecUnitID;        //  int                --辅助计量单位
        public Single HSecUnitRate;     //  money            --换算率
        public Int64 HUnitID;           //  int              --计量单位
        public double HQtyMust;         //  dec(18,8)       --应收数量
        public double HQty;             //  dec(18,8)       --实收数量
        public double HPrice;           //  dec(18,8)       --单价
        public double HMoney;           //  dec(18,8)          --金额
        public Int64 HWHID;             //  int              --收料仓库
        public Int64 HSCWHID;           //  int             --调出仓库ID
        public Int64 HSPID;             //  int              --调入仓位
        public Int64 HSCSPID;           //  int             --调出仓位ID
        public Int64 HPOOrderInterID;   //  int              --采购订单主内码
        public Int64 HPOOrderEntryID;   //  int                --采购订单子内码
        public string HPOOrderBillNo;   //  varchar(50)     --采购订单号
        public Int64 HSeOrderInterID;   //   int             --销售订单主内码
        public Int64 HSeOrderEntryID;   //  int                --销售订单子内码
        public string HSeOrderBillNo;   //  varchar(50)     --销售订单号
    }
}
Model/²Ö¿â¹ÜÀí/ClsKf_MoveStockStepOutBillMain.cs
@@ -18,6 +18,9 @@
        public string HInnerBillNo;//  varchar(50)         --内部单据号
        public bool HRedBlueFlag;//  bit            --红蓝单
        public int HCurID;
        public string HStockStyle;      //    varchar(100)  //调拨类型
        public int HStockInOrgID;       //     int             //调入组织ID
        public int HStockOutOrgID;      //     int             //调出组织ID
    }
}
Model/²Ö¿â¹ÜÀí/ClsKf_MoveStockStepOutBillScheme.cs
New file
@@ -0,0 +1,30 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Model
{
    public class ClsKf_MoveStockStepOutBillScheme : DBUtility.ClsXt_BaseBillSub
    {
        public Int64 HInterID;
        public Int64 HEntryID;
        public Int64 HItemID;
        public string HBillType;
        public Int64 HMaterID;
        public Int64 HProcID;
        public Int64 HWhID;
        public Int64 HSCWhID;
        public Int64 HGroupID;
        public double HQty;
        public string HBarCode;
        public string HAddr;
        public string HMaker;
        public DateTime HMakeDate;
        public Int64 HSourceInterID;
        public Int64 HSourceEntryID;
        public string HSourceBillType;
        public string HSourceBillNo;
        public Int64 HSourceItemID;
    }
}
WebAPI/Controllers/ÌõÂë¹ÜÀí/WEBSController.cs
@@ -2317,7 +2317,6 @@
        #endregion
        #region ç”Ÿäº§è¡¥æ–™    ä¸Šä¼ ç”Ÿå•
        #region ç”Ÿäº§è¡¥æ–™    æ ¡éªŒæ¨¡å¼
@@ -2377,7 +2376,6 @@
        #endregion
        #region å§”外补料    ä¸Šä¼ ç”Ÿå•
        #region å§”外补料    æ ¡éªŒæ¨¡å¼
@@ -2436,7 +2434,6 @@
        #endregion
        #endregion
        #region ç›´æŽ¥è°ƒæ‹¨    ä¸Šä¼ ç”Ÿå•
@@ -2513,8 +2510,10 @@
                }
                websLsmain.HMaker = lsmain[0].HMaker;
                websLsmain.HBillerID = lsmain[0].HBillerID;
                websLsmain.HSTOCKORGID = lsmain[0].HSTOCKORGID;
                websLsmain.HOWNERID = lsmain[0].HSTOCKORGID;
                websLsmain.HStockInOrgID = lsmain[0].HStockInOrgID;
                websLsmain.HStockOutOrgID = lsmain[0].HStockOutOrgID;
                websLsmain.HSTOCKORGID = lsmain[0].HStockOutOrgID;
                websLsmain.HOWNERID = lsmain[0].HStockOutOrgID;
                if (oWebs.set_SaveMoveStockBill(websLsmain, sSourceType, ref DBUtility.ClsPub.sErrInfo))
                {
@@ -2588,7 +2587,179 @@
        #endregion
        #region åˆ†æ­¥å¼è°ƒå‡º    ä¸Šä¼ ç”Ÿå•
        #region åˆ†æ­¥å¼è°ƒå‡º    æ–°å¢žæ¨¡å¼
        /// <summary>
        /// åˆ†æ­¥å¼è°ƒå‡ºæ–°å¢žä¸Šä¼ 
        /// </summary>
        /// <returns></returns>
        [Route("WEBSController/set_SaveMoveStockStepOutBill_Json")]
        [HttpPost]
        public object set_SaveMoveStockStepOutBill_Json([FromBody] JObject oMain)
        {
            var _value = oMain["oMain"].ToString();
            string msg1 = _value.ToString();
            try
            {
                List<Model.ClsKf_MoveStockStepOutBillMain> lsmain = new List<Model.ClsKf_MoveStockStepOutBillMain>();
                ListModels oListModels = new ListModels();
                lsmain = oListModels.getMoveStockStepOutBillMainByJson(msg1);
                WebS.ClsKf_MoveStockStepOutBillMain websLsmain = new WebS.ClsKf_MoveStockStepOutBillMain();
                string sSourceType = lsmain[0].HMainSourceBillType;
                websLsmain.HInterID = lsmain[0].HInterID;
                websLsmain.HBillNo = lsmain[0].HBillNo;
                websLsmain.HBillType = lsmain[0].HBillType;
                websLsmain.HDate = lsmain[0].HDate;
                websLsmain.HDeptID = lsmain[0].HDeptID;
                websLsmain.HWHID = lsmain[0].HWHID;
                websLsmain.HSCWHID = lsmain[0].HSCWHID;
                websLsmain.HSupID = lsmain[0].HSupID;
                websLsmain.HKeeperID = lsmain[0].HKeeperID;
                websLsmain.HSecManagerID = lsmain[0].HSecManagerID;
                websLsmain.HEmpID = lsmain[0].HEmpID;
                websLsmain.HManagerID = lsmain[0].HManagerID;
                websLsmain.HRemark = lsmain[0].HRemark;
                websLsmain.HExplanation = lsmain[0].HExplanation;
                websLsmain.HInnerBillNo = lsmain[0].HInnerBillNo;
                websLsmain.HRedBlueFlag = lsmain[0].HRedBlueFlag;
                websLsmain.HBillSubType = lsmain[0].HBillSubType;
                websLsmain.HStockStyle = lsmain[0].HStockStyle;
                if (lsmain[0].HMainSourceBillType == "1402")
                {
                    websLsmain.HMainSourceBillType = "发货通知单";
                }
                else if (lsmain[0].HMainSourceBillType == "1243")
                {
                    websLsmain.HMainSourceBillType = "调拨申请单";
                }
                else
                {
                    websLsmain.HMainSourceBillType = "手工录入";
                }
                websLsmain.HMaker = lsmain[0].HMaker;
                websLsmain.HBillerID = lsmain[0].HBillerID;
                websLsmain.HStockInOrgID = lsmain[0].HStockInOrgID;
                websLsmain.HStockOutOrgID = lsmain[0].HStockOutOrgID;
                websLsmain.HSTOCKORGID = lsmain[0].HStockOutOrgID;
                websLsmain.HOWNERID = lsmain[0].HStockOutOrgID;
                if (oWebs.set_SaveMoveStockStepOutBill_New(websLsmain, sSourceType, ref DBUtility.ClsPub.sErrInfo))
                {
                    objJsonResult.code = "0";
                    objJsonResult.count = 1;
                    objJsonResult.Message = DBUtility.ClsPub.sErrInfo;  //成功!
                    objJsonResult.data = null;
                    return objJsonResult;
                }
                else
                {
                    objJsonResult.code = "0";
                    objJsonResult.count = 0;
                    objJsonResult.Message = DBUtility.ClsPub.sErrInfo;  //失败!
                    objJsonResult.data = null;
                    return objJsonResult;
                }
            }
            catch (Exception e)
            {
                objJsonResult.code = "0";
                objJsonResult.count = 0;
                objJsonResult.Message = "分步式调出单上传失败!" + e.ToString();
                objJsonResult.data = null;
                return objJsonResult;
            }
        }
        #endregion
        #endregion
        #region åˆ†æ­¥å¼è°ƒå…¥    ä¸Šä¼ ç”Ÿå•
        #region åˆ†æ­¥å¼è°ƒå…¥    æ–°å¢žæ¨¡å¼
        /// <summary>
        /// åˆ†æ­¥å¼è°ƒå…¥æ–°å¢žä¸Šä¼ 
        /// </summary>
        /// <returns></returns>
        [Route("WEBSController/set_SaveMoveStockStepInBill_Json")]
        [HttpPost]
        public object set_SaveMoveStockStepInBill_Json([FromBody] JObject oMain)
        {
            var _value = oMain["oMain"].ToString();
            string msg1 = _value.ToString();
            try
            {
                List<Model.ClsKf_MoveStockStepInBillMain> lsmain = new List<Model.ClsKf_MoveStockStepInBillMain>();
                ListModels oListModels = new ListModels();
                lsmain = oListModels.getMoveStockStepInBillMainByJson(msg1);
                WebS.ClsKf_MoveStockStepInBillMain websLsmain = new WebS.ClsKf_MoveStockStepInBillMain();
                string sSourceType = lsmain[0].HMainSourceBillType;
                websLsmain.HInterID = lsmain[0].HInterID;
                websLsmain.HBillNo = lsmain[0].HBillNo;
                websLsmain.HBillType = lsmain[0].HBillType;
                websLsmain.HDate = lsmain[0].HDate;
                websLsmain.HDeptID = lsmain[0].HDeptID;
                websLsmain.HWHID = lsmain[0].HWHID;
                websLsmain.HSCWHID = lsmain[0].HSCWHID;
                websLsmain.HSupID = lsmain[0].HSupID;
                websLsmain.HKeeperID = lsmain[0].HKeeperID;
                websLsmain.HSecManagerID = lsmain[0].HSecManagerID;
                websLsmain.HEmpID = lsmain[0].HEmpID;
                websLsmain.HManagerID = lsmain[0].HManagerID;
                websLsmain.HRemark = lsmain[0].HRemark;
                websLsmain.HExplanation = lsmain[0].HExplanation;
                websLsmain.HInnerBillNo = lsmain[0].HInnerBillNo;
                websLsmain.HRedBlueFlag = lsmain[0].HRedBlueFlag;
                websLsmain.HBillSubType = lsmain[0].HBillSubType;
                websLsmain.HStockStyle = lsmain[0].HStockStyle;
                if (lsmain[0].HMainSourceBillType == "1250")
                {
                    websLsmain.HMainSourceBillType = "分步式调出单";
                }
                else
                {
                    websLsmain.HMainSourceBillType = "手工录入";
                }
                websLsmain.HMaker = lsmain[0].HMaker;
                websLsmain.HBillerID = lsmain[0].HBillerID;
                websLsmain.HStockInOrgID = lsmain[0].HStockInOrgID;
                websLsmain.HStockOutOrgID = lsmain[0].HStockOutOrgID;
                websLsmain.HSTOCKORGID = lsmain[0].HStockOutOrgID;
                websLsmain.HOWNERID = lsmain[0].HStockOutOrgID;
                if (oWebs.set_SaveMoveStockStepInBill_New(websLsmain, sSourceType, ref DBUtility.ClsPub.sErrInfo))
                {
                    objJsonResult.code = "0";
                    objJsonResult.count = 1;
                    objJsonResult.Message = DBUtility.ClsPub.sErrInfo;  //成功!
                    objJsonResult.data = null;
                    return objJsonResult;
                }
                else
                {
                    objJsonResult.code = "0";
                    objJsonResult.count = 0;
                    objJsonResult.Message = DBUtility.ClsPub.sErrInfo;  //失败!
                    objJsonResult.data = null;
                    return objJsonResult;
                }
            }
            catch (Exception e)
            {
                objJsonResult.code = "0";
                objJsonResult.count = 0;
                objJsonResult.Message = "分步式调入单上传失败!" + e.ToString();
                objJsonResult.data = null;
                return objJsonResult;
            }
        }
        #endregion
        #endregion
        #region ç”Ÿäº§ç»„托单    ä¸Šä¼ ç”Ÿå•
WebAPI/ListModels.cs
@@ -101,6 +101,19 @@
            List<Model.ClsKf_MoveStockStepOutBillMain> list = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Model.ClsKf_MoveStockStepOutBillMain>>(jsonString);
            return list;
        }
        /// <summary>
        /// åˆ†æ­¥å¼è°ƒå…¥å•反序列化
        /// </summary>
        /// <param name="jsonString"></param>
        /// <returns></returns>
        public List<Model.ClsKf_MoveStockStepInBillMain> getMoveStockStepInBillMainByJson(string jsonString)
        {
            jsonString = "[" + jsonString.ToString() + "]";
            List<Model.ClsKf_MoveStockStepInBillMain> list = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Model.ClsKf_MoveStockStepInBillMain>>(jsonString);
            return list;
        }
        /// <summary>
        /// äº§å“å…¥åº“反序列化
        /// </summary>
WebAPI/Web References/WebS/Reference.cs
@@ -42881,6 +42881,10 @@
        
        private long hOWNERIDField;
        
        private long hStockInOrgIDField;
        private long hStockOutOrgIDField;
        /// <remarks/>
        public long HSupID {
            get {
@@ -43100,6 +43104,26 @@
                this.hOWNERIDField = value;
            }
        }
        /// <remarks/>
        public long HStockInOrgID {
            get {
                return this.hStockInOrgIDField;
            }
            set {
                this.hStockInOrgIDField = value;
            }
        }
        /// <remarks/>
        public long HStockOutOrgID {
            get {
                return this.hStockOutOrgIDField;
            }
            set {
                this.hStockOutOrgIDField = value;
            }
        }
    }
    
    /// <remarks/>
WebAPI/Web References/WebS/WebService1.wsdl
@@ -9262,6 +9262,8 @@
              <s:element minOccurs="0" maxOccurs="1" name="HShipType" type="s:string" />
              <s:element minOccurs="1" maxOccurs="1" name="HSTOCKORGID" type="s:long" />
              <s:element minOccurs="1" maxOccurs="1" name="HOWNERID" type="s:long" />
              <s:element minOccurs="1" maxOccurs="1" name="HStockInOrgID" type="s:long" />
              <s:element minOccurs="1" maxOccurs="1" name="HStockOutOrgID" type="s:long" />
            </s:sequence>
          </s:extension>
        </s:complexContent>