高章伟
2022-03-10 1312ba82d4c880bdb5357d28e0d4af5b285f610f
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
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
<?xml version="1.0" encoding="UTF-8"?>
<CustomObject xmlns="http://soap.sforce.com/2006/04/metadata">
    <actionOverrides>
        <actionName>Accept</actionName>
        <type>Default</type>
    </actionOverrides>
    <actionOverrides>
        <actionName>CancelEdit</actionName>
        <type>Default</type>
    </actionOverrides>
    <actionOverrides>
        <actionName>Clone</actionName>
        <type>Default</type>
    </actionOverrides>
    <actionOverrides>
        <actionName>Delete</actionName>
        <type>Default</type>
    </actionOverrides>
    <actionOverrides>
        <actionName>Edit</actionName>
        <type>Default</type>
    </actionOverrides>
    <actionOverrides>
        <actionName>List</actionName>
        <type>Default</type>
    </actionOverrides>
    <actionOverrides>
        <actionName>New</actionName>
        <type>Default</type>
    </actionOverrides>
    <actionOverrides>
        <actionName>SaveEdit</actionName>
        <type>Default</type>
    </actionOverrides>
    <actionOverrides>
        <actionName>Tab</actionName>
        <type>Default</type>
    </actionOverrides>
    <actionOverrides>
        <actionName>View</actionName>
        <type>Default</type>
    </actionOverrides>
    <allowInChatterGroups>false</allowInChatterGroups>
    <compactLayoutAssignment>SYSTEM</compactLayoutAssignment>
    <deploymentStatus>Deployed</deploymentStatus>
    <enableActivities>true</enableActivities>
    <enableBulkApi>true</enableBulkApi>
    <enableChangeDataCapture>false</enableChangeDataCapture>
    <enableFeeds>false</enableFeeds>
    <enableHistory>true</enableHistory>
    <enableReports>true</enableReports>
    <enableSearch>true</enableSearch>
    <enableSharing>true</enableSharing>
    <enableStreamingApi>true</enableStreamingApi>
    <externalSharingModel>Private</externalSharingModel>
    <fields>
        <fullName>Account_Salesdepartment__c</fullName>
        <externalId>false</externalId>
        <label>科室-本部</label>
        <length>80</length>
        <required>false</required>
        <trackHistory>false</trackHistory>
        <trackTrending>false</trackTrending>
        <type>Text</type>
        <unique>false</unique>
    </fields>
    <fields>
        <fullName>Account_State__c</fullName>
        <externalId>false</externalId>
        <label>科室-省</label>
        <length>80</length>
        <required>false</required>
        <trackHistory>false</trackHistory>
        <trackTrending>false</trackTrending>
        <type>Text</type>
        <unique>false</unique>
    </fields>
    <fields>
        <fullName>Caller_phone__c</fullName>
        <externalId>false</externalId>
        <label>联系电话</label>
        <required>false</required>
        <trackHistory>true</trackHistory>
        <trackTrending>false</trackTrending>
        <type>Phone</type>
    </fields>
    <fields>
        <fullName>Creator_Job_Category__c</fullName>
        <externalId>false</externalId>
        <label>作成者-職種</label>
        <length>80</length>
        <required>false</required>
        <trackHistory>true</trackHistory>
        <trackTrending>false</trackTrending>
        <type>Text</type>
        <unique>false</unique>
    </fields>
    <fields>
        <fullName>Customer_Problem_c__c</fullName>
        <externalId>false</externalId>
        <label>故障描述</label>
        <required>false</required>
        <trackHistory>true</trackHistory>
        <trackTrending>false</trackTrending>
        <type>TextArea</type>
    </fields>
    <fields>
        <fullName>Customer_sigh_c__c</fullName>
        <defaultValue>false</defaultValue>
        <externalId>false</externalId>
        <label>有无用户签字</label>
        <trackHistory>false</trackHistory>
        <trackTrending>false</trackTrending>
        <type>Checkbox</type>
    </fields>
    <fields>
        <fullName>Customer_sigh_day_c__c</fullName>
        <externalId>false</externalId>
        <label>用户签字日期</label>
        <required>false</required>
        <trackHistory>true</trackHistory>
        <trackTrending>false</trackTrending>
        <type>Date</type>
    </fields>
    <fields>
        <fullName>Daily_Report__c</fullName>
        <deleteConstraint>SetNull</deleteConstraint>
        <externalId>false</externalId>
        <label>日报一览</label>
        <referenceTo>Daily_Report__c</referenceTo>
        <relationshipLabel>On-Call</relationshipLabel>
        <relationshipName>On_Call</relationshipName>
        <required>false</required>
        <trackHistory>false</trackHistory>
        <trackTrending>false</trackTrending>
        <type>Lookup</type>
    </fields>
    <fields>
        <fullName>Elapsed_time_2__c</fullName>
        <externalId>false</externalId>
        <formula>IF(ISNULL(Trable_occur_day_c__c),0, 
 
if ( isnull( From_c__c ), now() - Taking_call_Time_c__c, From_c__c - Taking_call_Time_c__c) *24)</formula>
        <formulaTreatBlanksAs>BlankAsZero</formulaTreatBlanksAs>
        <label>收电-初次对应经过时间</label>
        <precision>18</precision>
        <required>false</required>
        <scale>0</scale>
        <trackHistory>false</trackHistory>
        <trackTrending>false</trackTrending>
        <type>Number</type>
        <unique>false</unique>
    </fields>
    <fields>
        <fullName>Event_Id__c</fullName>
        <externalId>false</externalId>
        <label>活动ID</label>
        <length>18</length>
        <required>false</required>
        <trackHistory>false</trackHistory>
        <trackTrending>false</trackTrending>
        <type>Text</type>
        <unique>false</unique>
    </fields>
    <fields>
        <fullName>Failuor_month__c</fullName>
        <externalId>false</externalId>
        <formula>Case(text(month(Trable_occur_daY_collect_c__c)), 
&quot;10&quot;,mid(text(Year(Trable_occur_daY_collect_c__c)),3,2)&amp;&quot;年&quot;&amp;text(month(Trable_occur_daY_collect_c__c))&amp;&quot;月&quot;, 
&quot;11&quot;,mid(text(Year(Trable_occur_daY_collect_c__c)),3,2)&amp;&quot;年&quot;&amp;text(month(Trable_occur_daY_collect_c__c))&amp;&quot;月&quot;, 
&quot;12&quot;,mid(text(Year(Trable_occur_daY_collect_c__c)),3,2)&amp;&quot;年&quot;&amp;text(month(Trable_occur_daY_collect_c__c))&amp;&quot;月&quot;, 
mid(text(Year(Trable_occur_daY_collect_c__c)),3,2)&amp;&quot;年0&quot;&amp;text(month(Trable_occur_daY_collect_c__c))&amp;&quot;月&quot;)</formula>
        <formulaTreatBlanksAs>BlankAsZero</formulaTreatBlanksAs>
        <label>故障发生月</label>
        <required>false</required>
        <trackHistory>false</trackHistory>
        <trackTrending>false</trackTrending>
        <type>Text</type>
        <unique>false</unique>
    </fields>
    <fields>
        <fullName>FinalStatus__c</fullName>
        <externalId>false</externalId>
        <label>On-Call跟进结果</label>
        <required>false</required>
        <trackHistory>true</trackHistory>
        <trackTrending>false</trackTrending>
        <type>Picklist</type>
        <valueSet>
            <valueSetDefinition>
                <sorted>false</sorted>
                <value>
                    <fullName>OnCall跟进中</fullName>
                    <default>true</default>
                    <label>OnCall跟进中</label>
                </value>
                <value>
                    <fullName>OnCall完毕</fullName>
                    <default>false</default>
                    <label>OnCall完毕</label>
                </value>
                <value>
                    <fullName>修理</fullName>
                    <default>false</default>
                    <label>修理</label>
                </value>
                <value>
                    <fullName>投诉(QIS)</fullName>
                    <default>false</default>
                    <label>投诉(QIS)</label>
                </value>
                <value>
                    <fullName>修理及投诉(QIS)</fullName>
                    <default>false</default>
                    <label>修理及投诉(QIS)</label>
                </value>
            </valueSetDefinition>
        </valueSet>
    </fields>
    <fields>
        <fullName>FinishDataTime__c</fullName>
        <externalId>false</externalId>
        <label>On-Call完毕时间</label>
        <required>false</required>
        <trackHistory>true</trackHistory>
        <trackTrending>false</trackTrending>
        <type>DateTime</type>
    </fields>
    <fields>
        <fullName>FinishDataday__c</fullName>
        <externalId>false</externalId>
        <formula>FinishDataTime__c</formula>
        <formulaTreatBlanksAs>BlankAsZero</formulaTreatBlanksAs>
        <label>完毕日期</label>
        <required>false</required>
        <trackHistory>false</trackHistory>
        <trackTrending>false</trackTrending>
        <type>Date</type>
    </fields>
    <fields>
        <fullName>First_ploblem_c__c</fullName>
        <externalId>false</externalId>
        <label>用户描述问题/电话咨询内容</label>
        <required>false</required>
        <trackHistory>true</trackHistory>
        <trackTrending>false</trackTrending>
        <type>TextArea</type>
    </fields>
    <fields>
        <fullName>From_c__c</fullName>
        <externalId>false</externalId>
        <label>现场检测时间(From)</label>
        <required>false</required>
        <trackHistory>true</trackHistory>
        <trackTrending>false</trackTrending>
        <type>DateTime</type>
    </fields>
    <fields>
        <fullName>HP__c</fullName>
        <externalId>false</externalId>
        <formula>segment__r.Parent.Parent.Name</formula>
        <formulaTreatBlanksAs>BlankAsZero</formulaTreatBlanksAs>
        <label>病院</label>
        <required>false</required>
        <trackHistory>false</trackHistory>
        <trackTrending>false</trackTrending>
        <type>Text</type>
        <unique>false</unique>
    </fields>
    <fields>
        <fullName>HospitalId__c</fullName>
        <externalId>false</externalId>
        <formula>segment__r.Parent.Parent.Id</formula>
        <formulaTreatBlanksAs>BlankAsZero</formulaTreatBlanksAs>
        <label>医院ID</label>
        <required>false</required>
        <trackHistory>false</trackHistory>
        <trackTrending>false</trackTrending>
        <type>Text</type>
        <unique>false</unique>
    </fields>
    <fields>
        <fullName>Hospital_Unmatch__c</fullName>
        <description>0:医院未填
1:医院不是“科室的医院”</description>
        <externalId>false</externalId>
        <formula>IF(ISBLANK(Hospital__c), &quot;0&quot;,
IF(Hospital__c &lt;&gt; segment__r.Parent.ParentId, &quot;1&quot;,
&quot;2&quot;)
)</formula>
        <formulaTreatBlanksAs>BlankAsZero</formulaTreatBlanksAs>
        <label>Hospital_Unmatch</label>
        <required>false</required>
        <trackHistory>false</trackHistory>
        <trackTrending>false</trackTrending>
        <type>Text</type>
        <unique>false</unique>
    </fields>
    <fields>
        <fullName>Hospital__c</fullName>
        <deleteConstraint>SetNull</deleteConstraint>
        <externalId>false</externalId>
        <inlineHelpText>变更了科室以后,请手动将此字段的值更改为科室所属的医院</inlineHelpText>
        <label>医院</label>
        <lookupFilter>
            <active>true</active>
            <errorMessage>On-Call医院的值不存在或与筛选条件不匹配。</errorMessage>
            <filterItems>
                <field>Account.RecordTypeId</field>
                <operation>equals</operation>
                <value>病院,</value>
            </filterItems>
            <isOptional>false</isOptional>
        </lookupFilter>
        <referenceTo>Account</referenceTo>
        <relationshipLabel>On-Call (医院)</relationshipLabel>
        <relationshipName>On_Call_Hospital</relationshipName>
        <required>false</required>
        <trackHistory>true</trackHistory>
        <trackTrending>false</trackTrending>
        <type>Lookup</type>
    </fields>
    <fields>
        <fullName>Incharge_Staff_c__c</fullName>
        <deleteConstraint>SetNull</deleteConstraint>
        <externalId>false</externalId>
        <label>对应者(负责人)</label>
        <referenceTo>User</referenceTo>
        <relationshipName>OnCallstaff</relationshipName>
        <required>false</required>
        <trackHistory>true</trackHistory>
        <trackTrending>false</trackTrending>
        <type>Lookup</type>
    </fields>
    <fields>
        <fullName>OCM_category__c</fullName>
        <externalId>false</externalId>
        <formula>text(Hospital__r.OCM_Category__c)</formula>
        <formulaTreatBlanksAs>BlankAsZero</formulaTreatBlanksAs>
        <label>OCSM分类</label>
        <required>false</required>
        <trackHistory>false</trackHistory>
        <trackTrending>false</trackTrending>
        <type>Text</type>
        <unique>false</unique>
    </fields>
    <fields>
        <fullName>On_Call_complete__c</fullName>
        <externalId>false</externalId>
        <formula>CASE(Status_c__c , &quot;完毕&quot;, 1,0)</formula>
        <formulaTreatBlanksAs>BlankAsZero</formulaTreatBlanksAs>
        <label>已完毕On-Call次数</label>
        <precision>18</precision>
        <required>false</required>
        <scale>0</scale>
        <trackHistory>false</trackHistory>
        <trackTrending>false</trackTrending>
        <type>Number</type>
        <unique>false</unique>
    </fields>
    <fields>
        <fullName>On_Call_count__c</fullName>
        <externalId>false</externalId>
        <formula>1</formula>
        <formulaTreatBlanksAs>BlankAsZero</formulaTreatBlanksAs>
        <label>On-Call次数</label>
        <precision>18</precision>
        <required>false</required>
        <scale>0</scale>
        <trackHistory>false</trackHistory>
        <trackTrending>false</trackTrending>
        <type>Number</type>
        <unique>false</unique>
    </fields>
    <fields>
        <fullName>On_Call_notCompletet__c</fullName>
        <externalId>false</externalId>
        <formula>CASE(Status_c__c ,
&quot;完毕&quot;, 0,
&quot;取消&quot;, 0,
1)</formula>
        <formulaTreatBlanksAs>BlankAsZero</formulaTreatBlanksAs>
        <label>还没完毕On-Call次数</label>
        <precision>18</precision>
        <required>false</required>
        <scale>0</scale>
        <trackHistory>false</trackHistory>
        <trackTrending>false</trackTrending>
        <type>Number</type>
        <unique>false</unique>
    </fields>
    <fields>
        <fullName>On_call_product_ID__c</fullName>
        <externalId>false</externalId>
        <formula>Oncall_Equipment__r.Product2Id</formula>
        <formulaTreatBlanksAs>BlankAsZero</formulaTreatBlanksAs>
        <label>On-Call对象产品ID</label>
        <required>false</required>
        <trackHistory>false</trackHistory>
        <trackTrending>false</trackTrending>
        <type>Text</type>
        <unique>false</unique>
    </fields>
    <fields>
        <fullName>On_called_product__c</fullName>
        <externalId>false</externalId>
        <formula>IF(ISBLANK(Oncall_Equipment__c),Oncall_Product_manual__c, Oncall_Equipment__r.OwnershipMachine_No__c )</formula>
        <formulaTreatBlanksAs>BlankAsZero</formulaTreatBlanksAs>
        <label>对象产品</label>
        <required>false</required>
        <trackHistory>false</trackHistory>
        <trackTrending>false</trackTrending>
        <type>Text</type>
        <unique>false</unique>
    </fields>
    <fields>
        <fullName>Oncall_Equipment__c</fullName>
        <deleteConstraint>SetNull</deleteConstraint>
        <externalId>false</externalId>
        <label>对象产品</label>
        <lookupFilter>
            <active>true</active>
            <filterItems>
                <field>Asset.Hospital__c</field>
                <operation>equals</operation>
                <valueField>$Source.Hospital__c</valueField>
            </filterItems>
            <isOptional>false</isOptional>
        </lookupFilter>
        <referenceTo>Asset</referenceTo>
        <relationshipLabel>OnCall</relationshipLabel>
        <relationshipName>OnCallEquipmentsetnull</relationshipName>
        <required>false</required>
        <trackHistory>true</trackHistory>
        <trackTrending>false</trackTrending>
        <type>Lookup</type>
    </fields>
    <fields>
        <fullName>Oncall_Product_manual__c</fullName>
        <externalId>false</externalId>
        <label>产品信息(手动)</label>
        <length>30</length>
        <required>false</required>
        <trackHistory>true</trackHistory>
        <trackTrending>false</trackTrending>
        <type>Text</type>
        <unique>false</unique>
    </fields>
    <fields>
        <fullName>Oncall_report_number_c__c</fullName>
        <externalId>false</externalId>
        <label>On-Call单据号</label>
        <length>12</length>
        <required>false</required>
        <trackHistory>true</trackHistory>
        <trackTrending>false</trackTrending>
        <type>Text</type>
        <unique>false</unique>
    </fields>
    <fields>
        <fullName>Responsible_Person_HP__c</fullName>
        <externalId>false</externalId>
        <label>院方负责人</label>
        <length>80</length>
        <required>false</required>
        <trackHistory>true</trackHistory>
        <trackTrending>false</trackTrending>
        <type>Text</type>
        <unique>false</unique>
    </fields>
    <fields>
        <fullName>Salesdepartment_HP_ID__c</fullName>
        <externalId>false</externalId>
        <formula>segment__r.Parent.Id</formula>
        <formulaTreatBlanksAs>BlankAsZero</formulaTreatBlanksAs>
        <label>战略科室ID</label>
        <required>false</required>
        <trackHistory>false</trackHistory>
        <trackTrending>false</trackTrending>
        <type>Text</type>
        <unique>false</unique>
    </fields>
    <fields>
        <fullName>Salesdepartment_HP__c</fullName>
        <externalId>false</externalId>
        <formula>segment__r.Parent.Name</formula>
        <formulaTreatBlanksAs>BlankAsZero</formulaTreatBlanksAs>
        <label>战略科室</label>
        <required>false</required>
        <trackHistory>false</trackHistory>
        <trackTrending>false</trackTrending>
        <type>Text</type>
        <unique>false</unique>
    </fields>
    <fields>
        <fullName>Status_c__c</fullName>
        <externalId>false</externalId>
        <label>状态</label>
        <required>false</required>
        <trackHistory>true</trackHistory>
        <trackTrending>false</trackTrending>
        <type>Picklist</type>
        <valueSet>
            <valueSetDefinition>
                <sorted>false</sorted>
                <value>
                    <fullName>跟进中</fullName>
                    <default>true</default>
                    <label>跟进中</label>
                </value>
                <value>
                    <fullName>完毕</fullName>
                    <default>false</default>
                    <label>完毕</label>
                </value>
                <value>
                    <fullName>取消</fullName>
                    <default>false</default>
                    <label>取消</label>
                </value>
            </valueSetDefinition>
        </valueSet>
    </fields>
    <fields>
        <fullName>Taking_call_Time_c__c</fullName>
        <defaultValue>now()</defaultValue>
        <externalId>false</externalId>
        <label>受電时间</label>
        <required>false</required>
        <trackHistory>true</trackHistory>
        <trackTrending>false</trackTrending>
        <type>DateTime</type>
    </fields>
    <fields>
        <fullName>To_c__c</fullName>
        <externalId>false</externalId>
        <label>现场检测时间(To)</label>
        <required>false</required>
        <trackHistory>true</trackHistory>
        <trackTrending>false</trackTrending>
        <type>DateTime</type>
    </fields>
    <fields>
        <fullName>Trable_occur_daY_collect_c__c</fullName>
        <externalId>false</externalId>
        <formula>Trable_occur_day_c__c</formula>
        <formulaTreatBlanksAs>BlankAsZero</formulaTreatBlanksAs>
        <label>故障发生日期</label>
        <required>false</required>
        <trackHistory>false</trackHistory>
        <trackTrending>false</trackTrending>
        <type>Date</type>
    </fields>
    <fields>
        <fullName>Trable_occur_day_c__c</fullName>
        <externalId>false</externalId>
        <label>故障发生时间</label>
        <required>false</required>
        <trackHistory>true</trackHistory>
        <trackTrending>false</trackTrending>
        <type>DateTime</type>
    </fields>
    <fields>
        <fullName>callcount__c</fullName>
        <externalId>false</externalId>
        <formula>1</formula>
        <formulaTreatBlanksAs>BlankAsZero</formulaTreatBlanksAs>
        <label>受電件数</label>
        <precision>18</precision>
        <required>false</required>
        <scale>0</scale>
        <trackHistory>false</trackHistory>
        <trackTrending>false</trackTrending>
        <type>Number</type>
        <unique>false</unique>
    </fields>
    <fields>
        <fullName>elapsed__c</fullName>
        <externalId>false</externalId>
        <formula>IF(ISNULL(Trable_occur_day_c__c),0,
 
if (  isnull( FinishDataTime__c ),  now() - Taking_call_Time_c__c, FinishDataTime__c  - Taking_call_Time_c__c) *24)</formula>
        <label>收电-完毕经过时间</label>
        <precision>18</precision>
        <required>false</required>
        <scale>0</scale>
        <trackHistory>false</trackHistory>
        <trackTrending>false</trackTrending>
        <type>Number</type>
        <unique>false</unique>
    </fields>
    <fields>
        <fullName>segment__c</fullName>
        <deleteConstraint>SetNull</deleteConstraint>
        <externalId>false</externalId>
        <label>科室</label>
        <lookupFilter>
            <active>true</active>
            <filterItems>
                <field>Account.RecordTypeId</field>
                <operation>equals</operation>
                <value>診療科 その他, 診療科 呼吸科, 診療科 婦人科, 診療科 普外科, 診療科 泌尿科, 診療科 消化科, 診療科 耳鼻喉科</value>
            </filterItems>
            <filterItems>
                <field>Account.Is_Active_Formula__c</field>
                <operation>notEqual</operation>
                <value>无效</value>
            </filterItems>
            <isOptional>true</isOptional>
        </lookupFilter>
        <referenceTo>Account</referenceTo>
        <relationshipLabel>OnCall</relationshipLabel>
        <relationshipName>segmentReference</relationshipName>
        <required>false</required>
        <trackHistory>true</trackHistory>
        <trackTrending>false</trackTrending>
        <type>Lookup</type>
    </fields>
    <label>On-Call</label>
    <listViews>
        <fullName>ALL_OnCall</fullName>
        <columns>NAME</columns>
        <columns>segment__c</columns>
        <columns>Status_c__c</columns>
        <columns>Trable_occur_daY_collect_c__c</columns>
        <columns>elapsed__c</columns>
        <columns>FinishDataday__c</columns>
        <columns>Incharge_Staff_c__c</columns>
        <filterScope>Everything</filterScope>
        <label>01 全部On-Call</label>
        <language>zh_CN</language>
    </listViews>
    <listViews>
        <fullName>ALL_OnCallcomplate</fullName>
        <columns>NAME</columns>
        <columns>segment__c</columns>
        <columns>Status_c__c</columns>
        <columns>Trable_occur_daY_collect_c__c</columns>
        <columns>elapsed__c</columns>
        <columns>FinishDataday__c</columns>
        <columns>Incharge_Staff_c__c</columns>
        <columns>Account_State__c</columns>
        <filterScope>Everything</filterScope>
        <filters>
            <field>Status_c__c</field>
            <operation>equals</operation>
            <value>完毕</value>
        </filters>
        <filters>
            <field>Account_State__c</field>
            <operation>contains</operation>
            <value>内蒙</value>
        </filters>
        <label>03 全部On-Call(已完毕)</label>
        <language>zh_CN</language>
    </listViews>
    <listViews>
        <fullName>ALL_OnCallfollow</fullName>
        <columns>NAME</columns>
        <columns>segment__c</columns>
        <columns>Status_c__c</columns>
        <columns>Trable_occur_daY_collect_c__c</columns>
        <columns>elapsed__c</columns>
        <columns>FinishDataday__c</columns>
        <columns>Incharge_Staff_c__c</columns>
        <filterScope>Everything</filterScope>
        <filters>
            <field>Status_c__c</field>
            <operation>equals</operation>
            <value>跟进中</value>
        </filters>
        <label>02 全部On-Call(跟进中)</label>
        <language>zh_CN</language>
    </listViews>
    <nameField>
        <displayFormat>{YYYY}{MM}{00000}</displayFormat>
        <label>On-Call_ID</label>
        <trackHistory>false</trackHistory>
        <type>AutoNumber</type>
    </nameField>
    <searchLayouts>
        <customTabListAdditionalFields>segment__c</customTabListAdditionalFields>
        <customTabListAdditionalFields>Status_c__c</customTabListAdditionalFields>
        <customTabListAdditionalFields>Trable_occur_daY_collect_c__c</customTabListAdditionalFields>
        <customTabListAdditionalFields>elapsed__c</customTabListAdditionalFields>
        <customTabListAdditionalFields>Incharge_Staff_c__c</customTabListAdditionalFields>
        <lookupDialogsAdditionalFields>segment__c</lookupDialogsAdditionalFields>
        <lookupDialogsAdditionalFields>Oncall_Equipment__c</lookupDialogsAdditionalFields>
        <lookupDialogsAdditionalFields>Status_c__c</lookupDialogsAdditionalFields>
        <lookupDialogsAdditionalFields>Trable_occur_daY_collect_c__c</lookupDialogsAdditionalFields>
        <lookupDialogsAdditionalFields>elapsed__c</lookupDialogsAdditionalFields>
        <lookupPhoneDialogsAdditionalFields>segment__c</lookupPhoneDialogsAdditionalFields>
        <lookupPhoneDialogsAdditionalFields>Responsible_Person_HP__c</lookupPhoneDialogsAdditionalFields>
        <lookupPhoneDialogsAdditionalFields>Caller_phone__c</lookupPhoneDialogsAdditionalFields>
        <searchFilterFields>segment__c</searchFilterFields>
        <searchFilterFields>Incharge_Staff_c__c</searchFilterFields>
        <searchFilterFields>Oncall_Equipment__c</searchFilterFields>
        <searchResultsAdditionalFields>segment__c</searchResultsAdditionalFields>
        <searchResultsAdditionalFields>Oncall_Equipment__c</searchResultsAdditionalFields>
        <searchResultsAdditionalFields>Status_c__c</searchResultsAdditionalFields>
        <searchResultsAdditionalFields>Trable_occur_daY_collect_c__c</searchResultsAdditionalFields>
        <searchResultsAdditionalFields>elapsed__c</searchResultsAdditionalFields>
    </searchLayouts>
    <sharingModel>Private</sharingModel>
    <validationRules>
        <fullName>First_follow_up_time</fullName>
        <active>true</active>
        <description>如果现场检测时间(From)对比故障发生时间早的话,不能保存</description>
        <errorConditionFormula>Text(Status_c__c) = &apos;完毕&apos; &amp;&amp; Taking_call_Time_c__c &gt; From_c__c</errorConditionFormula>
        <errorDisplayField>From_c__c</errorDisplayField>
        <errorMessage>请确认现场检测时间(From)对比收到联络时间早</errorMessage>
    </validationRules>
    <validationRules>
        <fullName>Is_Active_Account</fullName>
        <active>true</active>
        <errorConditionFormula>(Isnew() || Ischanged(segment__c)) &amp;&amp; Not(Isblank(segment__c)) &amp;&amp; OR (
/* 无效  ==&gt; 报错 */
segment__r.Is_Active_Formula__c == &quot;无效&quot;,
/* 看父记录,不是医院  ==&gt; 报错 */
Not(segment__r.Parent.Parent.RecordTypeId = &quot;01210000000QemG&quot;)
)</errorConditionFormula>
        <errorDisplayField>segment__c</errorDisplayField>
        <errorMessage>请选择有效的科室</errorMessage>
    </validationRules>
    <validationRules>
        <fullName>Is_Active_Hospital</fullName>
        <active>true</active>
        <errorConditionFormula>(Isnew() || Ischanged(Hospital__c) || Ischanged(segment__c)) &amp;&amp; OR (
/* 和科室的医院不一样  ==&gt; 报错 */
Hospital__c &lt;&gt; segment__r.Parent.ParentId
)</errorConditionFormula>
        <errorDisplayField>Hospital__c</errorDisplayField>
        <errorMessage>和科室的医院不一样</errorMessage>
    </validationRules>
    <validationRules>
        <fullName>Need_Follow_up_result</fullName>
        <active>true</active>
        <errorConditionFormula>Text(Status_c__c) = &apos;完毕&apos; &amp;&amp; Isblank 
(Customer_Problem_c__c )</errorConditionFormula>
        <errorDisplayField>Customer_Problem_c__c</errorDisplayField>
        <errorMessage>FSE对故障现象描述必填</errorMessage>
    </validationRules>
    <validationRules>
        <fullName>On_Call_finish_day_check</fullName>
        <active>false</active>
        <description>暂时不使用 = 使用另外的规则</description>
        <errorConditionFormula>and(  not( isBlank( FinishDataday__c)) ,   isBlank( Trable_occur_day_c__c))</errorConditionFormula>
        <errorDisplayField>Trable_occur_day_c__c</errorDisplayField>
        <errorMessage>请输入故障发生时间,并重新保存以下</errorMessage>
    </validationRules>
    <validationRules>
        <fullName>On_call_finish_time</fullName>
        <active>true</active>
        <description>如果On-Call完毕时间对比故障发生时间早的话,不能保存</description>
        <errorConditionFormula>Taking_call_Time_c__c &gt; FinishDataTime__c</errorConditionFormula>
        <errorDisplayField>FinishDataTime__c</errorDisplayField>
        <errorMessage>请确认On-Call完毕时间对比收到联络时间早</errorMessage>
    </validationRules>
    <validationRules>
        <fullName>Request_on_call_document_number</fullName>
        <active>true</active>
        <errorConditionFormula>Text(Status_c__c) = &apos;完毕&apos; &amp;&amp;  Isblank
(Oncall_report_number_c__c)</errorConditionFormula>
        <errorDisplayField>Oncall_report_number_c__c</errorDisplayField>
        <errorMessage>On-Call单据号“”OCSM-XXX“必填</errorMessage>
    </validationRules>
    <validationRules>
        <fullName>Request_on_call_follow_time_from</fullName>
        <active>true</active>
        <errorConditionFormula>Text(Status_c__c) = &apos;完毕&apos; &amp;&amp; Isblank 
(From_c__c )</errorConditionFormula>
        <errorDisplayField>From_c__c</errorDisplayField>
        <errorMessage>现场检测时间(From)必填</errorMessage>
    </validationRules>
    <validationRules>
        <fullName>Request_on_call_follow_time_to</fullName>
        <active>true</active>
        <errorConditionFormula>Text(Status_c__c) = &apos;完毕&apos; &amp;&amp; Isblank 
(To_c__c )</errorConditionFormula>
        <errorDisplayField>To_c__c</errorDisplayField>
        <errorMessage>现场检测时间(To)必填</errorMessage>
    </validationRules>
    <validationRules>
        <fullName>Requst_On_call_complete_time</fullName>
        <active>true</active>
        <errorConditionFormula>Text(Status_c__c) = &apos;完毕&apos; &amp;&amp; Isblank 
(FinishDataTime__c )</errorConditionFormula>
        <errorDisplayField>FinishDataTime__c</errorDisplayField>
        <errorMessage>On-Call完毕时间必填</errorMessage>
    </validationRules>
    <visibility>Public</visibility>
    <webLinks>
        <fullName>Create_ON_CALL_From_Asset</fullName>
        <availability>online</availability>
        <displayType>massActionButton</displayType>
        <encodingKey>UTF-8</encodingKey>
        <linkType>url</linkType>
        <masterLabel>新建ON-CALL</masterLabel>
        <openType>replace</openType>
        <protected>false</protected>
        <requireRowSelection>false</requireRowSelection>
        <url>/a0e/e?retURL=%2F{!Asset.Id}
&amp;CF00N10000002FH8l={!Asset.Account}
&amp;CF00N10000002FH8l_lkid={!Asset.AccountId}
&amp;CF00N10000002FH8d={!Asset.Name}
&amp;CF00N10000002FH8d_lkid={!Asset.Id}</url>
    </webLinks>
</CustomObject>