| | |
| | | { |
| | | public int? HORGID;//ç»ç» |
| | | public int? HMATERIALID;//ç©æ |
| | | public int? HDeptID;//çäº§è½¦é´ |
| | | public string HDeptID;//çäº§è½¦é´ |
| | | public int? HSCZYID;//çäº§èµæº |
| | | public string HXQD;//éæ±åå· |
| | | public string HMOBILLNO;//ç产订åå· |
| | | public string HBeginDate; //æäº§è®¡åæ¥æï¼å¼å§æ¶é´ï¼ |
| | | public string HEndDate; //æäº§è®¡åæ¥æï¼ç»ææ¶é´ï¼ |
| | | public string HMaterAtt; //ç©æå±æ§ |
| | | } |
| | | /// <summary> |
| | | /// |
| | |
| | | |
| | | ReportMOMaterReadysBill Report = JsonConvert.DeserializeObject<ReportMOMaterReadysBill>(sWhere); |
| | | |
| | | ds = oCN.RunProcReturn($"exec PR_Complete_Report '{Report.HXQD}','{Report.HMOBILLNO}',{Report.HORGID},{Report.HDeptID},{Report.HSCZYID},{Report.HMATERIALID}", "PR_Complete_Report"); |
| | | ds = oCN.RunProcReturn($"exec PR_Complete_Report '{Report.HXQD}','{Report.HMOBILLNO}',{Report.HORGID},'{Report.HDeptID}',{Report.HSCZYID},{Report.HMATERIALID},'{Report.HBeginDate}','{Report.HEndDate}','{Report.HMaterAtt}'", "PR_Complete_Report"); |
| | | |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | |
| | | //LogService.Write("é½å¥åæsql:" + sql); |
| | | List<PRD_PPBOM> BomList = new List<PRD_PPBOM>(); |
| | | DataTable resulTable = ds.Tables[0]; |
| | | |
| | | if (ds.Tables[0].Rows.Count < 1 || ds == null) |
| | | { |
| | | //éæ¾é½å¥æä½ é¿å
å¤äººåæ¶è¿è¡é½å¥åæ |
| | | oCN.RunProc($"update T_PRD_QTFX set FSTATUS = 0 where FPRDORGID ={omdelMian.HProdORGID} and FSTATUS = 1 "); |
| | | |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "没æéè¦è¿è¡é½å¥åæçæ°æ®"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | if (resulTable.Rows[0][0].ToString().Contains("失败")) |
| | | { |
| | | //éæ¾é½å¥æä½ é¿å
å¤äººåæ¶è¿è¡é½å¥åæ |
| | |
| | | string sJXCode = ""; |
| | | if (oSystemParameter.ShowBill(ref sErrMsg) == true) |
| | | { |
| | | LogService.Write("森楷æ«ç åæ°å¼ï¼å®¢æ·ï¼" + oSystemParameter.omodel.WMS_CampanyName + " ,æºåç±»åï¼" + HSourceBillType); |
| | | |
| | | if (oSystemParameter.omodel.WMS_CampanyName == "å®ç") //ç³»ç»åæ° å®¢æ·å®å¶ååç§° 空ç½ä¸ºéç¨ |
| | | { |
| | | sJXCode = POStockInBillController.JX_Json(sBarCode, HInterID, HBillType, HStockOrgID, HBillNo, HMaker); |