lisy
2023-06-16 28b988ca5dc4b51de34c6ebf996579723b2db414
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
@layout("/common/_container.html"){
<div class="ibox float-e-margins">
    <div class="ibox-content">
        <div class="form-horizontal" id="companyInfoForm">
            <input type="hidden" id="id" name="id" value="${item.id}">
            <input type="hidden" id="userId" name="userId" value="${user.id}">
            <input hidden id="language" value="${language}">
            <input hidden id="tOpenCity" value='${tOpenCity}'>
            @if(language==1){
            <div class="row">
                <div class="col-sm-6 b-r">
                    <#input id="name" name="分公司名称" value="${item.name}" />
                    <#input id="code" name="分公司代码" value="${item.code}" />
                    <#input id="principalName" name="分公司负责人" value="${item.principalName}" />
                    <#input id="adminName" name="分公司管理人" value="${item.adminName}" />
                    <#input id="documentAddress" name="行政文书送达地址" value="${item.documentAddress}" />
                    <#input id="setupTime" name="服务机构设立日期" value="${item.setupTime}" />
                    <#input id="licenseNumber" name="网络预约出租汽<br>车经营许可证号" value="${item.licenseNumber}" />
                    <#input id="addressCode" name="注册地行政区域划<br>分代码" value="${item.addressCode}" />
                    <#input id="licenseTime" name="经营许可证初次发证日期" value="${item.licenseTime}" />
                    <#input id="licenseEndTime" name="经营许可证有效期止" value="${item.licenseEndTime}" />
                    <#input id="regCapital" name="注册资本" value="${item.regCapital}" />
                    <#input id="driverNum" name="注册网络预约车驾驶员数量" value="${item.driverNum}" />
                    <#input id="legalId" name="法人代表身份证号" value="${item.legalId}" />
                    <#avatar id="idCardPositive" name="法定代表人身份<br>证照片(正面):" avatarImg="${item.idCardPositive}"/>
                    <#input id="contactAddress" name="通信地址" value="${item.contactAddress}"/>
                </div>
 
                <div class="col-sm-6">
                    <#input id="scopeCode" name="分公司区划代码" value="${item.scopeCode}"/>
                    <#input id="detailAddress" name="分公司具体地址" value="${item.detailAddress}"/>
                    <#input id="principalPhone" name="负责人电话" value="${item.principalPhone}"/>
                    <#input id="adminPhone" name="管理员电话" value="${item.adminPhone}"/>
                    <#input id="urgentPhoen" name="紧急联系电话" value="${item.urgentPhoen}"/>
                    <#input id="identifier" name="统一社会信用代码" value="${item.identifier}"/>
                    <#input id="serviceScope" name="经营区域" value="${item.serviceScope}"/>
                    <#input id="licensingAgency" name="经营许可证发证机构" value="${item.licensingAgency}"/>
                    <#input id="licenseStartTime" name="经营许可证有效期起" value="${item.licenseStartTime}"/>
                    <#input id="economicType" name="经营业户经济类型" value="${item.economicType}"/>
                    <#input id="carNum" name="注册网络预约出租车<br>车辆数" value="${item.carNum}"/>
                    <#input id="legalName" name="法人代表姓名" value="${item.legalName}"/>
                    <#input id="legalPhone" name="法人代表电话" value="${item.legalPhone}"/>
                    <#avatar id="idCardReverse" name="法定代表人身份<br>证照片(反面):" avatarImg="${item.idCardReverse}"/>
                    <#input id="businessScope" name="经营范围" value="${item.businessScope}"/>
                </div>
            </div>
            <div class="row">
                <div class="col-sm-12">
                    <div class="form-group">
                        <label class="col-sm-2 control-label">经营业务:</label>
                        <div class="col-sm-10">
                            <fieldset>
                                <div class="checkbox checkbox-success">
                                    <input name="checkbox" id="checkbox1" type="checkbox" value="1" ${1 == item.isSpe ? 'checked=checked' : ''} onclick="TCompanyInfoDlg.checkbox1()">
                                    <label for="checkbox1">
                                        摩托车
                                    </label>
                                    <fieldset>
                                        <div class="row" style="display: none;" id="zcDiv">
                                            <div class="col-sm-6">
                                                <div class="checkbox checkbox-circle">
                                                    <input type="radio" name="zc" id="zc1" value="1" ${1 == item.isSpeFixedOrProportional ? 'checked=checked' : ''}>
                                                    <label for="zc1">
                                                        <div style="position: relative;top: -8px;">
                                                            <span>按比例抽成,每笔订单抽取</span>
                                                            <input style="width: 50%;display: inline-block;" type="text" class="form-control" id="zcPercent" name="zcPercent"
                                                                   @if(1 == item.isSpeFixedOrProportional){
                                                                   value="${item.speMoney}"
                                                                   @}
                                                            >
                                                            <span>%</span>
                                                        </div>
                                                    </label>
                                                </div>
                                                <div class="checkbox checkbox-circle">
                                                    <input type="radio" name="zc" id="zc2" value="2" ${2 == item.isSpeFixedOrProportional ? 'checked=checked' : ''}>
                                                    <label for="zc2">
                                                        <div style="position: relative;top: -8px;">
                                                            <span>按固定金额抽成,每笔订单抽取</span>
                                                            <input style="width: 50%;display: inline-block;" type="text" class="form-control" id="zcMoney" name="zcMoney"
                                                                   @if(2 == item.isSpeFixedOrProportional){
                                                                   value="${item.speMoney}"
                                                                   @}
                                                            >
                                                            <span>Rp</span>
                                                        </div>
                                                    </label>
                                                </div>
                                            </div>
                                        </div>
                                    </fieldset>
                                </div>
                                <div class="checkbox checkbox-info">
                                    <input name="checkbox" id="checkbox4" type="checkbox" value="4" ${1 == item.isSameLogistics ? 'checked=checked' : ''} onclick="TCompanyInfoDlg.checkbox4()">
                                    <label for="checkbox4">
                                        同城快送
                                    </label>
                                    <fieldset>
                                        <div class="row" style="display: none;" id="tcxDiv">
                                            <div class="col-sm-6">
                                                <div class="checkbox checkbox-circle">
                                                    <input type="radio" name="tcx" id="tcx1" value="1" ${1 == item.isSameLogisticsFixedOrProportional ? 'checked=checked' : ''}>
                                                    <label for="tcx1">
                                                        <div style="position: relative;top: -8px;">
                                                            <span>按比例抽成,每笔订单抽取</span>
                                                            <input style="width: 50%;display: inline-block;" type="text" class="form-control" id="tcxPercent" name="tcxPercent"
                                                                   @if(1 == item.isSameLogisticsFixedOrProportional){
                                                                   value="${item.sameLogisticsMoney}"
                                                                   @}
                                                            >
                                                            <span>%</span>
                                                        </div>
                                                    </label>
                                                </div>
                                                <div class="checkbox checkbox-circle">
                                                    <input type="radio" name="tcx" id="tcx2" value="2" ${2 == item.isSameLogisticsFixedOrProportional ? 'checked=checked' : ''}>
                                                    <label for="tcx2">
                                                        <div style="position: relative;top: -8px;">
                                                            <span>按固定金额抽成,每笔订单抽取</span>
                                                            <input style="width: 50%;display: inline-block;" type="text" class="form-control" id="tcxMoney" name="tcxMoney"
                                                                   @if(2 == item.isSameLogisticsFixedOrProportional){
                                                                   value="${item.sameLogisticsMoney}"
                                                                   @}
                                                            >
                                                            <span>Rp</span>
                                                        </div>
                                                    </label>
                                                </div>
                                            </div>
                                        </div>
                                    </fieldset>
                                </div>
                            </fieldset>
                        </div>
                    </div>
                </div>
            </div>
 
            <div class="row">
                <div class="col-sm-12">
                    <div class="form-group">
                        <label class="col-sm-2 control-label">经营区域:</label>
                        <div class="col-sm-2">
                            <select class="form-control" id="openCity" onchange="TCompanyInfoDlg.provinceChange(this)">
                                <option value="">城市名称</option>
                                @for(obj in openCity){
                                <option value="${obj.id}">${obj.chineseName}</option>
                                @}
                            </select>
                        </div>
                        <div class="col-sm-1">
                            <#button btnCss="info" name="添加" id="ensure" icon="fa-check" clickFun="TCompanyInfoDlg.addScope()"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">添加区域</label>
                        <div class="col-sm-9">
                            <div style="height: 200px; border: 1px solid #e5e6e7;overflow-y: auto;">
                                <table class="table table-striped table-bordered table-hover table-condensed">
                                    <thead>
                                    <tr>
                                        <th style="width: 300px;">城市名称</th>
                                        <th style="width: 200px;">操作</th>
                                    </tr>
                                    </thead>
                                    <tbody id="conn">
                                    @for(obj in scopeList){
                                    <tr class="timeClass">
                                        <td>${obj.name}<td><button onclick="deleteSub(this,'${obj.id}')">移除</button></td>
                                    </tr>
                                    @}
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
 
                    <div class="form-group">
                        <label class="col-sm-2 control-label">限登录MAC地址:</label>
                        <div class="col-sm-9">
                            <input type="text" class="form-control" id="mac" name="mac" value="${item.mac}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">登录账号:</label>
                        <div class="col-sm-9">
                            <input type="text" class="form-control" id="account" name="account" value="${user.account}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">登录密码:</label>
                        <div class="col-sm-9">
                            <input type="password" class="form-control" id="password" name="password" >
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">确认密码:</label>
                        <div class="col-sm-9">
                            <input type="password" class="form-control" id="rePassword" name="rePassword" >
                        </div>
                    </div>
                </div>
            </div>
 
            <div class="row btn-group-m-t">
                <div class="col-sm-10 col-sm-offset-5">
                    <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="TCompanyInfoDlg.editSubmit()"/>
                    <#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="TCompanyInfoDlg.close()"/>
                </div>
            </div>
            @}
            @if(language==2){
            <div class="row">
                <div class="col-sm-6 b-r">
                    <#input id="name" name="Branch name" value="${item.name}" />
                    <#input id="code" name="Branch code" value="${item.code}" />
                    <#input id="principalName" name="Head of branch office" value="${item.principalName}" />
                    <#input id="adminName" name="Branch manager" value="${item.adminName}" />
                    <#input id="documentAddress" name="Address for service of administrative documents" value="${item.documentAddress}" />
                    <#input id="setupTime" name="Date of establishment of service organization" value="${item.setupTime}" />
                    <#input id="licenseNumber" name="Make an appointment for the network<br>taxi business license number" value="${item.licenseNumber}" />
                    <#input id="addressCode" name="Code for division of<br>registered administrative are" value="${item.addressCode}" />
                    <#input id="licenseTime" name="Date of initial issuance of business license" value="${item.licenseTime}" />
                    <#input id="licenseEndTime" name="Validity of business license " value="${item.licenseEndTime}" />
                    <#input id="regCapital" name="Registered capital" value="${item.regCapital}" />
                    <#input id="driverNum" name="Number of network registered car drivers" value="${item.driverNum}" />
                    <#input id="legalId" name="ID card number legal representative" value="${item.legalId}" />
                    <#avatar id="idCardPositive" name="Photo of legal representative's<br>ID card (front side):" avatarImg="${item.idCardPositive}"/>
                    <#input id="contactAddress" name="mailing address" value="${item.contactAddress}"/>
                </div>
 
                <div class="col-sm-6">
                    <#input id="scopeCode" name="Branch division code" value="${item.scopeCode}"/>
                    <#input id="detailAddress" name="Specific address of branch office" value="${item.detailAddress}"/>
                    <#input id="principalPhone" name="Telephone number of person in charge" value="${item.principalPhone}"/>
                    <#input id="adminPhone" name="Manager telephone" value="${item.adminPhone}"/>
                    <#input id="urgentPhoen" name="Emergency contact telephone number" value="${item.urgentPhoen}"/>
                    <#input id="identifier" name="Unify social credit code" value="${item.identifier}"/>
                    <#input id="serviceScope" name="Operating area" value="${item.serviceScope}"/>
                    <#input id="licensingAgency" name="Business license issuing agency" value="${item.licensingAgency}"/>
                    <#input id="licenseStartTime" name="Starting date of the validity of the business license" value="${item.licenseStartTime}"/>
                    <#input id="economicType" name="Type of business household economy" value="${item.economicType}"/>
                    <#input id="carNum" name="Number of online registered<br>taxi vehicles" value="${item.carNum}"/>
                    <#input id="legalName" name="Name of legal representative" value="${item.legalName}"/>
                    <#input id="legalPhone" name="Telephone number of legal representative" value="${item.legalPhone}"/>
                    <#avatar id="idCardReverse" name="Photo of legal representative's ID card<br>(front side):" avatarImg="${item.idCardReverse}"/>
                    <#input id="businessScope" name="scope of business" value="${item.businessScope}"/>
                </div>
            </div>
            <div class="row">
                <div class="col-sm-12">
                    <div class="form-group">
                        <label class="col-sm-2 control-label">Operation business:</label>
                        <div class="col-sm-10">
                            <fieldset>
                                <div class="checkbox checkbox-success">
                                    <input name="checkbox" id="checkbox1" type="checkbox" value="1" ${1 == item.isSpe ? 'checked=checked' : ''} onclick="TCompanyInfoDlg.checkbox1()">
                                    <label for="checkbox1">
                                        motorcycle
                                    </label>
                                    <fieldset>
                                        <div class="row" style="display: none;" id="zcDiv">
                                            <div class="col-sm-6">
                                                <div class="checkbox checkbox-circle">
                                                    <input type="radio" name="zc" id="zc1" value="1" ${1 == item.isSpeFixedOrProportional ? 'checked=checked' : ''}>
                                                    <label for="zc1">
                                                        <div style="position: relative;top: -8px;">
                                                            <span>Proportional commission, commission for each order.</span>
                                                            <input style="width: 50%;display: inline-block;" type="text" class="form-control" id="zcPercent" name="zcPercent"
                                                                   @if(1 == item.isSpeFixedOrProportional){
                                                                   value="${item.speMoney}"
                                                                   @}
                                                            >
                                                            <span>%</span>
                                                        </div>
                                                    </label>
                                                </div>
                                                <div class="checkbox checkbox-circle">
                                                    <input type="radio" name="zc" id="zc2" value="2" ${2 == item.isSpeFixedOrProportional ? 'checked=checked' : ''}>
                                                    <label for="zc2">
                                                        <div style="position: relative;top: -8px;">
                                                            <span>According to the fixed amount, commission for each order is.</span>
                                                            <input style="width: 50%;display: inline-block;" type="text" class="form-control" id="zcMoney" name="zcMoney"
                                                                   @if(2 == item.isSpeFixedOrProportional){
                                                                   value="${item.speMoney}"
                                                                   @}
                                                            >
                                                            <span>Rp</span>
                                                        </div>
                                                    </label>
                                                </div>
                                            </div>
                                        </div>
                                    </fieldset>
                                </div>
                                <div class="checkbox checkbox-info">
                                    <input name="checkbox" id="checkbox4" type="checkbox" value="4" ${1 == item.isSameLogistics ? 'checked=checked' : ''} onclick="TCompanyInfoDlg.checkbox4()">
                                    <label for="checkbox4">
                                        Intra-city express delivery
                                    </label>
                                    <fieldset>
                                        <div class="row" style="display: none;" id="tcxDiv">
                                            <div class="col-sm-6">
                                                <div class="checkbox checkbox-circle">
                                                    <input type="radio" name="tcx" id="tcx1" value="1" ${1 == item.isSameLogisticsFixedOrProportional ? 'checked=checked' : ''}>
                                                    <label for="tcx1">
                                                        <div style="position: relative;top: -8px;">
                                                            <span>Proportional commission, commission for each order.</span>
                                                            <input style="width: 50%;display: inline-block;" type="text" class="form-control" id="tcxPercent" name="tcxPercent"
                                                                   @if(1 == item.isSameLogisticsFixedOrProportional){
                                                                   value="${item.sameLogisticsMoney}"
                                                                   @}
                                                            >
                                                            <span>%</span>
                                                        </div>
                                                    </label>
                                                </div>
                                                <div class="checkbox checkbox-circle">
                                                    <input type="radio" name="tcx" id="tcx2" value="2" ${2 == item.isSameLogisticsFixedOrProportional ? 'checked=checked' : ''}>
                                                    <label for="tcx2">
                                                        <div style="position: relative;top: -8px;">
                                                            <span>According to the fixed amount, commission for each order is.</span>
                                                            <input style="width: 50%;display: inline-block;" type="text" class="form-control" id="tcxMoney" name="tcxMoney"
                                                                   @if(2 == item.isSameLogisticsFixedOrProportional){
                                                                   value="${item.sameLogisticsMoney}"
                                                                   @}
                                                            >
                                                            <span>Rp</span>
                                                        </div>
                                                    </label>
                                                </div>
                                            </div>
                                        </div>
                                    </fieldset>
                                </div>
                            </fieldset>
                        </div>
                    </div>
                </div>
            </div>
 
            <div class="row">
                <div class="col-sm-12">
                    <div class="form-group">
                        <label class="col-sm-2 control-label">Operating area:</label>
                        <div class="col-sm-2">
                            <select class="form-control" id="openCity" onchange="TCompanyInfoDlg.provinceChange(this)">
                                <option value="">City name</option>
                                @for(obj in openCity){
                                <option value="${obj.id}">${obj.englishName}</option>
                                @}
                            </select>
                        </div>
                        <div class="col-sm-1">
                            <#button btnCss="info" name="Add" id="ensure" icon="fa-check" clickFun="TCompanyInfoDlg.addScope()"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">Add district</label>
                        <div class="col-sm-9">
                            <div style="height: 200px; border: 1px solid #e5e6e7;overflow-y: auto;">
                                <table class="table table-striped table-bordered table-hover table-condensed">
                                    <thead>
                                    <tr>
                                        <th style="width: 300px;">City name</th>
                                        <th style="width: 200px;">Operate</th>
                                    </tr>
                                    </thead>
                                    <tbody id="conn">
                                    @for(obj in scopeList){
                                    <tr class="timeClass">
                                        <td>${obj.name}<td><button onclick="deleteSub(this, '${obj.id}')">remove</button></td>
                                    </tr>
                                    @}
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
 
                    <div class="form-group">
                        <label class="col-sm-2 control-label">Login MAC address only:</label>
                        <div class="col-sm-9">
                            <input type="text" class="form-control" id="mac" name="mac" value="${item.mac}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">Login account:</label>
                        <div class="col-sm-9">
                            <input type="text" class="form-control" id="account" name="account" value="${user.account}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">Login password:</label>
                        <div class="col-sm-9">
                            <input type="password" class="form-control" id="password" name="password" >
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">Confirm the password:</label>
                        <div class="col-sm-9">
                            <input type="password" class="form-control" id="rePassword" name="rePassword" >
                        </div>
                    </div>
                </div>
            </div>
 
            <div class="row btn-group-m-t">
                <div class="col-sm-10 col-sm-offset-5">
                    <#button btnCss="info" name="Submit" id="ensure" icon="fa-check" clickFun="TCompanyInfoDlg.editSubmit()"/>
                    <#button btnCss="danger" name="Cancel" id="cancel" icon="fa-eraser" clickFun="TCompanyInfoDlg.close()"/>
                </div>
            </div>
            @}
            @if(language==3){
            <div class="row">
                <div class="col-sm-6 b-r">
                    <#input id="name" name="Nama cabang" value="${item.name}" />
                    <#input id="code" name="Kode cabang" value="${item.code}" />
                    <#input id="principalName" name="Kepala Kantor Cabang" value="${item.principalName}" />
                    <#input id="adminName" name="Manajer cabang" value="${item.adminName}" />
                    <#input id="documentAddress" name="Alamat untuk Dokumen Administratif" value="${item.documentAddress}" />
                    <#input id="setupTime" name="Tanggal Pembentukan Organisasi Layanan" value="${item.setupTime}" />
                    <#input id="licenseNumber" name="Buat janji untuk nomor lisensi jaringan<br>bisnis taksi" value="${item.licenseNumber}" />
                    <#input id="addressCode" name="Kode untuk Divisi Area<br>Administratif Terdaftar" value="${item.addressCode}" />
                    <#input id="licenseTime" name="Tanggal Penerbitan Awal Lisensi Bisnis" value="${item.licenseTime}" />
                    <#input id="licenseEndTime" name="Validitas Lisensi Bisnis" value="${item.licenseEndTime}" />
                    <#input id="regCapital" name="Modal terdaftar" value="${item.regCapital}" />
                    <#input id="driverNum" name="Jumlah pengemudi mobil terdaftar jaringan" value="${item.driverNum}" />
                    <#input id="legalId" name="Nomor Kartu ID Perwakilan Hukum" value="${item.legalId}" />
                    <#avatar id="idCardPositive" name="Foto Kartu ID Perwakilan Hukum<br>(sisi depan):" avatarImg="${item.idCardPositive}"/>
                    <#input id="contactAddress" name="alamat surat" value="${item.contactAddress}"/>
                </div>
 
                <div class="col-sm-6">
                    <#input id="scopeCode" name="Kode Divisi Cabang" value="${item.scopeCode}"/>
                    <#input id="detailAddress" name="Alamat lengkap kantor cabang" value="${item.detailAddress}"/>
                    <#input id="principalPhone" name="Nomor telepon orang yang bertanggung jawab" value="${item.principalPhone}"/>
                    <#input id="adminPhone" name="Telepon manajer" value="${item.adminPhone}"/>
                    <#input id="urgentPhoen" name="Nomor telepon kontak darurat" value="${item.urgentPhoen}"/>
                    <#input id="identifier" name="Kode Kredit Sosial Terpadu" value="${item.identifier}"/>
                    <#input id="serviceScope" name="Area operasi" value="${item.serviceScope}"/>
                    <#input id="licenseStartTime" name="Tanggal mulai validitas lisensi usaha" value="${item.licenseStartTime}"/>
                    <#input id="economicType" name="Jenis Ekonomi Rumah Tangga Bisnis" value="${item.economicType}"/>
                    <#input id="carNum" name="Jumlah kendaraan taksi<br>terdaftar online" value="${item.carNum}"/>
                    <#input id="legalName" name="Nama Perwakilan Hukum" value="${item.legalName}"/>
                    <#input id="legalPhone" name="Nomor Telepon Perwakilan Hukum" value="${item.legalPhone}"/>
                    <#avatar id="idCardReverse" name="Foto Kartu ID Perwakilan Hukum<br>(sisi depan):" avatarImg="${item.idCardReverse}"/>
                    <#input id="businessScope" name="Lingkup bisnis" value="${item.businessScope}"/>
                </div>
            </div>
            <div class="row">
                <div class="col-sm-12">
                    <div class="form-group">
                        <label class="col-sm-2 control-label">Bisnis:</label>
                        <div class="col-sm-10">
                            <fieldset>
                                <div class="checkbox checkbox-success">
                                    <input name="checkbox" id="checkbox1" type="checkbox" value="1" ${1 == item.isSpe ? 'checked=checked' : ''} onclick="TCompanyInfoDlg.checkbox1()">
                                    <label for="checkbox1">
                                        sepeda motor
                                    </label>
                                    <fieldset>
                                        <div class="row" style="display: none;" id="zcDiv">
                                            <div class="col-sm-6">
                                                <div class="checkbox checkbox-circle">
                                                    <input type="radio" name="zc" id="zc1" value="1" ${1 == item.isSpeFixedOrProportional ? 'checked=checked' : ''}>
                                                    <label for="zc1">
                                                        <div style="position: relative;top: -8px;">
                                                            <span>Komisi Proporsional, Komisi untuk Setiap Pesanan.</span>
                                                            <input style="width: 50%;display: inline-block;" type="text" class="form-control" id="zcPercent" name="zcPercent"
                                                                   @if(1 == item.isSpeFixedOrProportional){
                                                                   value="${item.speMoney}"
                                                                   @}
                                                            >
                                                            <span>%</span>
                                                        </div>
                                                    </label>
                                                </div>
                                                <div class="checkbox checkbox-circle">
                                                    <input type="radio" name="zc" id="zc2" value="2" ${2 == item.isSpeFixedOrProportional ? 'checked=checked' : ''}>
                                                    <label for="zc2">
                                                        <div style="position: relative;top: -8px;">
                                                            <span>Menurut jumlah tetap, komisi untuk setiap pesanan adalah Rp.</span>
                                                            <input style="width: 50%;display: inline-block;" type="text" class="form-control" id="zcMoney" name="zcMoney"
                                                                   @if(2 == item.isSpeFixedOrProportional){
                                                                   value="${item.speMoney}"
                                                                   @}
                                                            >
                                                            <span>Rp</span>
                                                        </div>
                                                    </label>
                                                </div>
                                            </div>
                                        </div>
                                    </fieldset>
                                </div>
                                <div class="checkbox checkbox-info">
                                    <input name="checkbox" id="checkbox4" type="checkbox" value="4" ${1 == item.isSameLogistics ? 'checked=checked' : ''} onclick="TCompanyInfoDlg.checkbox4()">
                                    <label for="checkbox4">
                                        Pengiriman Ekspres Dalam Kota
                                    </label>
                                    <fieldset>
                                        <div class="row" style="display: none;" id="tcxDiv">
                                            <div class="col-sm-6">
                                                <div class="checkbox checkbox-circle">
                                                    <input type="radio" name="tcx" id="tcx1" value="1" ${1 == item.isSameLogisticsFixedOrProportional ? 'checked=checked' : ''}>
                                                    <label for="tcx1">
                                                        <div style="position: relative;top: -8px;">
                                                            <span>Komisi Proporsional, Komisi untuk Setiap Pesanan.</span>
                                                            <input style="width: 50%;display: inline-block;" type="text" class="form-control" id="tcxPercent" name="tcxPercent"
                                                                   @if(1 == item.isSameLogisticsFixedOrProportional){
                                                                   value="${item.sameLogisticsMoney}"
                                                                   @}
                                                            >
                                                            <span>%</span>
                                                        </div>
                                                    </label>
                                                </div>
                                                <div class="checkbox checkbox-circle">
                                                    <input type="radio" name="tcx" id="tcx2" value="2" ${2 == item.isSameLogisticsFixedOrProportional ? 'checked=checked' : ''}>
                                                    <label for="tcx2">
                                                        <div style="position: relative;top: -8px;">
                                                            <span>Menurut jumlah tetap, komisi untuk setiap pesanan adalah .</span>
                                                            <input style="width: 50%;display: inline-block;" type="text" class="form-control" id="tcxMoney" name="tcxMoney"
                                                                   @if(2 == item.isSameLogisticsFixedOrProportional){
                                                                   value="${item.sameLogisticsMoney}"
                                                                   @}
                                                            >
                                                            <span>Rp</span>
                                                        </div>
                                                    </label>
                                                </div>
                                            </div>
                                        </div>
                                    </fieldset>
                                </div>
                            </fieldset>
                        </div>
                    </div>
                </div>
            </div>
 
            <div class="row">
                <div class="col-sm-12">
                    <div class="form-group">
                        <label class="col-sm-2 control-label">Area operasi:</label>
                        <div class="col-sm-2">
                            <select class="form-control" id="openCity" onchange="TCompanyInfoDlg.provinceChange(this)">
                                <option value="">Nama kota</option>
                                @for(obj in openCity){
                                <option value="${obj.id}">${obj.indonesianName}</option>
                                @}
                            </select>
                        </div>
                        <div class="col-sm-1">
                            <#button btnCss="info" name="Tambah" id="ensure" icon="fa-check" clickFun="TCompanyInfoDlg.addScope()"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">Tambahkan distrik</label>
                        <div class="col-sm-9">
                            <div style="height: 200px; border: 1px solid #e5e6e7;overflow-y: auto;">
                                <table class="table table-striped table-bordered table-hover table-condensed">
                                    <thead>
                                    <tr>
                                        <th style="width: 300px;">Nama kota</th>
                                        <th style="width: 200px;">Beroperasi</th>
                                    </tr>
                                    </thead>
                                    <tbody id="conn">
                                    @for(obj in scopeList){
                                    <tr class="timeClass">
                                        <td>${obj.id}<td><button onclick="deleteSub(this, '${obj.name}')">Hapus</button></td>
                                    </tr>
                                    @}
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
 
                    <div class="form-group">
                        <label class="col-sm-2 control-label">Alamat MAC saja Masuk:</label>
                        <div class="col-sm-9">
                            <input type="text" class="form-control" id="mac" name="mac" value="${item.mac}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">Akun login:</label>
                        <div class="col-sm-9">
                            <input type="text" class="form-control" id="account" name="account" value="${user.account}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">Kata sandi masuk:</label>
                        <div class="col-sm-9">
                            <input type="password" class="form-control" id="password" name="password" >
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">Konfirmasikan kata sandi:</label>
                        <div class="col-sm-9">
                            <input type="password" class="form-control" id="rePassword" name="rePassword" >
                        </div>
                    </div>
                </div>
            </div>
 
            <div class="row btn-group-m-t">
                <div class="col-sm-10 col-sm-offset-5">
                    <#button btnCss="info" name="Kirim" id="ensure" icon="fa-check" clickFun="TCompanyInfoDlg.editSubmit()"/>
                    <#button btnCss="danger" name="Batal" id="cancel" icon="fa-eraser" clickFun="TCompanyInfoDlg.close()"/>
                </div>
            </div>
            @}
 
 
        </div>
 
    </div>
</div>
<script src="${ctxPath}/modular/system/tCompany/tCompany_info.js"></script>
<script type="application/javascript">
    laydate.render({
        elem: '#setupTime'
    });
    laydate.render({
        elem: '#licenseTime'
    });
    laydate.render({
        elem: '#licenseStartTime'
    });
    laydate.render({
        elem: '#licenseEndTime'
    });
 
    $(function() {
        TCompanyInfoDlg.checkbox1();
        TCompanyInfoDlg.checkbox2();
        TCompanyInfoDlg.checkbox3();
        TCompanyInfoDlg.checkbox4();
        TCompanyInfoDlg.checkbox5();
        TCompanyInfoDlg.checkbox6();
 
        var zc = $("input[name='zc']:checked").val();
        var cz = $("input[name='cz']:checked").val();
        var tcx = $("input[name='tcx']:checked").val();
        var kcx = $("input[name='kcx']:checked").val();
        if (zc == "" || zc == null || zc == undefined){
            $("#zc1").attr("checked","checked")
        }
        if (cz == "" || cz == null || cz == undefined){
            $("#cz1").attr("checked","checked")
        }
        if (tcx == "" || tcx == null || tcx == undefined){
            $("#tcx1").attr("checked","checked")
        }
        if (kcx == "" || kcx == null || kcx == undefined){
            $("#kcx1").attr("checked","checked")
        }
    });
</script>
@}