| | |
| | | |
| | | #endregion |
| | | |
| | | #region è·åæå¤§åæ®å· |
| | | |
| | | /// <summary> |
| | | /// è·åæå¤§åæ®å· |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [Route("WEBSController/GetMaxBillNo_Json")] |
| | | [HttpGet] |
| | | public object GetMaxBillNo_Json(string HBillType) |
| | | { |
| | | try |
| | | { |
| | | string sErrMsg = ""; |
| | | string HBillNo = ""; |
| | | HBillNo = DBUtility.ClsPub.CreateBillCode_Prod(HBillType, ref sErrMsg, true); |
| | | |
| | | //----------å建è表------------------------ |
| | | DataTable dt_Main = new DataTable("Json"); |
| | | dt_Main.Columns.Add("HBillNo", typeof(string)); |
| | | //---------å建æ°è¡------------------------ |
| | | DataRow dr_main = dt_Main.NewRow(); //å建æ°è¡ |
| | | dt_Main.Rows.Add(dr_main); //å°æ°è¡å å
¥å°è¡¨ä¸ |
| | | dr_main["HBillNo"] = DBUtility.ClsPub.isStrNull(HBillNo); |
| | | //è¿åæ°æ® |
| | | if (HBillNo == "") |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "æå¤§åæ®å·è·å失败"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | else |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "è·åæå"; |
| | | objJsonResult.data = dt_Main; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "è·åæå¤§åæ®å·å¤±è´¥ï¼" + e.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | |
| | | #endregion |
| | | |
| | | |
| | | #region æ ¹æ®æ¡ç ï¼è¿åæ¡ç æ¡£æ¡ä¸æ¡ç ä¿¡æ¯ |
| | | |