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.

  • 相关阅读:
    bzoj1093[ZJOI2007]最大半连通子图(tarjan+拓扑排序+dp)
    tarjan强连通分量模板(pascal)
    二分图最小顶点覆盖数=最大匹配数的证明
    poj3041 Asteroids(二分图最小顶点覆盖、二分图匹配)
    bzoj4196[Noi2015]软件包管理器
    AEAI Portal 权限体系说明
    未来70%的人类将会失业
    工作中高效学习的方法
    如何正确的做事
    你真的会沟通吗? --下部
  • 原文地址:https://www.cnblogs.com/martian6125/p/9631478.html
Copyright © 2011-2022 走看看