public void InitElement()
        {
            ObjMailElement  ome;
            ObjAdminElement oae;

            m_bAutoStart     = true;
            m_bStatusDisplay = true;
            m_dIntervalSec   = 60;
            m_bAdminSend     = true;
            m_bLogSave       = true;

            m_sServerMail     = "*****@*****.**";
            m_sServerPassWord = "******";
            m_sServerName     = "自動送信メール";
            m_sServerHostName = "sv58.wadax.ne.jp";
            m_nServerPortNo   = 587;
            m_bServerSsl      = true;

            m_sArrivalSubject = "[受信者名]様へ到着のご案内";
            m_sArrivalBody    = "[受信者名]様へ\n[ユーザ名]さんは[西暦年月日]に教室に到着しました\n";
            m_sRetHomeSubject = "[受信者名]様へ帰宅のご案内";
            m_sRetHomeBody    = "[受信者名]様へ\n[ユーザ名]さんは[西暦年月日]に帰宅しました\n";

            oae         = new ObjAdminElement();
            oae.m_sName = "管理者 太郎";
            oae.m_sMail = "*****@*****.**";
            m_lstAdminElement.Add(oae);
        }
Exemple #2
0
        public List <ObjAdminElement> LoadAdminElement(string sLoadFileName)
        {
            List <ObjAdminElement> lst;
            string sData;

            string[] aryLine;
            int      max, idx;

            string[]        aryClm;
            ObjAdminElement oae;

            sData = m_libCmn.LoadFileSJIS(sLoadFileName);
            if (sData == "")
            {
                return(null);
            }
            sData   = sData.Replace("\r\n", "\n");
            aryLine = sData.Split('\n');
            lst     = new List <ObjAdminElement>();
            max     = aryLine.Length;
            for (idx = 0; idx < max; idx++)
            {
                if (aryLine[idx] == "")
                {
                    break;
                }
                aryClm      = aryLine[idx].Split(',');
                oae         = new ObjAdminElement();
                oae.m_sName = aryClm[0];
                oae.m_sMail = aryClm[1];
                lst.Add(oae);
            }
            return(lst);
        }
Exemple #3
0
        private List <ObjAdminElement> GetDataGrid()
        {
            List <ObjAdminElement> lst;
            int             max, idx;
            DataRow         drItem;
            ObjAdminElement oae;

            lst = new List <ObjAdminElement>();
            max = m_dt.Rows.Count;
            for (idx = 0; idx < max; idx++)
            {
                drItem      = m_dt.Rows[idx];
                oae         = new ObjAdminElement();
                oae.m_sName = drItem["col_name"] as string;
                oae.m_sMail = drItem["col_mail"] as string;
                lst.Add(oae);
            }
            return(lst);
        }