zoukankan      html  css  js  c++  java
  • 用友通登录

    unit Unit1;

    interface

    uses
      Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
      Dialogs, ComObj, WordXP,StdCtrls;

    type
      TForm1 = class(TForm)
        Button1: TButton;
        Button2: TButton;
        Memo1: TMemo;
        procedure Button1Click(Sender: TObject);
        procedure FormClose(Sender: TObject; var Action: TCloseAction);
      private
        { Private declarations }
      public
        { Public declarations }
      end;

    var
      Form1: TForm1;
    clsLogin1:Variant;

        LoginSu:Boolean;
        FWord: Variant;
      FDoc: Variant;


    implementation

    {$R *.dfm}

    procedure TForm1.Button1Click(Sender: TObject);
      begin
       clsLogin1:=CreateOleObject('UFLoginSQL.Login');
        Try
        {ST:库存管理,WA:工资管理,DP:控制台}
          LoginSu:=clsLogin1.Login('DP');
        Except
          clsLogin1.ShutDown;
          Exit;
        end;
        if not LoginSu then
          begin
          Caption:='调用不成功';
            clsLogin1.ShutDown;
            Exit;
          end;
          memo1.Lines.Clear;
          memo1.Lines.Add('1操作员:'+clsLogin1.Cusername);
          memo1.Lines.Add('2账套名:'+clsLogin1.cAccname);
          memo1.Lines.Add('3会计年度:'+clsLogin1.CIYear);
          memo1.Lines.Add('4服务器:'+clsLogin1.cServer);
          memo1.Lines.Add('5用户ID:'+clsLogin1.CuserId);
          memo1.Lines.Add('6密码:'+clsLogin1.cUserPassword);
          memo1.Lines.Add('7数据库密码:'+clsLogin1.SysPassword);
          memo1.Lines.Add('8连接字符串:'+clsLogin1.Ufdbname);
    end;

    procedure TForm1.FormClose(Sender: TObject; var Action: TCloseAction);
    begin
       clsLogin1.ShutDown;
    end;

    end.

  • 相关阅读:
    服务器键盘设置错误 完美解决
    windows 彻底删除360文件 360zipext.dll 等等
    VS2005智能设备中无法找到PInvoke DLL
    如何使用DotNet 2.0中的应用程序配置 Settings.settings
    维护应用程序状态(一):使用浏览器cookie
    NHibernate学习导航
    HTML基础(三):基本的HTML标签
    使用Cookie对象保存用户自定义设置
    ASP.NET2.0 个性化用户配置
    sealed修饰符的使用
  • 原文地址:https://www.cnblogs.com/martian6125/p/9631478.html
Copyright © 2011-2022 走看看