... := obrow1:AddCol() oCol:bStrData := {||odb1:centerid} oCol:cHeader := "编码" oCol:bEditValue := {||odb1:centerid} oCol:nEditType := {||if(ledit,1,0)} oCol:bOnPostEdit := {|o, v, n| if( n != VK_ESCAPE .and. v != odb1:centerid,; (if(odb1:EOF(),; (odb1:centerid:=v,odb1:enddate:=CTOD("2999.12.31"),odb1:APPEND(),obrow1:refresh(),if(!oserver:lerror,obrow1:SEEK(v),msgstop("编码重复!","停止"))),; ...