public ActionResult backone() { dynamic data = new System.Dynamic.ExpandoObject(); var no = WebRequest.GetString("no", true); var type = WebRequest.GetString("type", true); var model = new V_DelegateBackModel(); List <V_DelegateSendDetailModel> list = new List <V_DelegateSendDetailModel>(); var message = ""; var order = ""; if (type == "" || no == "") { #region 创建申请单 type = "add"; no = bomService.GetDelegateBackNo(); #endregion } else if (type == "edit") { model = ServiceDB.Instance.QueryOneModel <V_DelegateBackModel>("select * from V_DelegateBackModel where backNo='" + no + "'"); } data.no = no; data.one = model; data.order = order; data.message = message; data.type = type; return(View(data)); }