| | |
| | | .ExecuteCommand(); |
| | | }); |
| | | } |
| | | |
| | | public int SetQSItemDetail(MesOqcItemsDetectDetail12 detail) |
| | | { |
| | | var oracle = SqlSugarHelper.UseTransactionWithOracle(db => |
| | | { |
| | | List<MesOqcItemsDetectDetail12> result = new(); |
| | | for (var i = 0; i < detail.count; i++) |
| | | { |
| | | var item = new MesOqcItemsDetectDetail12(); |
| | | item.MainId = detail.MainId; |
| | | item.ReleaseNo = detail.ReleaseNo; |
| | | item.Fstand = detail.Fstand; |
| | | item.FcheckResu = detail.FcheckResu; |
| | | item.CreateBy = detail.LastupdateBy; |
| | | item.CreateDate = DateTime.Now; |
| | | item.Factory = "1000"; |
| | | item.Company = "1000"; |
| | | result.Add(item); |
| | | } |
| | | |
| | | return db.Insertable(result).ExecuteCommand(); |
| | | }); |
| | | |
| | | detail.CreateBy = detail.LastupdateBy; |
| | | |
| | | autoResult(detail); |
| | | |
| | | return oracle; |
| | | } |
| | | } |