| | |
| | | //msg2 = "[" + msg2.ToString() + "]"; |
| | | msg1 = "[" + msg1.ToString() + "]"; |
| | | DAL.ClsSc_MouldProdOutBill BillNew = new DAL.ClsSc_MouldProdOutBill(); |
| | | List<Model.ClsSc_MouldProdOutBillMain> mainList = Newtonsoft |
| | | List<Model.ClsSc_MouldStockBillMain> mainList = Newtonsoft |
| | | .Json |
| | | .JsonConvert |
| | | .DeserializeObject<List<Model.ClsSc_MouldProdOutBillMain>>(msg1); |
| | | .DeserializeObject<List<Model.ClsSc_MouldStockBillMain>>(msg1); |
| | | List<Model.ClsSc_MouldStockBillSub> subList = Newtonsoft |
| | | .Json |
| | | .JsonConvert |
| | |
| | | } |
| | | BillNew.omodel.HYear = sYear; |
| | | BillNew.omodel.HPeriod = sPeriod; |
| | | BillNew.omodel.HInterID = mainList[0].HInterID; |
| | | BillNew.omodel.HBillNo = mainList[0].HBillNo.Trim(); |
| | | BillNew.omodel.HMaker = mainList[0].HMaker; |
| | | BillNew.omodel.HDate = HDate; |
| | |
| | | BillNew.omodel.HRedBlueFlag = mainList[0].HRedBlueFlag; |
| | | BillNew.DetailColl = new List<Model.ClsSc_MouldStockBillSub>(); |
| | | Model.ClsSc_MouldStockBillSub oSub = new Model.ClsSc_MouldStockBillSub(); |
| | | |
| | | |
| | | oSub.HInterID = mainList[0].HInterID; |
| | | oSub.HEntryID = 1; |
| | | oSub.HRemark = DBUtility.ClsPub.isStrNull(subList[0].HRemark); |
| | | oSub.HSourceInterID = DBUtility.ClsPub.isLong(subList[0].HSourceInterID); |
| | |
| | | { |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = ClsPub.sExeReturnInfo + "单据号:" + mainList[0].HBillNo.Trim(); |
| | | objJsonResult.Message = ClsPub.sExeReturnInfo + "单据号:" + mainList[0].HInterID.ToString()+"单据主ID:"+ mainList[0].HInterID; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |