@model ClientCashInCashOut @{ ViewBag.Title = "新增资金记录"; Layout = "~/Views/Shared/_InfoLayout.cshtml"; var changeBeforeConfirm = Model.State == "未确认" || Model.State == "" || (Model.Direction.Contains("其他") && CurUser.结算管理_已确认资金记录维护); var isChangeAfterConfirm = CurUser.交易管理_已确认交易资金维护; } @section CSS{ } @section JS{ } @using (Html.BeginForm("entryexitEdit", "entryexit", FormMethod.Post, new { id = "entryexitEditForm" })) {
@Html.HiddenFor(model => model.Money) @Html.HiddenFor(model => model.EncryptId) @if (changeBeforeConfirm) { @Html.MyDropdownFor(model => model.Direction, GlobalData.GetSelectItems(new List { "其他收入", "其他支出" }), null, "", false) } else { @Html.MyTextFor(model => model.Direction); } @Html.MyTextFor(model => model.MoneyStr, new { onkeyup = "changePrice()", onfocus = "moneyOnFocus()", onblur = "this.value=cc(this.value)" }) @Html.MyDateTimeFor(model => model.HappenDate) @Html.MyTextFor(model => model.Comments) @if (Model.id > 0) { @Html.MyTextFor(model => model.Explain) }
@MyControls.Btn("保存", "saveentryexit()") @MyControls.Btn("关闭", "layer.closeMe()")
}