LAPTOP-SNT8I5JK\Boounion
2025-09-08 3f000671e15acd2de87c8588d7f09c0dc103bd7b
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
#include "stdafx.h"
#include "CJobDataS.h"
#include "ToolUnits.h"
 
 
namespace SERVO {
#define JOBDATAS_SIZE                (256 * 2)
#define ENABLE_JOBDATAS_RAWDATA        TRUE
 
    CJobDataS::CJobDataS()
    {
        m_nCassetteSequenceNo = 0;
        m_nJobSequenceNo = 0;
        m_nJobType = 0;
        m_nMaterialsType = 0;
        m_nProductType = 0;
        m_nDummyType = 0;
        m_nSkipFlag = 0;
        m_nProcessFlag = 0;
        m_nProcessResonCode = 0;
        m_nLastGlassFlag = 0;
        m_nFirstGlassFlag = 0;
        m_nQTime[3] = { 0 };
        m_nQTimeOverFlag = 0;
        m_nMasterRecipe = 0;
        m_nRecipeIds[DEVICE_COUNT] = { 0 };
        m_nMode = 0;
        m_nSlotUnitSelectFlag = 0;
        m_nSourcePortNo = 0;
        m_nSourceSlotNo = 0;
        m_nTargetPortNo = 0;
        m_nTargetSlotNo = 0;
        m_nProductJudge = 0;
        m_pRawData = nullptr;
        m_pOwner = nullptr;
        if (ENABLE_JOBDATAS_RAWDATA) {
            m_pRawData = new char[JOBDATAS_SIZE];
            serialize(m_pRawData, JOBDATAS_SIZE);
        }
    }
 
    CJobDataS::CJobDataS(CJobDataS&& other) noexcept
    {
        copy(&other);
        m_pRawData = other.m_pRawData;      // Íµ×ÊÔ´
        other.m_pRawData = nullptr;            // ·ÀÖ¹ÊÍ·ÅÁ½´Î
    }
 
    CJobDataS::~CJobDataS()
    {
        if (m_pRawData != nullptr) {
            delete[] m_pRawData;
            m_pRawData = nullptr;
        }
    }
 
    void CJobDataS::copy(CJobDataS* pScr)
    {
        m_nCassetteSequenceNo = pScr->m_nCassetteSequenceNo;
        m_nJobSequenceNo = pScr->m_nJobSequenceNo;
        m_strLotId = pScr->m_strLotId;
        m_strProductId = pScr->m_strProductId;
        m_strOperationId = pScr->m_strOperationId;
        m_strGlass1Id = pScr->m_strGlass1Id;
        m_strGlass2Id = pScr->m_strGlass2Id;
        m_nJobType = pScr->m_nJobType;
        m_nMaterialsType = pScr->m_nMaterialsType;
        m_nProductType = pScr->m_nProductType;
        m_nDummyType = pScr->m_nDummyType;
        m_nSkipFlag = pScr->m_nSkipFlag;
        m_nProcessFlag = pScr->m_nProcessFlag;
        m_nProcessResonCode = pScr->m_nProcessResonCode;
        m_nLastGlassFlag = pScr->m_nLastGlassFlag;
        m_nFirstGlassFlag = pScr->m_nFirstGlassFlag;
        m_nQTime[0] = pScr->m_nQTime[0];
        m_nQTime[1] = pScr->m_nQTime[1];
        m_nQTime[2] = pScr->m_nQTime[2];
        m_nQTimeOverFlag = pScr->m_nQTimeOverFlag;
        m_nMasterRecipe = pScr->m_nMasterRecipe;
        memcpy(m_nRecipeIds, pScr->m_nRecipeIds, sizeof(m_nRecipeIds));
        m_strPanelMeasure = pScr->m_strPanelMeasure;
        m_nMode = pScr->m_nMode;
        m_nSlotUnitSelectFlag = pScr->m_nSlotUnitSelectFlag;
        m_nSourcePortNo = pScr->m_nSourcePortNo;
        m_nSourceSlotNo = pScr->m_nSourceSlotNo;
        m_nTargetPortNo = pScr->m_nTargetPortNo;
        m_nTargetSlotNo = pScr->m_nTargetSlotNo;
        m_nProductJudge = pScr->m_nProductJudge;
        m_pOwner = pScr->m_pOwner;
    }
 
    void CJobDataS::update(CJobDataS* pScr)
    {
        // m_nCassetteSequenceNo = pScr->m_nCassetteSequenceNo;
        // m_nJobSequenceNo = pScr->m_nJobSequenceNo;
        m_strLotId = pScr->m_strLotId;
        m_strProductId = pScr->m_strProductId;
        m_strOperationId = pScr->m_strOperationId;
        // m_strGlass1Id = pScr->m_strGlass1Id;
        m_strGlass2Id = pScr->m_strGlass2Id;
        m_nJobType = pScr->m_nJobType;
        m_nMaterialsType = pScr->m_nMaterialsType;
        m_nProductType = pScr->m_nProductType;
        m_nDummyType = pScr->m_nDummyType;
        m_nSkipFlag = pScr->m_nSkipFlag;
        m_nProcessFlag = pScr->m_nProcessFlag;
        m_nProcessResonCode = pScr->m_nProcessResonCode;
        m_nLastGlassFlag = pScr->m_nLastGlassFlag;
        m_nFirstGlassFlag = pScr->m_nFirstGlassFlag;
        m_nQTime[0] = pScr->m_nQTime[0];
        m_nQTime[1] = pScr->m_nQTime[1];
        m_nQTime[2] = pScr->m_nQTime[2];
        m_nQTimeOverFlag = pScr->m_nQTimeOverFlag;
        m_nMasterRecipe = pScr->m_nMasterRecipe;
        memcpy(m_nRecipeIds, pScr->m_nRecipeIds, sizeof(m_nRecipeIds));
        m_strPanelMeasure = pScr->m_strPanelMeasure;
        m_nMode = pScr->m_nMode;
        m_nSlotUnitSelectFlag = pScr->m_nSlotUnitSelectFlag;
        m_nSourcePortNo = pScr->m_nSourcePortNo;
        m_nSourceSlotNo = pScr->m_nSourceSlotNo;
        m_nTargetPortNo = pScr->m_nTargetPortNo;
        m_nTargetSlotNo = pScr->m_nTargetSlotNo;
        m_nProductJudge = pScr->m_nProductJudge;
        m_pOwner = pScr->m_pOwner;
    }
 
    CJobDataB& CJobDataS::getJobDataB(CJobDataB& jobDataB)
    {
        jobDataB.setCassetteSequenceNo(this->getCassetteSequenceNo());
        jobDataB.setJobSequenceNo(this->getJobSequenceNo());
        jobDataB.setGlassId(this->getGlass1Id().c_str());
 
        return jobDataB;
    }
 
    void* CJobDataS::getOwner()
    {
        return m_pOwner;
    }
 
    void CJobDataS::setOwner(void* pOwner)
    {
        m_pOwner = pOwner;
    }
 
    int CJobDataS::getCassetteSequenceNo()
    {
        return m_nCassetteSequenceNo;
    }
 
    void CJobDataS::setCassetteSequenceNo(int no)
    {
        m_nCassetteSequenceNo = no;
    }
 
    int CJobDataS::getJobSequenceNo()
    {
        return m_nJobSequenceNo;
    }
 
    void CJobDataS::setJobSequenceNo(int no)
    {
        m_nJobSequenceNo = no;
    }
 
    std::string& CJobDataS::getLotId()
    {
        return m_strLotId;
    }
 
    void CJobDataS::setLotId(const char* pszId)
    {
        m_strLotId = pszId;
    }
 
    std::string& CJobDataS::getProductId()
    {
        return m_strProductId;
    }
 
    void CJobDataS::setProductId(const char* pszId)
    {
        m_strProductId = pszId;
    }
 
    std::string& CJobDataS::getOperationId()
    {
        return m_strOperationId;
    }
 
    void CJobDataS::setOperationId(const char* pszId)
    {
        m_strOperationId = pszId;
    }
 
    std::string& CJobDataS::getGlass1Id()
    {
        return m_strGlass1Id;
    }
 
    void CJobDataS::setGlass1Id(const char* pszId)
    {
        m_strGlass1Id = pszId;
    }
 
    std::string& CJobDataS::getGlass2Id()
    {
        return m_strGlass2Id;
    }
 
    void CJobDataS::setGlass2Id(const char* pszId)
    {
        m_strGlass2Id = pszId;
    }
 
    int CJobDataS::getJobType()
    {
        return m_nJobType;
    }
 
    void CJobDataS::setJobType(int type)
    {
        m_nJobType = type;
    }
 
    int CJobDataS::getMaterialsType()
    {
        return m_nMaterialsType;
    }
 
    void CJobDataS::setMaterialsType(int type)
    {
        m_nMaterialsType = type;
    }
 
    int CJobDataS::getProductType()
    {
        return m_nProductType;
    }
 
    void CJobDataS::setProductType(int type)
    {
        m_nProductType = type;
    }
 
    int CJobDataS::getDummyType()
    {
        return m_nDummyType;
    }
 
    void CJobDataS::setDummyType(int type)
    {
        m_nDummyType = type;
    }
 
    int CJobDataS::getSkipFlag()
    {
        return m_nSkipFlag;
    }
 
    void CJobDataS::setSkipFlag(int flag)
    {
        m_nSkipFlag = flag;
    }
 
    int CJobDataS::getProcessFlag()
    {
        return m_nProcessFlag;
    }
 
    void CJobDataS::setProcessFlag(int flag)
    {
        m_nProcessFlag = flag;
    }
 
    int CJobDataS::getProcessResonCode()
    {
        return m_nProcessResonCode;
    }
 
    void CJobDataS::setProcessResonCode(int code)
    {
        m_nProcessResonCode = code;
    }
 
    int CJobDataS::getLastGlassFlag()
    {
        return m_nLastGlassFlag;
    }
 
    void CJobDataS::setLastGlassFlag(int flag)
    {
        m_nLastGlassFlag = flag;
    }
 
    int CJobDataS::getFirstGlassFlag()
    {
        return m_nFirstGlassFlag;
    }
 
    void CJobDataS::setFirstGlassFlag(int flag)
    {
        m_nFirstGlassFlag = flag;
    }
 
    int CJobDataS::getQTime(int index)
    {
        if (0 <= index && index <= 2) {
            return m_nQTime[index];
        }
 
        return 0;
    }
 
    void CJobDataS::setQTime(int index, int time)
    {
        if (0 <= index && index <= 2) {
            m_nQTime[index] = time;
        }
    }
 
    int CJobDataS::getQTimeOverFlag()
    {
        return m_nQTimeOverFlag;
    }
 
    void CJobDataS::setQTimeOverFlag(int flag)
    {
        m_nQTimeOverFlag = flag;
    }
 
    int CJobDataS::getMasterRecipe()
    {
        return m_nMasterRecipe;
    }
 
    void CJobDataS::setMasterRecipe(int recipe)
    {
        m_nMasterRecipe = recipe;
    }
 
    short CJobDataS::getDeviceRecipeId(int nDeviceIndex) const
    {
        if (nDeviceIndex < 0 || nDeviceIndex >= DEVICE_COUNT) {
            return 0;
        }
 
        return m_nRecipeIds[nDeviceIndex];
    }
 
    void CJobDataS::setDeviceRecipeId(int nDeviceIndex, short nRecipeId)
    {
        if (nDeviceIndex < 0 || nDeviceIndex >= DEVICE_COUNT) {
            return;
        }
 
        m_nRecipeIds[nDeviceIndex] = nRecipeId;
    }
 
    const short* CJobDataS::getRecipeIds() const
    { 
        return m_nRecipeIds;
    }
 
    void CJobDataS::setRecipeIds(const short* pIds, int nCount)
    {
        int nCopyCount = nCount > DEVICE_COUNT ? DEVICE_COUNT : nCount;
        for (int i = 0; i < nCopyCount; ++i) {
            m_nRecipeIds[i] = pIds[i];
        }
 
        // Èç¹û nCount < DEVICE_COUNT£¬¿ÉÒÔÑ¡Ôñ²¹Áã
        for (int i = nCopyCount; i < DEVICE_COUNT; ++i) {
            m_nRecipeIds[i] = 0;
        }
    }
 
    std::string& CJobDataS::getPanelMeasure()
    {
        return m_strPanelMeasure;
    }
 
    void CJobDataS::setPanelMeasure(const char* pszMeasure)
    {
        m_strPanelMeasure = pszMeasure;
    }
 
    int CJobDataS::getMode()
    {
        return m_nMode;
    }
 
    void CJobDataS::setMode(int mode)
    {
        m_nMode = mode;
    }
 
    int CJobDataS::getSlotUnitSelectFlag()
    {
        return m_nSlotUnitSelectFlag;
    }
 
    void CJobDataS::setSlotUnitSelectFlag(int flag)
    {
        m_nSlotUnitSelectFlag = flag;
    }
 
    int CJobDataS::getSourcePortNo()
    {
        return m_nSourcePortNo;
    }
 
    void CJobDataS::setSourcePortNo(int no)
    {
        m_nSourcePortNo = no;
    }
 
    int CJobDataS::getSourceSlotNo()
    {
        return m_nSourceSlotNo;
    }
 
    void CJobDataS::setSourceSlotNo(int no)
    {
        m_nSourceSlotNo = no;
    }
 
    int CJobDataS::getTargetPortNo()
    {
        return m_nTargetPortNo;
    }
 
    void CJobDataS::setTargetPortNo(int no)
    {
        m_nTargetPortNo = no;
    }
 
    int CJobDataS::getTargetSlotNo()
    {
        return m_nTargetSlotNo;
    }
 
    void CJobDataS::setTargetSlotNo(int no)
    {
        m_nTargetSlotNo = no;
    }
 
    short CJobDataS::getProductJudge() const
    {
        return m_nProductJudge;
    }
 
    void CJobDataS::setProductJudge(short nProductJudge)
    {
        m_nProductJudge = nProductJudge;
    }
 
    int CJobDataS::serialize(char* pszBuffer, int nBufferSize)
    {
        if (nBufferSize < JOBDATAS_SIZE) return -1;
 
        int index = 0;
        memcpy(&pszBuffer[index], &m_nCassetteSequenceNo, sizeof(short));
        index += sizeof(short);
 
        memcpy(&pszBuffer[index], &m_nJobSequenceNo, sizeof(short));
        index += sizeof(short);
 
        int strLen = min(40, (int)m_strLotId.size());
        memcpy(&pszBuffer[index], m_strLotId.c_str(), strLen);
        index += 40;
 
        strLen = min(20, (int)m_strProductId.size());
        memcpy(&pszBuffer[index], m_strProductId.c_str(), strLen);
        index += 20;
 
        strLen = min(20, (int)m_strOperationId.size());
        memcpy(&pszBuffer[index], m_strOperationId.c_str(), strLen);
        index += 20;
 
        strLen = min(20, (int)m_strGlass1Id.size());
        memcpy(&pszBuffer[index], m_strGlass1Id.c_str(), strLen);
        index += 20;
 
        strLen = min(20, (int)m_strGlass2Id.size());
        memcpy(&pszBuffer[index], m_strGlass2Id.c_str(), strLen);
        index += 20;
 
        memcpy(&pszBuffer[index], &m_nJobType, sizeof(short));
        index += sizeof(short);
 
        memcpy(&pszBuffer[index], &m_nMaterialsType, sizeof(short));
        index += sizeof(short);
 
        memcpy(&pszBuffer[index], &m_nProductType, sizeof(short));
        index += sizeof(short);
 
        memcpy(&pszBuffer[index], &m_nDummyType, sizeof(short));
        index += sizeof(short);
 
        memcpy(&pszBuffer[index], &m_nSkipFlag, sizeof(int));
        index += sizeof(int);
        
        memcpy(&pszBuffer[index], &m_nProcessFlag, sizeof(int));
        index += sizeof(int);
 
        memcpy(&pszBuffer[index], &m_nProcessResonCode, sizeof(short));
        index += sizeof(short);
 
        memcpy(&pszBuffer[index], &m_nLastGlassFlag, sizeof(short));
        index += sizeof(short);
 
        memcpy(&pszBuffer[index], &m_nFirstGlassFlag, sizeof(short));
        index += sizeof(short);
 
        memcpy(&pszBuffer[index], &m_nQTime[0], sizeof(short));
        index += sizeof(short);
 
        memcpy(&pszBuffer[index], &m_nQTime[1], sizeof(short));
        index += sizeof(short);
 
        memcpy(&pszBuffer[index], &m_nQTime[2], sizeof(short));
        index += sizeof(short);
 
        memcpy(&pszBuffer[index], &m_nQTimeOverFlag, sizeof(short));
        index += sizeof(short);
 
        memcpy(&pszBuffer[index], &m_nMasterRecipe, sizeof(short));
        index += sizeof(short);
 
        for (int i = 0; i < DEVICE_COUNT; i++) {
            memcpy(&pszBuffer[index], &m_nRecipeIds[i], sizeof(short));
            index += sizeof(short);
        }
 
        strLen = min(80, (int)m_strPanelMeasure.size());
        memcpy(&pszBuffer[index], m_strPanelMeasure.c_str(), strLen);
        index += 80;
 
        memcpy(&pszBuffer[index], &m_nMode, sizeof(short));
        index += sizeof(short);
 
        memcpy(&pszBuffer[index], &m_nSlotUnitSelectFlag, sizeof(short));
        index += sizeof(short);
 
        memcpy(&pszBuffer[index], &m_nSourcePortNo, sizeof(short));
        index += sizeof(short);
 
        memcpy(&pszBuffer[index], &m_nSourceSlotNo, sizeof(short));
        index += sizeof(short);
 
        memcpy(&pszBuffer[index], &m_nTargetPortNo, sizeof(short));
        index += sizeof(short);
 
        memcpy(&pszBuffer[index], &m_nTargetSlotNo, sizeof(short));
        index += sizeof(short);
 
        memcpy(&pszBuffer[index], &m_nProductJudge, sizeof(short));
        index += sizeof(short);
 
        return JOBDATAS_SIZE;
    }
 
    int CJobDataS::unserialize(const char* pszBuffer, int nBufferSize)
    {
        if (nBufferSize < JOBDATAS_SIZE) return -1;
 
        int index = 0;
        memcpy(&m_nCassetteSequenceNo, &pszBuffer[index], sizeof(short));
        index += sizeof(short);
 
        memcpy(&m_nJobSequenceNo, &pszBuffer[index], sizeof(short));
        index += sizeof(short);
 
        CToolUnits::convertString(&pszBuffer[index], 40, m_strLotId);
        index += 40;
 
        CToolUnits::convertString(&pszBuffer[index], 20, m_strProductId);
        index += 20;
 
        CToolUnits::convertString(&pszBuffer[index], 20, m_strOperationId);
        index += 20;
 
        CToolUnits::convertString(&pszBuffer[index], 20, m_strGlass1Id);
        index += 20;
 
        CToolUnits::convertString(&pszBuffer[index], 20, m_strGlass2Id);
        index += 20;
 
        memcpy(&m_nJobType, &pszBuffer[index], sizeof(short));
        index += sizeof(short);
 
        memcpy(&m_nMaterialsType, &pszBuffer[index], sizeof(short));
        index += sizeof(short);
 
        memcpy(&m_nProductType, &pszBuffer[index], sizeof(short));
        index += sizeof(short);
 
        memcpy(&m_nDummyType, &pszBuffer[index], sizeof(short));
        index += sizeof(short);
 
        memcpy(&m_nSkipFlag, &pszBuffer[index], sizeof(int));
        index += sizeof(int);
 
        memcpy(&m_nProcessFlag, &pszBuffer[index], sizeof(int));
        index += sizeof(int);
 
        memcpy(&m_nProcessResonCode, &pszBuffer[index], sizeof(short));
        index += sizeof(short);
 
        memcpy(&m_nLastGlassFlag, &pszBuffer[index], sizeof(short));
        index += sizeof(short);
 
        memcpy(&m_nFirstGlassFlag, &pszBuffer[index], sizeof(short));
        index += sizeof(short);
 
        memcpy(&m_nQTime[0], &pszBuffer[index], sizeof(short));
        index += sizeof(short);
 
        memcpy(&m_nQTime[1], &pszBuffer[index], sizeof(short));
        index += sizeof(int);
 
        memcpy(&m_nQTime[2], &pszBuffer[index], sizeof(int));
        index += sizeof(short);
 
        memcpy(&m_nQTimeOverFlag, &pszBuffer[index], sizeof(short));
        index += sizeof(short);
 
        memcpy(&m_nMasterRecipe, &pszBuffer[index], sizeof(short));
        index += sizeof(short);
 
        for (int i = 0; i < DEVICE_COUNT; i++) {
            memcpy(&m_nRecipeIds[i], &pszBuffer[index], sizeof(short));
            index += sizeof(short);
        }
 
        CToolUnits::convertString(&pszBuffer[index], 80, m_strPanelMeasure);
        index += 80;
 
        memcpy(&m_nMode, &pszBuffer[index], sizeof(short));
        index += sizeof(short);
 
        memcpy(&m_nSlotUnitSelectFlag, &pszBuffer[index], sizeof(short));
        index += sizeof(short);
 
        memcpy(&m_nSourcePortNo, &pszBuffer[index], sizeof(short));
        index += sizeof(short);
 
        memcpy(&m_nSourceSlotNo, &pszBuffer[index], sizeof(short));
        index += sizeof(short);
 
        memcpy(&m_nTargetPortNo, &pszBuffer[index], sizeof(short));
        index += sizeof(short);
 
        memcpy(&m_nTargetSlotNo, &pszBuffer[index], sizeof(short));
        index += sizeof(short);
 
        memcpy(&m_nProductJudge, &pszBuffer[index], sizeof(short));
        index += sizeof(short);
 
        // »º´æÔ­Ê¼Êý¾Ý
        if (m_pRawData != nullptr) {
            memcpy(m_pRawData, pszBuffer, JOBDATAS_SIZE);
        }
 
        return JOBDATAS_SIZE;
    }
 
    void CJobDataS::getAttributeVector(CAttributeVector& attrubutes, int beginWeight)
    {
        unsigned int weight = beginWeight;
        std::string strTemp;
 
        attrubutes.addAttribute(new CAttribute("CassetteSequenceNo",
            std::to_string(getCassetteSequenceNo()).c_str(), "", weight++));
 
        attrubutes.addAttribute(new CAttribute("JobSequenceNo",
            std::to_string(getJobSequenceNo()).c_str(), "", weight++));
 
        attrubutes.addAttribute(new CAttribute("LotId",
            getLotId().c_str(), "", weight++));
 
        attrubutes.addAttribute(new CAttribute("ProductId",
            getProductId().c_str(), "", weight++));
 
        attrubutes.addAttribute(new CAttribute("OperationId",
            getOperationId().c_str(), "", weight++));
 
        attrubutes.addAttribute(new CAttribute("Glass1Id",
            getGlass1Id().c_str(), "", weight++));
 
        attrubutes.addAttribute(new CAttribute("Glass2Id",
            getGlass2Id().c_str(), "", weight++));
 
        attrubutes.addAttribute(new CAttribute("JobType",
            std::to_string(getJobType()).c_str(), "", weight++));
 
        attrubutes.addAttribute(new CAttribute("MaterialsType",
            std::to_string(getMaterialsType()).c_str(), "", weight++));
 
        attrubutes.addAttribute(new CAttribute("ProductType",
            std::to_string(getProductType()).c_str(), "", weight++));
 
        attrubutes.addAttribute(new CAttribute("DummyType",
            std::to_string(getDummyType()).c_str(), "", weight++));
 
        attrubutes.addAttribute(new CAttribute("SkipFlag",
            std::to_string(getSkipFlag()).c_str(), "", weight++));
 
        attrubutes.addAttribute(new CAttribute("ProcessFlag",
            std::to_string(getProcessFlag()).c_str(), "", weight++));
 
        attrubutes.addAttribute(new CAttribute("ProcessResonCode",
            std::to_string(getProcessResonCode()).c_str(), "", weight++));
 
        attrubutes.addAttribute(new CAttribute("LastGlassFlag",
            std::to_string(getLastGlassFlag()).c_str(), "", weight++));
 
        attrubutes.addAttribute(new CAttribute("FirstGlassFlag",
            std::to_string(getFirstGlassFlag()).c_str(), "", weight++));
 
        attrubutes.addAttribute(new CAttribute("QTime1",
            std::to_string(getQTime(0)).c_str(), "", weight++));
 
        attrubutes.addAttribute(new CAttribute("QTime2",
            std::to_string(getQTime(1)).c_str(), "", weight++));
 
        attrubutes.addAttribute(new CAttribute("QTime3",
            std::to_string(getQTime(2)).c_str(), "", weight++));
 
        attrubutes.addAttribute(new CAttribute("QTimeOverFlag",
            std::to_string(getQTimeOverFlag()).c_str(), "", weight++));
 
        attrubutes.addAttribute(new CAttribute("MasterRecipe",
            std::to_string(getMasterRecipe()).c_str(), "", weight++));
 
        attrubutes.addAttribute(new CAttribute("Recipe ID(EFEM)",
            std::to_string(getDeviceRecipeId(0)).c_str(), "", weight++));
 
        attrubutes.addAttribute(new CAttribute("Recipe ID(BONDER1)",
            std::to_string(getDeviceRecipeId(1)).c_str(), "", weight++));
 
        attrubutes.addAttribute(new CAttribute("Recipe ID(BONDER2)",
            std::to_string(getDeviceRecipeId(2)).c_str(), "", weight++));
 
        attrubutes.addAttribute(new CAttribute("Recipe ID(Bake Cooling)",
            std::to_string(getDeviceRecipeId(3)).c_str(), "", weight++));
 
        attrubutes.addAttribute(new CAttribute("Recipe ID(Vacuum Bake)",
            std::to_string(getDeviceRecipeId(4)).c_str(), "", weight++));
 
        attrubutes.addAttribute(new CAttribute("Recipe ID(Measurement)",
            std::to_string(getDeviceRecipeId(5)).c_str(), "", weight++));
 
        attrubutes.addAttribute(new CAttribute("PanelMeasure",
            getPanelMeasure().c_str(), "", weight++));
 
        attrubutes.addAttribute(new CAttribute("SlotUnitSelectFlag",
            std::to_string(getSlotUnitSelectFlag()).c_str(), "", weight++));
 
        attrubutes.addAttribute(new CAttribute("SourcePortNo",
            std::to_string(getSourcePortNo()).c_str(), "", weight++));
 
        attrubutes.addAttribute(new CAttribute("SourceSlotNo",
            std::to_string(getSourceSlotNo()).c_str(), "", weight++));
 
        attrubutes.addAttribute(new CAttribute("TargetPortNo",
            std::to_string(getTargetPortNo()).c_str(), "", weight++));
 
        attrubutes.addAttribute(new CAttribute("TargetSlotNo",
            std::to_string(getTargetSlotNo()).c_str(), "", weight++));
 
        attrubutes.addAttribute(new CAttribute("ProductJudge",
            std::to_string(getProductJudge()).c_str(), "", weight++));
    }
}