Exemple #1
0
    public DataSet GetReferencesSites(int nIdSession)
    {
        C2iSessionWeb session = GetSessionWeb(nIdSession);

        if (session == null)
        {
            return(null);
        }
        return(CInventoryConvertor.GetListeSitesPourReferences(session));
    }
Exemple #2
0
    public DataSet GetEquipments(int nIdSession, int nIdSiteContenant)
    {
        C2iSessionWeb session = GetSessionWeb(nIdSession);

        if (session == null)
        {
            return(null);
        }
        return(CInventoryConvertor.GetEquipments(session, nIdSiteContenant));
    }
Exemple #3
0
    public DataSet GetSites(int nIdSession, int[] nIdSites)
    {
        C2iSessionWeb session = GetSessionWeb(nIdSession);

        if (session == null)
        {
            return(null);
        }
        return(CInventoryConvertor.GetSites(session, nIdSites));
    }
Exemple #4
0
    public bool SendSurvey(int nIdSession, DataSet ds)
    {
        C2iSessionInventaire session = GetSessionWeb(nIdSession) as C2iSessionInventaire;

        if (session == null)
        {
            return(false);
        }
        CMemoryDb      db     = CMemoryDb.FromDataSet(ds);
        CResultAErreur result = CInventoryConvertor.IntegreReleves(session, db);

        return(result.Result);
    }
Exemple #5
0
    public DataSet GetBaseConfig(int nIdSession)
    {
        C2iSessionWeb session = GetSessionWeb(nIdSession);

        if (session == null)
        {
            return(null);
        }
        using (CContexteDonnee ctx = new CContexteDonnee(session.Session.IdSession, true, false))
        {
            CMemoryDb db = new CMemoryDb();
            CInventoryConvertor.AddStaticDatas(ctx, db);
            return(db);
        }
    }