public ActionResult PrintFrom(string keyValue) { ViewBag.UserName = Code.OperatorProvider.Provider.Current().UserName; DateTime time = DateTime.Now; ViewBag.year = time.Year.ToString(); ViewBag.month = (time.Month < 10 ? ("0" + time.Month.ToString()) : time.Month.ToString()); ViewBag.day = (time.Day < 10 ? ("0" + time.Day.ToString()) : time.Day.ToString()); string property_id = ""; if (!string.IsNullOrEmpty(Utils.GetCookie("property_id"))) { property_id = Utils.GetCookie("property_id"); } OtherincomeEntity ent_other = otherincomebll.GetEntity(keyValue); ViewBag.customer = ent_other.customer; string ticketid = ent_other.ticketid; string strType = ticketid.Substring(0, 2); ViewBag.ticType = (strType == "00" ? "收据" : (strType == "01" ? "发票" : (strType == "02" ? "停车发票" : (strType == "04" ? "虹联发票" : (strType == "05" ? "虹联收据" : "新厦发票"))))); ViewBag.ticketCode = ticketid.Substring(2, ticketid.Length - 2); return(View()); }
/// <summary> /// 保存表单(新增、修改) /// </summary> /// <param name="keyValue">主键值</param> /// <param name="entity">实体对象</param> /// <param name="entryList">子实体对象</param> /// <returns></returns> public string SavesForm(string keyValue, OtherincomeEntity entity, List <OtherincomeitemEntity> entryList) { try { return(service.SavesForm(keyValue, entity, entryList)); } catch (Exception) { throw; } }
/// <summary> /// 保存表单(新增、修改) /// </summary> /// <param name="keyValue">主键值</param> /// <param name="entity">实体对象</param> /// <returns></returns> public void SaveForm(string keyValue, OtherincomeEntity entity) { try { service.SaveForm(keyValue, entity); } catch (Exception) { throw; } }
public ActionResult SaveForm(string keyValue, OtherincomeEntity entity) { otherincomebll.SaveForm(keyValue, entity); return(Success("操作成功。")); }