1.@using Mapuni.Frame.Model
2.@{
ViewBag.Title = "预报值班记录";
Layout = "~/Views/Shared/_LayoutCommJs.cshtml";
var userInfo = Session["UserBaseInfo"] as Mapuni.Frame.Model.Base_UserInfo;//获取登录用户
}
3.var name = "";//当前用户名
4.$.post("GetForecastAir", {}, function (data) {
name = "value=' " + getTextData(data[0].DutyPeople) + " '";
if (getTextData(data[0].DutyPeople) == "") {
name = "value=' @userInfo.User_Name '";
}
5. + "<td class='bak'>预报员:</td>"
+ "<td colspan='2' class='whitetd'><input id='DutyPeople' style='border-width:0;'" + name + "></input></td>"
版权声明:本文为u010082526原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。