|
|
|
@ -522,6 +522,11 @@ namespace DSWeb.MvcShipping.Controllers
|
|
|
|
|
|
|
|
|
|
public ContentResult SaveUserQuerySetting(string formname, string isvisible, string issavevalue, string querydetail)
|
|
|
|
|
{
|
|
|
|
|
if (Convert.ToString(Session["COMPANYID"]).ToString().Trim() == "" || Convert.ToString(Session["USERID"]).ToString().Trim() == "" || Convert.ToString(Session["CODENAME"]).ToString().Trim() == "" || Convert.ToString(Session["SHOWNAME"]).ToString().Trim() == "" || Convert.ToString(Session["DEPTNAME"]).ToString().Trim() == "")
|
|
|
|
|
{
|
|
|
|
|
var jsonRespose2 = new JsonResponse { Success = false, Message = "登录超时,请退出系统重新登录!" };
|
|
|
|
|
return new ContentResult() { Content = JsonConvert.Serialize(jsonRespose2) };
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var result = new DBResult();
|
|
|
|
|
|
|
|
|
@ -552,6 +557,11 @@ namespace DSWeb.MvcShipping.Controllers
|
|
|
|
|
//高级查询设置
|
|
|
|
|
public JsonResult GetQueryFieldSetting(string formname)
|
|
|
|
|
{
|
|
|
|
|
if (Convert.ToString(Session["COMPANYID"]).ToString().Trim() == "" || Convert.ToString(Session["USERID"]).ToString().Trim() == "" || Convert.ToString(Session["CODENAME"]).ToString().Trim() == "" || Convert.ToString(Session["SHOWNAME"]).ToString().Trim() == "" || Convert.ToString(Session["DEPTNAME"]).ToString().Trim() == "")
|
|
|
|
|
{
|
|
|
|
|
return Json (new { Success = false, Message = "登录超时,请退出系统重新登录!" });
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var evList = MsBaseInfoDAL.GetQueryFieldSetting(formname);
|
|
|
|
|
|
|
|
|
|
return Json(new { success = true, data = evList });
|
|
|
|
|