public ActionResult Create(OutTable Data) { Data.OutstorageDate = DateTime.Now; Data.Workcell = LoginInfo.Workcell; ToolManageService.SaveOutTable(Data); return(RedirectToAction("Out")); }
public ActionResult Create(RepairTable Data) { Data.CreateTime = DateTime.Now; Data.MaintainDate = DateTime.Now; Data.Workcell = LoginInfo.Workcell; ToolManageService.SaveRepairTable(Data); return(RedirectToAction("Index")); }
public ActionResult Create(FormCollection formCollection) { var Data = new InTable(); this.TryUpdateModel(Data); Data.WarehousingDate = DateTime.Now; Data.Workcell = LoginInfo.Workcell; ToolManageService.SaveInTable(Data); return(RedirectToAction("Index")); }
public ActionResult Information_Edit(tongs_entity Data) { var ImagePath = Data.ImagePath; if (ImagePath != null) { string filename = DateTime.Now.Ticks + ImagePath.FileName; string truepath = Server.MapPath(@"/Upload/"); string filepath = truepath + filename; string urlfilepath = @"/Upload/" + filename; ImagePath.SaveAs(filepath); Data.Photo = urlfilepath; } else { Data.Photo = ToolManageService.Gettongs_entity(Data.ID).Photo; } this.ToolManageService.Savetongs_entity(Data); return(this.RefreshParent()); }