Ejemplo n.º 1
0
        public void Test_Delete_Insert_GetHistDPGrp()
        {
            string histDPGrpName = "unitTest_histDPGrp";

            histDataPointDAO.DeleteAllHistDPInGrp(histDPGrpName);

            List <EtyHistDataPoint> histDPList = new List <EtyHistDataPoint>();
            EtyHistDataPoint        dp1        = new EtyHistDataPoint();
            EtyHistDataPoint        dp2        = new EtyHistDataPoint();

            dp1.DPName    = "histDP1";
            dp2.DPName    = "histDP2";
            dp1.EntityKey = 1;
            dp2.DPColor   = Color.Red.ToArgb().ToString();
            dp2.DPLblName = "lbl1";
            dp2.DPServer  = TestDBInit.OPCSERVER_NAME;
            dp2.DPHost    = TestDBInit.HOST_NAME;
            histDPList.Add(dp1);
            histDPList.Add(dp2);

            // histDataPointDAO.InsertHistDPListToGrp(histDPList, histDPGrpName);
            histDataPointDAO.SaveHistDPListToGrp(histDPList, histDPGrpName);

            histDataPointDAO.GetHistDPByCfgName(histDPGrpName);
        }
        public List <EtyHistDataPoint> GetHistDListByGrp(string grpName)
        {
            HistDataPointDAO dpDAO = new HistDataPointDAO();

            return(dpDAO.GetHistDPByCfgName(grpName));
        }