public ActionResult Confirm(int RollerProjectInfoID) { WTTESTINFO wttestinfo = wttestinforepo.QueryEntities.FirstOrDefault(x => x.ID == RollerProjectInfoID); RollerProjectInfo project = new RollerProjectInfo() { Approve_Time = wttestinfo.APPROVE_TIME, CheckPersonID = wttestinfo.CHECKER_ID, Commission = wttestinfo.SERIAL_NO, CommissionID = wttestinfo.COMMISSION_ID, Company_Address = wttestinfo.COMPANY_ADDRESS, Platform = wttestinfo.PLATFORM, Product_CateGory = wttestinfo.PRODUCT_CATEGORY, Product_NO = wttestinfo.PRODUCT_NO, Product_Company = wttestinfo.PRODUCT_COMPANY, Product_GL_Code = wttestinfo.PRODUCT_GL_CODE, Product_Name = wttestinfo.PRODUCT_NAME, WTPersonDept = wttestinfo.DEPT_NAME, Product_Type_NO = wttestinfo.PRODUCT_TYPE_NO, Standard_Remark = wttestinfo.STANDARD_REMARK, Standard_Option = wttestinfo.STANDARD_OPTION, ReqStandard = wttestinfo.PRD_REQ_NAME, Re_Finish_Date = wttestinfo.RE_FINISH_DATE, TestID = wttestinfo.ID, TestName = wttestinfo.NAME, TestPersonID = wttestinfo.TESTER_ID, TestStandard = wttestinfo.STANDARD, Test_Purpose = wttestinfo.TEST_PURPOSE, WTPersonName = wttestinfo.CREATOR_NAME, Test_Requirement = wttestinfo.TEST_REQUIREMENTS, Type = wttestinfo.TYPE, }; if (ModelState.IsValid) { projectrepository.SaveRollerProjectInfo(project); Entities context = new Entities(); context.PROCEDURE_ROLLERPROJECTINFO(0); context.SaveChanges(); return(RedirectToAction("Index", "Sample")); } else { return(RedirectToAction("CreateProject")); } }
public ViewResult DetailInfo(int RollerProjectInfoID) { WTTESTINFO wttestinfo = wttestinforepo.QueryEntities.FirstOrDefault(x => x.ID == RollerProjectInfoID); return(View(wttestinfo)); }