public void setSougiSeikyuWin(SougiSeikyuWin wnd)
 {
     m_wnd       = wnd;
     m_sExecPath = m_wnd.m_sExecPath;
     m_libCmn    = m_wnd.m_libCmn;
     m_libCanvas = m_wnd.m_libCanvas;
     m_libOdbc   = m_wnd.m_libOdbc;
 }
Beispiel #2
0
 public void SetMainWindow(MainWindow wnd)
 {
     m_wnd       = wnd;
     m_sExecPath = m_wnd.m_sExecPath;
     m_libCmn    = m_wnd.m_libCmn;
     m_libCanvas = m_wnd.m_libCanvas;
     m_libOdbc   = m_wnd.m_libOdbc;
 }
        public MainWindow()
        {
            InitializeComponent();
            m_dTaxPar    = 8.0;
            m_sExecPath  = InitExePath();
            m_sCondition = "";
            m_sOder      = "";
            m_libCmn     = new LibCommon();
            m_libCanvas  = new LibCanvas();
            m_libOdbc    = new LibOdbc();
            m_libOdbc.setLibCommonClass(m_libCmn);
            m_libOdbc.setExecPath(m_sExecPath);
            m_libPost = new LibPost();
            m_libPost.InitPostList(m_sExecPath + "\\kden");
            App.m_sExecPath = m_sExecPath;
            m_lstSouke      = new List <string>();
            m_lstKokubetu   = new List <string>();

            //initKdenDB();
        }
Beispiel #4
0
        public void SetMainWindowElement(MainWindow wnd, string sDenpyou, List <string> lstHanbai)
        {
            string[] ary;
            int      max, idx;
            hanbai   hanbai;

            m_wnd       = wnd;
            m_sExecPath = m_wnd.m_sExecPath;
            m_libCmn    = m_wnd.m_libCmn;
            m_libCanvas = m_wnd.m_libCanvas;

            InitCommandString();

            ary         = sDenpyou.Split(',');
            m_sName     = ary[1];
            m_sSouke    = ary[3];
            m_sTuya     = ary[4];
            m_sKokubetu = ary[5];
            m_sSekou    = ary[6];
            m_nSumPrice = m_libCmn.StrToInt(ary[7]);

            m_list = new List <hanbai>();
            max    = lstHanbai.Count;
            for (idx = 0; idx < max; idx++)
            {
                hanbai        = new hanbai();
                ary           = lstHanbai[idx].Split(',');
                hanbai.name   = ary[2];
                hanbai.naiyou = ary[3];
                hanbai.tanka  = m_libCmn.StrToInt(ary[4]);
                hanbai.kosu   = m_libCmn.StrToInt(ary[5]);
                hanbai.price  = m_libCmn.StrToInt(ary[6]);
                hanbai.bikou  = ary[7];
                m_list.Add(hanbai);
            }
        }