| WebAPI/Controllers/CJGL/Cj_CheckBarcodeController.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| WebAPI/Controllers/CJGL/Cj_SingleStationController.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| WebAPI/Controllers/条码管理/WEBSController.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
WebAPI/Controllers/CJGL/Cj_CheckBarcodeController.cs
@@ -122,5 +122,62 @@ } #endregion #region æç®±å°å« [Route("CheckBarcodeController/UnpackMiddleBox")] [HttpGet] public object UnpackMiddleBox(string HBarCode_Middle,int signal,string HMaker,string HDate) { try { if(signal==1)//æ«ç { DataSet ds = oCn.RunProcReturn("select a.HCaseCode ä¸ç®±ç ,a.HBarCode 对åºçSNç ,b.HNumber ç©æä»£ç ,b.HName ç©æåç§° from Gy_CaseCodeRelation a left join Gy_Material b on a.HMaterID=b.HItemID where HCaseCode='" + HBarCode_Middle + "'", "Gy_CaseCodeRelation"); if (ds.Tables[0].Rows[0]["ä¸ç®±ç "].ToString() =="" || ds == null) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "æ¡ç ä¸åå¨ï¼è¯·æ£æ¥æ¯å¦è£ ç®±"; objJsonResult.data = null; return objJsonResult; } objJsonResult.code = "1"; objJsonResult.count = 1; objJsonResult.Message = "æå"; objJsonResult.data = ds.Tables[0]; return objJsonResult; } else { oCn.BeginTran(); oCn.RunProc("delete from Gy_CaseCodeRelation where HCaseCode='"+ HBarCode_Middle+"'"); DataSet dss = oCn.RunProcReturn("select * from Gy_BarCodeBill where HBarCode=' "+ HBarCode_Middle + "'", "Gy_BarCodeBill"); if(dss!=null&&dss.Tables.Count>0) { oCn.RunProc("delete from Gy_BarCodeBill where HBarCode='"+ HBarCode_Middle + "'"); } oCn.RunProc("insert into System_log VALUES('"+ HDate + "','"+HMaker+"','',"+ "'å°å«æç®±æ¡ç "+ HBarCode_Middle + "',"+ "'APP-ä¸ç®±ç æç®±'"+",'',"+ "'å 餿¡ç ')"); oCn.Commit(); objJsonResult.code = "1"; objJsonResult.count = 1; objJsonResult.Message = "æå"; objJsonResult.data = null; return objJsonResult; } } catch (Exception) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "é误请è系管çå"; objJsonResult.data = null; return objJsonResult; } } #endregion } } WebAPI/Controllers/CJGL/Cj_SingleStationController.cs
@@ -3777,6 +3777,122 @@ } #endregion #region å°å«ç»æç¼å æ¥è¯¢ [Route("Cj_SingleStation/xiaoweizutuo_CacheList")] [HttpGet] public object xiaoweizutuo_CacheList(string sWhere, string user, string gnsy) { try { List<object> columnNameList = new List<object>(); if (gnsy != "" && gnsy != null) { //æ¥çæé if (!DBUtility.ClsPub.Security_Log(gnsy, 1, false, user)) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "æ æ¥çæéï¼"; objJsonResult.data = null; return objJsonResult; } } if (sWhere == null || sWhere.Equals("")) { ds = oCN.RunProcReturn("select * from h_v_Sc_PackUnionBill_Temp" + " order by æ æ¿ç desc,ä¸ç®±ç ,SNç ", "h_v_Sc_PackUnionBill_Temp"); } else { string sql1 = "select * from h_v_Sc_PackUnionBill_Temp where 1 = 1 "; string sql = sql1 + sWhere + " order by æ æ¿ç desc,ä¸ç®±ç ,SNç "; ds = oCN.RunProcReturn(sql, "h_v_Sc_PackUnionBill_Temp"); } //æ·»å åå 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));//è·åå°DataColumnå对象çåå } objJsonResult.code = "1"; objJsonResult.count = 1; objJsonResult.Message = "Sucessï¼"; objJsonResult.data = ds.Tables[0]; objJsonResult.list = columnNameList; return objJsonResult; } catch (Exception e) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "Exceptionï¼" + e.ToString(); objJsonResult.data = null; return objJsonResult; } } #endregion #region å°å«ç»æç¼å å é¤ /// <summary> ///åæ°ï¼string HInterIDã ///è¿åå¼ï¼objectã /// </summary> [Route("Cj_SingleStation/deleteBill")] [HttpGet] public object deleteBill(string HInterID, string user,string gnsy) { try { if (gnsy != "" && gnsy != null) { //æ¥çæé if (!DBUtility.ClsPub.Security_Log(gnsy, 1, false, user)) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "æ æ¥çæéï¼"; objJsonResult.data = null; return objJsonResult; } } if (HInterID == null || HInterID.Equals("")) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "HInterIDä¸è½ä¸ºç©ºï¼"; objJsonResult.data = null; return objJsonResult; } oCN.BeginTran(); oCN.RunProc("delete from Sc_PackUnionBill_Temp where HInterID = " + HInterID); oCN.Commit(); objJsonResult.code = "1"; objJsonResult.count = 1; objJsonResult.Message = "Sucessï¼"; objJsonResult.data = null; return objJsonResult; } catch (Exception e) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "Exceptionï¼" + e.ToString(); objJsonResult.data = null; return objJsonResult; } } #endregion #endregion } WebAPI/Controllers/ÌõÂë¹ÜÀí/WEBSController.cs
@@ -9068,6 +9068,29 @@ #endregion #region æ ¹æ®snç 寻æ¾å¯¹åºçä¸ç®±ç [Route("WEBSController/getMiddleCodeBySn")] [HttpGet] public object getMiddleCodeBySn(string HBarCode,int HStockOrgID) { DataSet dss = oCn.RunProcReturn("select * from Gy_CaseCodeRelation where HBarCode='"+ HBarCode + "'", "Gy_CaseCodeRelation"); if (dss.Tables[0].Rows[0]["HCaseCode"].ToString() == "" || dss == null) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "æªæ¾å°snç æå¯¹åºçä¸ç®±ç "; objJsonResult.data = null; return objJsonResult; } objJsonResult.code = "1"; objJsonResult.count = 1; objJsonResult.Message = "æå"; objJsonResult.data = dss.Tables[0]; return objJsonResult; } #endregion #endregion