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