Ejemplo n.º 1
0
        public async Task <IHttpActionResult> Update(params MaterialStorageLogInfoInputDto[] dto)
        {
            //修改人员、时间
            dto?.ToList().ForEach((a) =>
            {
                a.LastUpdatedTime   = DateTime.Now;
                a.LastUpdatorUserId = User.Identity.Name;
            });
            //
            var result = await MaterialStorageLogInfoContract.Update(dto);

            return(Json(result));
        }
Ejemplo n.º 2
0
        public async Task <IHttpActionResult> Add(params MaterialStorageLogInfoInputDto[] inputDtos)
        {
            //创建和修改的人员、时间
            inputDtos?.ToList().ForEach((a) =>
            {
                a.Id                = CombHelper.NewComb();
                a.CreatorUserId     = User.Identity.Name;
                a.CreatedTime       = DateTime.Now;
                a.LastUpdatedTime   = a.CreatedTime;
                a.LastUpdatorUserId = a.CreatorUserId;
            });
            //
            var result = await MaterialStorageLogInfoContract.Add(inputDtos);

            return(Json(result));
        }
Ejemplo n.º 3
0
        public async Task <IHttpActionResult> Remove(params Guid[] ids)
        {
            var result = await MaterialStorageLogInfoContract.Delete(ids);

            return(Json(result));
        }