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
|
}
|
}
|