/// <summary>
        /// 业主修改报修试图
        /// </summary>
        /// <param name="RepairID"></param>
        /// <returns></returns>
        public ActionResult User_RepairUpdate(string RepairID)
        {
            //根据传过来的id获取选中账号的信息,并把查到的数据赋值给viewbag,以便页面绑定数据
            RepairInfoOutput model = RepairInfoService.GetModelByID(RepairID);

            if (model != null)
            {
                ViewBag.model = model;
            }

            return(View());
        }
Esempio n. 2
0
        /// <summary>
        /// 修改视图
        /// </summary>
        /// <param name="RepairID"></param>
        /// <returns></returns>
        public ActionResult RepairUpdate(string RepairID)
        {
            //根据传过来的id获取选中账号的信息,并把查到的数据赋值给viewbag,以便页面绑定数据
            RepairInfoOutput model = RepairInfoService.GetModelByID(RepairID);

            ViewBag.RsubmitData = model.RsubmitData.ToString("yyyy'-'MM'-'dd");
            //ViewBag.RsolveData = model.RsolveData.ToString();
            if (model != null)
            {
                ViewBag.model = model;
                DateTime?dateTime = model.RsolveData;
                ViewBag.RsolveData = dateTime == null ? "" : dateTime.Value.ToString("yyyy'-'MM'-'dd");
            }
            ViewBag.userName = Session["userName"].ToString();

            return(View());
        }