コード例 #1
0
    public byte[] GetBackupHistory(byte[] loginTicket, int topList)
    {
        Loginer   loginer = WebServiceSecurity.ValidateLoginer(loginTicket);
        DataTable data    = new dalCommon(null).GetBackupHistory(topList);

        return(ZipTools.CompressionDataSet(ServerLibrary.TableToDataSet(data)));
    }
コード例 #2
0
    public byte[] G_GetFormTagCustomName(byte[] loginTicket)
    {
        Loginer   loginer = WebServiceSecurity.ValidateLoginer(loginTicket);
        DataTable dt      = new dalUserGroup(loginer).GetFormTagCustomName();

        return(ZipTools.CompressionDataSet(ServerLibrary.TableToDataSet(dt)));
    }
コード例 #3
0
    public byte[] SearchOutstanding(byte[] loginTicket, string invoiceNo, string customer, DateTime dateFrom, DateTime dateTo, DateTime dateEnd, string outstandingType)
    {
        Loginer   loginer = WebServiceSecurity.ValidateLoginer(loginTicket);
        DataTable data    = new dalCommon(loginer).SearchOutstanding(invoiceNo, customer, dateFrom, dateTo, dateEnd, outstandingType);

        return(ZipTools.CompressionDataSet(ServerLibrary.TableToDataSet(data)));
    }
コード例 #4
0
    public byte[] GetLogFieldDef(byte[] loginTicket, string tableName)
    {
        Loginer loginer = WebServiceSecurity.ValidateLoginer(loginTicket);

        DataTable data = new dalEditLogHistory(loginer).GetLogFieldDef(tableName);

        return(ZipTools.CompressionDataSet(ServerLibrary.TableToDataSet(data)));
    }
コード例 #5
0
    public byte[] IC_GetSummaryByParam(byte[] loginTicket, string DocNoFrom, string DocNoTo, DateTime docDateFrom, DateTime docDateTo)
    {
        Loginer loginer = WebServiceSecurity.ValidateLoginer(loginTicket);

        DataTable data = new dalIC(loginer).GetSummaryByParam(DocNoFrom, DocNoTo, docDateFrom, docDateTo);

        return(ZipTools.CompressionDataSet(ServerLibrary.TableToDataSet(data)));
    }
コード例 #6
0
    public byte[] GetCustomerByAttributeCodes(byte[] loginTicket, string attributeCodes, bool nameWithCode)
    {
        Loginer loginer = WebServiceSecurity.ValidateLoginer(loginTicket);

        DataTable data = new dalCustomer(loginer).GetCustomerByAttributeCodes(attributeCodes, nameWithCode);

        return(ZipTools.CompressionObject(ServerLibrary.TableToDataSet(data)));
    }
コード例 #7
0
    //模糊查询
    public byte[] FuzzySearchCustomerByAttributes(byte[] loginTicket, string attributeCodes, string content)
    {
        Loginer loginer = WebServiceSecurity.ValidateLoginer(loginTicket);

        DataTable data = new dalCustomer(loginer).FuzzySearch(attributeCodes, content);

        return(ZipTools.CompressionObject(ServerLibrary.TableToDataSet(data)));
    }
コード例 #8
0
    public byte[] SearchCommonType(byte[] loginTicket, int dataType)
    {
        Loginer loginer = WebServiceSecurity.ValidateLoginer(loginTicket);

        DataTable data = new dalCommonDataDict(loginer).SearchBy(dataType);

        return(ZipTools.CompressionDataSet(ServerLibrary.TableToDataSet(data)));
    }
コード例 #9
0
    public byte[] FuzzySearchCustomer(byte[] loginTicket, string customerFrom, string customerTo, string customerName, string customerAttribute)
    {
        Loginer loginer = WebServiceSecurity.ValidateLoginer(loginTicket);

        DataTable data = new dalCustomer(loginer).SearchBy(customerFrom, customerTo, customerName, customerAttribute);

        return(ZipTools.CompressionObject(ServerLibrary.TableToDataSet(data)));
    }
コード例 #10
0
    public byte[] U_GetUserByNovellID(byte[] loginTicket, string novellAccount)
    {
        Loginer loginer = WebServiceSecurity.ValidateLoginer(loginTicket);

        DataTable data = new dalUser(loginer).GetUserByNovellID(novellAccount);

        return(ZipTools.CompressionObject(ServerLibrary.TableToDataSet(data)));
    }
コード例 #11
0
ファイル: DataDictService.cs プロジェクト: iot369/CSFramework
    public byte[] FuzzySearchProduct(byte[] loginTicket, string content)
    {
        Loginer loginer = WebServiceSecurity.ValidateLoginer(loginTicket);

        DataTable data = new dalProduct(loginer).FuzzySearch(content);

        return(ZipTools.CompressionObject(ServerLibrary.TableToDataSet(data)));
    }
コード例 #12
0
    public byte[] U_GetUserAuthorities(byte[] loginTicket)
    {
        Loginer loginer = WebServiceSecurity.ValidateLoginer(loginTicket);

        DataTable data = new dalUser(loginer).GetUserAuthorities(loginer);

        return(ZipTools.CompressionDataSet(ServerLibrary.TableToDataSet(data)));
    }
コード例 #13
0
    public byte[] GetAttachedFiles(byte[] loginTicket, string docID)
    {
        Loginer loginer = WebServiceSecurity.ValidateLoginer(loginTicket);

        DataTable data = new dalAttachFile(loginer).GetData(docID);

        return(ZipTools.CompressionDataSet(ServerLibrary.TableToDataSet(data)));
    }
コード例 #14
0
    public byte[] GetTableFieldsDef(byte[] loginTicket, string tableName, bool onlyDisplayField)
    {
        Loginer loginer = WebServiceSecurity.ValidateLoginer(loginTicket);

        DataTable data = new dalCommon(loginer).GetTableFieldsDef(tableName, onlyDisplayField);

        return(ZipTools.CompressionDataSet(ServerLibrary.TableToDataSet(data)));
    }
コード例 #15
0
    public byte[] GetModules(byte[] loginTicket)
    {
        Loginer loginer = WebServiceSecurity.ValidateLoginer(loginTicket);

        DataTable data = new dalCommon(loginer).GetModules();

        return(ZipTools.CompressionDataSet(ServerLibrary.TableToDataSet(data)));
    }
コード例 #16
0
    public byte[] GetSummaryData(byte[] loginTicket, string ORM_TypeName)
    {
        Loginer loginer = WebServiceSecurity.ValidateLoginer(loginTicket);

        dalBaseDataDict dict = dalBaseDataDict.CreateDalByORM(loginer, ORM_TypeName);
        DataTable       data = dict.GetSummaryData();

        return(ZipTools.CompressionObject(ServerLibrary.TableToDataSet(data)));
    }
コード例 #17
0
    public byte[] U_GetUserDirect(byte[] validationTicket, string account, string DBName)
    {
        bool pass = WebServiceSecurity.ValidateLoginIdentity(validationTicket);

        //检查校验码成功,有效的登录请求.
        if (pass)
        {
            DataTable dt = new dalUser(null).GetUserDirect(account, DBName);
            return(ZipTools.CompressionDataSet(ServerLibrary.TableToDataSet(dt)));
        }
        else
        {
            return(null);
        }
    }
コード例 #18
0
    public byte[] GetSystemDataSet(byte[] validationTicket)
    {
        bool pass = WebServiceSecurity.ValidateLoginIdentity(validationTicket);

        //检查校验码成功,有效的登录请求.
        if (pass)
        {
            DataTable data = new dalCommon(null).GetSystemDataSet();
            return(ZipTools.CompressionDataSet(ServerLibrary.TableToDataSet(data)));
        }
        else
        {
            return(null);
        }
    }
コード例 #19
0
    public byte[] GetDataDictByTableName(byte[] loginTicket, string tableName)
    {
        try
        {
            Loginer loginer = WebServiceSecurity.ValidateLoginer(loginTicket);

            dalBaseDataDict dict = new dalBaseDataDict(loginer, tableName);
            DataTable       data = dict.GetSummaryData();
            return(ZipTools.CompressionObject(ServerLibrary.TableToDataSet(data)));
        }
        catch (Exception ex)
        {
            throw new FaultException(ex.Message);;
        }
    }
コード例 #20
0
    public byte[] U_Login(byte[] validationTicket, byte[] loginUser, char LoginUserType)
    {
        bool pass = WebServiceSecurity.ValidateLoginIdentity(validationTicket);

        //检查校验码成功,有效的登录请求.
        if (pass)
        {
            LoginUser userInfo = ZipTools.DecompressionObject(loginUser) as LoginUser;
            DataTable dt       = new dalUser(null).Login(userInfo, LoginUserType);
            return(ZipTools.CompressionDataSet(ServerLibrary.TableToDataSet(dt)));
        }
        else
        {
            return(null);
        }
    }