示例#1
0
        static void testAKAlarm()
        {
            List <SensorHub.Model.AKFSHJInfo> fshjs = new List <AKFSHJInfo>();

            SensorHub.Model.AKFSHJInfo fs = new AKFSHJInfo();
            fs.UnderWaterIn1 = 1 + "";
            fs.UnderWaterIn2 = 1 + "";
            fs.UnderWaterIn3 = 1 + "";
            fs.UnderWaterIn4 = 1 + "";
            fs.UnderWaterIn5 = 1 + "";
            fs.UnderWaterIn6 = 1 + "";

            fs.UnderVo11 = 2 + "";
            fs.UnderVo12 = 2 + "";
            fs.UnderVo13 = 2 + "";
            fs.UnderVo14 = 2 + "";
            fs.UnderVo15 = 2 + "";
            fs.UnderVo16 = 2 + "";

            fs.OutterTemp1 = 20 + "";
            fs.OutterTemp2 = 20 + "";
            fs.UnderTemp1  = 25 + "";
            fs.UnderTemp2  = 25 + "";
            fs.Cell        = 100 + "";
            fs.LogTime     = DateTime.Now;
            fs.UpTime      = DateTime.Now;

            fs.DEVCODE = "fushi003";

            fshjs.Add(fs);
            new SensorHub.BLL.AKFSHJ().insert(fshjs);
            String pipeType = new SensorHub.BLL.AKFSHJ().getHeatPipeTypeByDevCode("212016090006");

            new SensorHub.BLL.AKFSHJ().saveAlarmInfo(fshjs, pipeType);

            List <SensorHub.Model.AKFSSLInfo> fssls = new List <AKFSSLInfo>();

            SensorHub.Model.AKFSSLInfo sl = new AKFSSLInfo();

            sl.ErrosionRat = 0.5 + "";
            sl.JhResist    = "100";
            sl.RyResist    = "200";
            sl.OpenCir     = "123";
            sl.CurrentDen  = "123";
            sl.Cell        = 100 + "";
            sl.LogTime     = DateTime.Now;
            sl.UpTime      = DateTime.Now;
            sl.DEVCODE     = "fushi001";
            fssls.Add(sl);
            new SensorHub.BLL.AKFSSL().insert(fssls);
            new SensorHub.BLL.AKFSSL().saveAlarmInfo(fssls);
        }
示例#2
0
        static void testAK()
        {
            List <SensorHub.Model.AKFSHJInfo> fshjs = new List <AKFSHJInfo>();

            SensorHub.Model.AKFSHJInfo fs = new AKFSHJInfo();
            fs.UnderWaterIn1 = 1 + "";
            fs.UnderWaterIn2 = 1 + "";
            fs.UnderWaterIn3 = 1 + "";
            fs.UnderWaterIn4 = 1 + "";
            fs.UnderWaterIn5 = 1 + "";
            fs.UnderWaterIn6 = 1 + "";

            fs.UnderVo11 = 2 + "";
            fs.UnderVo12 = 2 + "";
            fs.UnderVo13 = 2 + "";
            fs.UnderVo14 = 2 + "";
            fs.UnderVo15 = 2 + "";
            fs.UnderVo16 = 2 + "";

            fs.OutterTemp1 = 20 + "";
            fs.OutterTemp2 = 20 + "";
            fs.UnderTemp1  = 25 + "";
            fs.UnderTemp2  = 25 + "";
            fs.Cell        = 100 + "";
            fs.LogTime     = DateTime.Now;
            fs.UpTime      = DateTime.Now;

            fs.DEVCODE = "123456";

            fshjs.Add(fs);
            new SensorHub.BLL.AKFSHJ().insert(fshjs);

            List <SensorHub.Model.AKFSSLInfo> fssls = new List <AKFSSLInfo>();

            SensorHub.Model.AKFSSLInfo sl = new AKFSSLInfo();

            sl.ErrosionRat = 0.5 + "";
            sl.JhResist    = "100";
            sl.RyResist    = "200";
            sl.OpenCir     = "123";
            sl.CurrentDen  = "123";
            sl.Cell        = 100 + "";
            sl.LogTime     = DateTime.Now;
            sl.UpTime      = DateTime.Now;
            sl.DEVCODE     = "234567";
            fssls.Add(sl);
            new SensorHub.BLL.AKFSSL().insert(fssls);
        }