Example #1
0
        public string Exec()
        {
            int    resultnum;
            string reason;
            int    status;
            string wechatid;
            string alarmcontent;

            Pro_IndateBase_ZHMJ_Dal.Exec(this.Info, out resultnum, out reason, out status, out wechatid, out alarmcontent);

            if (resultnum == 0)
            {
                if (status == 1)
                {
                    Alert_Bll.Alert_Mod am = new Alert_Bll.Alert_Mod();
                    am.ProtocolType = Info.pi_protocoltype;
                    am.DeviceTime   = Info.pi_devicetime;
                    am.AlarmContent = alarmcontent;
                    am.Reason       = reason;
                    am.WechatId     = wechatid;
                    Alert_Bll a = new Alert_Bll(am);
                    return(a.handle());
                }
                else
                {
                    return("0");
                }
            }
            else
            {
                return(reason);
            }
        }
        public string Exec()
        {
            int    resultnum;
            string reason;
            string wechatid;
            string alarmcontent;

            Pro_UploadAlarm_Dal.Exec(Info, out resultnum, out reason, out wechatid, out alarmcontent);
            if (resultnum == 1)
            {
                Alert_Bll.Alert_Mod am = new Alert_Bll.Alert_Mod();
                am.ProtocolType = Info.pi_protocoltype;
                am.DeviceTime   = Info.pi_devicetime;
                am.AlarmContent = alarmcontent;
                am.Reason       = reason;
                am.WechatId     = wechatid;
                Alert_Bll a = new Alert_Bll(am);
                return(a.handle());
            }
            else
            {
                return(reason);
            }
        }