This commit is contained in:
parent
17bf9bc281
commit
2ae344739b
|
|
@ -450,8 +450,8 @@ public class CommonUse
|
||||||
//bool bo = pxNums > 130 && pxNums < 300;
|
//bool bo = pxNums > 130 && pxNums < 300;
|
||||||
bool bo = (CvInvoke.IsContourConvex(approx_curve)
|
bool bo = (CvInvoke.IsContourConvex(approx_curve)
|
||||||
&& (rect.Width > 10 && rect.Height > 10)
|
&& (rect.Width > 10 && rect.Height > 10)
|
||||||
&& (area > 200 && area < 2000)
|
&& (area > 200 && area < 3000)
|
||||||
&& (rect.Width < 50 && rect.Height < 50)
|
&& (rect.Width < 80 && rect.Height < 80)
|
||||||
&& pxNums > 200);
|
&& pxNums > 200);
|
||||||
if (bo)
|
if (bo)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -161,8 +161,9 @@ public partial class Temp_SplitQuestion : System.Web.UI.Page
|
||||||
Score_float,
|
Score_float,
|
||||||
smallQuestionNum_int,
|
smallQuestionNum_int,
|
||||||
questiontype_int,
|
questiontype_int,
|
||||||
mkscoretype_float) VALUES
|
mkscoretype_float,
|
||||||
({0},{1},{2},{3},{4},1,{5});select @@IDENTITY",
|
Createdtime_datetime,selectNum_int,selecttype_int,is_split) VALUES
|
||||||
|
({0},{1},{2},{3},{4},1,{5},now(),0,-1,0);select @@IDENTITY",
|
||||||
TemDataID,
|
TemDataID,
|
||||||
"'" + questionList[4] + "'",
|
"'" + questionList[4] + "'",
|
||||||
"''",
|
"''",
|
||||||
|
|
@ -181,7 +182,7 @@ public partial class Temp_SplitQuestion : System.Web.UI.Page
|
||||||
}
|
}
|
||||||
|
|
||||||
//写入任务表
|
//写入任务表
|
||||||
sql = "Insert Into mk_subjective_cut_record(temp_main_id,temp_detail_id,temp_question_num,is_cutout,exam_subject_id,temp_question_Newdata_ids,subjective_questions_data,cutted_question_num) VALUES(" + tempMainID + "," + TemDataID + ",'" + questionNum + "'," + is_cutout + "," + exam_subject_id + ",'" + ids.Trim(',') + "','" + zhuguantiList + "','" + questionNumList + "')";
|
sql = "Insert Into mk_subjective_cut_record(temp_main_id,temp_detail_id,temp_question_num,is_cutout,exam_subject_id,temp_question_Newdata_ids,subjective_questions_data,cutted_question_num,create_date) VALUES(" + tempMainID + "," + TemDataID + ",'" + questionNum + "'," + is_cutout + "," + exam_subject_id + ",'" + ids.Trim(',') + "','" + zhuguantiList + "','" + questionNumList + "',now())";
|
||||||
new MysqlDBHelper(tenant).ExecuteNoQuery(sql, sp);
|
new MysqlDBHelper(tenant).ExecuteNoQuery(sql, sp);
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -222,7 +223,7 @@ public partial class Temp_SplitQuestion : System.Web.UI.Page
|
||||||
{
|
{
|
||||||
|
|
||||||
double pyLeft=0, pyTop = 0;
|
double pyLeft=0, pyTop = 0;
|
||||||
if (string.IsNullOrWhiteSpace(PYPostionList) && PYPostionList.Contains(","))
|
if (!string.IsNullOrWhiteSpace(PYPostionList) && PYPostionList.Contains(","))
|
||||||
{
|
{
|
||||||
pyLeft = Convert.ToInt32(PYPostionList.Split(',')[0]);
|
pyLeft = Convert.ToInt32(PYPostionList.Split(',')[0]);
|
||||||
pyTop = Convert.ToInt32(PYPostionList.Split(',')[1]);
|
pyTop = Convert.ToInt32(PYPostionList.Split(',')[1]);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue