예제 #1
0
        private void AddTubeInfo4TheRack(int colCnt, List <Dictionary <Point, string> > allInfos,
                                         int rackIndex, List <TubeInfo> tubeInfos)
        {
            curRackPlasmaSlices = allRackSmpPlasmaSlices[rackIndex];
            var curRackInfos = allInfos[rackIndex];

            for (int c = 0; c < colCnt; c++)
            {
                for (int r = 0; r < curRackPlasmaSlices.Count; r++)
                {
                    if (!IsTubeExists(r, c))
                    {
                        continue;
                    }
                    int        index   = rackIndex * 16 + r;
                    Point      pt      = new Point(c + 1, r + 1);
                    SampleType smpType = GetSampleType(c);
                    double     vol     = Global.Instance.plasmaVolume;
                    if (smpType == SampleType.buffy)
                    {
                        vol = Global.Instance.buffyVolume;
                    }
                    TubeInfo tmpTubeInfo = new TubeInfo();
                    tmpTubeInfo.barcode    = curRackInfos[pt];
                    tmpTubeInfo.sampleType = smpType.ToString();
                    tmpTubeInfo.sliceID    = (c + 1).ToString();
                    tmpTubeInfo.srcBarcode = Global.Instance.srcBarcodes[index];
                    tmpTubeInfo.volumeUL   = ((int)vol).ToString();
                    tubeInfos.Add(tmpTubeInfo);
                    //tubeInfos.Add(new TubeInfo(curRackInfos[pt], smpType,
                    //    c + 1, Global.Instance.expectedBarcodes[index], (int)vol));
                }
            }
        }
예제 #2
0
 private TubeInfo CreateTubeInfo(string barcode,string smpType, string sliceID, string vol)
 {
     TubeInfo tmpTube = new TubeInfo();
     tmpTube.barcode = barcode;
     tmpTube.sampleType = smpType;
     tmpTube.sliceID = sliceID;
     tmpTube.volume = vol;
     return tmpTube;
 }
예제 #3
0
 private void button1_Click(object sender, EventArgs e)
 {
     BiobankExternalServicePortTypeClient client = new BiobankExternalServicePortTypeClient();
     TubeInfo[] tubeInfos = new TubeInfo[2];
     tubeInfos[0] = CreateTubeInfo("111","plasma","1","100");
     tubeInfos[1] = CreateTubeInfo("222","buffy","2","200");
     var result = client.updatePackageInfo(tubeInfos);
     Debug.Write(string.Format("isOk : {0}, errMessage:{1}, batchID{2}", 
         result.isOk, result.errMessage, result.batchID));
 }
예제 #4
0
        private TubeInfo CreateTubeInfo(string barcode, string smpType, string sliceID, string vol)
        {
            TubeInfo tmpTube = new TubeInfo();

            tmpTube.barcode    = barcode;
            tmpTube.sampleType = smpType;
            tmpTube.sliceID    = sliceID;
            tmpTube.volume     = vol;
            return(tmpTube);
        }
예제 #5
0
        private void button1_Click(object sender, EventArgs e)
        {
            BiobankExternalServicePortTypeClient client = new BiobankExternalServicePortTypeClient();

            TubeInfo[] tubeInfos = new TubeInfo[2];
            tubeInfos[0] = CreateTubeInfo("111", "plasma", "1", "100");
            tubeInfos[1] = CreateTubeInfo("222", "buffy", "2", "200");
            var result = client.updatePackageInfo(tubeInfos);

            Debug.Write(string.Format("isOk : {0}, errMessage:{1}, batchID{2}",
                                      result.isOk, result.errMessage, result.batchID));
        }
예제 #6
0
 private void AddTubeInfo4TheRack(int colCnt, List<Dictionary<Point, string>> allInfos,
     int rackIndex, List<TubeInfo> tubeInfos)
 {
     curRackPlasmaSlices = allRackSmpPlasmaSlices[rackIndex];
     var curRackInfos = allInfos[rackIndex];
     for (int c = 0; c < colCnt; c++)
     {
         for (int r = 0; r < curRackPlasmaSlices.Count; r++)
         {
             if (!IsTubeExists(r, c))
                 continue;
             int index = rackIndex * 16 + r;
             Point pt = new Point(c + 1, r + 1);
             SampleType smpType = GetSampleType(c);
             double vol = Global.Instance.plasmaVolume;
             if (smpType == SampleType.buffy)
             {
                 vol = Global.Instance.buffyVolume;
             }
             TubeInfo tmpTubeInfo = new TubeInfo();
             tmpTubeInfo.barcode = curRackInfos[pt];
             tmpTubeInfo.sampleType = smpType.ToString();
             tmpTubeInfo.sliceID = (c + 1).ToString();
             tmpTubeInfo.srcBarcode = Global.Instance.srcBarcodes[index];
             tmpTubeInfo.volumeUL = ((int)vol).ToString();
             tubeInfos.Add(tmpTubeInfo);
             //tubeInfos.Add(new TubeInfo(curRackInfos[pt], smpType,
             //    c + 1, Global.Instance.expectedBarcodes[index], (int)vol));
         }
     }
 }