From 51b2b8b4340a71d9129e4e091a333eb68f0eff9c Mon Sep 17 00:00:00 2001
From: duhe <226547893@qq.com>
Date: 星期五, 30 六月 2023 16:53:51 +0800
Subject: [PATCH] 用户快捷方式图标设置

---
 WebAPI/Controllers/仓存管理/条码出入库记录/Kf_ICStockInOutBillController.cs |  225 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 225 insertions(+), 0 deletions(-)

diff --git "a/WebAPI/Controllers/\344\273\223\345\255\230\347\256\241\347\220\206/\346\235\241\347\240\201\345\207\272\345\205\245\345\272\223\350\256\260\345\275\225/Kf_ICStockInOutBillController.cs" "b/WebAPI/Controllers/\344\273\223\345\255\230\347\256\241\347\220\206/\346\235\241\347\240\201\345\207\272\345\205\245\345\272\223\350\256\260\345\275\225/Kf_ICStockInOutBillController.cs"
index 6b331dc..172c721 100644
--- "a/WebAPI/Controllers/\344\273\223\345\255\230\347\256\241\347\220\206/\346\235\241\347\240\201\345\207\272\345\205\245\345\272\223\350\256\260\345\275\225/Kf_ICStockInOutBillController.cs"
+++ "b/WebAPI/Controllers/\344\273\223\345\255\230\347\256\241\347\220\206/\346\235\241\347\240\201\345\207\272\345\205\245\345\272\223\350\256\260\345\275\225/Kf_ICStockInOutBillController.cs"
@@ -39,6 +39,19 @@
             public string SeOrderBillNo;//(閿�鍞鍗曞彿)
         }
 
+        //鏉$爜鏄庣粏鏌ヨ 瀛樺偍杩囩▼ 鏁版嵁绫�
+        public class BarCodeDetail
+        {
+            public BarCodeDetail()
+            {
+
+            }
+            public int HInterID;
+            public string HBillType;
+            public string HBillNo;
+        }
+
+
         #region 鍑哄叆搴撹褰曟煡璇�
         [Route("Kf_ICStockInOutBill/StockInOutBillList")]
         [HttpGet]
@@ -93,5 +106,217 @@
             return objJsonResult;
         }
         #endregion
+        
+        
+        #region 鍑哄叆搴撳崟鎹潯鐮佹槑缁嗘煡璇�
+        [Route("Kf_ICStockInOutBill/Kf_BarCodeDetailQuery")]
+        [HttpGet]
+        public object Kf_BarCodeDetailQuery(string sWhere)
+        {
+            List<object> columnNameList = new List<object>();
+
+            try
+            {
+                //var data = JsonConvert.DeserializeObject<BarCodeDetail>(sWhere);
+                //sWhere = "12727077,'1207','DB00000475'";
+                ds = oCN.RunProcReturn("exec h_p_Kf_BarCodeDetailQuery "+sWhere, "h_p_Kf_BarCodeDetailQuery");
+
+                foreach (DataColumn col in ds.Tables[0].Columns)
+                {
+
+                    Type dataType = col.DataType;
+                    string ColmString = "{\"ColmCols\":\"" + col.ColumnName + "\",\"ColmType\":\"" + dataType.Name + "\"}";
+                    columnNameList.Add(JsonConvert.DeserializeObject(ColmString));//鑾峰彇鍒癉ataColumn鍒楀璞$殑鍒楀悕
+                }
+
+                //if (ds.Tables[0].Rows.Count > 0)
+                //{
+                objJsonResult.code = "1";
+                objJsonResult.count = ds.Tables[0].Rows.Count;
+                objJsonResult.Message = "鑾峰彇璧勬簮缁戝畾鏁版嵁鎴愬姛锛�";
+                objJsonResult.data = JsonConvert.DeserializeObject<DataTable>(JsonConvert.SerializeObject(ds.Tables[0], new IsoDateTimeConverter { DateTimeFormat = "yyyy-MM-dd HH:mm:ss" }));  //搴忓垪鍖朌ataSet涓殑鏃堕棿鏍煎紡锛岀劧鍚庡啀鍙嶅簭鍒楀寲鍥炴潵
+                objJsonResult.list = columnNameList;
+                return objJsonResult;
+                //}
+                //else
+                //{
+                //    objJsonResult.code = "0";
+                //    objJsonResult.count = 0;
+                //    objJsonResult.Message = "鏆傛棤璧勬簮缁戝畾锛�";
+                //    objJsonResult.data = null;
+                //    objJsonResult.list = columnNameList;
+                //    return objJsonResult;
+                //}
+
+            }
+            catch (Exception e)
+            {
+
+                objJsonResult.code = "0";
+                objJsonResult.count = 0;
+                objJsonResult.Message = e.Message.ToString();
+                objJsonResult.data = null;
+                objJsonResult.list = columnNameList;
+            }
+            return objJsonResult;
+        }
+        #endregion
+
+
+        #region 鏉$爜鍑哄叆搴撶紦瀛�
+        #region 鏉$爜鍑哄叆搴撶紦瀛樺垪琛�
+        [Route("Kf_ICStockInOutBill/GetPonderationBillMain_Temp")]
+        [HttpGet]
+        public object GetPonderationBillMain_Temp(string sWhere,string user)
+        {
+            try
+            {
+                //缂栬緫鏉冮檺
+                if (!DBUtility.ClsPub.Security_Log_second("Gy_BarCodeBillList", 1, false, user))
+                {
+                    objJsonResult.code = "0";
+                    objJsonResult.count = 0;
+                    objJsonResult.Message = "鏃犳煡鐪嬫潈闄愶紒";
+                    objJsonResult.data = null;
+                    return objJsonResult;
+                }
+                DataSet ds = new DataSet();
+                string sql1 = string.Format(@"select * from h_v_KF_PonderationBillMain_Temp2 where 1=1 ");
+                if (sWhere == null || sWhere.Equals(""))
+                {
+                    ds= oCN.RunProcReturn(sql1 + "order by HInterID desc", "h_v_KF_PonderationBillMain_Temp2");
+                }
+                else
+                {
+                    ds = oCN.RunProcReturn(sql1 + sWhere + "order by HInterID desc", "h_v_KF_PonderationBillMain_Temp2");
+                }
+                if (ds.Tables[0].Rows.Count == 0)
+                {
+                    objJsonResult.code = "0";
+                    objJsonResult.count = 0;
+                    objJsonResult.Message = "鏌ヨ鏁版嵁寮傚父锛岃涓庣鐞嗗憳鑱旂郴锛�";
+                    objJsonResult.data = null;
+                    return objJsonResult;
+                }
+                else
+                {
+                    objJsonResult.code = "1";
+                    objJsonResult.count = 1;
+                    objJsonResult.Message = "杩斿洖璁板綍鎴愬姛锛�";
+                    objJsonResult.data = ds.Tables[0];
+                    return objJsonResult;
+                }
+            }
+            catch (Exception e)
+            {
+
+                objJsonResult.code = "0";
+                objJsonResult.count = 0;
+                objJsonResult.Message = e.Message.ToString();
+                objJsonResult.data = null;
+            }
+            return objJsonResult;
+        }
+        #endregion
+
+        #region 鏉$爜鍑哄叆搴撶紦瀛樺垹闄�
+        [Route("Kf_ICStockInOutBill/DelectPonderationBillMain_TempByID")]
+        [HttpGet]
+        public object DelectPonderationBillMain_TempByID(string HInterID, string user)
+        {
+            //缂栬緫鏉冮檺
+            if (!DBUtility.ClsPub.Security_Log_second("Gy_BarCodeBillList_Delete", 1, false, user))
+            {
+                objJsonResult.code = "0";
+                objJsonResult.count = 0;
+                objJsonResult.Message = "鏃犲垹闄ゆ潈闄愶紒";
+                objJsonResult.data = null;
+                return objJsonResult;
+            }
+
+            string s = "";
+            Int64 lngBillKey = 0;
+            lngBillKey = DBUtility.ClsPub.isLong(HInterID);
+            if (lngBillKey == 0)
+            {
+                objJsonResult.code = "0";
+                objJsonResult.count = 0;
+                objJsonResult.Message = "鍗曟嵁ID涓虹┖锛�";
+                objJsonResult.data = null;
+                return objJsonResult;
+            }
+            DataSet ds = new DataSet();
+            DataSet ds1 = new DataSet();
+            ds = oCN.RunProcReturn("select * from KF_PonderationBillMain_Temp where HInterID="+ HInterID, "KF_PonderationBillMain_Temp");
+            if (ds.Tables[0].Rows.Count!=0)
+            {
+                oCN.BeginTran();
+                oCN.RunProc("delete from KF_PonderationBillMain_Temp where HInterID=" + HInterID);
+                objJsonResult.code = "1";
+                objJsonResult.count = 1;
+                objJsonResult.Message = "鍒犻櫎鎴愬姛";
+                objJsonResult.data = null;
+                oCN.Commit();
+                return objJsonResult;
+            }
+            else
+            {
+                objJsonResult.code = "0";
+                objJsonResult.count = 0;
+                objJsonResult.Message = "鍗曟嵁鏈壘鍒�";
+                objJsonResult.data = null;
+                return objJsonResult;
+            }
+        }
+        #endregion
+        #endregion
+
+        #region 鎵爜璁板綍缂撳瓨鍒楄〃
+         [Route("Kf_ICStockInOutBill/GetKF_PonderationBillMain_Temp")]
+        [HttpGet]
+        public object GetKF_PonderationBillMain_Temp(string sWhere)
+        {
+            try
+            {
+                DataSet ds = new DataSet();
+                string sql1 = string.Format(@"select * from h_v_KF_PonderationBillList_Query where 1=1 ");
+                if (sWhere == null || sWhere.Equals(""))
+                {
+                    ds = oCN.RunProcReturn(sql1 + "order by 鍒跺崟鏃ユ湡 desc", "h_v_KF_PonderationBillList_Query");
+                }
+                else
+                {
+                    ds = oCN.RunProcReturn(sql1 + sWhere + "order by 鍒跺崟鏃ユ湡 desc", "h_v_KF_PonderationBillList_Query");
+                }
+                if (ds.Tables[0].Rows.Count == 0)
+                {
+                    objJsonResult.code = "0";
+                    objJsonResult.count = 0;
+                    objJsonResult.Message = "鏌ヨ鏁版嵁寮傚父锛岃涓庣鐞嗗憳鑱旂郴锛�";
+                    objJsonResult.data = null;
+                    return objJsonResult;
+                }
+                else
+                {
+                    objJsonResult.code = "1";
+                    objJsonResult.count = 1;
+                    objJsonResult.Message = "杩斿洖璁板綍鎴愬姛锛�";
+                    objJsonResult.data = ds.Tables[0];
+                    return objJsonResult;
+                }
+
+            }
+            catch (Exception e)
+            {
+
+                objJsonResult.code = "0";
+                objJsonResult.count = 0;
+                objJsonResult.Message = e.Message.ToString();
+                objJsonResult.data = null;
+            }
+            return objJsonResult;
+        }
+        #endregion
+
     }
 }
\ No newline at end of file

--
Gitblit v1.9.1