Exemplo n.º 1
0
 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["PRWorkflowNumber"] = dr["PRWorkflowNumber"].ToString();
         newdr["AssetNo"] = dr["AssetNo"].ToString();
         newdr["BusinessArea"] = dr["BusinessArea"].ToString();
     }
     dataForm.ItemTable = itemTable;
     //}
 }
Exemplo n.º 2
0
 internal static void AddItemTable(DataListEdit dataForm)
 {
     AddItemTable(dataForm.ItemTable, dataForm.CRTable, dataForm);
 }
Exemplo n.º 3
0
 internal static void SaveSAPItemsDetails(DataListEdit dataForm, string workflowNumber)
 {
     BatchInsertSAPItems("Payment Request SAP Items WorkFlow", workflowNumber, dataForm.ItemTable);
 }