| | |
| | | } |
| | | #endregion |
| | | |
| | | //转移模å |
| | | #region 转移模å |
| | | // 转移模å |
| | | [Route("WEBSController/CheckHW")] |
| | | [HttpGet] |
| | | public object CheckHW(int HWhID,int HSPID,int HWhID2,int HSPID2,string HBarCode,string HCarBarCode1,string HCarBarCode2,string UserID) |
| | |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | #region æ 康 çäº§é¢æåæ ¡éª æ«ææºå è·åçäº§é¢æåå䏿¸¸é¢æåæªå®¡æ ¸ åæ® |
| | | #region æ 康 çäº§é¢æåæ ¡éª æ«ææºå è·åçäº§é¢æåå䏿¸¸é¢æåæªå®¡æ ¸ åæ® |
| | | [Route("WEBSController/get_BillBarCode_BillCheck_Json_MateOut_HuiKang")] |
| | | [HttpGet] |
| | | public Object get_BillBarCode_BillCheck_Json_MateOut_HuiKang(string HBillNo, string HBillType, string HMaker, Int64 HStockOrgID) |
| | |
| | | |
| | | #endregion |
| | | |
| | | |
| | | #region æ£éªå æ«ææºå æ ¹æ®åæ®ç±»å æºåç±»å æºåå· è§£æå¹¶è¿åæ£éªé¡¹ç® |
| | | [Route("WEBSController/get_CheckBillBarCode_Json_CheckItem")] |
| | | [HttpGet] |
| | | public Object get_CheckBillBarCode_Json_CheckItem(int HBillType, int HSourceBillType, string HBarCode, string HInterID, string HEntryID, int Mode) |
| | | { |
| | | try |
| | | { |
| | | // Mode = 1 表示 æ«ç æ¨¡å¼ Mode = 2 表示 é忍¡å¼ |
| | | if(Mode == 1) |
| | | { |
| | | //æ«ç 模å¼éè¦è§£ææ¡ç è·åHInterIDåHEntryID |
| | | ds = oCn.RunProcReturn($@" |
| | | exec h_p_CheckBillBarCode_AnalysisBarcode |
| | | @HBillType={HBillType}, |
| | | @HSourceBillType={HSourceBillType}, |
| | | @HBarCode={HBarCode} |
| | | ", "h_p_CheckBillBarCode_AnalysisBarcode"); |
| | | |
| | | if (ds.Tables[0].Rows.Count == 0) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "æ«æåæ®æ¡ç å¤±è´¥ï¼æ¡ç è§£æå¤±è´¥ï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | HInterID = ds.Tables[0].Rows[0]["HInterID"].ToString(); |
| | | HEntryID = ds.Tables[0].Rows[0]["HEntryID"].ToString(); |
| | | } |
| | | // é忍¡å¼ç´æ¥éå
¥HInterID å HEntryID æ ¹æ® åè´¨æ£æ¹æ¡æ¥æº è·å æ£éªé¡¹ç® |
| | | ds = oCn.RunProcReturn($@" |
| | | exec h_p_CheckBillBarCode_CheckItem |
| | | @HBillType={HBillType}, |
| | | @HSourceBillType={HSourceBillType}, |
| | | @HInterID={HInterID}, |
| | | @HEntryID={HEntryID} |
| | | ", "h_p_CheckBillBarCode_CheckItem"); |
| | | |
| | | if(ds.Tables[0].Rows.Count == 0) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "æ«æåæ®æ¡ç å¤±è´¥ï¼æ ç»å®è´¨æ£æ¹æ¡ä¿¡æ¯"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "successï¼"; |
| | | objJsonResult.data = ds.Tables[0]; |
| | | return objJsonResult; |
| | | |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "æ«æåæ®æ¡ç 失败ï¼" + e.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | #endregion |
| | | } |
| | | } |