schangxiang@126.com
2025-11-04 f5ed29dc26c7cd952d56ec5721a2efc43cd25992
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
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using XCommon;
using XImagingXhandler.XDAL;
namespace XCore
{
    public class WellBll
    {
 
        #region 根据孔板的行数、列数生成孔板的孔位名称和行列编号信息
        public Well GenerateWellInformation(int rowNum,int columnNum)
        {
            Well well = new Well();
 
            ArrayList alRow = new ArrayList();
            ArrayList alColumn = new ArrayList();
            ArrayList alWell = new ArrayList();
 
            for (int i=1;i<rowNum+1;i++)
            {
                string rowName = ComUtility.GetRowChar(i-1);
                alRow.Add(rowName);
 
                for (int j=1;j<columnNum+1;j++)
                {
                    alColumn.Add(j);
                    string wellName = rowName + j.ToString();
                    alWell.Add(wellName);
                }
            }
 
            well.rowName = alRow;
            well.columnName = alColumn;
            well.WellName = alWell;
 
            return well;
        }
        #endregion
    }
}