コード例 #1
0
 public void UpdateAssetTypeDB(AssetTypeDataSet aAssetTypeDataSet)
 {
     try
     {
         aAssetTypeTableAdapter = new AssetTypeDataSetTableAdapters.assettypeTableAdapter();
         aAssetTypeTableAdapter.Update(aAssetTypeDataSet.assettype);
     }
     catch (Exception Ex)
     {
         TheEventLogClass.InsertEventLogEntry(DateTime.Now, "Asset Class // Update Asset Type DB " + Ex.Message);
     }
 }
コード例 #2
0
        public AssetTypeDataSet GetAssetTypeInfo()
        {
            try
            {
                aAssetTypeDataSet      = new AssetTypeDataSet();
                aAssetTypeTableAdapter = new AssetTypeDataSetTableAdapters.assettypeTableAdapter();
                aAssetTypeTableAdapter.Fill(aAssetTypeDataSet.assettype);
            }
            catch (Exception Ex)
            {
                TheEventLogClass.InsertEventLogEntry(DateTime.Now, "Asset Class // Get Asset Type Info " + Ex.Message);
            }

            return(aAssetTypeDataSet);
        }