标签:
/// <summary>
/// 地块自动编号
/// </summary>
/// <param name="cmbNumber">嘎查村编号</param>
/// <param name="maxBlockNumber">SDE中查出的最大编号</param>
/// <returns>返回地块编号</returns>
private string GetBlockNumber(string cmbNumber, int maxBlockNumber)
{
string blockNum = null;
if (radioButton1.Checked)
{
maxBlockNumber++;
int reBlockNum = maxBlockNumber;
blockNum = cmbNumber + String.Format("{0:D5}", reBlockNum);
}
else
{
maxBlockNumber++;
int reBlockNum = maxBlockNumber;
blockNum = cmbNumber + String.Format("{0:D5}", reBlockNum);
}
return blockNum;
}
标签:
原文地址:http://www.cnblogs.com/Imgiser/p/5482341.html