Beispiel #1
0
        //根据超时 时间 发送短信给 操作员和公司负责人
        private void sendNetOKStatusMsg(string time)
        {
            MechineUtil.updateMechineStatus(id, "0");
            DataTable da = getJiQiDetail();

            if (da != null && da.Rows.Count > 0)
            {
                string operaID   = da.Rows[0]["dls"].ToString();
                string companyID = da.Rows[0]["companyID"].ToString();

                string companyPhone = getCompanyPhone(companyID);
                string operaPhone   = getOperaPhone(operaID);
                if (!string.IsNullOrEmpty(companyPhone))
                {
                    Util.log(id + "time:{" + time + "},发送重连成功短信", id + "jiQiOutTime.txt");
                    OperUtil.sendMessage2(companyPhone, name, ((int)(int.Parse(time) / 60)).ToString());
                }
                if (!string.IsNullOrEmpty(operaPhone))
                {
                    Util.log(id + "time:{" + time + "},发送重连成功短信", id + "jiQiOutTime.txt");
                    OperUtil.sendMessage2(operaPhone, name, ((int)(int.Parse(time) / 60)).ToString());
                }
            }
        }