コード例 #1
0
ファイル: frm지출현황.cs プロジェクト: munsejin/MES
        private void frm지출현황_Load(object sender, EventArgs e)
        {
            lbl_title.Tag = wnDm.fn_TitleName(this.Name.ToString()).Split('$')[0] + "$" + wnDm.fn_TitleName(this.Name.ToString()).Split('$')[1]; lbl_title.Text = wnDm.fn_TitleName(this.Name.ToString()).Split('$')[2];

            start_date.Text = DateTime.Today.AddMonths(-1).ToString("yyyy-MM-dd");
            end_date.Text   = DateTime.Today.ToString("yyyy-MM-dd");

            ComInfo comInfo = new ComInfo();


            string sqlQuery = "";

            cmb_accu.ValueMember   = "코드";
            cmb_accu.DisplayMember = "명칭";
            sqlQuery = comInfo.queryAccu();
            wConst.ComboBox_Read_ALL(cmb_accu, sqlQuery);
        }
コード例 #2
0
ファイル: frm지출등록.cs プロジェクト: munsejin/MES
        private void init_ComboBox()
        {
            string sqlQuery = "";

            //계정 콤보

            //사원 콤보1

            //사원 콤보2
            cmb_staff.ValueMember   = "코드";
            cmb_staff.DisplayMember = "명칭";
            sqlQuery = comInfo.queryStaff();
            wConst.ComboBox_Read_Blank(cmb_staff, sqlQuery);

            ID.ValueMember   = "코드";
            ID.DisplayMember = "명칭";
            sqlQuery         = comInfo.queryAccu();
            wConst.GridComboBox_Read_Blank(ID, sqlQuery);

            GUBUN.ValueMember   = "코드";
            GUBUN.DisplayMember = "명칭";
            sqlQuery            = comInfo.querySooGubun();
            wConst.GridComboBox_Read_Blank(GUBUN, sqlQuery);
        }