diff --git a/Temp/Default.aspx.cs b/Temp/Default.aspx.cs index b276384..31f5f31 100644 --- a/Temp/Default.aspx.cs +++ b/Temp/Default.aspx.cs @@ -787,20 +787,20 @@ public partial class 外部答题卡_Default : System.Web.UI.Page string tihao = list[4] + "-" + list[5]; if (Xleft < pyLeft) { - return "客观题"+ tihao + "编辑框左边超过定位点边界!"; + return "客观题:[" + tihao + "] 编辑框左边超过定位点边界!"; } if (Xleft + Xwidth - pyLeft > oldWidth) { - return "客观题" + tihao + "编辑框右边超过定位点边界!"; + return "客观题:[" + tihao + "]编辑框右边超过定位点边界!"; } if (Xtop < pyTop) { - return "客观题" + tihao + "编辑框上边超过定位点边界!"; + return "客观题:[" + tihao + "] 编辑框上边超过定位点边界!"; } if (Xtop + Xheight - pyTop > oldHeight) { - return "客观题" + tihao + "编辑框下边超过定位点边界!"; + return "客观题:[" + tihao + "] 编辑框下边超过定位点边界!"; } } } @@ -817,20 +817,20 @@ public partial class 外部答题卡_Default : System.Web.UI.Page string tihao = list[4] ; if (Xleft < pyLeft) { - return "主观题" + tihao + "编辑框左边超过定位点边界!"; + return "主观题:[" + tihao + "] 编辑框左边超过定位点边界!"; } if (Xleft + Xwidth - pyLeft > oldWidth) { - return "主观题" + tihao + "编辑框右边超过定位点边界!"; + return "主观题:[" + tihao + "] 编辑框右边超过定位点边界!"; } if (Xtop < pyTop) { - return "主观题" + tihao + "编辑框上边超过定位点边界!"; + return "主观题:[" + tihao + "] 编辑框上边超过定位点边界!"; } if (Xtop + Xheight - pyTop > oldHeight) { - return "主观题" + tihao + "编辑框下边超过定位点边界!"; + return "主观题:[" + tihao + "] 编辑框下边超过定位点边界!"; } } } @@ -847,20 +847,20 @@ public partial class 外部答题卡_Default : System.Web.UI.Page string tihao = list[4]; if (Xleft < pyLeft) { - return "" + tihao + "编辑框左边超过定位点边界!"; + return "题号:[" + tihao + "] 编辑框左边超过定位点边界!"; } if (Xleft + Xwidth - pyLeft > oldWidth) { - return "" + tihao + "编辑框右边超过定位点边界!"; + return "题号:[" + tihao + "] 编辑框右边超过定位点边界!"; } if (Xtop < pyTop) { - return "" + tihao + "编辑框上边超过定位点边界!"; + return "题号:[" + tihao + "] 编辑框上边超过定位点边界!"; } if (Xtop + Xheight - pyTop > oldHeight) { - return "" + tihao + "编辑框下边超过定位点边界!"; + return "题号:[" + tihao + "] 编辑框下边超过定位点边界!"; } } } diff --git a/Temp/SplitQuestion.aspx b/Temp/SplitQuestion.aspx index 4ccba55..3b004a8 100644 --- a/Temp/SplitQuestion.aspx +++ b/Temp/SplitQuestion.aspx @@ -177,7 +177,7 @@ SelectValueList(); function SetZhuguanTi() { - var zhuguan_tihao = $("#zhuguan_tihao").val().toUpperCase().replace(".", "·").replace("(", "(").replace(")", ")").replace(")", ")").replace("=", "=").replace("@", "@"); + var zhuguan_tihao = $("#zhuguan_tihao").val().toUpperCase().replace(/\./g, "·").replace(/\(/g, "(").replace(/\)/g, ")").replace(/\=/g, "=").replace(/\@/g, "@"); if (!CheckTihao(zhuguan_tihao)) { alert("该题号原试卷已经存在"); return; @@ -277,8 +277,8 @@ } var zhuguan_xiaoti = zhuguanList[5]; $(".main_papermain").append("