Ejemplo n.º 1
0
        private void setHanbaiSeikyuElement(string[] sAry)
        {
            int    nSeikyuId;
            string sSeikyuFilds;

            string[] ary;

            nSeikyuId = m_libCmn.StrToInt(sAry[3]);
            if (nSeikyuId == 0)
            {
                m_nCrtSasidasininId  = 1;
                m_nCrtFurikomisakiId = 1;
            }
            else
            {
                sSeikyuFilds         = m_libOdbc.getSeikyuRecord(nSeikyuId);
                ary                  = sSeikyuFilds.Split(',');
                m_nCrtSasidasininId  = m_libCmn.StrToInt(ary[4]);
                m_nCrtFurikomisakiId = m_libCmn.StrToInt(ary[5]);
            }
            txtBangou.Text   = m_sSGSeikyuno;
            txtBunsyou1.Text = loadFileBunsyou1();
            txtBunsyou2.Text = loadFileBunsyou2();

            txtSeikyuusaki.Text = sAry[14] + " " + sAry[15] + " " + sAry[23];

            m_sSasidasininFilds = m_libOdbc.getSasidasininRecord(m_nCrtSasidasininId);
            if (m_sSasidasininFilds != null && m_sSasidasininFilds != "")
            {
                ary = m_sSasidasininFilds.Split(',');
                txtSasidasinin.Text = ary[1] + " " + ary[2];
            }
            else
            {
                m_sSasidasininFilds = "";
            }


            m_sFurikomisakiFilds = m_libOdbc.getFurikomisakiRecord(m_nCrtFurikomisakiId);
            if (m_sFurikomisakiFilds != null && m_sFurikomisakiFilds != "")
            {
                ary = m_sFurikomisakiFilds.Split(',');
                txtFurikomisaki.Text = ary[1] + " " + ary[2] + " " + ary[3] + " No." + ary[4] + " " + ary[5] + " " + ary[6];
            }
            else
            {
                m_sFurikomisakiFilds = "";
            }
        }