添加切换页数
This commit is contained in:
parent
9d99b99ba6
commit
f27ff2b368
|
|
@ -48,10 +48,12 @@
|
||||||
<input type="text" style="display: none;" value="<%=isHand %>" id="hd_isHand" />
|
<input type="text" style="display: none;" value="<%=isHand %>" id="hd_isHand" />
|
||||||
<input type="text" style="display: none;" value="<%=Bindlist %>" id="Bindlist" />
|
<input type="text" style="display: none;" value="<%=Bindlist %>" id="Bindlist" />
|
||||||
<input type="text" style="display: none;" value="<%=TempID %>" id="TempID" />
|
<input type="text" style="display: none;" value="<%=TempID %>" id="TempID" />
|
||||||
|
<input type="text" style="display: none;" value="<%=AnotherTempID %>" id="AnotherTempID" />
|
||||||
<input type="text" style="display: none;" value="<%=isLocked %>" id="isLocked" />
|
<input type="text" style="display: none;" value="<%=isLocked %>" id="isLocked" />
|
||||||
<input type="text" style="display: none;" value="<%=tenant %>" id="tenant" />
|
<input type="text" style="display: none;" value="<%=tenant %>" id="tenant" />
|
||||||
<input type="text" style="display: none;" value="<%=PageIndex %>" id="PageIndex" />
|
<input type="text" style="display: none;" value="<%=PageIndex %>" id="PageIndex" />
|
||||||
<input type="text" style="display: none;" value="<%=MainTempId %>" id="MainTempId" />
|
<input type="text" style="display: none;" value="<%=MainTempId %>" id="MainTempId" />
|
||||||
|
<input type="text" style="display: none;" value="<%=PageCount %>" id="PageCount" />
|
||||||
|
|
||||||
|
|
||||||
<textarea id="HideAreaText" style="display: none;"><%=HideAreaText %></textarea>
|
<textarea id="HideAreaText" style="display: none;"><%=HideAreaText %></textarea>
|
||||||
|
|
@ -61,13 +63,35 @@
|
||||||
<div class="main_tool">
|
<div class="main_tool">
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="lockHide" >选定锚点</th>
|
<th style="display: none" class="lockHide">选定锚点</th>
|
||||||
<td class="lockHide" valign="middle">
|
<td style="display: none" class="lockHide" valign="middle">
|
||||||
<div class="maodian" id="point_0">左上锚点</div>
|
<div class="maodian" id="point_0">左上锚点</div>
|
||||||
<div class="maodian" id="point_1">右上锚点</div>
|
<div class="maodian" id="point_1">右上锚点</div>
|
||||||
<div class="maodian" id="point_2">左下锚点</div>
|
<div class="maodian" id="point_2">左下锚点</div>
|
||||||
<div class="maodian" id="point_3">右下锚点</div>
|
<div class="maodian" id="point_3">右下锚点</div>
|
||||||
</td>
|
</td>
|
||||||
|
<td style="padding: 0;" valign="top" class="lockHide">
|
||||||
|
<% if (PageIndex == "1") { %>
|
||||||
|
<div class="tiaomasz_hover">第一页</div>
|
||||||
|
<% }
|
||||||
|
else
|
||||||
|
{ %>
|
||||||
|
<div class="tiaomasz" onclick="ChangePageNum(<%=AnotherTempID %>)">第一页</div>
|
||||||
|
<% } %>
|
||||||
|
|
||||||
|
</td>
|
||||||
|
<% if (PageCount >1) { %>
|
||||||
|
<td style="padding: 0;" valign="top" class="lockHide">
|
||||||
|
<% if (PageIndex == "2") { %>
|
||||||
|
<div class="tiaomasz_hover">第二页</div>
|
||||||
|
<% }
|
||||||
|
else
|
||||||
|
{ %>
|
||||||
|
<div class="tiaomasz" onclick="ChangePageNum(<%=AnotherTempID %>)">第二页</div>
|
||||||
|
<% } %>
|
||||||
|
|
||||||
|
</td>
|
||||||
|
<% } %>
|
||||||
<td class="lockHide">
|
<td class="lockHide">
|
||||||
<span>纸张类型:</span>
|
<span>纸张类型:</span>
|
||||||
<select id="selectPageSize" disabled onchange="ChangePageSize(this)" style="font-size: 14px; padding-left: 10px; padding-right: 20px; width: 100px;">
|
<select id="selectPageSize" disabled onchange="ChangePageSize(this)" style="font-size: 14px; padding-left: 10px; padding-right: 20px; width: 100px;">
|
||||||
|
|
@ -144,11 +168,15 @@
|
||||||
<li class="hover">客观题设置</li>
|
<li class="hover">客观题设置</li>
|
||||||
<li>
|
<li>
|
||||||
<div style="text-align: left; padding-left: 20px;">
|
<div style="text-align: left; padding-left: 20px;">
|
||||||
<br /><br />
|
<br />
|
||||||
|
<br />
|
||||||
题号:<input type="text" id="tihao" placeholder="例:16或者16M1" style="font-size: 14px; width: 100px;" />-<input type="text" id="tihao_end" placeholder="例:16或者16M1" value="" style="font-size: 14px; width: 100px;" />
|
题号:<input type="text" id="tihao" placeholder="例:16或者16M1" style="font-size: 14px; width: 100px;" />-<input type="text" id="tihao_end" placeholder="例:16或者16M1" value="" style="font-size: 14px; width: 100px;" />
|
||||||
<br /> <br />
|
<br />
|
||||||
|
<br />
|
||||||
<label style="width: 80%; margin-left: 35px; text-align: left; float: none; color: #f00; margin-top: 5px; padding: 5px; margin-bottom: 5px;">如果以大题下面有小题类型用16M1-16M5表示</label>
|
<label style="width: 80%; margin-left: 35px; text-align: left; float: none; color: #f00; margin-top: 5px; padding: 5px; margin-bottom: 5px;">如果以大题下面有小题类型用16M1-16M5表示</label>
|
||||||
<br /><br /><br />
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
选项:<select id="selectNum" style="font-size: 14px; padding: 4px; padding-right: 10px;">
|
选项:<select id="selectNum" style="font-size: 14px; padding: 4px; padding-right: 10px;">
|
||||||
<option value="1">1</option>
|
<option value="1">1</option>
|
||||||
<option value="2">2</option>
|
<option value="2">2</option>
|
||||||
|
|
@ -173,7 +201,9 @@
|
||||||
</select>
|
</select>
|
||||||
<label style="padding: 6px; border-radius: 2px;">横向<input checked="checked" type="radio" name="listtype" value="0" style="margin-top: 3px;" /></label>
|
<label style="padding: 6px; border-radius: 2px;">横向<input checked="checked" type="radio" name="listtype" value="0" style="margin-top: 3px;" /></label>
|
||||||
<label style="padding: 6px; border-radius: 2px;">竖向<input name="listtype" type="radio" value="1" /></label>
|
<label style="padding: 6px; border-radius: 2px;">竖向<input name="listtype" type="radio" value="1" /></label>
|
||||||
<br /><br /><br />
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
类型:<select id="questiontype" style="font-size: 12px; width: 100px;">
|
类型:<select id="questiontype" style="font-size: 12px; width: 100px;">
|
||||||
<option value="0">单选</option>
|
<option value="0">单选</option>
|
||||||
<option value="1">多选</option>
|
<option value="1">多选</option>
|
||||||
|
|
@ -181,9 +211,11 @@
|
||||||
</select>
|
</select>
|
||||||
分数:
|
分数:
|
||||||
<select id="questionscroe" style="font-size: 12px; width: 80px; text-align: center;">
|
<select id="questionscroe" style="font-size: 12px; width: 80px; text-align: center;">
|
||||||
<option value="">无分</option><option value="0.5">0.5</option>
|
<option value="">无分</option>
|
||||||
|
<option value="0.5">0.5</option>
|
||||||
</select>
|
</select>
|
||||||
<br /><br />
|
<br />
|
||||||
|
<br />
|
||||||
<div class="goPeizhi" onclick="SetKeguanTi()">开始配置</div>
|
<div class="goPeizhi" onclick="SetKeguanTi()">开始配置</div>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
|
|
@ -191,8 +223,7 @@
|
||||||
|
|
||||||
<ul class="ul" style="display: none;">
|
<ul class="ul" style="display: none;">
|
||||||
<li class="hover">准考证号识别</li>
|
<li class="hover">准考证号识别</li>
|
||||||
<li>
|
<li>题号:<input id="zhunkaozhenghao" type="text" value="6" />
|
||||||
题号:<input id="zhunkaozhenghao" type="text" value="6" />
|
|
||||||
<div class="goPeizhi" onclick="SetZunkaoZheng()">开始配置</div>
|
<div class="goPeizhi" onclick="SetZunkaoZheng()">开始配置</div>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
@ -206,9 +237,11 @@
|
||||||
题号:<input id="zhuguan_tihao" style="font-size: 14px; width: 60px;" type="text" value="" />小题:<input id="zhuguan_xiaoti" style="width: 40px; font-size: 14px;" type="text" value="0" />
|
题号:<input id="zhuguan_tihao" style="font-size: 14px; width: 60px;" type="text" value="" />小题:<input id="zhuguan_xiaoti" style="width: 40px; font-size: 14px;" type="text" value="0" />
|
||||||
分数:
|
分数:
|
||||||
<select id="zgquestionscroe" style="font-size: 14px; width: 80px; text-align: center;">
|
<select id="zgquestionscroe" style="font-size: 14px; width: 80px; text-align: center;">
|
||||||
<option value="">无分</option><option value="0.5">0.5</option>
|
<option value="">无分</option>
|
||||||
|
<option value="0.5">0.5</option>
|
||||||
</select>
|
</select>
|
||||||
<br /><br />
|
<br />
|
||||||
|
<br />
|
||||||
阅卷分值间隔:
|
阅卷分值间隔:
|
||||||
<select id="questionscroetype" style="font-size: 14px; width: 80px; margin-top: 5px; text-align: center;">
|
<select id="questionscroetype" style="font-size: 14px; width: 80px; margin-top: 5px; text-align: center;">
|
||||||
<option value="5">5分</option>
|
<option value="5">5分</option>
|
||||||
|
|
@ -222,15 +255,20 @@
|
||||||
<option value="1" selected="selected">1分</option>
|
<option value="1" selected="selected">1分</option>
|
||||||
<option value=".5">0.5分</option>
|
<option value=".5">0.5分</option>
|
||||||
</select>
|
</select>
|
||||||
|
<% if (Request.QueryString["ishand"] == "1")
|
||||||
|
{ %>
|
||||||
类型:
|
类型:
|
||||||
<select id="questiontype_zg" style="font-size: 14px; width: 80px; margin-top: 5px; text-align: center;">
|
<select id="questiontype_zg" style="font-size: 14px; width: 80px; margin-top: 5px; text-align: center;">
|
||||||
<option value="1">大题</option>
|
<option value="1">主观题</option>
|
||||||
<option value="2">填空题</option>
|
<option value="2">填空题</option>
|
||||||
</select>
|
</select>
|
||||||
|
<% } %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<br /><br /><br />
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
<div style="margin-left: 45px;" class="goPeizhi" onclick="SetZhuguanTi()">开始配置</div>
|
<div style="margin-left: 45px;" class="goPeizhi" onclick="SetZhuguanTi()">开始配置</div>
|
||||||
|
|
||||||
<div id="isHand_Py" style="float: left; width: 100%; text-align: left; margin-top: 10px; border-bottom: 1px solid #ddd; padding-bottom: 5px;">
|
<div id="isHand_Py" style="float: left; width: 100%; text-align: left; margin-top: 10px; border-bottom: 1px solid #ddd; padding-bottom: 5px;">
|
||||||
|
|
@ -244,7 +282,6 @@
|
||||||
</ul>
|
</ul>
|
||||||
<div style="width: 100%; text-align: center; float: left; padding-bottom: 10px; font-size: 14px; padding-top: 10px; background: #044775; border-top: 2px solid #000000; color: #fff;">模板删减区</div>
|
<div style="width: 100%; text-align: center; float: left; padding-bottom: 10px; font-size: 14px; padding-top: 10px; background: #044775; border-top: 2px solid #000000; color: #fff;">模板删减区</div>
|
||||||
<ul id="NowSelect" class="lineul" style="overflow-y: scroll; height: 240px;">
|
<ul id="NowSelect" class="lineul" style="overflow-y: scroll; height: 240px;">
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,7 @@ using System.Security.AccessControl;
|
||||||
public partial class 外部答题卡_Default : System.Web.UI.Page
|
public partial class 外部答题卡_Default : System.Web.UI.Page
|
||||||
{
|
{
|
||||||
public long TempID = 0;
|
public long TempID = 0;
|
||||||
|
public long AnotherTempID = 0;
|
||||||
public string PageIndex = "0";
|
public string PageIndex = "0";
|
||||||
public string Bindlist = "";
|
public string Bindlist = "";
|
||||||
public string imgage = "";
|
public string imgage = "";
|
||||||
|
|
@ -37,6 +38,7 @@ public partial class 外部答题卡_Default : System.Web.UI.Page
|
||||||
public string pager = "";
|
public string pager = "";
|
||||||
public int isHand = 0;
|
public int isHand = 0;
|
||||||
public string MainTempId = "0";
|
public string MainTempId = "0";
|
||||||
|
public int PageCount = 0;
|
||||||
protected void Page_Load(object sender, EventArgs e)
|
protected void Page_Load(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
@ -62,7 +64,8 @@ public partial class 外部答题卡_Default : System.Web.UI.Page
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
TempID = Globals.Request("TempID") == "" ? 0 : Convert.ToInt32(Globals.Request("TempID"));//获取小模板ID
|
TempID = Globals.Request("TempID") == "" ? 0 : Convert.ToInt32(Globals.Request("TempID"));//获取小模板ID
|
||||||
if (TempID == 0) {
|
if (TempID == 0)
|
||||||
|
{
|
||||||
Response.Write("<script>alert('无模板数据');window.close();</script>");
|
Response.Write("<script>alert('无模板数据');window.close();</script>");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
@ -76,21 +79,36 @@ public partial class 外部答题卡_Default : System.Web.UI.Page
|
||||||
HideAreaText = dtx.Rows[0]["HideAreaPostionList_nvarchar"] == null ? "" : dtx.Rows[0]["HideAreaPostionList_nvarchar"].ToString();
|
HideAreaText = dtx.Rows[0]["HideAreaPostionList_nvarchar"] == null ? "" : dtx.Rows[0]["HideAreaPostionList_nvarchar"].ToString();
|
||||||
IsPostionValue = dtx.Rows[0]["HideAreaPostionList_nvarchar"] == null ? "" : dtx.Rows[0]["HideAreaPostionList_nvarchar"].ToString();
|
IsPostionValue = dtx.Rows[0]["HideAreaPostionList_nvarchar"] == null ? "" : dtx.Rows[0]["HideAreaPostionList_nvarchar"].ToString();
|
||||||
PageIndex = dtx.Rows[0]["PageIndex_int"] == null ? "" : dtx.Rows[0]["PageIndex_int"].ToString();
|
PageIndex = dtx.Rows[0]["PageIndex_int"] == null ? "" : dtx.Rows[0]["PageIndex_int"].ToString();
|
||||||
sql = "select HasPosition FROM MK_TempleteMain WHERE ID_bigint=" + dtx.Rows[0]["MainID_bigint"].ToString();
|
|
||||||
MainTempId = dtx.Rows[0]["MainID_bigint"].ToString();
|
MainTempId = dtx.Rows[0]["MainID_bigint"].ToString();
|
||||||
IsPostionValue = new MysqlDBHelper(tenant).ExecuteScalar(sql).ToString();
|
|
||||||
|
|
||||||
|
sql = "select MainPage_int,HasPosition from MK_TempleteMain where ID_bigint=" + MainTempId;
|
||||||
|
var maindt = new MysqlDBHelper(tenant).ExecuteQuery(sql);
|
||||||
|
if (maindt == null || maindt.Rows.Count <= 0)
|
||||||
|
{
|
||||||
|
Response.Write("<script>alert('主模板数据有问题');</script>");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
PageCount = Convert.ToInt32(maindt.Rows[0]["MainPage_int"]);
|
||||||
|
IsPostionValue = maindt.Rows[0]["HasPosition"].ToString();
|
||||||
|
|
||||||
|
if (PageCount > 1)
|
||||||
|
{
|
||||||
|
sql = "select ID_bigint from MK_TempleteData where MainID_bigint="+ MainTempId + " and ID_bigint!=" + TempID;
|
||||||
|
AnotherTempID = Convert.ToInt32(new MysqlDBHelper(tenant).ExecuteScalar(sql));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void UpdateTempData() {
|
private void UpdateTempData()
|
||||||
|
{
|
||||||
TempID = Globals.Request("TempID") == "" ? 0 : Convert.ToInt32(Globals.Request("TempID"));//获取小模板ID
|
TempID = Globals.Request("TempID") == "" ? 0 : Convert.ToInt32(Globals.Request("TempID"));//获取小模板ID
|
||||||
string totalHtml = Server.UrlDecode(Globals.Request("totalHtml"));
|
string totalHtml = Server.UrlDecode(Globals.Request("totalHtml"));
|
||||||
string HideAreaPostionList = Server.UrlDecode(Globals.Request("HideAreaPostionList"));
|
string HideAreaPostionList = Server.UrlDecode(Globals.Request("HideAreaPostionList"));
|
||||||
|
|
||||||
if (AnsyTemp(HideAreaPostionList, totalHtml)) {
|
if (AnsyTemp(HideAreaPostionList, totalHtml))
|
||||||
|
{
|
||||||
string sql = "Update MK_TempleteData SET TempValue_nvarchar=@TempValue_nvarchar,HideAreaPostionList_nvarchar=@HideAreaPostionList_nvarchar where ID_bigint=" + TempID;
|
string sql = "Update MK_TempleteData SET TempValue_nvarchar=@TempValue_nvarchar,HideAreaPostionList_nvarchar=@HideAreaPostionList_nvarchar where ID_bigint=" + TempID;
|
||||||
MySqlParameter[] sp = new MySqlParameter[] {
|
MySqlParameter[] sp = new MySqlParameter[] {
|
||||||
new MySqlParameter("@TempValue_nvarchar",totalHtml),
|
new MySqlParameter("@TempValue_nvarchar",totalHtml),
|
||||||
|
|
@ -153,7 +171,8 @@ public partial class 外部答题卡_Default : System.Web.UI.Page
|
||||||
//}
|
//}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void AddQuestionData(string totalHtml) {
|
private void AddQuestionData(string totalHtml)
|
||||||
|
{
|
||||||
TempID = Convert.ToInt64(Globals.Request("TempID"));
|
TempID = Convert.ToInt64(Globals.Request("TempID"));
|
||||||
string[] totalHtmlList = totalHtml.Split('$');
|
string[] totalHtmlList = totalHtml.Split('$');
|
||||||
string kg = totalHtmlList[2];
|
string kg = totalHtmlList[2];
|
||||||
|
|
@ -171,7 +190,8 @@ public partial class 外部答题卡_Default : System.Web.UI.Page
|
||||||
string endNum = detailtList[5].ToUpper();
|
string endNum = detailtList[5].ToUpper();
|
||||||
|
|
||||||
string score = detailtList[9];
|
string score = detailtList[9];
|
||||||
if (score == "") {
|
if (score == "")
|
||||||
|
{
|
||||||
score = "0";
|
score = "0";
|
||||||
}
|
}
|
||||||
string selectNum = detailtList[6];
|
string selectNum = detailtList[6];
|
||||||
|
|
@ -253,7 +273,8 @@ public partial class 外部答题卡_Default : System.Web.UI.Page
|
||||||
{
|
{
|
||||||
mkscoretype = "1";
|
mkscoretype = "1";
|
||||||
}
|
}
|
||||||
else {
|
else
|
||||||
|
{
|
||||||
mkscoretype = detailtList[7];
|
mkscoretype = detailtList[7];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -321,7 +342,8 @@ public partial class 外部答题卡_Default : System.Web.UI.Page
|
||||||
Image<Gray, byte> currentFramext = new Image<Gray, byte>(PictureBoxBitMap);
|
Image<Gray, byte> currentFramext = new Image<Gray, byte>(PictureBoxBitMap);
|
||||||
|
|
||||||
Mat color_mxxx = commonUse.GetPostionXYByFindPostionAndXieLv(imagex.Mat, selected_contours1, GetData[0], out PYPostionList, currentFramext, out xielv);
|
Mat color_mxxx = commonUse.GetPostionXYByFindPostionAndXieLv(imagex.Mat, selected_contours1, GetData[0], out PYPostionList, currentFramext, out xielv);
|
||||||
if (xielv == -100) {
|
if (xielv == -100)
|
||||||
|
{
|
||||||
Response.Write("模板配置错误,斜率无法计算");
|
Response.Write("模板配置错误,斜率无法计算");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
@ -337,7 +359,8 @@ public partial class 外部答题卡_Default : System.Web.UI.Page
|
||||||
|
|
||||||
|
|
||||||
int PageIndex = Convert.ToInt32(Globals.Request("PageIndex"));
|
int PageIndex = Convert.ToInt32(Globals.Request("PageIndex"));
|
||||||
if (PageIndex == 1) {
|
if (PageIndex == 1)
|
||||||
|
{
|
||||||
int mx = GetOtherBitmaplist(currentFramext.Mat, 160, PYPostionList.Split(','), GetData[9]);
|
int mx = GetOtherBitmaplist(currentFramext.Mat, 160, PYPostionList.Split(','), GetData[9]);
|
||||||
if (mx == 0)
|
if (mx == 0)
|
||||||
{
|
{
|
||||||
|
|
@ -501,7 +524,8 @@ public partial class 外部答题卡_Default : System.Web.UI.Page
|
||||||
bool bo = ((area > 10 && area < 150000) && rect.Height > 5);
|
bool bo = ((area > 10 && area < 150000) && rect.Height > 5);
|
||||||
if (bo)
|
if (bo)
|
||||||
{
|
{
|
||||||
if (pxNums > (area * 0.7)) {
|
if (pxNums > (area * 0.7))
|
||||||
|
{
|
||||||
option_pixel_options = pxNums;
|
option_pixel_options = pxNums;
|
||||||
selected_contours.Push(contours[i]);
|
selected_contours.Push(contours[i]);
|
||||||
}
|
}
|
||||||
|
|
@ -741,7 +765,8 @@ public partial class 外部答题卡_Default : System.Web.UI.Page
|
||||||
/// 检查边距是否合格
|
/// 检查边距是否合格
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="getdata"></param>
|
/// <param name="getdata"></param>
|
||||||
private string TempV(string[] GetData,string PYPostionList,int oldWidth,int oldHeight,string HideAreaPostionList) {
|
private string TempV(string[] GetData, string PYPostionList, int oldWidth, int oldHeight, string HideAreaPostionList)
|
||||||
|
{
|
||||||
double pyLeft = Convert.ToInt32(PYPostionList.Split(',')[0]);
|
double pyLeft = Convert.ToInt32(PYPostionList.Split(',')[0]);
|
||||||
double pyTop = Convert.ToInt32(PYPostionList.Split(',')[1]);
|
double pyTop = Convert.ToInt32(PYPostionList.Split(',')[1]);
|
||||||
double Xtop = 0;
|
double Xtop = 0;
|
||||||
|
|
@ -778,7 +803,8 @@ public partial class 外部答题卡_Default : System.Web.UI.Page
|
||||||
if (GetData[2] != "")//客观题
|
if (GetData[2] != "")//客观题
|
||||||
{
|
{
|
||||||
string[] keguantiList = GetData[2].Split('^');
|
string[] keguantiList = GetData[2].Split('^');
|
||||||
foreach (string slist in keguantiList) {
|
foreach (string slist in keguantiList)
|
||||||
|
{
|
||||||
string[] list = slist.Split(',');
|
string[] list = slist.Split(',');
|
||||||
Xleft = Convert.ToDouble(list[0]);
|
Xleft = Convert.ToDouble(list[0]);
|
||||||
Xtop = Convert.ToDouble(list[1]);
|
Xtop = Convert.ToDouble(list[1]);
|
||||||
|
|
@ -944,7 +970,8 @@ public partial class 外部答题卡_Default : System.Web.UI.Page
|
||||||
return "批阅分数编辑框编辑框下边超过定位点边界!";
|
return "批阅分数编辑框编辑框下边超过定位点边界!";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (HideAreaPostionList != "") {
|
if (HideAreaPostionList != "")
|
||||||
|
{
|
||||||
|
|
||||||
JavaScriptSerializer javaScriptSerializer = new JavaScriptSerializer();
|
JavaScriptSerializer javaScriptSerializer = new JavaScriptSerializer();
|
||||||
List<HideAreaData> ht = javaScriptSerializer.Deserialize<List<HideAreaData>>(HideAreaPostionList);
|
List<HideAreaData> ht = javaScriptSerializer.Deserialize<List<HideAreaData>>(HideAreaPostionList);
|
||||||
|
|
|
||||||
33
js/index.js
33
js/index.js
|
|
@ -119,8 +119,7 @@ function SetKeguanTi() {
|
||||||
|
|
||||||
var startnum = parseInt(tihaoList[0]);
|
var startnum = parseInt(tihaoList[0]);
|
||||||
var endnum = parseInt(tihaoList[1]);
|
var endnum = parseInt(tihaoList[1]);
|
||||||
if (endnum == undefined)
|
if (endnum == undefined) {
|
||||||
{
|
|
||||||
endnum = startnum;
|
endnum = startnum;
|
||||||
}
|
}
|
||||||
var html = "<table class='keguan_list' cellpadding=\"0\" style='background:#ff3300;' cellspacing=\"0\">";
|
var html = "<table class='keguan_list' cellpadding=\"0\" style='background:#ff3300;' cellspacing=\"0\">";
|
||||||
|
|
@ -134,12 +133,10 @@ function SetKeguanTi() {
|
||||||
|
|
||||||
if (listtype == 0)//横向
|
if (listtype == 0)//横向
|
||||||
{
|
{
|
||||||
for (var i = parseInt(startnum); i <=parseInt(endnum); i++)
|
for (var i = parseInt(startnum); i <= parseInt(endnum); i++) {
|
||||||
{
|
|
||||||
|
|
||||||
html += "<tr>";
|
html += "<tr>";
|
||||||
for (var j = 0; j < selectNum; j++)
|
for (var j = 0; j < selectNum; j++) {
|
||||||
{
|
|
||||||
html += "<td></td>";
|
html += "<td></td>";
|
||||||
}
|
}
|
||||||
html += "</tr>";
|
html += "</tr>";
|
||||||
|
|
@ -207,7 +204,7 @@ function SetZhuguanTi() {
|
||||||
if (zhuguan_xiaoti == "") {
|
if (zhuguan_xiaoti == "") {
|
||||||
zhuguan_xiaoti = "0";
|
zhuguan_xiaoti = "0";
|
||||||
}
|
}
|
||||||
var lineWh = "width:800px;height:200px;";
|
var lineWh = "width:450px;height:250px;";
|
||||||
var lineWhTx = "大题";
|
var lineWhTx = "大题";
|
||||||
if (questiontype_zg == "2") {
|
if (questiontype_zg == "2") {
|
||||||
var lineWh = "width:200px;height:90px;";
|
var lineWh = "width:200px;height:90px;";
|
||||||
|
|
@ -780,8 +777,7 @@ function SetMaoPostion(postiondata) {
|
||||||
|
|
||||||
|
|
||||||
var list = postiondata.split('^');
|
var list = postiondata.split('^');
|
||||||
for (var i = 0; i < list.length; i++)
|
for (var i = 0; i < list.length; i++) {
|
||||||
{
|
|
||||||
var obj = document.getElementById("point_" + i);
|
var obj = document.getElementById("point_" + i);
|
||||||
//左边距,右边距,长,高
|
//左边距,右边距,长,高
|
||||||
if ($(obj).attr("class") == "maodian_hover") {
|
if ($(obj).attr("class") == "maodian_hover") {
|
||||||
|
|
@ -838,8 +834,7 @@ function SetKeguanTiPostion(PostionData) {
|
||||||
//左边距,右边距,长,高,题号开始,题号结束,横排还是竖排
|
//左边距,右边距,长,高,题号开始,题号结束,横排还是竖排
|
||||||
|
|
||||||
var listOption = PostionData.split('^')
|
var listOption = PostionData.split('^')
|
||||||
for (var jt = 0; jt < listOption.length; jt++)
|
for (var jt = 0; jt < listOption.length; jt++) {
|
||||||
{
|
|
||||||
var listpostion = listOption[jt].split(',');
|
var listpostion = listOption[jt].split(',');
|
||||||
var tihao = listpostion[4].replace(".", "·").replace("(", "(").replace(")", ")").replace(")", ")").replace("=", "=").replace("@", "@") + "-" + listpostion[5].replace(".", "·").replace("(", "(").replace(")", ")").replace(")", ")").replace("=", "=").replace("@", "@");//题号
|
var tihao = listpostion[4].replace(".", "·").replace("(", "(").replace(")", ")").replace(")", ")").replace("=", "=").replace("@", "@") + "-" + listpostion[5].replace(".", "·").replace("(", "(").replace(")", ")").replace(")", ")").replace("=", "=").replace("@", "@");//题号
|
||||||
|
|
||||||
|
|
@ -916,15 +911,13 @@ function SetKeguanTiPostion(PostionData) {
|
||||||
/////////////////设置主观题//////////////////////
|
/////////////////设置主观题//////////////////////
|
||||||
function SetZhuguanTiPostion(PostionData) {
|
function SetZhuguanTiPostion(PostionData) {
|
||||||
|
|
||||||
if (PostionData == "" || PostionData == undefined)
|
if (PostionData == "" || PostionData == undefined) {
|
||||||
{
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
//左边距,右边距,长,高,题号,小题数量
|
//左边距,右边距,长,高,题号,小题数量
|
||||||
var listdata = PostionData.split('^');
|
var listdata = PostionData.split('^');
|
||||||
|
|
||||||
for (var i = 0; i < listdata.length; i++)
|
for (var i = 0; i < listdata.length; i++) {
|
||||||
{
|
|
||||||
var zhuguanList = listdata[i].split(',');
|
var zhuguanList = listdata[i].split(',');
|
||||||
var zhuguan_tihao = zhuguanList[4].toUpperCase().replace(".", "·").replace("(", "(").replace(")", ")").replace(")", ")").replace("=", "=").replace("@", "@");
|
var zhuguan_tihao = zhuguanList[4].toUpperCase().replace(".", "·").replace("(", "(").replace(")", ")").replace(")", ")").replace("=", "=").replace("@", "@");
|
||||||
var score = zhuguanList[6] == undefined ? "" : zhuguanList[6];
|
var score = zhuguanList[6] == undefined ? "" : zhuguanList[6];
|
||||||
|
|
@ -1166,3 +1159,13 @@ String.prototype.trim = function (char, type) {
|
||||||
}
|
}
|
||||||
return this.replace(/^\s+|\s+$/g, '');
|
return this.replace(/^\s+|\s+$/g, '');
|
||||||
};
|
};
|
||||||
|
|
||||||
|
//////////// 切换页数 ////////////////
|
||||||
|
function ChangePageNum(anotherTempID) {
|
||||||
|
if (confirm("当前页未保存,是否继续切换?")){
|
||||||
|
var currentURL = window.location.href;
|
||||||
|
var newUrl = currentURL.replace(/(TempID=)\d+/, "$1" + anotherTempID);
|
||||||
|
window.location.href = newUrl;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue