计算机应用 | 古代文学 | 市场营销 | 生命科学 | 交通物流 | 财务管理 | 历史学 | 毕业 | 哲学 | 政治 | 财税 | 经济 | 金融 | 审计 | 法学 | 护理学 | 国际经济与贸易
计算机软件 | 新闻传播 | 电子商务 | 土木工程 | 临床医学 | 旅游管理 | 建筑学 | 文学 | 化学 | 数学 | 物理 | 地理 | 理工 | 生命 | 文化 | 企业管理 | 电子信息工程
计算机网络 | 语言文学 | 信息安全 | 工程力学 | 工商管理 | 经济管理 | 计算机 | 机电 | 材料 | 医学 | 药学 | 会计 | 硕士 | 法律 | MBA
现当代文学 | 英美文学 | 通讯工程 | 网络工程 | 行政管理 | 公共管理 | 自动化 | 艺术 | 音乐 | 舞蹈 | 美术 | 本科 | 教育 | 英语 |

delphi+工资管理系统+access[开题报告+论文+源代(2)

2013-06-07 01:23
导读:eg,ActnList; type Tf_password = class(TForm) Bevel1: TBevel; Label1: TLabel; Label2: TLabel; e_password: TEdit; Label3: TLabel; ComboBox1: TComboBox; Image1: TImage; b_ok: TSpeedButton; b_cancel: TSpe
eg,ActnList;

type
  Tf_password = class(TForm)
    Bevel1: TBevel;
    Label1: TLabel;
    Label2: TLabel;
    e_password: TEdit;
    Label3: TLabel;
    ComboBox1: TComboBox;
    Image1: TImage;
    b_ok: TSpeedButton;
    b_cancel: TSpeedButton;
    e_user: TDBLookupComboBox;

    procedure qx;  //自定义过程---登陆时用户的权限设置
    procedure b_okClick(Sender: TObject);
    procedure SpeedButton1Click(Sender: TObject);
    procedure b_cancelClick(Sender: TObject);
    procedure E_USEKeyDown(Sender: TObject; var Key: Word;
      Shift: TShiftState);
    procedure FormCreate(Sender: TObject);
    procedure JC_DATETIME;
    procedure FormClose(Sender: TObject; var Action: TCloseAction);
    procedure e_userKeyPress(Sender: TObject; var Key: Char);
    procedure e_passwordKeyPress(Sender: TObject; var Key: Char);   //检测系统日期时间
  private
    { Private declarations }
  public
     rz_id:integer;//保存日志ID
    { Public declarations }

  end;

var
  f_password: Tf_password;
  user_name:string;   //全局变量,保存登陆系统的用户名
 
implementation

uses p_mc,p_gl,P_DM;
{$R *.dfm}
procedure tf_password.JC_DATETIME;
begin
//检测计算机日期时间是否小于上次登陆日期时间
 with dm do
  begin
    t_dl.Open;
    if t_dl['dl_date']>now then

(科教范文网 fw.nseac.com编辑发布)


       begin
          t_dl.Edit;
          t_dl['dl_date']:=strtodate('1900-03-20');
          t_dl.Post;
          application.MessageBox('计算机日期或时间有误,请更正!','登陆失败',mb_ok+mb_iconstop);
          f_password.Close;
       end
    else
       begin
          t_dl.Edit;
          t_dl['dl_date']:=datetostr(now);
          t_dl.Post;
         // t_dl.Close;
       end;  //endif
    t_dl.Close;
  end;       //with dm do 语句完毕
end;
procedure tf_password.qx;  //自定义过程---登陆时用户的权限设置
var
  n:integer;
  xz:boolean; //该权限是否选择
begin
with dm,f_gl do
begin
  t_qx.Open;
  t_qx.Filter:='user_name='''+user_name+'''';
  t_qx.Filtered:=true;
  t_qx.First;
  while not t_qx.eof do
     begin
        n:=t_qx['menu_id'];
 
上一篇:delphi+access设备保养管理系统[开题报告+论文+源 下一篇:没有了