// GET: RoomRegQtfy public ActionResult Index(long roomRegId, long itemId = 0) { if (itemId == 0) { return(View(new RoomRegQtfy() { RoomRegId = roomRegId, FsTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm") })); } else { var model = RoomRegQtfyBll.GetById(itemId); if (model == null) { model = new RoomRegQtfy(); } return(View(model)); } }
public ActionResult _Cffy(long id, int rtype) { var data = new RoomRegZw(); if (rtype == 1) { var model = RoomRegFfRecordBll.GetById(id); data.Id = model.Id.ToString(); data.DjNum = string.Empty; data.Remark = model.Remark; data.KdRemark = model.KdRemark; data.Money = model.Money.ToString(); } else if (rtype == 2) { var model = RoomRegGoodsDetailsBll.GetById(id); data.Id = model.Id.ToString(); data.DjNum = string.Empty; data.Remark = model.Remark; data.KdRemark = model.KdRemark; data.Money = model.Money.ToString(); } else if (rtype == 3) { var model = RoomRegSwpcDetailsBll.GetById(id); data.Id = model.Id.ToString(); data.DjNum = string.Empty; data.Remark = model.Remark; data.KdRemark = model.KdRemark; data.Money = model.Money.ToString(); } else if (rtype == 4) { var model = RoomRegQtfyBll.GetById(id); data.Id = model.Id.ToString(); data.DjNum = string.Empty; data.Remark = model.Remark; data.KdRemark = model.KdRemark; data.Money = model.Money.ToString(); } return(View(data)); }