Przeglądaj źródła

修改导入bug

mengjie 6 lat temu
rodzic
commit
77324cae60

+ 3 - 3
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/customer/CustomerNewController.cs

822
                         //客户类型
822
                         //客户类型
823
                         if (!string .IsNullOrEmpty (dataRow["客户类型"].ToString()))
823
                         if (!string .IsNullOrEmpty (dataRow["客户类型"].ToString()))
824
                         {
824
                         {
825
-                            dt = new BLL.T_Sys_DictionaryValue().GetList(" F_Name='" + dataRow["客户类型"].ToString() + "' and F_State=1 ").Tables[0];
826
-                            if (dt != null && dt.Rows.Count > 0)
825
+                            DataTable dt1 = new BLL.T_Sys_DictionaryValue().GetList(" F_Name='" + dataRow["客户类型"].ToString() + "' and F_State=1 ").Tables[0];
826
+                            if (dt1 != null && dt1.Rows.Count > 0)
827
                             {
827
                             {
828
-                                cusmodel.F_CusType = Convert.ToInt32(dt.Rows[0]["F_DictionaryValueId"]);
828
+                                cusmodel.F_CusType = Convert.ToInt32(dt1.Rows[0]["F_DictionaryValueId"]);
829
                             }
829
                             }
830
                         }
830
                         }
831
 
831