1
1
@model RapidDoc .Models .ViewModels .USR_OFM_UIT_OfficeMemo_View
2
- @using RapidDoc .Extensions ;
3
2
4
- @Html.HiddenFor(model => Model.DocumentWhom)
5
- @Html.HiddenFor(model => Model.AdditionalText)
6
- <div class =" row" >
7
- <div class =" col-md-12" >
8
- <div >
9
- <h6 >@Html.EnumToDescription(Model.Folder) / @Html.DisplayTextFor(model => Model.ItemCauseNumber)</h6 >
10
- </div >
11
- </div >
12
- </div >
13
- <div class =" row hidden-print" >
14
- <div class =" col-xs-2" >
15
- @Html.LabelFor(model => Model.Whom):
16
- </div >
17
- <div class =" col-xs-10" >
18
- @Html.DisplayTextFor(model => Model.Whom)
19
- </div >
20
- </div >
21
- <div class =" row hidden-print" >
22
- <div class =" col-xs-2" >
23
- @Html.LabelFor(model => Model.DocumentCopy):
24
- </div >
25
- <div class =" col-xs-10" >
26
- @Html.DisplayTextFor(model => Model.DocumentCopy)
27
- </div >
28
- </div >
29
- <div class =" row hidden-print" >
30
- <div class =" col-xs-2" >
31
- @Html.LabelFor(model => Model.FromWhom):
32
- </div >
33
- <div class =" col-xs-10" >
34
- @Html.DisplayTextFor(model => Model.FromWhom)
35
- </div >
36
- </div >
37
- <div class =" row hidden-print" >
38
- <div class =" col-xs-2" >
39
- @Html.LabelFor(model => Model.DocumentTitle):
40
- </div >
41
- <div class =" col-xs-10" >
42
- @Html.DisplayTextFor(model => Model.DocumentTitle)
43
- </div >
44
- </div >
3
+ @Html.Action( "GetManualOfficeMemo", "Custom", new { model = Model } )
45
4
46
- <div class =" row visible-print" >
47
- <div class =" col-xs-12" >
48
- <br />
49
- @Html.LabelFor(model => Model.Whom): @Html.DisplayTextFor(model => Model.Whom)
50
- </div >
51
- </div >
52
- <div class =" row visible-print" >
53
- <div class =" col-xs-12" >
54
- <br />
55
- @Html.LabelFor(model => Model.DocumentCopy): @Html.DisplayTextFor(model => Model.DocumentCopy)
56
- </div >
57
- </div >
58
- <div class =" row visible-print" >
59
- <div class =" col-xs-12" >
60
- <br />
61
- @Html.LabelFor(model => Model.FromWhom): @Html.DisplayTextFor(model => Model.FromWhom)
62
- </div >
63
- </div >
64
5
65
- <div class =" row visible-print" >
66
- <div class =" col-xs-12" >
67
- <br />
68
- @Html.LabelFor(model => Model.DocumentTitle): @Html.DisplayTextFor(model => Model.DocumentTitle)
69
- </div >
70
- </div >
71
- <div class =" row" style =" background-color : #fff ; border-bottom : 2px solid #bdc3c7 ; border-top : 2px solid #bdc3c7 ;" >
72
- <div class =" col-xs-12" >
73
- @Html.Raw(Model.MainField)
74
- </div >
75
- </div >
76
-
77
- <div class =" modal fade addusers-modal" tabindex =" -1" role =" dialog" aria-labelledby =" myLargeModalLabel" aria-hidden =" true" >
78
- <div class =" modal-dialog" >
79
- <div class =" modal-content modal-lg" >
80
- <div class =" modal-header" >
81
- <button type =" button" class =" close" data-dismiss =" modal" aria-label =" Close" ><span aria-hidden =" true" >× ; </span ></button >
82
- <h4 class =" modal-title" >@CustomRes.Custom.Users </h4 >
83
- </div >
84
- <div class =" modal-body" style =" min-height : 180px ;" >
85
- <div class =" input-group" >
86
- <span class =" input-group-addon" >
87
- <a href =" #" class =" hidden-print" data-toggle =" modal" data-target =" .documentwhom-modal" ><span class =" fa fa-users fa-lg" aria-hidden =" false" ></span ></a >
88
- </span >
89
- @Html.TextBox( "Flow", "", new { @class = " form-control" , @data_role = " tagsinputGroup2" , @size = 256 , @maxlength = 256 , placeholder = " Маршрут согласования" } )
90
- </div >
91
- <br />
92
- <span >
93
- @Html.CheckBox( "IsParallel", true, new { @data_labelauty = " Параллельно|Параллельно" } )
94
- </span >
95
-
96
- <a data-toggle =" collapse" href =" #collapseSettings" aria-expanded =" false" aria-controls =" collapseSettings" >Добавить сопроводительный текст</a >
97
- <div class =" collapse" id =" collapseSettings" >
98
- <div class =" editor-field" >
99
- @Html.TextArea( "AdditionaltextCZ","", new { @class = " form-control" } )
100
- </div >
101
- </div >
102
- <br /><br />
103
- <h4 class =" modal-title" >@FieldNameRes.FieldNameResource.Notify </h4 >
104
- <div class =" editor-field" >
105
- @Html.CheckBox( "IsNotifyCZ", true)
106
- </div >
107
-
108
- <div class =" modal-footer" >
109
- <button type =" submit" class =" btn btn-primary" name =" action:AddUsersDocumentCZ" >@UIElementRes.UIElement.AddUsers </button >
110
- <button type =" button" class =" btn btn-default" data-dismiss =" modal" >@UIElementRes.UIElement.Cancel </button >
111
- </div >
112
- </div >
113
- </div >
114
- </div >
115
- </div >
116
- <div class =" modal fade documentwhom-modal" tabindex =" -1" role =" dialog" aria-labelledby =" myLargeModalLabel" aria-hidden =" true" >
117
- <div class =" modal-dialog modal-sidebar" >
118
- <div class =" modal-content" >
119
- <div class =" modal-header" >
120
- <button type =" button" class =" close" data-dismiss =" modal" aria-label =" Close" ><span aria-hidden =" true" >× ; </span ></button >
121
- <h4 class =" modal-title" >@UIElementRes.UIElement.DistributionGroup - Поле Кому</h4 >
122
- </div >
123
- <div class =" modal-body" style =" min-height :700px ;" >
124
- @Html.Action( "RoleLookup", "Role", new { prefix = " whom" } )
125
- </div >
126
- </div >
127
- </div >
128
- </div >
129
- <div class =" modal fade rejectcz-modal-sm" tabindex =" -1" role =" dialog" aria-labelledby =" myLargeModalLabel" aria-hidden =" true" >
130
- <div class =" modal-dialog modal-dialog" >
131
- <div class =" modal-content" >
132
- <div class =" modal-header" >
133
- <div class =" alert_placeholder" ></div >
134
- <button type =" button" class =" close" data-dismiss =" modal" aria-label =" Close" ><span aria-hidden =" true" >× ; </span ></button >
135
- <h4 class =" modal-title" >Отмена документа</h4 >
136
- </div >
137
- <div class =" modal-body" style =" min-height :250px ;" >
138
- @Html.TextArea( "RejectComment", new { @class = " form-control" , @placeholder = " Обязательно укажите причину отмены" } )
139
- <br >
140
- <div >
141
- <button type =" button" class =" btn btn-default pull-right" data-dismiss =" modal" >@UIElementRes.UIElement.Cancel </button >
142
- <button type =" submit" id =" rejectCZ" class =" btn btn-danger pull-right" name =" action:RejectDocumentCZ" >@UIElementRes.UIElement.Reject </button >
143
- </div >
144
- </div >
145
- </div >
146
- </div >
147
- </div >
148
- <div class =" modal fade approvecz-modal-sm" tabindex =" -1" role =" dialog" aria-labelledby =" myLargeModalLabel" aria-hidden =" true" >
149
- <div class =" modal-dialog modal-dialog" >
150
- <div class =" modal-content" >
151
- <div class =" modal-header" >
152
- <button type =" button" class =" close" data-dismiss =" modal" aria-label =" Close" ><span aria-hidden =" true" >× ; </span ></button >
153
- <h4 class =" modal-title" >Утверждение документа</h4 >
154
- </div >
155
- <div class =" modal-body" style =" min-height :200px ;" >
156
- @Html.TextArea( "ApproveComment", new { @class = " form-control" , @placeholder = " Замечания" } )
157
- <br >
158
- <div >
159
- <button type =" button" class =" btn btn-default pull-right" data-dismiss =" modal" >@UIElementRes.UIElement.Cancel </button >
160
- <button type =" submit" class =" btn btn-success pull-right" name =" action:ApproveDocumentCZ" >@UIElementRes.UIElement.Approve </button >
161
- </div >
162
- </div >
163
- </div >
164
- </div >
165
- </div >
166
-
167
- <script type =" text/javascript" >
168
- $ (function () {
169
- bootstrap_alert = function () { }
170
- bootstrap_alert .warning = function (message ) {
171
- $ (' .alert_placeholder' ).html (' <div class="alert alert-danger" role="alert"><span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span><span class="sr-only">Error:</span>' + message + ' </div>' )
172
- }
173
- $ (' .distributiongrouplink_whom' ).click (function () {
174
- var element = $ (event .target );
175
- var tagId = element .attr (' data-itemid' ) + ' , ' + element .attr (' data-rolename' );
176
- $ (' input[data-role=tagsinputGroup2]' ).tagsinput (' add' , { value: tagId, text: element .text () });
177
- });
178
-
179
- $ (' #rejectCZ' ).click (function (event ) {
180
- var comment = $ (' #RejectComment' ).val ();
181
- if (comment == " " ) {
182
- bootstrap_alert .warning (' Необходимо заполнить причину отмены' );
183
- event .preventDefault ();
184
- return false ;
185
- }
186
- });
187
- });
188
- </script >
0 commit comments