コード例 #1
0
ファイル: Manager.cs プロジェクト: 2830499544/JXHW
        bool findZhangHao(string zhangHao)
        {
            ManagerEFModel vManagerEFModel = new ManagerEFModel()
            {
                ZhangHao = zhangHao
            };

            return(m_BasicDBClass.SelectRecordsEx(vManagerEFModel).Length > 0 ? true : false);
        }
コード例 #2
0
ファイル: LEDControl.cs プロジェクト: 2830499544/JXHW
        void getLEDInfo(int watchHouseID, ref string ipAddress, ref int width, ref int height)
        {
            WatchHouseConfigEFModel vWatchHouseConfigEFModel = new WatchHouseConfigEFModel()
            {
                GangTingID = watchHouseID
            };

            WatchHouseConfigEFModel[] vSelectResult = m_BasicDBClass.SelectRecordsEx(vWatchHouseConfigEFModel);
            if (vSelectResult != null && vSelectResult.Length > 0)
            {
                ipAddress = vSelectResult[0].GuanGaoPing1IP;
                width     = vSelectResult[0].GuanGao1Kuang ?? 0;
                height    = vSelectResult[0].GuanGao1Gao ?? 0;
            }
        }
コード例 #3
0
        public bool Login(string UserName, string Password, ref bool GangTing, ref bool DianYuan, ref bool LED)
        {
            bool         vResult       = false;
            AdminEFModel vAdminEFModel = new AdminEFModel()
            {
                ZhangHao = UserName
            };

            AdminEFModel[] AdminEFModel = m_BasicDBClass.SelectRecordsEx(vAdminEFModel);
            if (AdminEFModel != null && AdminEFModel.Length > 0)
            {
                if (AdminEFModel[0].MiMa == Password)
                {
                    vResult  = true;
                    GangTing = AdminEFModel[0].GangTingGZ ?? false;
                    DianYuan = AdminEFModel[0].DianYuanGZ ?? false;
                    LED      = AdminEFModel[0].LEDGongZhi ?? false;
                }
            }
            return(vResult);
        }