日期:2014-05-17 浏览次数:20667 次
/// <summary>
/// 根据员工ID和期间提取该员工五险一金数据,更新源DT
/// </summary>
/// <param name="SourceDT">源DT</param>
/// <param name="dtSS">五险一金DT</param>
protected static void UpdateDTSS(DataTable SourceDT, DataTable dtSS)
{
if (SourceDT.Rows.Count > 0)
{
for (int k = 0; k < SourceDT.Rows.Count; k++)
{
for (int j = 0; j < dtSS.Rows.Count; j++)
{
if (SourceDT.Rows[k]["EMPLOYEEID"].Equals(dtSS.Rows[j]["EMPLOYEEID"])
&& SourceDT.Rows[k]["ITEMNAME"].Equals(dtSS.Rows[j]["INSURANCETYPE"])
&& SourceDT.Rows[k]["Amount"].ToString() == "0")
{
//固定薪资项为0 则用社保数据更新
SourceDT.Rows[k]["Amount"] = dtSS.Rows[j]["RealPay"];
}
}
}
}
}
protected static void UpdateDTSS(DataTable SourceDT, DataTable dtSS)
{