From ff966ec1b7a512cb64e010ea0cdafcc08b156065 Mon Sep 17 00:00:00 2001
From: 王 垚 <1402714037@qq.com>
Date: 星期六, 25 十二月 2021 15:17:29 +0800
Subject: [PATCH] 核算方式

---
 WebAPI/Controllers/ProductInController.cs |  100 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 99 insertions(+), 1 deletions(-)

diff --git a/WebAPI/Controllers/ProductInController.cs b/WebAPI/Controllers/ProductInController.cs
index af06fd8..fc04bad 100644
--- a/WebAPI/Controllers/ProductInController.cs
+++ b/WebAPI/Controllers/ProductInController.cs
@@ -165,6 +165,94 @@
             }
         }
 
+
+
+        /// <summary>
+        /// 鐢熶骇鍏ュ簱缂撳瓨鍒楄〃缂栬緫鎸夐挳 鑾峰彇琛ㄤ綋淇℃伅
+        /// </summary>
+        /// <param name="HSourceBillNo"></param>
+        /// <returns></returns>
+        [Route("ProdIn/ProdInDetaiNew")]
+        [HttpGet]
+        public object ProdInDetaiNew(string HInterID)
+        {
+
+            DataSet ds;
+            List<object> list = new List<object>();
+            string Swhere = "";
+            try
+            {
+                if (HInterID != "" || HInterID != null)
+                {
+                    Swhere = " and hmainid='" + HInterID + "'";
+                }
+                else
+                {
+                    Swhere = HInterID;
+                }
+                SQLHelper.ClsCN oCN = new SQLHelper.ClsCN();
+                //鑾峰彇閿�鍞嚭搴撶紪杈戞暟鎹�
+                string sql = "select  鏁伴噺 HQty,搴旀敹鏁伴噺 HQtyMust,鐗╂枡浠g爜 HMaterNumber,鐗╂枡鍚嶇О HMaterName,瑙勬牸鍨嬪彿 HMaterModel,婧愬崟涓诲唴鐮� HSourceInterID,婧愬崟瀛愬唴鐮� HSourceEntryID,婧愬崟鍗曞彿 HSourceBillNo,鎵规 HBatchNo,杈呭姪灞炴�� HAuxPropID,璁″垝璺熻釜鍙� HMTONo,ck HWHID  from h_v_SelloutDetail where 1 = 1 " + Swhere + "";
+                ds = oCN.RunProcReturn(sql, "h_v_SelloutDetail");
+
+                list.Add(ds.Tables[0]);
+                objJsonResult.code = "0";
+                objJsonResult.count = 1;
+                objJsonResult.Message = "鑾峰彇淇℃伅鎴愬姛锛�";
+                objJsonResult.list = list;
+            }
+            catch (Exception e)
+            {
+                objJsonResult.code = "0";
+                objJsonResult.count = 0;
+                objJsonResult.Message = "娌℃湁杩斿洖浠讳綍璁板綍锛�" + e.ToString();
+                objJsonResult.data = null;
+            }
+            return objJsonResult;
+        }
+
+
+        /// <summary>
+        /// 杩斿洖浜у搧鍏ュ簱鎵爜鏄庣粏  
+        /// </summary>
+        /// <returns></returns>
+        [Route("ProductIn/DisPlayBarCodeList_Json")]
+        [HttpGet]
+        public object DisPlayBarCodeList_Json(long HBillID, string HBillNo, string HBillType, string sMouldManagerCtl, string sFIFOCtl)
+        {
+            try
+            {
+                ds = webserver.GetBarcodeList(HBillID, HBillNo, HBillType, ref sMouldManagerCtl, ref sFIFOCtl, ref DBUtility.ClsPub.sErrInfo);
+                if (ds == null || ds.Tables[3].Rows.Count <= 0)
+                {
+
+                    objJsonResult.code = "0";
+                    objJsonResult.count = 0;
+                    objJsonResult.Message = "娌℃湁杩斿洖浠讳綍璁板綍锛�";
+                    objJsonResult.data = null;
+                    return objJsonResult;
+                    //DBUtility.ClsPub.MessageBeep((int)DBUtility.ClsPub.BeepType.Warning);
+                }
+                else
+                {
+                    objJsonResult.code = "0";
+                    objJsonResult.count = 1;
+                    objJsonResult.Message = "鑾峰彇淇℃伅鎴愬姛锛�";
+                    objJsonResult.data = ds.Tables[3];
+                    return objJsonResult;
+                }
+            }
+            catch (Exception e)
+            {
+
+                objJsonResult.code = "0";
+                objJsonResult.count = 0;
+                objJsonResult.Message = "娌℃湁杩斿洖浠讳綍璁板綍锛�" + e.ToString();
+                objJsonResult.data = null;
+                return objJsonResult;
+            }
+        }
+
         [Route("ProductIn/DisBillEntryList_Mate_Webs_Json")]
         [HttpGet]
         public object DisBillEntryList_Mate_Webs_Json(string HBillType, string sWhere)
@@ -210,6 +298,7 @@
         [HttpGet]
         public object set_SavePonderationBillMain_Temp_Source_Fast_Json(string HSourceBillType, string HSourceBillNo, Int64 sInterID, string sBillNo)
         {
+            string aa = "";
             try
             {
                // DataSet ds = new DataSet();
@@ -217,13 +306,18 @@
                 string sWhere = " Where 鍗曟嵁鍙� like '%" + HSourceBillNo.Trim() + "%'";
                 if (HSourceBillType == "3710")
                 {
+                    aa = "鎵ц浜�";
                     ds = webserver.GetSc_ICMOBillList(sWhere + "  ");
+                }
+                if (HSourceBillType == "3711")
+                {
+                    ds = webserver.GetSc_ICMOReportBillList(sWhere + "  ");
                 }
                 else
                 {
                     objJsonResult.code = "0";
                     objJsonResult.count = 0;
-                    objJsonResult.Message = "娌℃湁杩斿洖浠讳綍璁板綍,婧愬崟绫诲瀷鏈夐敊璇紒";
+                    objJsonResult.Message = "娌℃湁杩斿洖浠讳綍璁板綍,婧愬崟绫诲瀷鏈夐敊璇紒"+aa;
                     objJsonResult.data = null;
                     return objJsonResult; ;
                 }
@@ -465,6 +559,7 @@
             //string sSourceBillType = lsmain[0].HBillType;
             //BLL.ClsKf_ProductInBill bll = new BLL.ClsKf_ProductInBill();
             //return bll.set_SaveProductInBill_New(lsmain[0], sSourceBillType, ref DBUtility.ClsPub.sErrInfo);
+            
             try
             {
                 List<Model.ClsKf_ProductInBillMain> lsmain = new List<Model.ClsKf_ProductInBillMain>();
@@ -481,10 +576,13 @@
                 websLsmain.HBillNo = lsmain[0].HBillNo;
                 websLsmain.HDeptID = lsmain[0].HDeptID;
                 websLsmain.HEmpID = lsmain[0].HEmpID;
+                websLsmain.HKeeperID= lsmain[0].HKeeperID;
                 websLsmain.HRemark = lsmain[0].HRemark;
                 websLsmain.HMaker = lsmain[0].HMaker;
                 websLsmain.HWHID = lsmain[0].HWHID;
                 websLsmain.HSupID = lsmain[0].HSupID;
+                websLsmain.HExplanation = lsmain[0].HExplanation;
+
 
                 if (webserver.set_SaveProductInBill_New(websLsmain, sSourceBillType, ref DBUtility.ClsPub.sErrInfo))
                 {

--
Gitblit v1.9.1