hanxuntao 9 months ago
parent d012ced986
commit 4eaa0a6aef

@ -522,6 +522,11 @@ namespace DSWeb.MvcShipping.Controllers
public ContentResult SaveUserQuerySetting(string formname, string isvisible, string issavevalue, string querydetail) 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(); var result = new DBResult();
@ -552,6 +557,11 @@ namespace DSWeb.MvcShipping.Controllers
//高级查询设置 //高级查询设置
public JsonResult GetQueryFieldSetting(string formname) 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); var evList = MsBaseInfoDAL.GetQueryFieldSetting(formname);
return Json(new { success = true, data = evList }); return Json(new { success = true, data = evList });

@ -1913,7 +1913,7 @@ namespace DSWeb.MvcShipping.DAL.MsOpSeaeDAL
var SeaeOrderNorepeat = MsSysParamSetDAL.GetData("PARAMNAME='SeaeOrderNorepeat'"); var SeaeOrderNorepeat = MsSysParamSetDAL.GetData("PARAMNAME='SeaeOrderNorepeat'");
if (SeaeOrderNorepeat.PARAMVALUE == "1" && headData.ORDERNO != "" && headData.ORDERNO != null) if (SeaeOrderNorepeat.PARAMVALUE == "1" && headData.ORDERNO != "" && headData.ORDERNO != null)
{ {
var ct = MsOpSeaeDAL.GetRdCount("BSNO<>'" + headData.BSNO + "' AND ORDERNO='" + headData.ORDERNO + "' and CORPID='" + Convert.ToString(Session["COMPANYID"]) + "'"); var ct = MsOpSeaeDAL.GetRdCount("BSNO<>'" + headData.BSNO + "' AND ORDERNO='" + headData.ORDERNO + "' and CORPID='" + companyid + "'");
if (ct != 0) if (ct != 0)
{ {
isPost = false; isPost = false;

@ -2,7 +2,7 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup> <PropertyGroup>
<ProjectView>ShowAllFiles</ProjectView> <ProjectView>ShowAllFiles</ProjectView>
<NameOfLastUsedPublishProfile>E:\DS7_dev\DSWeb\Properties\PublishProfiles\FolderProfile.pubxml</NameOfLastUsedPublishProfile> <NameOfLastUsedPublishProfile>配置文件1</NameOfLastUsedPublishProfile>
<UseIISExpress>true</UseIISExpress> <UseIISExpress>true</UseIISExpress>
<LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig> <LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig>
<Use64BitIISExpress /> <Use64BitIISExpress />

Loading…
Cancel
Save