/
30094047.ru.001.xlf
69 lines (69 loc) · 9.78 KB
/
30094047.ru.001.xlf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<?xml version="1.0" encoding="utf-8"?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
<file source-language="en" target-language="ru" datatype="htmlbody" original="https://stackoverflow.com/questions/30094047">
<body>
<group id="30094047">
<trans-unit id="afbb62e6c59ff6df6c57a69656005dfc65f114d2" translate="yes" xml:space="preserve">
<source>How to extract values from HTML Table and insert into ADO.NET DataTable?</source>
<target state="translated">Как извлечь значения из HTML-таблицы и вставить их в ADO.NET DataTable?</target>
</trans-unit>
<trans-unit id="2fe59d875de1fd0e7ede78ed2864fd5e8750997f" translate="yes" xml:space="preserve">
<source>I have a HTML table as below in my View:</source>
<target state="translated">У меня есть HTML-таблица,как показано ниже в моем "Видении":</target>
</trans-unit>
<trans-unit id="4159e00747b7eedbadf9d87a19507401cc8fbafc" translate="yes" xml:space="preserve">
<source>I want to iterate through all the html table rows and insert the values in ADO.NET DataTable.</source>
<target state="translated">Я хочу провести итерацию по всем строкам html-таблицы и вставить значения в ADO.NET DataTable.</target>
</trans-unit>
<trans-unit id="4b5db80c30ed4e44c04c70d77987bad785b6ef13" translate="yes" xml:space="preserve">
<source>In <code>/Views/Shared/EditorTemplates/LeaveBalanceDetails.cshtml</code></source>
<target state="translated"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">В </font></font> <code>/Views/Shared/EditorTemplates/LeaveBalanceDetails.cshtml</code></target>
</trans-unit>
<trans-unit id="39f130917cc252d77e30239010bd386198aba5f1" translate="yes" xml:space="preserve">
<source>In order to bind to a model on post back, the <code>name</code> attributes of the form controls must match the model properties. Your use of a <code>foreach</code> loop does not generate the correct name attributes. If you inspect the html you will see multiple instances of</source>
<target state="translated"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">Для того , </font><font style="vertical-align: inherit;">чтобы привязать к модели на пост спине, </font></font> <code>name</code> <font style="vertical-align: inherit;"><font style="vertical-align: inherit;"> атрибуты элементов формы должны соответствовать свойствам модели. </font><font style="vertical-align: inherit;">Использование </font></font> <code>foreach</code> <font style="vertical-align: inherit;"><font style="vertical-align: inherit;"> цикла </font><font style="vertical-align: inherit;">foreach</font><font style="vertical-align: inherit;"> не генерирует правильные атрибуты имени. </font><font style="vertical-align: inherit;">Если вы проверите HTML, вы увидите несколько экземпляров</font></font></target>
</trans-unit>
<trans-unit id="9117b0124c325e254e2e4e9622f71a2c3b475a8e" translate="yes" xml:space="preserve">
<source>Post an HTML Table to ADO.NET DataTable</source>
<target state="translated">Разместить таблицу HTML в ADO.NET DataTable.</target>
</trans-unit>
<trans-unit id="f301500015bce4bb853b447b10366b031254a705" translate="yes" xml:space="preserve">
<source>Simple speaking, converting HTML Table to ADO.NET DataTable.</source>
<target state="translated">Проще говоря,преобразование таблицы HTML в ADO.NET DataTable.</target>
</trans-unit>
<trans-unit id="e2fa6bfe975c64d6de261b97a93d05d184c699e5" translate="yes" xml:space="preserve">
<source>Since your POST method will have a parameter name (say <code>model</code>), just drop the prefix (<code>model</code>) and that's how the name attribute of the control must be. In order to do that you must use either a <code>for</code> loop (the collection must implement <code>IList&lt;T&gt;</code>)</source>
<target state="translated"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">Поскольку ваш метод POST будет иметь имя параметра (скажем, </font></font> <code>model</code> <font style="vertical-align: inherit;"><font style="vertical-align: inherit;"> ), просто отбросьте префикс ( </font></font> <code>model</code> <font style="vertical-align: inherit;"><font style="vertical-align: inherit;"> ), и так должен быть атрибут name элемента управления. </font><font style="vertical-align: inherit;">Для этого вы должны использовать </font><font style="vertical-align: inherit;">цикл </font></font> <code>for</code> <font style="vertical-align: inherit;"><font style="vertical-align: inherit;"> (коллекция должна реализовывать </font></font> <code>IList&lt;T&gt;</code> <font style="vertical-align: inherit;"><font style="vertical-align: inherit;"> )</font></font></target>
</trans-unit>
<trans-unit id="71e09637d34f71a538078279448c11c7635850cd" translate="yes" xml:space="preserve">
<source>The view is based on the following model</source>
<target state="translated">Вид основан на следующей модели</target>
</trans-unit>
<trans-unit id="ea380b5d9f35431b7ea3030c026a1cf1de3319c3" translate="yes" xml:space="preserve">
<source>With respect to your requirement, try this</source>
<target state="translated">Что касается вашего требования,попробуйте</target>
</trans-unit>
<trans-unit id="446d6c55b87e5de6c727c6c6b9ffc74600d06ed5" translate="yes" xml:space="preserve">
<source>and finally, in the controller</source>
<target state="translated">и,наконец,в контроллере</target>
</trans-unit>
<trans-unit id="13d6f54638d4bca5ec3308e898fb1aa7fbdba8f7" translate="yes" xml:space="preserve">
<source>and then in the main view (not in a loop)</source>
<target state="translated">а затем в основном виде (не в петле).</target>
</trans-unit>
<trans-unit id="dab17a3bb72ace221318f7ea0bb4b2a4691c9b2d" translate="yes" xml:space="preserve">
<source>but in order to bind to your model the controls would need to be</source>
<target state="translated">но для того,чтобы привязать к вашей модели,органы управления должны быть</target>
</trans-unit>
<trans-unit id="f1c337c6dbe48f8c763f7cd9fb7577ef7c3ac01e" translate="yes" xml:space="preserve">
<source>etc. The easiest way to think about this is to consider how you would access the value of a <code>LeaveType</code> property in <code>C#</code> code</source>
<target state="translated"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">и т. д. Самый простой способ подумать об этом - подумать о том, как получить доступ к значению </font><font style="vertical-align: inherit;">свойства </font></font> <code>LeaveType</code> <font style="vertical-align: inherit;"><font style="vertical-align: inherit;"> в </font><font style="vertical-align: inherit;">коде </font></font> <code>C#</code> <font style="vertical-align: inherit;"></font></target>
</trans-unit>
<trans-unit id="f6e10c456b818904636371ee380d1e33bcad4db7" translate="yes" xml:space="preserve">
<source>or use a custom <code>EditorTemplate</code> (the collection need only implement <code>IEnumerable&lt;T&gt;</code>)</source>
<target state="translated"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">или используйте пользовательский </font></font> <code>EditorTemplate</code> <font style="vertical-align: inherit;"><font style="vertical-align: inherit;"> (коллекция должна реализовывать только </font></font> <code>IEnumerable&lt;T&gt;</code> <font style="vertical-align: inherit;"><font style="vertical-align: inherit;"> )</font></font></target>
</trans-unit>
</group>
</body>
</file>
</xliff>