Пример #1
0
        public static string Msg(string site, int bytes, int bit)
        {
            TempTest  sqlconn = new TempTest();
            DataTable dt      = sqlconn.Query("select * from PLC_Msg where site='" + site + "',byte=" + bytes + ",bit=" + bit + "").Tables[0];

            if (dt.Rows.Count > 0)
            {
                return(dt.Rows[0]["message"].ToString());
            }
            else
            {
                return(string.Empty);
            }
        }
Пример #2
0
 public TempTestController(TempTest view)
 {
     model                = new TempTestModel();
     this.view            = view;
     this.view.controller = this;
 }