//添加数居
string sex
integer id=integer(sle_id.text)
string name=sle_name.text
if rb_man.checked=true then
sex='男'
end if
if rb_woman.checked=true then
sex='女'
end if
integer card=integer(sle_card.text);
integer num=integer( sle_num.text);
string position=ddlb_position.text;
string username=sle_loginname.text;
date injob=date( dp_injob.text);
string pass=sle_password.text;
integer dep=integer(ddlb_dep.text);
string email=sle_email.text;
string createname=loginname;
integer phone=integer( sle_phone.text);
integer state=integer(sle_state.text);
integer p_type=integer(ddlb_type.text);
date outjob= date(dp_outjob.text);
INSERT INTO "person"
( "per_id",
"per_name",
"per_sex",
"per_card",
"per_number",
"per_position",
"per_username",
"per_injob",
"per_password",
"per_department",
"per_eamil",
"per_createname",
"per_phone",
"per_state",
"per_type",
"per_outjob" )
VALUES ( :id,
:name,
:sex,
:card,
:num,
:position,
:username,
:injob,
:pass,
:dep,
:email,
:createname,
:phone,
:state,
:p_type,
:outjob ) ;