Exemple #1
0
 public ActionResult Create(OutTable Data)
 {
     Data.OutstorageDate = DateTime.Now;
     Data.Workcell       = LoginInfo.Workcell;
     ToolManageService.SaveOutTable(Data);
     return(RedirectToAction("Out"));
 }
Exemple #2
0
 public ActionResult Create(RepairTable Data)
 {
     Data.CreateTime   = DateTime.Now;
     Data.MaintainDate = DateTime.Now;
     Data.Workcell     = LoginInfo.Workcell;
     ToolManageService.SaveRepairTable(Data);
     return(RedirectToAction("Index"));
 }
Exemple #3
0
        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"));
        }
Exemple #4
0
        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());
        }