public IActionResult Add(string id) { var model = new Wms_stockin(); if (id.IsEmpty()) { return(View(model)); } else { model = _stockinServices.QueryableToEntity(c => c.StockInId == SqlFunc.ToInt64(id) && c.IsDel == 1); return(View(model)); } }
public IActionResult Delete(string id) { var isDel = _stockinServices.QueryableToEntity(c => c.SupplierId == SqlFunc.ToInt64(id)); if (!isDel.IsNullT()) { return(BootJsonH((false, PubConst.Supplier2))); } var flag = _supplierServices.Update(new Wms_supplier { SupplierId = SqlFunc.ToInt64(id), IsDel = 0, ModifiedBy = UserDtoCache.UserId, ModifiedDate = DateTimeExt.DateTime }, c => new { c.IsDel, c.ModifiedBy, c.ModifiedDate }); return(BootJsonH(flag ? (flag, PubConst.Delete1) : (flag, PubConst.Delete2))); }