| | |
| | | |
| | | var UserID = App.User?.FindFirstValue("UserID"); |
| | | int userid = 0; |
| | | string ITCode = App.User?.FindFirstValue("ITCode"); |
| | | string NickName = App.User?.FindFirstValue("NickName"); |
| | | if (!string.IsNullOrEmpty(UserID)) |
| | | { |
| | | userid = int.Parse(UserID); |
| | | } |
| | | |
| | | |
| | | if (!string.IsNullOrEmpty(orderDto.OrderName) && orderDto.OrderName.Length > 100) |
| | | { |
| | | throw Oops.Oh("招工名称长度过长!"); |
| | | } |
| | | if (!string.IsNullOrEmpty(orderDto.Demand) && orderDto.Demand.Length > 2000) |
| | | { |
| | | throw Oops.Oh("需求长度过长!"); |
| | | } |
| | | if (!string.IsNullOrEmpty(orderDto.WorderAddress) && orderDto.WorderAddress.Length > 500) |
| | | { |
| | | throw Oops.Oh("工作地点长度过长!"); |
| | | } |
| | | if (!string.IsNullOrEmpty(orderDto.ContactPhone) && orderDto.ContactPhone.Length > 30) |
| | | { |
| | | throw Oops.Oh("联系电话长度过长!"); |
| | | } |
| | | |
| | | var userCompanyRes = new BaseRepository<UserCompany>(); |
| | | var userCompany = await userCompanyRes.GetFirstAsync(p => p.UserId == userid && p.IsEn == true && p.IsDeleted == false); |
| | | if (userCompany == null || string.IsNullOrEmpty(userCompany.BusinessLicense)) |
| | |
| | | order.WorkPrice = orderDto.WorkPrice; |
| | | |
| | | |
| | | order.UpDataBy = ITCode; |
| | | order.UpDataBy = NickName; |
| | | order.UpDataTime = DateTime.Now; |
| | | res = await orderRes.UpdateAsync(order); |
| | | |
| | |
| | | else |
| | | { |
| | | var order = _mapper.Map<Order>(orderDto); |
| | | order.UpDataBy = ITCode; |
| | | order.UpDataBy = NickName; |
| | | order.UpDataTime = DateTime.Now; |
| | | order.CreateBy = ITCode; |
| | | order.CreateBy = NickName; |
| | | order.CreateTime = DateTime.Now; |
| | | order.OrderStatus = 0; |
| | | order.OrderUserId = userid; |
| | |
| | | |
| | | var UserID = App.User?.FindFirstValue("UserID"); |
| | | int userid = 0; |
| | | string ITCode = App.User?.FindFirstValue("ITCode"); |
| | | string NickName = App.User?.FindFirstValue("NickName"); |
| | | if (!string.IsNullOrEmpty(UserID)) |
| | | { |
| | | userid = int.Parse(UserID); |
| | |
| | | |
| | | orderBidding.IsSelected = true; |
| | | orderBidding.Selectedtime = DateTime.Now; |
| | | orderBidding.UpDataBy = ITCode; |
| | | orderBidding.UpDataBy = NickName; |
| | | orderBidding.UpDataTime = DateTime.Now; |
| | | |
| | | |
| | |
| | | |
| | | var UserID = App.User?.FindFirstValue("UserID"); |
| | | int userid = 0; |
| | | string ITCode = App.User?.FindFirstValue("ITCode"); |
| | | string NickName = App.User?.FindFirstValue("NickName"); |
| | | if (!string.IsNullOrEmpty(UserID)) |
| | | { |
| | | userid = int.Parse(UserID); |
| | |
| | | orderBiddingDetail.TodaySalary = dakaDto.TodaySalary; |
| | | orderBiddingDetail.IsShenPi = (int)IsShenPis.yishenpi; |
| | | orderBiddingDetail.ShenPitime = DateTime.Now; |
| | | orderBiddingDetail.UpDataBy = ITCode; |
| | | orderBiddingDetail.UpDataBy = NickName; |
| | | orderBiddingDetail.UpDataTime = DateTime.Now; |
| | | orderBiddingDetail.IsTiXian = true; |
| | | orderBiddingDetail.TiXiantime = DateTime.Now; |
| | | //orderBiddingDetail.CreateBy = ITCode; |
| | | //orderBiddingDetail.CreateBy = NickName; |
| | | //orderBiddingDetail.CreateTime = DateTime.Now; |
| | | res = await orderBiddingDetailRes.UpdateAsync(orderBiddingDetail); |
| | | if (!res) |
| | |
| | | userTiXianDetail.YiTiXianJine = TodaySalary; |
| | | userTiXianDetail.ZhiChuShouRu = (int)ZhiChuShouRus.shouru; |
| | | userTiXianDetail.Remark = "招工订单" + order.OrderName + orderBiddingDetail.WorkDate.Value.ToString("yyyy-MM-dd") + "工资结算"; |
| | | userTiXianDetail.UpDataBy = ITCode; |
| | | userTiXianDetail.UpDataBy = NickName; |
| | | userTiXianDetail.UpDataTime = DateTime.Now; |
| | | userTiXianDetail.CreateBy = ITCode; |
| | | userTiXianDetail.CreateBy = NickName; |
| | | userTiXianDetail.CreateTime = DateTime.Now; |
| | | |
| | | res = await userTiXianDetailRes.InsertAsync(userTiXianDetail); |