Exemple #1
0
        public void initClsCardList()
        {
            string sEnvCardPath;
            string sExt;

            string[] sLine;
            int      idx;
            ClsCard  clsCard;

            m_nCardIdx = -1;

            sEnvCardPath = m_sEnvPath + "\\card";
            string[] files = System.IO.Directory.GetFiles(sEnvCardPath);

            foreach (string sFileName in files)
            {
                sExt = System.IO.Path.GetExtension(sFileName);
                if (sExt == ".txt")
                {
                    sLine = m_libCmn.LoadFileLineSJIS(sFileName);
                    if (11 <= sLine.Length && sLine[0] != "NON")
                    {
                        idx = searchCardIdx(sLine[1]);
                        if (idx == -1)
                        {
                            clsCard = new ClsCard();
                            clsCard.m_sCondition = sLine[0];
                            clsCard.m_sSetNo     = sLine[1];
                            clsCard.m_sIP        = sLine[2];
                            clsCard.m_sSyoNo     = sLine[3];
                            clsCard.m_sSyoName   = sLine[4];
                            clsCard.m_sAddress1  = sLine[5];
                            clsCard.m_sAddress2  = sLine[6];
                            clsCard.m_sTel1      = sLine[7];
                            clsCard.m_sTel2      = sLine[8];
                            clsCard.m_sName      = sLine[9];
                            clsCard.m_sBikou     = sLine[10];
                            clsCard.m_sStat      = sLine[11];
                            m_lstClsCard.Add(clsCard);
                        }
                        else
                        {
                            m_lstClsCard[idx].m_sCondition = sLine[0];
                            m_lstClsCard[idx].m_sSetNo     = sLine[1];
                            m_lstClsCard[idx].m_sIP        = sLine[2];
                            m_lstClsCard[idx].m_sSyoNo     = sLine[3];
                            m_lstClsCard[idx].m_sSyoName   = sLine[4];
                            m_lstClsCard[idx].m_sAddress1  = sLine[5];
                            m_lstClsCard[idx].m_sAddress2  = sLine[6];
                            m_lstClsCard[idx].m_sTel1      = sLine[7];
                            m_lstClsCard[idx].m_sTel2      = sLine[8];
                            m_lstClsCard[idx].m_sName      = sLine[9];
                            m_lstClsCard[idx].m_sBikou     = sLine[10];
                        }
                    }
                }
            }
        }
Exemple #2
0
 public void copySetElement(ClsCard clsCard)
 {
     m_sSetNo    = clsCard.m_sSetNo;
     m_sIP       = clsCard.m_sIP;
     m_sSyoNo    = clsCard.m_sSyoNo;
     m_sAddress1 = clsCard.m_sAddress1;
     m_sAddress2 = clsCard.m_sAddress2;
     m_sTel1     = clsCard.m_sTel1;
     m_sTel2     = clsCard.m_sTel2;
     m_sName     = clsCard.m_sName;
     m_sBikou    = clsCard.m_sBikou;
 }
Exemple #3
0
 public void SetClsCard(ClsCard clsCard)
 {
     m_clsCard = clsCard;
 }