예제 #1
0
 public void UpdateAssetMainDB(AssetMainDataSet aAssetMainDataSet)
 {
     try
     {
         aAssetMainTableAdapter = new AssetMainDataSetTableAdapters.assetmainTableAdapter();
         aAssetMainTableAdapter.Update(aAssetMainDataSet.assetmain);
     }
     catch (Exception Ex)
     {
         TheEventLogClass.InsertEventLogEntry(DateTime.Now, "Asset Class // Get Asset Main Info " + Ex.Message);
     }
 }
예제 #2
0
        public AssetMainDataSet GetAssetMainInfo()
        {
            try
            {
                aAssetMainDataSet      = new AssetMainDataSet();
                aAssetMainTableAdapter = new AssetMainDataSetTableAdapters.assetmainTableAdapter();
                aAssetMainTableAdapter.Fill(aAssetMainDataSet.assetmain);
            }
            catch (Exception Ex)
            {
                TheEventLogClass.InsertEventLogEntry(DateTime.Now, "Asset Class // Get Asset Main Info " + Ex.Message);
            }

            return(aAssetMainDataSet);
        }