| WebAPI/Controllers/仓存管理/条码生成/Sc_BarCodeController.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| WebAPI/Controllers/条码管理/WEBSController.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
WebAPI/Controllers/²Ö´æ¹ÜÀí/ÌõÂëÉú³É/Sc_BarCodeController.cs
@@ -3126,7 +3126,13 @@ string HMaterialName = DBUtility.ClsPub.isStrNull(ordrlist.HMaterName); string HSupNumber = DBUtility.ClsPub.isStrNull(ordrlist.HSupNumber).Replace(".", ""); //ä¾åºå代ç ï¼å»æåéç¬¦ï¼ int lastDigit = int.Parse(DateTime.Today.Year.ToString().Last().ToString()); char productionMonth = DateTime.Today.Month <= 9 int currentMonth = DateTime.Now.Month; char[] monthToLetter = { 'N', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z' }; char productionMonth = monthToLetter[currentMonth - 1]; char productionDay = DateTime.Today.Month <= 9 ? (char)(DateTime.Today.Month + '0') : (char)('A' + DateTime.Today.Month - 10); if (HMaterialName.Trim() == "") @@ -3136,6 +3142,7 @@ objJsonResult.Message = "ç©æä¸è½ä¸ºç©ºï¼ä¸è½çææ¡ç ï¼"; return objJsonResult; } DataSet dss = oCN.RunProcReturn("",""); //todo //æ¡ç åç¼ = p+ååSKU+ç产年份+ç产æä»½+6使µæ°´å·+ç产工å代ç sTMNumber = "P" + HMaterialName + lastDigit+ productionMonth; WebAPI/Controllers/ÌõÂë¹ÜÀí/WEBSController.cs
@@ -13673,5 +13673,50 @@ } #endregion #region æ·»åº·æ ¹æ®å°è½¦æ¡ç æ¾åºç¸åºç©æ #endregion [Route("WEBSController/GetMaterIDByCarBarCode")] [HttpGet] public object GetMaterIDByCarBarCode(string CarBarCode) { try { ds = oCn.RunProcReturn("select * from GetMaterMesByCarBarCode where å°è½¦='" + CarBarCode.ToString() + "'" , "GetMaterMesByCarBarCode"); if (ds == null || ds.Tables[0].Rows.Count == 0) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "没æè¿åä»»ä½è®°å½ï¼"; objJsonResult.data = null; return objJsonResult; } else { List<object> columnNameList = new List<object>(); //æ·»å åå 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 = "0"; objJsonResult.count = 1; objJsonResult.Message = "æåï¼"; objJsonResult.data = ds.Tables[0]; objJsonResult.list = columnNameList; return objJsonResult; } } catch (Exception e) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "æ ¹æ®ç©æè¿åç¼åå表æ¡ç ä¿¡æ¯å¤±è´¥ï¼" + e.ToString(); objJsonResult.data = null; return objJsonResult; } } } }