internal static void AddItemTable(DataTable itemTable, DataTable cRTable, DataListEdit dataForm) { if (GetExpenseTypeResult(itemTable)) { foreach (DataRow dr in cRTable.Rows) { DataRow newdr = itemTable.Rows.Add(); newdr["ExpenseType"] = dr["ExpenseType"].ToString(); newdr["CostCenter"] = dr["CostCenter"].ToString(); newdr["ItemAmount"] = dr["ItemAmount"].ToString(); newdr["GLAccount"] = dr["GLAccount"].ToString(); newdr["EmployeeID"] = dr["EmployeeID"].ToString(); newdr["EmployeeName"] = dr["EmployeeName"].ToString(); newdr["EBCWorkflowNumber"] = dr["EBCWorkflowNumber"].ToString(); } dataForm.ItemTable = itemTable; } }
internal static void AddItemTable(DataListEdit dataForm) { AddItemTable(dataForm.ItemTable, dataForm.CRTable, dataForm); }
internal static void SaveSAPItemsDetails(DataListEdit dataForm, string workflowNumber) { BatchInsertSAPItems("ExpatriateBenefitClaimSAPItems", workflowNumber, dataForm.ItemTable); }