林豪 左 1 an în urmă
părinte
comite
181c083ae8
1 a modificat fișierele cu 40 adăugiri și 40 ștergeri
  1. 40 40
      WCS.WorkEngineering/Systems/MainSysyem.cs

+ 40 - 40
WCS.WorkEngineering/Systems/MainSysyem.cs

@@ -207,47 +207,47 @@ namespace WCS.WorkEngineering.Systems
                                     typeName = typeof(WCS_SRM523).Name;
                                 }
                             }
-                            else if (ps.PropertyType == typeof(ProtocolData<WCS_Station520>[]))
-                            {
-                                if (pack.Station520.Any())
-                                {
-                                    var value = pack.Station520.Select(x => x.Data).ToList();
-                                    var sql = db.Insertable(value).ToSqlString();
-                                    db.Ado.ExecuteCommand(sql);
-                                    typeName = typeof(WCS_Station520).Name;
-                                }
-                            }
-                            else if (ps.PropertyType == typeof(ProtocolData<WCS_Station521>[]))
-                            {
-                                if (pack.Station521.Any())
-                                {
-                                    var value = pack.Station521.Select(x => x.Data).ToList();
-                                    var sql = db.Insertable(value).ToSqlString();
-                                    db.Ado.ExecuteCommand(sql);
-                                    typeName = typeof(WCS_Station521).Name;
-                                }
-                            }
-                            else if (ps.PropertyType == typeof(ProtocolData<WCS_Station523>[]))
-                            {
-                                if (pack.Station523.Any())
-                                {
-                                    var value = pack.Station523.Select(x => x.Data).ToList();
-                                    var sql = db.Insertable(value).ToSqlString();
-                                    db.Ado.ExecuteCommand(sql);
-                                    typeName = typeof(WCS_Station523).Name;
-                                }
-                            }
-                            else if (ps.PropertyType == typeof(ProtocolData<WCS_Station524>[]))
-                            {
-                                if (pack.Station524.Any())
-                                {
-                                    var value = pack.Station524.Select(x => x.Data).ToList();
-                                    var sql = db.Insertable(value).ToSqlString();
+                            //else if (ps.PropertyType == typeof(ProtocolData<WCS_Station520>[]))
+                            //{
+                            //    if (pack.Station520.Any())
+                            //    {
+                            //        var value = pack.Station520.Select(x => x.Data).ToList();
+                            //        var sql = db.Insertable(value).ToSqlString();
+                            //        db.Ado.ExecuteCommand(sql);
+                            //        typeName = typeof(WCS_Station520).Name;
+                            //    }
+                            //}
+                            //else if (ps.PropertyType == typeof(ProtocolData<WCS_Station521>[]))
+                            //{
+                            //    if (pack.Station521.Any())
+                            //    {
+                            //        var value = pack.Station521.Select(x => x.Data).ToList();
+                            //        var sql = db.Insertable(value).ToSqlString();
+                            //        db.Ado.ExecuteCommand(sql);
+                            //        typeName = typeof(WCS_Station521).Name;
+                            //    }
+                            //}
+                            //else if (ps.PropertyType == typeof(ProtocolData<WCS_Station523>[]))
+                            //{
+                            //    if (pack.Station523.Any())
+                            //    {
+                            //        var value = pack.Station523.Select(x => x.Data).ToList();
+                            //        var sql = db.Insertable(value).ToSqlString();
+                            //        db.Ado.ExecuteCommand(sql);
+                            //        typeName = typeof(WCS_Station523).Name;
+                            //    }
+                            //}
+                            //else if (ps.PropertyType == typeof(ProtocolData<WCS_Station524>[]))
+                            //{
+                            //    if (pack.Station524.Any())
+                            //    {
+                            //        var value = pack.Station524.Select(x => x.Data).ToList();
+                            //        var sql = db.Insertable(value).ToSqlString();
 
-                                    db.Ado.ExecuteCommand(sql);
-                                    typeName = typeof(WCS_Station524).Name;
-                                }
-                            }
+                            //        db.Ado.ExecuteCommand(sql);
+                            //        typeName = typeof(WCS_Station524).Name;
+                            //    }
+                            //}
                             //else if (ps.PropertyType == typeof(ProtocolData<WCS_Station525>[]))
                             //{
                             //    if (pack.Station525.Any())