public void UpdateProjectMaterialUsedDB(ProjectMaterialUsedDataSet aProjectMaterialUsedDataSet) { try { aProjectMaterialUsedTableAdapter = new ProjectMaterialUsedDataSetTableAdapters.projectmaterialusedTableAdapter(); aProjectMaterialUsedTableAdapter.Update(aProjectMaterialUsedDataSet.projectmaterialused); } catch (Exception Ex) { TheEventLogClass.InsertEventLogEntry(DateTime.Now, "Inventory Process Class // Update Project Material Used DB " + Ex.Message); } }
public ProjectMaterialUsedDataSet GetProjectMaterialUsedInfo() { try { aProjectMaterialUsedDataSet = new ProjectMaterialUsedDataSet(); aProjectMaterialUsedTableAdapter = new ProjectMaterialUsedDataSetTableAdapters.projectmaterialusedTableAdapter(); aProjectMaterialUsedTableAdapter.Fill(aProjectMaterialUsedDataSet.projectmaterialused); } catch (Exception Ex) { TheEventLogClass.InsertEventLogEntry(DateTime.Now, "Inventory Process Class // Get Project Material Used Info " + Ex.Message); } return(aProjectMaterialUsedDataSet); }