| | |
| | | //var baOrUpdate = QTCKDetailManager.InsertRange(mesQTCKDatas); |
| | | //if (orUpdate && baOrUpdate) return true; |
| | | |
| | | UseTransaction(db => |
| | | var update_res=UseTransaction(db => |
| | | { |
| | | |
| | | var id = db.Insertable(mesQTCK).ExecuteReturnIdentity(); |
| | |
| | | return 1; |
| | | }); |
| | | |
| | | |
| | | if (update_res==1) return true; |
| | | throw new NotImplementedException("插入或更新失败"); |
| | | } |
| | | |
| | |
| | | BillNo = erpDto.FBillNo, |
| | | FDate = ParseDateTime(erpDto.FDate) ?? null, |
| | | BillType = erpDto.FBillTypeID, // 单据类型 |
| | | CustId = Convert.ToDecimal(erpDto.FCustId), // 客户ID |
| | | CustId = erpDto.FCustId, // 客户ID |
| | | DeptId = erpDto.FDeptId, //销售部门 |
| | | BizType = erpDto.FBizType, // |
| | | OwnerTypeIdHead = erpDto.FOwnerTypeIdHead, // |
| | | Note = erpDto.FNote, // |
| | | CreatorId = erpDto.FCreatorId, // |
| | | CreateDate = ParseDateTime(erpDto.FCreateDate) ?? null, // |
| | | ModifierId = Convert.ToDecimal(erpDto.FModifierId), // |
| | | ModifierId = erpDto.FModifierId, // |
| | | ModifyDate = ParseDateTime(erpDto.FModifyDate) ?? null, // |
| | | ApproveDate = ParseDateTime(erpDto.FApproveDate) ?? null, // |
| | | CloseStatus = Convert.ToDecimal(erpDto.FCloseStatus), // |
| | | CloserId = Convert.ToDecimal(erpDto.FCloserId), // |
| | | CloseStatus = erpDto.FCloseStatus, // |
| | | CloserId = erpDto.FCloserId, // |
| | | CloseDate = ParseDateTime(erpDto.FCloseDate) ?? null, // |
| | | ApplyType = erpDto.FApplyType |
| | | ApplyType = erpDto.FApplyType, |
| | | F_UNW_CKLX= erpDto.F_UNW_CKLX |
| | | |
| | | }; |
| | | |
| | |
| | | StockLocId = erpDto.FStockLocId,// |
| | | Lot = erpDto.FLot,// |
| | | OwnerTypeId = erpDto.FOwnerTypeId,// |
| | | OwnerId = Convert.ToDecimal(erpDto.FOwnerId),// |
| | | OwnerId = erpDto.FOwnerId,// |
| | | MtoNo = erpDto.FMtoNo,// |
| | | StockStatusId = erpDto.FStockStatusId,// |
| | | EntryNote = erpDto.FEntryNote,// |