コード例 #1
0
ファイル: Reference.cs プロジェクト: arcadiascholen/WisaApi
        public byte[] GetExportData(TWISAAPICredentials Credentials, string QueryCode, string Format, TWISAAPIParamValue[] Params, string Options)
        {
            object[] results = this.Invoke("GetExportData", new object[] {
                Credentials,
                QueryCode,
                Format,
                Params,
                Options
            });

            return((byte[])(results[0]));
        }
コード例 #2
0
ファイル: Reference.cs プロジェクト: arcadiascholen/WisaApi
        public byte[] GetCSVData(TWISAAPICredentials Credentials, string QueryCode, TWISAAPIParamValue[] Params, bool Header, string Separator, string Options)
        {
            object[] results = this.Invoke("GetCSVData", new object[] {
                Credentials,
                QueryCode,
                Params,
                Header,
                Separator,
                Options
            });

            return((byte[])(results[0]));
        }
コード例 #3
0
ファイル: Reference.cs プロジェクト: arcadiascholen/WisaApi
 /// <remarks/>
 public void GetXMLDataAsync(TWISAAPICredentials Credentials, string QueryCode, TWISAAPIParamValue[] Params, int XMLFormat, string Options, object userState)
 {
     if ((this.GetXMLDataOperationCompleted == null))
     {
         this.GetXMLDataOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetXMLDataOperationCompleted);
     }
     this.InvokeAsync("GetXMLData", new object[] {
         Credentials,
         QueryCode,
         Params,
         XMLFormat,
         Options
     }, this.GetXMLDataOperationCompleted, userState);
 }
コード例 #4
0
ファイル: Connector.cs プロジェクト: arcadiascholen/WisaApi
        public static void Init(string url, int port, string accountName, string password, string database, ILog log = null)
        {
            Log = log;

            credentials          = new WISA.TWISAAPICredentials();
            credentials.Username = accountName;
            credentials.Password = password;
            credentials.Database = database;

            service = new WISA.WisaAPIServiceService();
            try
            {
                service.Url = "http://" + url + ":" + port.ToString() + "/SOAP/";
            } catch (Exception e)
            {
                Log?.AddError(Origin.Wisa, e.Message);
            }
        }
コード例 #5
0
ファイル: Reference.cs プロジェクト: arcadiascholen/WisaApi
 /// <remarks/>
 public void GetXMLDataAsync(TWISAAPICredentials Credentials, string QueryCode, TWISAAPIParamValue[] Params, int XMLFormat, string Options)
 {
     this.GetXMLDataAsync(Credentials, QueryCode, Params, XMLFormat, Options, null);
 }
コード例 #6
0
ファイル: Reference.cs プロジェクト: arcadiascholen/WisaApi
 /// <remarks/>
 public void GetCSVDataAsync(TWISAAPICredentials Credentials, string QueryCode, TWISAAPIParamValue[] Params, bool Header, string Separator, string Options)
 {
     this.GetCSVDataAsync(Credentials, QueryCode, Params, Header, Separator, Options, null);
 }
コード例 #7
0
ファイル: Reference.cs プロジェクト: arcadiascholen/WisaApi
 /// <remarks/>
 public void GetExportDataAsync(TWISAAPICredentials Credentials, string QueryCode, string Format, TWISAAPIParamValue[] Params, string Options)
 {
     this.GetExportDataAsync(Credentials, QueryCode, Format, Params, Options, null);
 }