public byte[] IC_GetBusinessByKey(byte[] loginTicket, string keyValue)
    {
        Loginer loginer = WebServiceSecurity.ValidateLoginer(loginTicket);

        DataSet data = new dalIC(loginer).GetBusinessByKey(keyValue);

        return(ZipTools.CompressionDataSet(data));
    }
    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)));
    }
    public byte[] IC_Update(byte[] loginTicket, byte[] saveData)
    {
        try
        {
            Loginer loginer = WebServiceSecurity.ValidateLoginer(loginTicket);

            DataSet    ds     = ZipTools.DecompressionDataSet(saveData);
            SaveResult result = new dalIC(loginer).Update(ds);
            return(ZipTools.CompressionObject(result));
        }
        catch (Exception ex)
        {
            throw new FaultException(ex.Message);
        }
    }