摘要: 修改时在view页面使用修改关联表字段,导致提交时不仅更新当前表,也自动更新关联表,引发上述错误,重点检查View Edit 或Create页面有无类似下面的语句 @Html.EditorFor(model => model.xxxx.yyyyy, new { htmlAttributes = ne 阅读全文
posted @ 2017-11-04 10:32 沙闻 阅读(1037) 评论(0) 推荐(0) 编辑
摘要: <text style="color:red;" id="morejl"></text> $("#morejl").append("XXXXXX!"); //添加 $("#morejl").text("YYYYYYYYY!"); //替换 阅读全文
posted @ 2017-11-04 10:30 沙闻 阅读(1063) 评论(0) 推荐(0) 编辑
摘要: CodeFirst在Model中设置字段: [DataType(DataType.MultilineText)] [StringLength(300, ErrorMessage = "录入的字符数超过了300")] 再在前端页面的世style中设置高度宽度 @Html.EditorFor(model 阅读全文
posted @ 2017-11-04 10:28 沙闻 阅读(1402) 评论(0) 推荐(0) 编辑
摘要: @foreach (var item in Model) { <tr style="background-color:@{if (item.ReceQuantity>=item.BuyQuaity ){<text>lightgreen</text>}};"> $("#grd").find("tr") 阅读全文
posted @ 2017-11-04 10:25 沙闻 阅读(1543) 评论(0) 推荐(0) 编辑
摘要: 不用增加列,将报表中的行合并加总显示 阅读全文
posted @ 2017-11-04 10:23 沙闻 阅读(453) 评论(0) 推荐(0) 编辑
摘要: 打开报表,在菜单报表(REPORT)点报表属性 在code下添加如下代码:(不用管语言是vb的) Dim count As Integer Dim GroupName As String Public Function GroupCount(name As String) As Integer If 阅读全文
posted @ 2017-11-04 10:21 沙闻 阅读(859) 评论(0) 推荐(0) 编辑