private void InsertIncentiveTrans() { if (s_mName == "A") { for (int i = 0; i <= dt_ExeName.Rows.Count - 1; i++) { IncGenBO.i_ExeId = Convert.ToInt32(grdIGView.GetRowCellValue(i, "ExecutiveId")); IncGenBO.d_Amount = Convert.ToDecimal(grdIGView.GetRowCellValue(i, "Amount")); if (IncGenBO.d_Amount != 0) { IncentiveDL.InsertAmount("A", IncGenBO); } } } else { for (int i = 0; i <= dt_ExeName.Rows.Count - 1; i++) { IncGenBO.i_ExeId = Convert.ToInt32(grdIGView.GetRowCellValue(i, "ExecutiveId")); IncGenBO.i_IncGenId = i_mId; IncGenBO.d_Amount = Convert.ToDecimal(grdIGView.GetRowCellValue(i, "Amount")); if (IncGenBO.d_Amount != 0) { IncentiveDL.InsertAmount("E", IncGenBO); } } } }
public static void InsertAmount(string argMode, IncentiveBO IncGenBO) { IncentiveDL.InsertAmount(argMode, IncGenBO); }