예제 #1
0
        private static void UpdateStationDesktop(object stationId, object styleId)
        {
            EntityData data = new EntityData("StationDesktop");

            try
            {
                try
                {
                    StationDesktop.UpdateStationDesktop(stationId, styleId);
                }
                catch (Exception exception)
                {
                    throw exception;
                }
            }
            finally
            {
                data.Dispose();
            }
        }
예제 #2
0
        public static DataSet GetStationList()
        {
            DataSet    set;
            EntityData allStation = new EntityData();

            try
            {
                allStation = StationDesktop.GetAllStation();
                set        = allStation;
            }
            catch (Exception exception)
            {
                throw exception;
            }
            finally
            {
                allStation.Dispose();
            }
            return(set);
        }
예제 #3
0
        private static void InsertStationDesktop(object stationId, object styleId)
        {
            EntityData entity = new EntityData("StationDesktop");

            try
            {
                try
                {
                    DataRow newRecord = entity.GetNewRecord();
                    newRecord["StationID"] = stationId;
                    newRecord["StyleID"]   = styleId;
                    entity.AddNewRecord(newRecord);
                    StationDesktop.InsertStationDesktop(entity);
                }
                catch (Exception exception)
                {
                    throw exception;
                }
            }
            finally
            {
                entity.Dispose();
            }
        }