搜档网
当前位置:搜档网 › BASIN SCALE RAINFALL - RUNOFF MODELING FOR FLOOD FORECASTS

BASIN SCALE RAINFALL - RUNOFF MODELING FOR FLOOD FORECASTS

BASIN SCALE RAINFALL - RUNOFF MODELING FOR FLOOD FORECASTS
BASIN SCALE RAINFALL - RUNOFF MODELING FOR FLOOD FORECASTS

BASIN SCALE RAINFALL - RUNOFF MODELING FOR FLOOD FORECASTS T.P. KAFLE1, M. K. HAZARIKA1, S. KARKI2, R.M. SSHRESTHA3, R. SHARMA4, L.

SAMARAKOON1

Abstract

Flow estimation at a point in a river is vital for a number of hydrologic applications including flood forecast. This paper presents the results of a basin scale rainfall-runoff modeling on Bagmati basin in Nepal using the hydrologic model HEC-HMS in a GIS environment. The model, in combination with the GIS extension HEC-GeoHMS, was used to convert the precipitation excess to overland flow and channel runoff. The rainfall data used were: rain gauge data alone, TRMM data alone and both rain gauge and TRMM data. The simulation was done for a period of four months (June-September) covering the total rainy season of year 2004. The predicted hydrograph was calibrated against observed one and the model parameters were manually optimized for good simulation. The predicted peak discharge, using rain gauge data, was close to the observed value and the smaller discharges followed the observed trend. The model framework developed in the study considered the spatial variation in the runoff response of the watershed through the use of Curve Numbers based on soil type and land use and the spatial distribution of the rainfall in the watershed by using rainfall data from a number of rain gauge stations located in different parts of the basin. The peak flow of the derived hydrograph was used as an input in hydraulic model (HEC-RAS) for producing flood maps showing inundation area extent and flood depths, thus directly linking the model to operational flood forecast. While designed for Bagmati basin the approach may be applied to other basins as well.

1. Introduction

Flooding induced by storm events is a major concern in many regions of the world (Dutta et al., 2000; Blanchard-Boehm et al., 2001; Horrit and Bates, 2002; Knebl et al.2005;). It causes over one third of the total economic loss from natural catastrophes and is responsible for two thirds of people affected by natural disasters. On the other hand, studies and analysis have shown that damage reductions due to forecasts improvements can range from a few percentage points to as much as 35% of annual flood damages (UN ISDR, 2004). Determining the extent of flooding is an important role of the hydrological research community and provides a vital service to planners and engineers (Hudson and Colditz, 2003). The impact of flooding was not felt to the same extent in the past as it is now. This could be due to the rapid increase in population and consequent increase in the human activities (Kron, 2003, Todini, 1999). The flood plains are being increasingly occupied to meet ever-increasing requirements of food and fiber, and consequently the flood problem is exacerbated. In Nepal each year, on an average 330 lives are lost due to floods and landslides and infrastructure and property amounting to more than US$ 100 million is damaged (DWIDP, 2004) causing negative impacts on the social and economic development of the country.

There is a growing realization about the importance of non-structural measures, including flood forecasting and early warning, in flood management. Establishing a flood forecasting system would

1 Geoinformatics Centre, Asian Institute of Technology, Thailand; Corresponding author: tanka@ait.ac.th

2 Survey Department, Kathmandu, Nepal

3 Department of Water Induced Disaster Prevention, Kathmandu, Nepal

4 Department of Hydrology and Meteorology, Kathmandu, Nepal

enhance the effectiveness of all other mitigation measures by providing time for appropriate actions. This has increased the importance of flood modeling for flood forecasts to issue advance warning in severe storm situations to reduce loss of lives and property damage. But the accuracy of operational hydrological models primarily rely on goof rainfall data input in terms of temporal and spatial resolution and accuracy ( Pathirana et al., 2005). For real time flood warning to be effective the rainfall information should also be made available real time, a capability though desirable but not available in most of the countries in Asia.

Main objectives of this study included: (1) the development of

a hydrological model of the Bagmati River Basin and

incorporation of precipitation data in the model; (2) rainfall–

runoff analysis for the basin and use of the computed

hydrograph for flood map generation and (3) preparation of

flood maps for discharges corresponding to various return

periods to assess the area likely to be inundated due to

potential flooding. The methodology attempts to create an

approach of rainfall input and floodplain (inundation area and

flood depth) output, which will enable user agencies to model

rainfall–runoff relations with greater efficiency and will also

contribute to improvements in their

ability to respond to flooding

events.

2. Study Area

The Bagmati River originates in

the Mahabharat range of

mountains at about 16 km north-

east of Kathmandu, the capital of

Nepal.

Figure 1: Study area

As the river comes out of the hills, it enters into Terai and flows as a divide between Sarlahi and Rautahat districts and drains out of Nepal across the Indian state of Bihar to join the Ganges. Its total length is 597 km of which 195 km lies in Nepal and the remaining portion in India. The catchment area of the river at Karmaiya and Indo-Nepal border are computed to be 2800 sq. km. and 3670 sq. km. respectively. The study area comprising of rural and urban settlement as well as agricultural land is shown in Figure 1. A number of settlements situated on both the banks of the river in the study area are usually flooded during rainy season. Flooding is mainly caused by intense rainfall over its catchment that generates high volumes of run-off, which spills the riverbank. An extreme flooding event in 1993 killed 1029 people, affected 400,000 people, damaged 25,000 houses and destroyed 40,000 ha agricultural land (DWIDP, 2005).

3. Data

Precipitation data from 24 nos. of rain gauges within and in the periphery of the basin covering the whole monsoon season (June to September 2004) were used in the study. DEM was generated from

contour and spot heights data of Survey Department of Nepal. Observed data on stream flow by Department of Hydrology and Meteorology at Pandhera Dovan were used for calibrating the rainfall-runoff model. Land cover maps were produced using Landsat ETM image of year 2005 and land resource mapping project (LRMP) database. Soil type was broadly classified based on the physiography in general e.g. Valley, Mahabharat, Churia and Terai in conjunction with land capability/utilization map and geologic map. River network and terrain geometry were generated from the DEM. Tropical Rainfall Measuring Mission (TRMM) is a joint mission between NASA and the Japan Aerospace Exploration Agency (JAXA) designed to monitor and study tropical rainfall. TRMM rainfall data - 3B42RT were downloaded from NASA’s website.

4. Model Description

4.1 Rainfall-runoff model: HEC-HMS

The Geospatial Hydrologic Modeling Extension (HEC-GeoHMS) uses ArcView and Spatial Analyst to develop a number of hydrologic modeling inputs. Analyzing digital terrain information, HEC-GeoHMS transforms the drainage paths and watershed boundaries into a hydrologic data structure that represents the watershed response to precipitation. Rainfall-Runoff modeling was performed using the Hydrologic Engineering Center’s Hydrologic Modeling System (HEC-HMS version 3.0.1) importing results from HEC-Geo-HMS. This model developed by the US Army Corps of Engineers, is designed to simulate the precipitation-runoff processes of dendritic watershed systems (USACE, 2005). The physical representation of the watershed is accomplished with a basin model. Various hydrologic elements are connected in a dendritic network to simulate runoff processes. A variety of methods are available for simulating infiltration losses, transforming excess precipitation into surface runoff, computing baseflow contributions to subbasin out flow, flow routing etc. Outflow from a sub-basin is computed from rainfall data by subtracting losses, transforming excess precipitation and adding base flow.

4.2 Hydro-dynamic model: HEC-RAS

HEC-RAS, developed by the United States Army Corps of Engineers Hydrologic Engineering Center, is intended for performing one-dimensional hydraulic calculations for a full network of natural and constructed channels. The system can calculate water surface profiles for both steady and unsteady gradually varied flow. The steady flow system is designed for application in flood plain management studies. Also, capabilities are available for assessing the change in water surface profiles due to channel improvements, and levees. HEC-GeoRAS, an ArcView GIS extension, creates a HEC-RAS import file containing geometric attribute data from a digital terrain model (DTM) and performs post processing of results exported from HEC-RAS. Main parameters needed are cross-sections for river and flood plain including left and right bank locations and flow paths, roughness coefficients (Manning’s n), and contraction and expansion coefficients.

5. Methodology

The model is an integration of HEC-HMS and HEC-RAS in a GIS environment. A number of flood related studies have shown that these models provide accurate and useful results (Knebl et al. 2005, Anderson et al. 2002).

5.1 GIS of the basin

Clark mentions one of the main advantages of using GIS for flood management as its creation of potential to further analyze the visualization of flooding for estimating probable flood damage (Clark, 1998).

The knowledge of the catchment’s characteristic, spatial and temporal stream flow and precipitation distributions are crucial for setting up a hydrologic model and its calibration. Therefore, as a first step a detailed Geographic Information System (GIS) of the basin was developed. It comprised the following layers most of them developed from maps with scale of 1:25,000 and 1:50,000.

? Contour lines of the relief (interval 5- 10m); Digital Elevation Model (DEM)

? River network

? Stream flow and precipitation measuring stations;

? Administrative boundaries, settlements; roads;

? Land cover

? Geological map, Soil map etc.

5.2 HEC-HMS model components and processing steps

The hydrologic model was generated with the help of the HEC-GeoHMS (USACE, 2003) using DEM of the region. Using terrain data in the form of a DEM, HEC-GeoHMS, an extension of GIS Arc View creates HMS input files in the form of stream network, sub-basin boundaries, connectivity of various hydrologic elements etc. through a series of steps collectively known as terrain pre-processing and basin processing. The physical representation of watersheds or basins and rivers was configured in the basin model. Hydrologic elements were connected in a dendritic network to simulate runoff processes. The basin was divided into 8 sub-basins as shown in Figure 2 representing the main tributaries of the Bagmati river. Then it was supplemented by following models.

? Models that compute runoff

volume (loss rate): The Curve

Number (CN) of the U.S. Dept.

of Agriculture, Natural

Resources Conservation Service

(NRCS) (formerly Soil

Conservation Service, SCS)

known as SCS CN was used to

predict the runoff properties for

surface based on the hydrologic

soil group and ground cover

(US SCS, 1986). One weighted

CN for each sub-basin was

computed.

? Models of direct runoff

(transform): Transformation of

excess precipitation into surface

runoff was accomplished using

SCS Unit Hydrograph.

Figure 2: Bagmati basin subdivided into 8 sub-basins

? Models of base flow: Baseflow can be an important parameter in flood studies because it defines a minimum river depth over which additional runoff accumulates. Models that neglect baseflow may under estimate water levels and therefore fail to identify inundated reaches (Knebl et al., 2005). In this study constant monthly values were used for base flow computations. These values were computed applying the monthly specific base flows at Pandhera Dovan for the entire basin (q= Q/A).

? Meteorological model (precipitation): The inverse distance method addresses dynamic data problems. The method was originally designed for application in real time forecasting systems. It can use recording gages that report on regular interval and gages that only report daily total precipitation. Because it was designed for real time forecasting, it has the ability to automatically switch from using close gages to using more distant gages when the closer gages stop reporting data.

? Model of channel flow of a river reach (routing model): Kinematic Wave method that approximates the full unsteady flow equations by ignoring inertial and pressure forces was adopted. This method is best suited to fairly steep streams (USACE, 2005).

The time span of a simulation is controlled by control specifications. Control specifications include a starting date and time, ending date and time, and computation time step. A computation run is created by combining a basin model, meteorological model, and control specifications.

The available records of 24 precipitation stations and one stream flow gauge station were used for calibration and verification of the HEC-HMS model. The calibration was done using daily data for the period from June1 to September30, 2004 (4 months).

The SCS unit hydrograph transform method requires lag time as input, which was taken to be 60% of the time of concentration (USACE, 2005). Time of concentration was calculated using Izzard, Kirpich, Kerby, Kinematic Wave, Federal Aviation Agency and Bransby Wiilliams equations (Wanielista, 1997) and several simulation runs were performed in HEC-HMS using the obtained values. Finally the values obtained using the following Kirpich’s formula were used.

(1) Where

L= reach length in ft.

S = slope

TRMM rainfall data (3B42RT) of 11 grid points within the basin were also included in two simulation runs to assess the suitability of using TRMM data in conjunction with observed rainfall or as standalone input for runoff computation

5.3 HEC-RAS modeling

The flood plain visualization was carried out using one-dimensional numerical model HEC-RAS. HEC-GeoRAS, an Arc View extension, was used as the interface between HEC-RAS and GIS for pre-processing and post-processing of the data in GIS. The geometric data of the flood plain and river were obtained from the digital elevation model (DEM). Water surface profiles, along the river reach under study, for floods of various return periods were computed with sub critical flow

simulation. These profiles were exported to GIS and water surface Triangular Irregular Network (TIN) was generated. An intersection of the terrain TIN and water surface TIN results in flood map.

6. Rainfall-runoff model calibration

The model was calibrated against measured stream flow data at Pandhera Dovan. Watershed parameters e.g. initial abstraction, time of concentration, CN, baseflow was used to modify the predicted hydrograph for obtaining a best fit.

7. Validation of hydraulic model results

Validation is based on the comparison of modeled flood depths with observed flood depths based on flood marks at specific locations

(Kafle, 2006) corresponding to the peak flood

event of 2004 and is shown in Figure 3. Though

the results show a good conformity with observed values, alternative validation using satellite images capturing peak floods is desirable.

Figure 3: Observed and modeled flood depths

8. Results and discussions

Flood forecasting is the prediction of water levels, areas and depth of flooding in rivers and flood plains (Paudyal, 2005). The results of flood frequency analysis (Gumbel distribution) carried out using instantaneous peak discharge values from 1965 to 2004 are shown in table 1.The predicted peak discharges using different rainfall data as input are shown in table 2. The results of hydrologic simulation are shown in Figure 4. The predicted peak discharge (98% of observed value), on the same day as the observed one, using point gauge rainfall data can be regarded as reasonably accurate.

Table 1: Flood discharges for different return periods Return period (year)

Discharge (cumecs) 2

3750 5

6150 10

7750 20

9250 50

11250 100 12700

Table 2: Comparison of predicted discharges

Description

Predicted peak discharge (cumecs) Observed peak discharge (cumecs) Rain gauge stations only

5498 Rain gauge and TRMM

3900 TRMM only 2500

5600

The peak resembled well but the lower discharges need further refinement. The discrepancy in lower discharges might be

distribution and low

density of the rain gauges

in some parts of the basin.

Another reason might be

the use of the SCS unit

hydrograph method in

basins where some of its

assumptions, mainly basin

size, are not fulfilled. The

root mean square error

(RMSE) for the full

hydrograph and for the

peak flow was found to be

760 cumecs and 101

cumecs respectively.

Figure 4: Simulated vs. observed hydrographs

The normalized peak error (NPE), defined as follows (Masmoudi and Habaib, 1993) was computed to be –0.018.

NPE = (Q pmax - Q omax)/Q omax (2)

Where Q pmax is the predicted peak discharge and Q omax is the observed peak discharge.

Flood risk is defined in terms of 100-year flood (UNDP, 1994). But depending on the degree of acceptable risk that is selected for an evaluation, other frequencies may be choosen (UNDP, 1994 a). Flood depth is considered as the most important indicator of the intensity of flood hazard (Islam et al. 2001, Townsend et al. 1998, Wadge et al. 1993 as cited by Sanyal et al. 2004). In this study flood maps showing inundation area and flood depths were produced using the hydrodynamic model HEC-RAS and inundation area corresponding to floods of various return periods were computed. The total area of the 95 flood affected Village Development Committees (VDCs) was 984 sq. km. The results are shown in table 3. Figure 4 shows a flood map corresponding to a discharge having a return period of 50 years.

Table 3: Total inundated area corresponding to floods of various return periods

Return period (year) Area inundated (sq.km.) % Area inundated

2 363.4 36.9

5 403.9 41

10 422.9 42.9

20 437.7 44.5

50 454.8 46.2

100 465.6 47.3

Further analysis showed that an area of 183 square km. was estimated to have a flood depth of greater than 1m during a 50 year flood. Considering the relatively inferior building materials, low height of roads and possibility to crop damage 1m is considered as the critical depth beyond which the floodwater will become more damaging.

9. Conclusions

Though an exact agreement for the

smaller discharges was not

achieved, the rainfall-runoff model

predicted the peak discharge, based

on point gauge data, fairly

accurately. Hence the methodology

could be considered valid for

application in peak flow

computation for flood forecasting.

Decision makers and communities

are often concerned with inundation

area extent and flood depths at

specific locations. Flood maps were

prepared for various return periods

and corresponding inundation areas

were computed.

Figure 4: Flood map corresponding to a 50 year flood These maps can be used in conjunction with the predicted peak flows for flood forecasting, awareness raising, development planning, emergency services and post disaster rehabilitation aimed at reducing flood damages and economic impacts in future.

Acknowledgement

Our thanks to Japan Aerospace Exploration Agency (JAXA) for financial support and to Department of Water Induced Disaster Prevention, Department of Hydrology and Meteorology and Survey Department of Nepal for providing data used in this study.

REFERENCES

Anderson M. L., Chen Z. Q., Kavvas M. L., Feldman A., 2002. Coupling HEC-HMS with atmospheric models for prediction of watershed runoff. Journal of Hydrologic Engineering 7 (4), pp. 312–318.

Blanchard-Boehm R. D., Berry K. A. and Showalter P. S., 2001. Should flood insurance be mandatory? Insights in the wake of the 1997 New Year’s Day flood in Reno–Sparks, Nevada, Applied Geography 21, 199-221.

Clark M. J., 1998. Putting Water in its Place: A Perspective on GIS in Hydrology and Water Management, Hydrological Processes 12, pp. 823-834, John Wilwy & Sons Ltd.

Department of Water Induced Disaster Prevention (DWIDP)/Govt. of Nepal, 2005. Preparation of water induced hazard maps of Bagmati River basin vol.I (Main Report)

Department of Water Induced Disaster Prevention (DWIDP)/Govt. of Nepal, 2004. Disaster Review

Dutta D., Herath S., Musiake K., 2000. Flood inundation simulation in a river basin using a physically based distributed hydrologic mode,. Hydrological Processes 14 (3), 497–519.

Horritt M. S., Bates P. D., 2002. Evaluation of 1D and 2D numerical models for predicting river flood inundation, Journal of Hydrology 268, 87–99.

Hudson P. F. and Colditz R. R., 2003. Flood delineation in a large and complex alluvial valley, lower Panuco basin, Mexico. Journal of Hydrology 280, 229–245.

Kafle T.P., Hazarika M. K., Shrestha K.G., Prathumchai K., and Samarakoon L., 2006. Integration of remote sensing and GIS with flood simulation model for flood hazard mapping in the Bagmati River, Nepal, Proc. Fifth International Symposium on New Technologies for urban safety of Mega Cities in Asia, Phuket, Thailand.

Knebl M.R., Yang Z. L., Hutchison K., Maidment D.R., 2005. Regional Scale Flood Modeling using NEXRAD Rainfall, GIS, and HEC-HMS/RAS: Accase study for the San Antonio River Basin Summer 2002 storm event,Journal of Environmental Management 75 pp. 325–336.

Kron W., 2003. Flood Catastrophes: causes – losses – prevention from an international re-insurer's viewpoint,Proc.International Workshop on Precautionary Flood Protection in Europe, Bonn, Germany.

Masmoudi M., Habaieb H., 1993. The Performance of Some Realtime Statistical Flood Forecasting Models Seen Through Mmulticriteria Analysis. Water Resour. Mgmt 7, pp. 57–67.

Pathirana A., Herath S. and Swain D., 2005. Hydrometeorological input for improving flood forecasting in the Mekong, Proc. International Symposium on role of Water science in transboundary river basin management, Ubon Ratchathani, Thailand, pp 49-56.

Paudyal G. N., 2005. Flood forecasting and Warning in Bangladesh: Modelling of large river systems including transbundary rivers, Proc. International Symposium on role of Water science in transboundary river basin management, Ubon Ratchathani, Thailand, pp 57-65.

Sanyal Joy and Lu Xi Xi, 2004. Application of Remote Sensing in Flood Management with Special Reference to Monsoon Asia – A Review, Natural Hazards 33, Kluwer Academic Publishers.

Todini E., 1999. An operational decision support system for flood risk mapping, forecasting and management, Urban Water 1, 131-143.

UNDP, 1994. Vulnerability and Risk Assessment, 2nd Edition,

Source: https://www.sodocs.net/doc/776617470.html,/english/vulnerability_riskassessment/vulnerability.pdf. pp. 46

UNDP, 1994a: Vulnerability and Risk Assessment, 2nd Edition,

Source: https://www.sodocs.net/doc/776617470.html,/english/vulnerability_riskassessment/vulnerability.pdf. pp. 89

UN Inter Agency Secretariate of the International Strategy for Disaster Reduction (UN ISDR), 2004. Guidelines for reducing flood losses, https://www.sodocs.net/doc/776617470.html,.

USACE, 2005. Hydrologic Modeling System: User’s Manual Version 3.0.0, US Army Corps of Engineers, Institute for Water Resources, Hydrologic Engineering Center, Davis, CA, USA.

USACE, 2003. Geospatial Hydrologic Modelling Extension HEC-GeoHMS, User’s Manual Version 1.1, US Army Corps of Engineers, Hydrologic Engineering Center, Davis, CA, USA.

US Soil Conservation Service, 1986. Urban Hydrology for Small Watersheds (Technical Release 55), US Department of Agriculture.

Wanielista M, Kersten R.and Eaglin R., 1997. Hydrology: Water Quantity and Quality Control, John Wiley & Sons. 2nd ed.

SQL Server 2008 数据库案例教程课后习题答案

《SQL Server 2008数据库案例教程》练习题及模拟试卷答案 第1章 一、判断题 1. 数据库技术是是计算机数据处理与信息管理系统的核心。(√) 2. 数据是用于描述现实世界中具体事物或抽象概念,可存储的数字符号。(×) 3. 数据库是一个长期存储在计算机内的、有组织的、有共享的、统一管理的数据集合。(√) 4. 数据库管理系统是一个按数据结构来存储和管理数据的服务器管理系统。(×) 5. 关系数据库,是建立在关系模型基础上的数据库。(√) 二、单选题 1. 数据(Data)是一些可存储并具有明确意义的(A) A. 符号 B.图形 C.文字 D.数字 2. 人工阶段计算机用于数值计算,没有操作系统及管理数据的软件。这一阶段的年代是(C) A. 19世纪80年代 B. 20世纪20年代 C.20世纪50年代 D. 20世纪80年代 3. 在网页中常用的图像格式是(D) A..bmp和.jpg B..gif和.bmp C. .png和.bmp D. .gif和.jpg 4.数据库系统的重要特征是什么?(D) A. 数据的独立性和动态性 B.数据的静态性和独立性 C.数据的动态性和共享性 D.数据的独立性和共享性 三、多选题 1.与数据库技术密切相关的基本概念有(ABCD) A. 数据 B. 数据库 C. 数据库管理系统 D. 数据库系统 2.数据库可分为哪几种类型?(ABC) A. 关系型数据库 B. 网状数据库 C. 层次数据库 D.树形数据库 3. DBMS提供数据操作语言DML,为用户提供了哪些操作?(ABCD) A.数据的追加B.数据的删除C.数据的更新D.数据的查询 4.DBMS要分类组织、存储和管理各种数据,包括哪些内容?(ABC) A. 数据字典 B. 用户数据 C. 存取路径 D.服务器 5. 目前,DBMS常见品牌有哪些公司?(ABC) A.微软公司的SQL Server B.IBM公司的DB2 C.甲骨文公司的ORACLE D.索尼公司的MySQL 四、填空题 1.数据库(管理)技术经历了人工管理阶段和文件管理阶段。 2.文件系统不提供对任意部分数据的(快速)访问 3.关系数据库,是建立在关系(模型)基础上的数据库。 4.实体-联系模型(简称E-R模型)是由P.P.Chen于(1976)年首先提出的。

sql数据库示例,适合初学者

一、数据库概述 数据库(DataBase,DB):指长期保存在计算机的存储设备上,按照一定规则组织起来,可以被各种用户或应用共享的数据集合。(文件系统) 数据库管理系统(DataBase Management System,DBMS):指一种操作和管理数据库的大型软件,用于建立、使用和维护数据库,对数据库进行统一管理和控制,以保证数据库的安全性和完整性。用户通过数据库管理系统访问数据库中的数据。 数据库软件应该为数据库管理系统,数据库是通过数据库管理系统创建和操作的。 数据库:存储、维护和管理数据的集合。 二、数据库的安装与配置 * 安装 * 参照图解 * 一路下一步 * 配置 * 参照图解 * 到选择字符集时停 登录Mysql: mysql -u root -p abc * 卸载 1.停止mysql服务net stop mysql 启动mysql服务net start mysql 2.卸载mysql 3.找到mysql 安装目录下的my.ini datadir="C:/ProgramData/MySQL/MySQL Server 5.5/Data/" * 修改密码 运行cmd * 安装成功了打开cmd --> mysql -uroot -p你的密码 * 修改mysql root用户密码 1) 停止mysql服务运行输入services.msc 停止mysql服务 或者cmd --> net stop mysql 2) 在cmd下输入mysqld--skip-grant-tables 启动服务器光标不动(不要关闭该窗口) 3) 新打开cmd 输入mysql -u root -p 不需要密码

表单设计实验五

表单实验五 一、实验题目: 表单创建 二、实验目的与要求: (1)掌握类、对象的设计及调用方法等。 (2)掌握用表单向导设计单表、多表表单的操作。 (3)掌握用表单设计器设计表单的方法。 (4)掌握重要表单控件的使用和使用控件生成器生成控件。 三、实验内容: 实验5-1设计一个用户登录表单,在表单上创建一个组合框和一个文本框,从组合框选择用 户名,在文本框中输入口令,三次不正确退出。 方法步骤: 图7.1 (1)新建表单Form1,从表单控件工具栏中拖入两个标签Label1、Label2,两个命令按钮Command1、Command2,以及一个组合框控件Combo1和一个文本框控件Text1。并按图7.1调整好其位置和大小。 (2)设置Label1的Caption属性值为“用户名”,Label2的Caption属性值为“密码”,Command1、Command2的Caption属性值分别为“登录”和“退出”。Form1的Caption属性值为“登录”。 (3)设置Combo1的RowSourceType属性为“1-值”,RowSource属性为“孙瑞,刘燕”,Text1的PasswordChar属性为“*”。 (4)在Form1的Init Event过程中加入如下代码: public num num=0 在Command1的Click Event过程中加入如下的程序代码: if (alltrim(https://www.sodocs.net/doc/776617470.html,bo1.value)=="孙瑞" and alltrim(thisform.text1.value)=="123456") or (alltrim(https://www.sodocs.net/doc/776617470.html,bo1.value)=="刘燕" and alltrim(thisform.text1.value)=="abcdef") thisform.release do 主菜单.mpr else

各种硬度测试方法

二 硬 度 1、硬度试验 1.1硬度(hardness ) 材料抵抗弹性变形、塑性变形、划痕或破裂等一种或多种作用同时发生的能力。 最常用的有:布氏硬度、洛氏硬度、维氏硬度、努氏硬度、 肖氏硬度等。 1.2布氏硬度试验(Brinell hardness test ) 对一定直径的硬质合金球加规定的试验力压入试样表面,经规定的保持时间后,卸除试验力,测量试样表面的压痕直径。布氏硬度与试验力除的压痕表面积的商成正比。 HBW=K · ) (22 2 d D D D F ??π 式中:HBW ——布氏硬度; K ——单位系数 K=0.102; D ——压头直径mm ; F ——试验力N ; D ——压痕直径mm 。 标准块硬度值的表示方法,符号HBW 前为硬度值,符号后按顺序用数字表示球压头直径(mm ),试验力和试验力保持时间(10~15S 可不标注)。如350HBW5/750。表示用直径5mm 的硬质合金球在7.355KN 试验力下保持10~15S 测定的布氏硬度值为350,600HBW1/30/20表示用直径1mm 的硬质合金球在294.2N 试验力下保持20S 测定的布氏硬度值为600。 1.3洛氏硬度试验(Rockwell hardness test ) 在初试验力F 。及总试验力F 先后作用下,将压头(金刚石圆锥、钢球或硬质合金球)压入试样表面,经规定保持时间后,卸除主试验力F 1,测量在初试验力下的残余压痕深度h 。 HR=N- s h 式中:HR ——洛氏硬度; N ——给定标尺的硬度常数; H ——卸除主试验力后,在初试验力下压痕残留的深度(残余压痕深度);mm ; S ——给定标尺的单位;mm 。 A 、C 、D 、N 、T 标尺N=100, B 、E 、F 、G 、H 、K 标尺N=130;A 、B 、 C 、 D 、 E 、

一个完整的数据库示例--说明

一、表的结构及完整性约束 新建一个数据库jxsk,包括S、C、SC、T、TC五个表,结构如下:C表: S表: SC表: T表:

TC表: 二、安全性控制及视图机制 1、三类角色:depart、teacher、student depart的权限: teacher的权限:

student的权限: 2、有2个院系用户:d_jsj,d_xx,同属于depart角色。

有1个教师用户:t ,属于teacher 角色。

有一个学生用户:s,属于student角色。 3、创建计算机系教师视图t_view_jsj、计算机系学生视图s_view_jsj,并授予d_jsj 用户在这两个视图上的select、delete、update、insert权限。 计算机系教师视图t_view_jsj: create view t_view_jsj as select tno,tn,sex,age,prof,sal,comm,dept from t where dept='计算机' with check option

授予d_jsj用户在计算机系教师视图t_view_jsj 上的select、delete、update、insert 权限: grant select,update,delete,insert on t_view_jsj to d_jsj 计算机系学生视图t_view_jsj: create view s_view_jsj as select sno,sn,sex,age,dept,resume,native from s where dept='计算机' with check option 授予d_jsj用户在计算机系学生视图s_view_jsj 上的select、delete、update、insert 权限: grant select,update,delete,insert on s_view_jsj to d_jsj …… 4、创建一个视图,显示学号,姓名,院系,课程名,成绩。 create view score_view(学号,姓名,院系,课程名,成绩) as select s.sno,sn,dept,cn,score from s,sc,c where s.sno=sc.sno and https://www.sodocs.net/doc/776617470.html,o=https://www.sodocs.net/doc/776617470.html,o 三、完整性控制--触发器、规则 1、要求当删除C表中某课程信息时,同时删除SC和TC中与此课程相关的记录。create trigger c_delete_trigger on c after delete as delete from sc where cno in (select cno from deleted) delete from tc where cno in (select cno from deleted) go

数据库应用系统实例

淮海工学院计算机工程学院实验报告书 课程名:数据库原理及应用 题目:实验七数据库应用系统实例 班级:D计算机081 学号: 姓名:

一、实验目的 开发学生学籍管理系统小型数据库应用系统数据库连接、数据操程作序编写,熟练使用Microsoft Visual Studio 2005开发平台。 二、实验内容和要求 1.后台为SQL server2000, 2.前台为面向对象编程语言(可选择) 3.完成数据库连接 4.完成对前面实验所建立的studb109学籍数据库中的数据通过应用系统界面进行更新和查询等操作。 三、实验步骤和实验结果 1.连接SQL Server的数据库访问编程实例。编写一个应用程序来连接数据库名为studb109的SQL Sever数据库,并根据连接结果输出一些信息。 (1).运行Microsoft V isual Studio 2005 (2).新建网站

(3).设计网站 using System; using System.Collections; using System.Configuration; using System.Data; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Xml.Linq; using System.Data.SqlClient; namespace web { public partial class_Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e){} protected void Button1_Click(object sender, EventArgs e) {try {SqlConnection coon = new SqlConnection(); coon .ConnectionString =" Server =localhost; uid = sa;pwd=; database=studb109"; coon .Open (); Label1 .Text ="连接成功"; } catch { Label1 .Text ="连接失败"; }}}}

企业大数据表单的向导式UI设计

企业大数据表单的向导式UI设计 Ray Liu 2013-02-20 前言 (2) 第一章向导式UI (3) 本节总结 (5) 第二章改进型的向导式UI (6) 本节总结 (7) 第三章向导式UI的缺点 (7) 结束语 (7)

前言 企业内部的信息管理系统,由于业务的复杂性,导致我们的一张订单中往往需要填写大量的数据信息。先来看一下excel2007中的模版中的DHL EMailShip订单 上面仅仅是一个tab中的内容,需要完整填的话,还有invoice, packingList等等,作为一个新手,填写这么多的数据可真是让人头大的事情啊。

第一章向导式UI 对于新手来说,做上述复杂单据无疑是个漫长的学习和适应的过程,由此,我想到了是否可以参考现今电商网站的购物页面,采用创建向导的形式来创建订单,目的有3点: 1.新手可以快速上手 2.流程固化,不易出错 3.数据的分块填写,减少注意力分散 举例:填写一张销售订单(excel2007中的Sales Order模版) 传统的非向导式的UI如下,用户直接在一个form中填写完所有信息。

向导式的UI如下: 第一步 第二步 第三步 第四步 点击提交,我们就创建了一张完整的销售订单了,效果如图1 一样

本节总结 对于新手,向导式UI无疑是好的。再次重申其目的 1.新手可以快速上手 2.流程固化,不易出错 3.数据的分块填写,减少注意力分散 OK,对于这个例子,你也许会疑问,我直接填数据也很直观啊,我不觉得这么麻烦的跳转UI填 来填去的就是方便了。 对,非常对,假设你入门了,精通了,变老手了,你愿意每次都这样一项一项的点击去填数据么?我不愿意,非常不愿意。 So,我们需要改进型(更友好)的向导式UI。

金属硬度检测方法

金属硬度检测方法 作者:张凤林 硬度是评定金属材料力学性能最常用的指标之一。硬度的实质是材料抵抗另一较硬材料压入的能力。硬度检测是评价金属力学性能最迅速、最经济、最简单的一种试验方法。硬度检测的主要目的就是测定材料的适用性,或材料为使用目的所进行的特殊硬化或软化处理的效果。对于被检测材料而言,硬度是代表着在一定压头和试验力作用下所反映出的弹性、塑性、强度、韧性及磨损抗力等多种物理量的综合性能。由于通过硬度试验可以反映金属材料在不同的化学成分、组织结构和热处理工艺条件下性能的差异,因此硬度试验广泛应用于金属性能的检验、监督热处理工艺质量和新材料的研制。 金属硬度检测主要有两类试验方法。一类是静态试验方法,这类方法试验力的施加是缓慢而无冲击的。硬度的测定主要决定于压痕的深度、压痕投影面积或压痕凹印面积的大小。静态试验方法包括布氏、洛氏、维氏、努氏、韦氏、巴氏等。其中布、洛、维三种试验方法是应用最广的,它们是金属硬度检测的主要试验方法。这里的洛氏硬度试验又是应用最多的,它被广泛用于产品的检验,据统计,目前应用中的硬度计70%是洛氏硬度计。另一类试验方法是动态试验法,这类方法试验力的施加是动态的和冲击性的。这里包括肖氏和里氏硬度试验法。动态试验法主要用于大型的,不可移动工件的硬度检测。 各种金属硬度计就是根据上述试验方法设计的。下面分别介绍基于各种试验方法的硬度计的原理、特点与应用。 1.布氏硬度计(GB/T231.1—2002) 1.1布氏硬度计原理 对直径为D的硬质合金球压头施加规定的试验力,使压头压入试样表面,经规定的保持时间后,除去试验力,测量试样表面的压痕直径d,布氏硬度用试验力除以压痕表面积的商来计算。 HB =F / S ……………… (1-1) =F / πDh ……………… (1-2) 式中: F ——试验力,N; S ——压痕表面积,mm; D ——球压头直径,mm; h ——压痕深度, mm; d ——压痕直径,mm。 1、2布氏硬度计的特点: 布氏硬度试验的优点是其硬度代表性好,由于通常采用的是10 mm直径球压头,3000kg试验力,其压痕面积较大,能反映较大范围内金属各组成相综合影响的平均值,而不受个别组成相及微小不均匀度的影响,因此特别适用于测定灰铸铁、轴承合金和具有粗大晶粒的金属材料。它的试验数据稳定,重现性好,精度高于洛氏,低于维氏。此外布氏硬度值与抗拉强度值之间存在较好的对应关系。

硬度测试方法

1 引言 涂膜硬度是涂膜抵抗诸如碰撞、压陷、擦划等机械力作用的能力;是表示涂膜机械强度的重要性能之一;也是表示涂膜性能优劣的重要指标之一。涂膜硬度与涂料品种及涂膜的固化程度有关。油性漆及醇酸树脂漆的涂膜硬度较低,其它合成树脂漆的硬度较高。涂膜的固化程度直接影响涂膜的硬度,只有完全固化的涂膜,才具有其特定的最高硬度,在涂膜干燥过程中,涂膜硬度是干燥时间的函数,随着时间的延长,硬度由小到大,直至达到最高值。在采用固化剂固化的涂料中,固化剂的用量影响涂膜硬度,一般情况下提高固化剂的配比,使涂膜硬度增加,但固化剂过量则使涂膜柔韧性、耐冲击性等性能下降。一些自干型涂料,以适当的温度烘干,在一定程度上能提高涂膜硬度。涂膜硬度是涂料、涂装的重要指标,大多数情况下属于必须检测的项目。 2 铅笔硬度测定法 铅笔硬度法是采用已知硬度标号的铅笔刮划涂膜,以能够穿透涂膜到达底材的铅笔硬度来表示涂膜硬度的测定方法。国家标准GB/T 6739—1996《涂膜硬度铅笔测定法》规定了手动法和试验机法2 种方法,该标准等效采用日本工业标准JIS K5400-90-8.4《涂料一般试验方法———铅笔刮划值》。标准规定采用中华牌高级绘图铅笔,其硬度为9H、8H、7H、6H、5H、4H、3H、2H、H、F、HB、B、2B、3B、4B、5B、6B 共16 个等级,9H 最硬,6B 最软。测试用铅笔用削笔刀削去木质部分至露出笔芯约3 mm,不能削伤笔芯,然后将铅笔芯垂直于400# 水砂纸上画圆圈,将铅笔芯磨成平面、边缘锐利为止。试板为马口铁板或薄钢板,尺寸为50 mm×120mm×(0.2 ~0.3)mm 或70 mm×150 mm×(0.45 ~0.80)mm,按规定方法制备涂膜。

常见硬度测试及其适用范围介绍

硬度是衡量材料软硬程度的一种力学性能,它是指材料表面上低于变形或者破裂的能力。硬度试验是一种应用十分广泛的力学性能试验方法。硬度试验方法有很多,不同硬度测量方法有着各自的特点和适用范围。下面为大家介绍的是洛氏硬度、维氏硬度、布氏硬度、显微硬度、努氏硬度、肖氏硬度各自的特点及其适用领域。供各位材料科学与工程专业同学参考选择。 洛氏硬度: 采用测量压入深度的方式,硬度值可直接读出,操作简单快捷,工作效率高。然而由于金刚石压头的生产及测量机构精度不佳,洛氏硬度的精度不如维氏、布氏。适用于成批量零部件检测,可现场或生产线上对成品检测。 维氏硬度: 维氏硬度测量范围广,不但可以测量高硬度材料,也可以测量较软的金属以及板材、带材,具有较高的精度。但测量效率较低。 布氏硬度: 具有较大的压头和较大的试验力,得到压痕较大,因而能测出试样较大范围的性能。与抗拉强度有着近似的换算关系。测量结果较为准确。对材料表面破坏较大,不适合测量成品。测量过程复杂费事。适合测量灰铸铁、轴承合金和具有粗大晶粒的金属材料,适用于原料及半成品硬度测量。 对于测量精度,维氏大于布氏,布氏大于洛氏。

显微硬度: 压痕极小,可以归为无损检测一类;适用于测量诸如钟表较微小的零件,及表面渗碳、氮化等表面硬化层的硬度。除了正四棱锥金刚石压头之外,还有三角形角锥体、双锥形、船底形、双柱形压头,适用于测量特殊材料和形状的硬度。 努氏硬度: 努氏硬度测量精度比维氏硬度还要高,而且同样试验力下,比维氏硬度压入深度较浅,适合测量薄层硬度。再加上努氏压头作用下压痕周围脆裂倾向性小,适合测量高硬度金属陶瓷材料,人造宝石及玻璃、矿石等脆性材料。 肖氏硬度: 操作简单,测量迅速,试验力小,基本不损坏工件,适合现场测量大型工件,广泛应用于轧辊及机床、大齿轮、螺旋桨等大型工件。肖氏硬度是轧辊重要指标之一。 不同硬度测量方式有着自己的测量范围,下面从硬度值这一角度来说明不同硬度测量法的测量范围:

各种硬度计的结构和测量方法

第十四章各种硬度计的原理、构造及应用 与材料的关系 硬度反映了材料弹塑性变形特性,是一项重要的力学性能指标。与其他力学性能的测试方法相比,硬度试验具有下列优点:试样制备简单,可在各种不同尺寸的试样上进行试验,试验后试样基本不受破坏;设备简便,操作方便,测量速度快;硬度与强度之间有近似的换算关系,根据测出的硬度值就可以粗略地估算强度极限值。所以硬度试验在实际中得到广泛地应用。 硬度测定是指反一定的形状和尺寸的较硬物体(压头)以一定压力接触材料表面,测定材料在变形过程中所表面出来的抗力。有的硬度表示了材料抵抗塑性变形的能力(如不同载荷压入硬度测试法),有的硬度表示材料抵抗弹性变形的能力(如肖氏硬度)。通常压入载荷大于9.81N(1kgf)时测试的硬度叫宏观硬度,压力载荷小于9.81N(1kgf)时测试的硬度叫微观硬度。前者用于较在尺寸的试件,希反映材料宏观范围性能;后者用于小而薄的试件,希反映微小区域的性能,如显微组织中不同的相的硬度,材料表面的硬度等。 硬度计的种类很多,这里重点介绍最常用的洛氏、布氏、维氏和显微硬度测试法。 14.1 洛氏硬度测试法 一、洛氏硬度的测量原理 洛氏硬度测量法是最常用的硬度试验方法之一。它是用压头(金刚石圆锥或淬火钢球)在载荷(包括预载荷和主载荷)作用下,压入材料的塑性变形浓度来表示的。通常压入材料的深度越大,材料越软;压入的浓度越小,材料越硬。图14-1表示了洛氏硬度的测量原理。 图中: 0-0:未加载荷,压头未接触试件时的位置。 1-1:压头在预载荷P0(98.1N)作用下压入试件深度为h0时的位置。h0包括预载所相起的弹形变形和塑性变形。 2-2:加主载荷P1后,压头在总载荷P= P0+ P1的作用下压入试件的位置。 3-3:去除主载荷P1后但仍保留预载荷P0时压头的位置,压头压入试样的深度为h1。由于P1所产生的弹性变形被消除,所以压头位置提高了h,此时压头受主载荷作用实际压入的浓度为h= h1- h0。实际代表主载P1造成的塑性变形深度。 h值越大,说明试件越软,h值越小,说明试件越硬。为了适应人们习惯上数值越大硬度越高的概念,人为规定,用一常数K减去压痕深度h的数值来表示硬度的高低。并规定0.002mm为一个洛氏硬度单位,用符号HR表示,则洛氏硬度值为:

(完整版)显微硬度的测定方法.

显微硬度的测定方法与设备 一.显微硬度的基本概念 “硬度”是指固体材料受到其它物体的力的作用,在其受侵入时所呈现的抵抗弹性变形、塑性变形及破裂的综合能力。这种说法较接近于硬度试验法的本质,适用于机械式的硬度试验法,但仍不适用于电磁或超声波硬度试验法。“硬度”这一术语,并不代表固体材料的一个确定的物理量,而是材料一种重要的机械性能,它不仅取决于所研究的材料本身的性质,而且也决定于测量条件和试验法。因此,各种硬度值之间并不存在着数学上的换算关系,只存在着实验后所得到的对照关系。 “显微硬度”是相对“宏观硬度”而言的一种人为的划分。目前这一概念参照国际标准ISO6507/1-82“金属材料维氏硬度试验”中规定“负荷小于0.2kgf(1.961N)维氏显微硬度试验”及我国国家标准GB4342-84“金属显微维氏硬度试验方法”中规定“显微维氏硬度”负荷范围为“0.01~0.2kgf(98.07×10-3~1.961N)”而确定的。负荷≤0.2kgf(≤1.961N)的静力压入被试验样品的试验称为显微硬度试验。 以实施显微硬度试验为主,负荷在0.01~1kgf(9.907×10-3~9.807N)范围内的硬度计称为显微硬度计。 显微硬度的测试原理是采用一定锥体形状的金刚石压头,施以几克到几百克质量所产生的重力(压力)压入试验材料表面,然后测量其压痕的两对角线长度。由于压痕尺度极小,必须在显微镜中测量。 二.显微硬度试验方法 显微硬度测试采用压入法,压头是一个极小的金刚石锥体,按几何形状分为两种类型,一种是锥面夹角为136?的正方锥体压头,又称维氏(Vickers)压头,另一种是棱面锥体压头,又称努普(knoop)压头。这两种压头分别示于图8-1a和图8-1b中。 图8-1a 维氏压头图8-1b 努氏压头

informix数据库操作实例

查看数据库实例名: dbaccess,然后选择database,在选择select,数据库名@符号后面的即为数据库实例名 新建数据库: 1、使用dbaccess进入informix交互环境 2、选择Database,回车 3、选择 Create,回车 4、输入数据库名:uniacctr,回车 5、选择 Dbspace(表空间),回车 6、选择跟局数据数据库bureaudb一样的表空间,回车 7、选择 Log ,回车 8、选择 Log,回车(选择日志模式,其他不支持事务) ; 9、选择 Exit,回车 10、选择 Create-new-database ,回车。 此时数据库应该已经建立。 查看某个数据库的表空间: 1、使用dbaccess进入informix交互环境 2、选择Database,回车 3、选择 Select,回车 4、选择局数据数据库bureaudb,回车 5、选择Info,回车 6、选择dBSpace,回车 图中rootdbs位置显示的即是表空间 / 关键字: dbschema工具: 1)导出数据库中所有的表结构到文件 $>dbschema -d your_database -t all 2)导出数据库中所有的存储过程到文件 $>dbschema -d your_database -f all 3)导出数据库中的所有对象(包含表,存储过程,触发器。。。)到文件$>dbschema -d your_database 4)导出数据库中一个表的结构到文件 $>dbschema -d your_database_name -t your_table_name 5)导出一个存储过程定义到文件 $>dbschema -d your_database_name -f your_procedure_name ) 6)如果导出更多的表的信息(EXTENT...) $>dbschema -d your_database_name -ss 7)导出数据库中对用户或角色的授权信息 $>dbschema -d your_database_name -p all $>dbschema -d your_database_name -r all 8)导出数据库中的同义词 $>dbschema -d your_database_name -s all

硬度测试方法

1引言 涂膜硬度是涂膜抵抗诸如碰撞、压陷、擦划等机械力作用的能力;是表示涂膜机械强度的重 要性能之一;也是表示涂膜性能优劣的重要指标之一。涂膜硬度与涂料品种及涂膜的固化程 度有关。油性漆及醇酸树脂漆的涂膜硬度较低,其它合成树脂漆的硬度较高。涂膜的固化程度直接影响涂膜的硬度,只有完全固化的涂膜,才具有其特定的最高硬度,在涂膜干燥过程中,涂膜硬度是干燥时间的函数,随着时间的延长,硬度由小到大,直至达到最高值。在采用固化剂固化的涂料中,固化剂的用量影响涂膜硬度,一般情况下提高固化剂的配比,使涂膜硬度增加,但固化剂过量则使涂膜柔韧性、耐冲击性等性能下降。一些自干型涂料,以适当的温度烘干,在一定程度上能提高涂膜硬度。涂膜硬度是涂料、涂装的重要指标,大多数 情况下属于必须检测的项目。 2铅笔硬度测定法 铅笔硬度法是采用已知硬度标号的铅笔刮划涂膜,以能够穿透涂膜到达底材的铅笔硬度来表 示涂膜硬度的测定方法。国家标准GB/T 6739 —1996《涂膜硬度铅笔测定法》规定了手动 法和试验机法2种方法,该标准等效采用日本工业标准JIS K5400-90-8.4 《涂料一般试验 方法----- 铅笔刮划值》。标准规定采用中华牌高级绘图铅笔,其硬度为9H、8H、7H、 6H、5H、4H、3H、2H、H、F、HB、B、2B、3B、4B、5B、6B 共16 个等级,9H 最 硬,6B最软。测试用铅笔用削笔刀削去木质部分至露出笔芯约 3 mm,不能削伤笔芯,然 后将铅笔芯垂直于400#水砂纸上画圆圈,将铅笔芯磨成平面、边缘锐利为止。试板为马 口铁板或薄钢板,尺寸为50 mm X120mm x(0.2 ?0.3) mm 或70 mm X150 mm x (0.45?0.80 ) mm,按规定方法制备涂膜。

EasyFlow3.7.1版 表单向导使用手册

鼎捷系统集团控股有限公司 3.7.1版表单向导使用手册 文件编号: 文件版次: 1.1.1.0 文件日期:2014年8月28日

文件制/修订履历 版次日期说明作者备注1.1.1.02014.08.28第一版

目录 一、新表单设计区-建立新表单 (2) 二、表单向导控制组件说明 (17) 1、Label (17) 2、Textbox (17) 3、Dropdown下拉选单控件 (21) 4、TEXTAREA (26) 5、Radio Button控件 (26) 6、Checkbox控件 (27) 7、Datetime日期控件 (30) 8、部门及员工控件 (34) 9、OpenQuery开窗控件 (36) 10、Button控制组件 (40) 11、Grid单身控件 (41) 12、图片控件 (44) 13、PASSWORD密码控制组件 (45) 14、Line线条 (45) 15、隐藏字段控件 (47) 二、表单重新设计区 (48) 三、表单复制区 (51) 四、修改自定义表单主旨区 (58) 五、表单名称修改功能 (60) 六、表单向导删除功能 (62) 七、新增删除历程查询 (64)

当您欲使用3.7.1版的电子表单设计向导,可以点选在电子表单设计工具下的电子表单设计向导后,会进入以下画面: 目前共有七个功能: 「新表单设计区」、「表单重新设计区」、「表单复制区」及「修改自定义表单主旨区」、「修改表单名称区」、「表单删除区」及「表单删除历程」 以下章节将逐一介绍这七大功能:

一、新表单设计区-建立新表单

1、Step1:输入「表单代号」、「表单简称」、「表单全称」,选择「表单类别」。 表单代号命名注意事项: 作业代号的命名方式:[3码开发代号]+[3码公司代号][2码程序流水号]其中[3码开发代号]:名称,ex.ODM [3码公司代号]:名称,ex:IBM 则表单代号命名为:ODMIBM01

习题5 项目管理器、设计器和向导的使用

习题5 项目管理器、设计器和向导的使用 6.要把在项目管理器之外创建的文件包含在项目文件中,需要使用项目管理器的 8.下列关于“事件”的叙述中,错误的是_________。 A. Visual FoxPro中基类的事件可以由用户创建 B. Visual FoxPro中基类的事件是有系统预先定义好的,不可由用户创建 C.事件是一种事先定义好的特定动作,由用户或系统激活 D.鼠标的单击、双击、移动和键盘上按键的按下均可激活某个时间

习题5 项目管理器、设计器和向导的使用- 133 - 11.若某表单中有一个文本框Text1和一个命令按钮CommandGroup1,其中,命令按钮 组包含了Command1和Command2两个命令按钮。如果要在命令按钮Command1的某个方法中访问文本框Text1的V alue属性值,下列式子中正确的是_________。 12.在表单中加入两个命令按钮Command1和Command2;编写Command1的Click事 件代码如下,则当单击Command1后_________。 https://www.sodocs.net/doc/776617470.html,mand2.Enabled = .F. A. Command1命令按钮不能激活 B. Command2命令按钮不能激活 C.事件代码无法执行 D.命令按钮组中的第2个命令按钮不能激活 13.V isual FoxPro提供了3种方式来创建表单,它们分别是表单向导创建表单;使用 _________创建一个新的表单或修改一个已经存在的表单;使用“表单”菜单中的快速表单命令创建一个简单的表单。 17.在运行某个表单时,下列有关表单事件引发次序的叙述中正确的是_________。 A.先Activate事件,然后Init事件,最后Load事件 B.先Activate事件,然后Load事件,最后Init事件 C.先Init事件,然后Activate事件,最后Load事件 D.先Load事件,然后Init事件,最后Activate事件 18.在表单中添加了某些控件后,除了通过属性窗口为其设置各种控件外,也可以通过 19.在当前目录下有M.PRG和M.SCX两个文件,在执行命令DO M后,实际运行的

(完整版)硬度测试的介绍

硬度概述 材料局部抵抗硬物压入其表面的能力称为硬度。试验钢铁硬度的最普通方法是用锉刀在工件边缘上锉擦,由其表面所呈现的擦痕深浅以判定其硬度的高低。这种方法称为锉试法这种方法不太科学。用硬度试验机来试验比较准确,是现代试验硬度常用的方法。常用的硬度测定方法有布氏硬度、洛氏硬度和维氏硬度等测试方法 布氏硬度以HB[N(kgf/mm2)]表示(HBS\HBW)(参照GB/T231-1984),生产中常用布氏硬度法测定经退货、正火和调质得刚健,以及铸铁、有色金属、低合金结构钢等毛胚或半成品的硬度。 洛氏硬度可分为HRA、HRB、HRC、HRD四种,它们的测量范围和应用范围也不同。一般生产中HRC用得最多。压痕较小,可测较薄得材料和硬得材料和成品件得硬度。 维氏硬度以HV表示(参照GB/T4340-1999),测量极薄试样。 ⒈钢材的硬度:金属硬度(Hardness)的代号为H。按硬度试验方法的不同, 常规表示有布氏(HB)、洛氏(HRC)、维氏(HV)、里氏(HL)硬度等,其中以HB及HRC较为常用。 HB应用范围较广,HRC适用于表面高硬度材料,如热处理硬度等。两者区别在于硬度计之测头不同,布氏硬度计之测头为钢球,而洛氏硬度计之测头为金刚石。 HV-适用于显微镜分析。维氏硬度(HV) 以120kg以内的载荷和顶角为136°的金刚石方形锥压入器压入材料表面,用材料压痕凹坑的表面积除以载荷值,即为维氏硬度值(HV)。 HL手提式硬度计,测量方便,利用冲击球头冲击硬度表面后,产生弹跳;利用冲头在距试样表面1mm 处的回弹速度与冲击速度的比值计算硬度,公式:里氏硬度HL=1000×VB(回弹速度)/ V A(冲击速度)。 便携式里氏硬度计用里氏(HL)测量后可以转化为:布氏(HB)、洛氏(HRC)、维氏(HV)、肖氏(HS)硬度。或用里氏原理直接用布氏(HB)、洛氏(HRC)、维氏(HV)、里氏(HL)、肖氏(HS)测量硬度值。 ⒉HB - 布氏硬度; 布氏硬度(HB)一般用于材料较软的时候,如有色金属、热处理之前或退火后的钢铁。洛氏硬度(HRC)一般用于硬度较高的材料,如热处理后的硬度等等。 布式硬度(HB)是以一定大小的试验载荷,将一定直径的淬硬钢球或硬质合金球压入被测金属表面,保持规定时间,然后卸荷,测量被测表面压痕直径。布式硬度值是载荷除以压痕球形表面积所得的商。一般为:以一定的载荷(一般3000kg)把一定大小(直径一般为10mm)的淬硬钢球压入材料表面,保持一段时间,去载后,负荷与其压痕面积之比值,即为布氏硬度值(HB),单位为公斤力/mm2 (N/mm2)。 ⒊洛式硬度是以压痕塑性变形深度来确定硬度值指标。以0.002毫米作为一个硬度单位。当HB>450或者试样过小时,不能采用布氏硬度试验而改用洛氏硬度计量。它是用一个顶角120°的金刚石圆锥体或直径为1.59、3.18mm的钢球,在一定载荷下压入被测材料表面,由压痕的深度求出材料的硬度。根据试验材料硬度的不同,分三种不同的标度来表示: HRA:是采用60kg载荷和钻石锥压入器求得的硬度,用于硬度极高的材料(如硬质合金等)。 HRB:是采用100kg载荷和直径1.58mm淬硬的钢球,求得的硬度,用于硬度较低的材料(如退火钢、铸铁等)。 HRC:是采用150kg载荷和钻石锥压入器求得的硬度,用于硬度很高的材料(如淬火钢等)。 另外: 1.HRC含意是洛式硬度C标尺, 2.HRC和HB在生产中的应用都很广泛 3.HRC适用范围HRC 20--67,相当于HB225--650

delphi7操作SQLdata数据库简单实例

系统登录对话框(SQL数据库验证) 统登录对话框(如图1-1 所示)是一般的数据库管理系统的基本功能之一,用于提供系统用户登录身份验证功能,只有成功登录之后才能启动和使用系统,从而保证系统数据安全。系统登录对话框用两个文本框分别输入用户名和登录口令,按钮用于执行用户名和登录口令验证,按钮用于退出登录。 本例讲述delphi中,使用SQL数据库连接验证系统登录。 ADOConnection组件 ADOQuery组件 系统登录对话框主要有以下特点: (1)界面简单。对话框中只需要使用标签显示文本框提示,用文本框来输入用户名和登录口令,用命令按钮执行用户和密码的验证以及系统的退出。 (2)基于数据库验证。一般数据库管理系统登录对话框在实现时都将用户登录信息(用户名和登录口令)保存在数据库中,这样便于管理系统用户,与直接将用户登录信息 放在代码中更有灵活性。 1.ADO Connection对象 ADO Connection对象代表了打开的、与数据源的连接,在访问数据源之前,必须先建立连接。本实例中用到的ADO Connection对象属性和方法分别如下:ConnectionString属性:指定连接数据源的基本信息,本实例使用ADO访问保存

登录信息的Access 数据库,使用的连接字符串为: “Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=图书管理系统;Data Source=服务器名”。 ? Open方法:打开数据源连接。 ? Close方法:关闭数据源连接。 2.ADO Recordset对象 ADO Recordset 对象用于保存从数据源获得记录集,本实例中用到的属性、集合和方法分别如下: ? ActiveConnection 属性:代表数据源的活动连接,通常将其设置为已建立的Connection对象。 ?EOF属性:测试当前记录位置是否位于记录集的最后一个记录之后。如果当前记录位于记录集的最后一个记录之后EOF属性将返回True,否则返回False。 ?Fields 集合:包含Recordset 对象的所有Field 对象,即可使用Fields 来获得当前记录各个字段的值。例如,objRs.Fields("口令").Value获得当前记录的“口令”字段的值。 ? Open 方法:用于打开记录集,其参数为执行查询的SQL 命令字符串,如:objRs.Open("SELECT 口令FROM 系统用户WHERE 用户名='admin'") 本实例的实现包括创建数据库、设计表单、建立ADO引用和编写功能代码三个步骤。 1.创建数据库和表 △开始/程序/Microsoft SQL Server/企业管理器

c语言 创建、运行和修改表单

实验(六)创建、运行和修改表单 电科081班级张辉 NO.:8 实验目的: 1.掌握利用向导创建表单的方法。 2.掌握为对象设置属性和编写事件代码的技能。 3.通过运行由VFP向导生成的表单了解数据管理的功能。 实验要求: 1.使用一对多表单向导,以“订单”表为父表,“订单明细”表为子表生成订单表单。 2.将表单的“订单号:”标签设置为红色。 3.右击表单能弹出一个信息框。 4.运行订“订单”表单,通过操作了解订单向导的这一实例提供的数据管理功能:浏览记录、查找记录、编辑记录、打印报表、添加记录和删除记录。 实验准备: 1.阅读主教材6.1.2节和6.3节。 2.创建好“订货”数据库(见实验3-2) 实验步骤: 6-1 创建表单:选定菜单命令“工具/向导/表单”,即显示“向导选取”对话框→在列表中选定“一对多表单向导”选项,即出现“一对多表单向导”对话框→以“订货”数据库的“订单表”为父表并选用全部字段(图 a)→以“订单明细”表为子表并选用货号和数量字段→单击“完成”按钮(图 b),然后将表单文件取名为“订单”(图 c)。保存后表单设计器如图2.6.1所示→参照图2.6.2缩小表格,移动对象。

6-2 标签设置红色:单击“订单号:”标签,随之属性窗口的对象组合框中即显示“LBL订单号1”→在属性列表中选定ForeColor,并在属性设置框中输入255,0,0.

6-3 为Form1的RightClick事件编写代码:双击表单窗口打开代码编辑窗口,在对象组合框中即显示Form1选项,在过程组合框中选定RightClick事件,然后在列表框中输入以下代码。 6-4 运行表单:在常用工具栏中单击“运行”按钮即显示如下表单(图 2.6.2)。右击表单会弹出一个信息窗口如下所示:

金属硬度检测方法

?金属硬度检测方法 ? ? 硬度是评定金属材料力学性能最常用的指标之一。硬度的实质是材料抵抗另一较硬材料压入的能力。硬度检测是评价金属力学性能最迅速、最经济、最简单的一种试验方法。硬度检测的主要目的就是测定材料的适用性,或材料为使用目的所进行的特殊硬化或软化处理的效果。对于被检测材料而言,硬度是代表着在一定压头和试验力作用下所反映出的弹性、塑性、强度、韧性及磨损抗力等多种物理量的综合性能。由于通过硬度试验可以反映金属材料在不同的化学成分、组织结构和热处理工艺条件下性能的差异,因此硬度试验广泛应用于金属性能的检验、监督热处理工艺质量和新材料的研制。 金属硬度检测主要有两类试验方法。一类是静态试验方法,这类方法试验力的施加是缓慢而无冲击的。硬度的测定主要决定于压痕的深度、压痕投影面积或压痕凹印面积的大小。静态试验方法包括布氏、洛氏、维氏、努氏、韦氏、巴氏等。其中布、洛、维三种试验方法是应用最广的,它们是金属硬度检测的主要试 验方法。这里的洛氏硬度试验又是应用最多的,它被广泛用于产品的检验,据统计,目前应用中的硬度计70%是洛氏硬度计。另一类试验方法是动态试验法,这类方法试验力的施加是动态的和冲击性的。这里包括 肖氏和里氏硬度试验法。动态试验法主要用于大型的,不可移动工件的硬度检测。 各种金属硬度计就是根据上述试验方法设计的。下面分别介绍基于各种试验方法的硬度计的原理、特 点与应用。 1.布氏硬度计(GB/T231.1—2002) 1.1 布氏硬度计原理 对直径为D 的硬质合金球压头施加规定的试验力,使压头压入试样表面,经规定的保持时间后,除去 试验力,测量试样表面的压痕直径d,布氏硬度用试验力除以压痕表面积的商来计算。 HB =F / S ……………… (1-1) =F / πDh ……………… (1-2) =0.102×2F / πDh(D-)……………… (1-3) 式中:F ——试验力,N; S ——压痕表面积,mm; D ——球压头直径,mm; h ——压痕深度, mm; d ——压痕直径,mm。 1、2 布氏硬度计的特点: 布氏硬度试验的优点是其硬度代表性好,由于通常采用的是10 mm 直径球压头,3000kg 试验力,其压 痕面积较大,能反映较大范围内金属各组成相综合影响的平均值,而不受个别组成相及微小不均匀度的影

相关主题