コード例 #1
0
 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);
     }
 }
コード例 #2
0
        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);
        }