public ActionResult Add() { Doc_Info info = new Doc_Info(); info.Doc_Code = diInstance.GenerateDocCode(); info.Doc_Creator = SessionConfig.UserId(); info.Doc_CreatorName = SessionConfig.UserName(); info.Doc_DpCode = SessionConfig.DeptCode(); info.Doc_DpName = SessionConfig.DeptName(); info.Doc_Date = DateTime.Now; GetbackUrl(); return(View(info)); }