Ejemplo n.º 1
0
 public void SetMainWindow(MainWindow wnd)
 {
     m_wndMain   = wnd;
     m_wndHanbai = null;
     m_sExecPath = m_wndMain.m_sExecPath;
     m_libCmn    = m_wndMain.m_libCmn;
     m_libOdbc   = m_wndMain.m_libOdbc;
 }
Ejemplo n.º 2
0
 public void SetHanbaiWindow(HanbaiWin wnd)
 {
     m_wndMain   = null;
     m_wndHanbai = wnd;
     m_sExecPath = m_wndHanbai.m_sExecPath;
     m_libCmn    = m_wndHanbai.m_libCmn;
     m_libOdbc   = m_wndHanbai.m_libOdbc;
 }
Ejemplo n.º 3
0
        private void showHanbaiWin()
        {
            int       max, idx;
            DataRow   dataRow;
            HanbaiWin hanbaiWin;
            string    sRecs;
            int       nId;

            if (m_nHanbaiSlctIdx == -1)
            {
                MessageBox.Show("データが選択されていません。", "確認", MessageBoxButton.OK);
                return;
            }
            max   = m_dt.Rows.Count;
            sRecs = "";
            for (idx = 0; idx < max; idx++)
            {
                if (idx != 0)
                {
                    sRecs = sRecs + ",";
                }
                dataRow = m_dt.Rows[idx];
                sRecs   = sRecs + dataRow["col_id"].ToString();
            }
            dataRow   = m_dt.Rows[m_nHanbaiSlctIdx];
            nId       = m_libCmn.StrToInt(dataRow["col_id"].ToString());
            hanbaiWin = new HanbaiWin();
            hanbaiWin.SetMainWindow(this);
            hanbaiWin.SetRecsCsv(sRecs);
            hanbaiWin.SetSelectCrtId(nId);
            Point pt = this.PointToScreen(new Point(0.0d, 0.0d));

            hanbaiWin.Left  = pt.X;
            hanbaiWin.Top   = pt.Y;
            hanbaiWin.Owner = this;
            hanbaiWin.ShowDialog();
        }
Ejemplo n.º 4
0
 public void SetHanbaiWindow(HanbaiWin wnd)
 {
     m_wndMain   = null;
     m_wndHanbai = wnd;
 }
Ejemplo n.º 5
0
 public void SetMainWindow(MainWindow wnd)
 {
     m_wndMain   = wnd;
     m_wndHanbai = null;
 }