/// <summary> /// 打胶信息提交 /// </summary> /// <param name="jsondata"></param> /// <returns></returns> public async Task <MessageModel <GlueSubmitRaturns> > GlueSubmit(GlueSubmitParam jsondata) { MessageModel <GlueSubmitRaturns> message = new MessageModel <GlueSubmitRaturns>(); GlueSubmitRaturns resultModel = new GlueSubmitRaturns(); try { //更新出货牌流水号 //await _dal.UpdateShipcartCode(jsondata); //增加出货牌 await _dal.InsertShipcart(jsondata); await _dal.wip_QTY(jsondata); if (jsondata.solutions_Name != null) { await _dal.AddTestValue("溶液名称", jsondata); } if (jsondata.cmbSolutions_name != null) { jsondata.solutions_Name = jsondata.cmbSolutions_name; await _dal.AddTestValue("溶液名称", jsondata); } message.success = true; message.msg = "添加成功"; } catch (Exception ex) { message.success = false; message.msg = "添加失败"; } resultModel = _mapper.Map <GlueSubmitRaturns>(jsondata); message.response = resultModel; return(message); }