Explorar el Código

问卷修改报错调整

zhengbingbing %!s(int64=7) %!d(string=hace) años
padre
commit
2333bfd1b4

+ 31 - 28
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/Question/QuestionnaireController.cs

@@ -503,34 +503,37 @@ namespace CallCenterApi.Interface.Controllers.Question
503 503
             var model = new Model.T_Ask_Question();
504 504
             if (string.IsNullOrWhiteSpace(input.F_Title))
505 505
                 return Error("请填写试题标题" + ",操作人:" + CurrentUser.UserData.F_UserCode);
506
-            //1问答题 2单选题 3多选题
507
-            if (input.F_Type > 1)
508
-            {
509
-                //var questionItemList = questionItemBLL.DataTableToList(questionItemBLL.GetList($" F_QuestionId='{input.F_QuestionId}' ORDER BY F_Sort ").Tables[0]);
510
-                #region 获取内容F_Content,格式:A.满意;B.一般;C.不满意;
511
-                string[] arr1 = new string[] { "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20" };
512
-                string[] arr2 = new string[] { "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T" };
513
-                dt = new BLL.T_Ask_QuestionItems().GetList(" F_QuestionId=" + input.F_QuestionId + " ORDER BY F_Sort ").Tables[0];
514
-                for (int i = 0; i < dt.Rows.Count; i++)
515
-                {
516
-                    string vsort = "";
517
-                    if (input.F_SortModel == 1)
518
-                    {
519
-                        vsort = arr2[i];
520
-                    }
521
-                    else
522
-                    {
523
-                        vsort = arr1[i];
524
-                    }
525
-                    input.F_Content += vsort + "." + dt.Rows[i]["F_ItemName"].ToString().Trim() + ";";
526
-                }
527
-                model.F_SortModel = input.F_SortModel;
528
-                #endregion
529
-            }
530
-            else
531
-            {
532
-                model.F_SortModel = null;
533
-            }
506
+            //20180519 zhengbingbing
507
+            #region 此模块暂时无用
508
+            ////1问答题 2单选题 3多选题
509
+            //if (input.F_Type > 1)
510
+            //{
511
+            //    //var questionItemList = questionItemBLL.DataTableToList(questionItemBLL.GetList($" F_QuestionId='{input.F_QuestionId}' ORDER BY F_Sort ").Tables[0]);
512
+            //    #region 获取内容F_Content,格式:A.满意;B.一般;C.不满意;
513
+            //    string[] arr1 = new string[] { "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20" };
514
+            //    string[] arr2 = new string[] { "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T" };
515
+            //    dt = new BLL.T_Ask_QuestionItems().GetList(" F_QuestionId=" + input.F_QuestionId + " ORDER BY F_Sort ").Tables[0];
516
+            //    for (int i = 0; i < dt.Rows.Count; i++)
517
+            //    {
518
+            //        string vsort = "";
519
+            //        if (input.F_SortModel == 1)
520
+            //        {
521
+            //            vsort = arr2[i];
522
+            //        }
523
+            //        else
524
+            //        {
525
+            //            vsort = arr1[i];
526
+            //        }
527
+            //        input.F_Content += vsort + "." + dt.Rows[i]["F_ItemName"].ToString().Trim() + ";";
528
+            //    }
529
+            //    model.F_SortModel = input.F_SortModel;
530
+            //    #endregion
531
+            //}
532
+            //else
533
+            //{
534
+            //    model.F_SortModel = null;
535
+            //}
536
+            #endregion
534 537
             if (input.F_QuestionId <= 0)
535 538
             {
536 539
                 //model.F_SortModel = input.F_SortModel;