if (increaseNumber != reduceNumber)
{
return ExtjsFormFail("第̨²" + (i + 2) + "行D增?加¨®书º¨¦和¨ª减?少¦¨´数ºy【?" + increaseNumber + "】?和¨ª【?" + reduceNumber + "】?数ºy据Y不?相¨¤等̨¨,ê?请?仔ÁD细?核?对?!ê?");
}
currentAccountInfo.CertificateNumber = table.Rows[i][4].ToString().Trim();
currentAccountInfo.Remark = table.Rows[i][5].ToString().Trim();
string increaseStationCode = table.Rows[i][6].ToString().Trim();
if (!CheckStation(increaseStationCode))//验¨¦证¡è网ª?点Ì?代䨲码?在¨²网ª?络?上¦?是º?否¤?存ä?在¨²
{
return ExtjsFormFail("第̨²" + (i + 2) + "行D第̨²7列¢D增?加¨®网ª?点Ì?编À¨¤号?【?" + increaseStationCode + "】?不?存ä?在¨²,ê?请?仔ÁD细?核?对?!ê?");
}
currentAccountInfo.IncreaseStationCode = table.Rows[i][6].ToString().Trim();
string reduceStationCode = table.Rows[i][7].ToString().Trim();
if (!CheckStation(reduceStationCode))//验¨¦证¡è网ª?点Ì?代䨲码?在¨²网ª?络?上¦?是º?否¤?存ä?在¨²
{
return ExtjsFormFail("第̨²" + (i + 2) + "行D第̨²8列¢D减?少¦¨´网ª?点Ì?编À¨¤号?【?" + reduceStationCode + "】?不?存ä?在¨²,ê?请?仔ÁD细?核?对?!ê?");
}
currentAccountInfo.ReduceStationCode = table.Rows[i][7].ToString().Trim();
string typeId = table.Rows[i][8].ToString().Trim();
DataDictionaryService dictionaryService = new DataDictionaryService();
IList<BasicDataDictionaryInfo> infos = dictionaryService.FindByTypeCode("CurrentAccount");
int x = infos.Count;
foreach (var Info in infos)//和¨ª里¤?面?的Ì?类¤¨¤型¨ª做Á?比À¨¨对?
{
if (Info.Name.Trim() == typeId.Trim())
{
x--;
currentAccountInfo.TypeId = Info.Id.ToString();//table.Rows[i][8].ToString().Trim();
}
}
if (x == infos.Count)
{
return ExtjsFormFail("第̨²" + (i + 2) + "行D第̨²9列¢D类¤¨¤型¨ª字Á?段?【?" + typeId + "】?不?存ä?在¨²,ê?请?仔ÁD细?核?对?(中D文?有®D没?有®D写¡ä错䨪)!ê?");
}
currentAccountInfo.IsDeleted = 0;
currentList.Add(currentAccountInfo);
}
}
CurrentAccountBiz.InsertCurrentAccount(currentList);
}
return ExtjsFormSuccess();
}
catch (Exception ex)
{
return ExtjsFormFail("导Ì?入¨?数ºy据Y失º¡ì败㨹,ê?请?检¨¬查¨¦文?件t类¤¨¤型¨ª!异°¨¬常¡ê信?息¡é:êo" + ex.Message);
}
}