Ejemplo n.º 1
0
 public ActionResult Create(Guid? id, EnumPageState? pageState)
 {
     ViewBag.PageState = GetPageState(id, pageState);
     if (id != null)
     {
         //修改供应商信息
         ModelSampleCreate model = new ModelSampleCreate();
         model.UTSample = bizUTSupplier.GetByID(id.Value);
         return View(model);
     }
     return View();
 }
Ejemplo n.º 2
0
 public ActionResult Create(ModelSampleCreate model)
 {
     try
     {
         model.Save();
         return Content(WebTools.ScriptCloseDialog(DialogOption.GetDefaultInstance(new DialogOption() { HighlightData=model.UTSample.ID })));
     }
     catch
     {
         Error = "操作失败";
         ViewBag.PageState = PageState;
         return View(model);
     }
 }