Example #1
0
        protected override void InitPaint()
        {
            base.InitPaint();

            Grant.CanDelete = false;
            Grant.CanAdd    = false;
            Grant.CanPrint  = false;

            DateTime time = Global.MainFrame.GetDateTimeToday();

            toyear = time.ToString("yyyy") + "0101";

            dt일자.StartDate = DateTime.ParseExact(toyear, "yyyyMMdd", System.Globalization.CultureInfo.InvariantCulture);
            dt일자.EndDate   = DateTime.ParseExact(toyear, "yyyyMMdd", System.Globalization.CultureInfo.InvariantCulture);

            //콤보박스 셋팅
            //DataTable dt계정코드 = _biz.Get계정코드();
            //_flexM.SetDataMap("CD_ACCT", dt계정코드.Copy(), "CODE", "NAME");
            _flexM.SetDataMap("ME_TRADE_TYPE", MA.GetCode("CZ_ME_C004"), "CODE", "NAME");
            //_flexM.SetDataMap("ME_TRADE_TYPE", MA.GetCode("CZ_ME_C004"), "CODE", "NAME");

            btn전표처리.Click += new EventHandler(btn전표처리_Click);
            btn전표삭제.Click += new EventHandler(btn전표삭제_Click);

            rdo전체.CheckedChanged  += new EventHandler(radioButton_CheckedChanged);
            rdo미처리.CheckedChanged += new EventHandler(radioButton_CheckedChanged);
            rdo처리.CheckedChanged  += new EventHandler(radioButton_CheckedChanged);
            rdo변경.CheckedChanged  += new EventHandler(radioButton_CheckedChanged);
            rdo수기.CheckedChanged  += new EventHandler(radioButton_CheckedChanged);

            rdo_idx = "전체";
        }
Example #2
0
        protected override void InitPaint()
        {
            base.InitPaint();

            try
            {
                //콤보박스 셋팅
                _flexM.SetDataMap("CD_ACCT", MA.GetCode("CZ_ME_C008"), "CODE", "NAME");

                //상세검색창
                foreach (Form openForm in Application.OpenForms)
                {
                    if (openForm.Name == "P_CZ_ME_SALES_SUB") // 열린 폼의 이름 검사
                    {
                        openForm.Activate();
                        return;
                    }
                }

                P_CZ_ME_SALES_SUB sub = new P_CZ_ME_SALES_SUB();                //WinForm 생성
                sub.TextSendEvent += new P_CZ_ME_SALES_SUB.Form2_EventHandler(frm2_getTextEvent);
                sub.Show();
            }
            catch (Exception ex)
            {
                this.MsgEnd(ex);
            }
        }
Example #3
0
        protected override void InitPaint()
        {
            base.InitPaint();

            // 추가할 필요가 없으므로 false 처리
            Grant.CanAdd = false;

            // 사업자 정보 탭 일 때 매체 조회조건을 enabled false 시킨다.
            txt명.Enabled = false;

            조회조건체크(true);

            // 처음 페이지 열면 탭이 사업자 정보이므로
            tab_index = "0";

            // 콤보박스 셋팅 부분
            _flexM_T1.SetDataMap("grade", MA.GetCode("CZ_ME_C002"), "CODE", "NAME");
            _flexD_T1.SetDataMap("corpflag", MA.GetCode("CZ_ME_C001"), "CODE", "NAME");
            _flexM_T2.SetDataMap("corpflag", MA.GetCode("CZ_ME_C001"), "CODE", "NAME");
            _flexM_T3.SetDataMap("corpflag", MA.GetCode("CZ_ME_C001"), "CODE", "NAME");
            _flexM_T4.SetDataMap("corpflag", MA.GetCode("CZ_ME_C001"), "CODE", "NAME");
            _flexM_T5.SetDataMap("corpflag", MA.GetCode("CZ_ME_C001"), "CODE", "NAME");

            //DataTable dt매체구분 = _biz.Get매체구분();
            //_flexM_T2.SetDataMap("cd_mediagr", dt매체구분.Copy(), "CODE", "NAME");
            _flexM_T2.SetDataMap("me_type", MA.GetCode("CZ_ME_C007", true), "CODE", "NAME");
            _flexM_T2.SetDataMap("me_attr", MA.GetCode("CZ_ME_C006", true), "CODE", "NAME");

            this.DataChanged += new EventHandler(Page_DataChanged);

            if (rdoDz2.Checked == true)
            {
                rdo_index = "1";
            }
            else if (rdoDz3.Checked == true)
            {
                rdo_index = "2";
            }
            else
            {
                rdo_index = "0";
            }

            if (rdoYn2.Checked == true)
            {
                rdo_yn = "Y";
            }
            else if (rdoYn3.Checked == true)
            {
                rdo_yn = "N";
            }
            else
            {
                rdo_yn = "";
            }
        }
Example #4
0
        protected override void InitPaint()
        {
            base.InitPaint();

            //Grant.CanDelete = false;
            //Grant.CanAdd = false;
            //Grant.CanPrint = false;

            DateTime time = this.MainFrameInterface.GetDateTimeToday(); // 오늘 날짜

            today  = time.ToString("yyyMMdd");
            toyear = today.Substring(0, 4);

            dp년도.Text = toyear;

            //체크박스 value 값 가져와서 조회하기 위해서
            rdo_idx = rdo컷.Checked == true ? "4" : "3";

            //콤보박스 셋팅
            //DataTable dt계정코드 = _biz.Get계정코드();
            //_flexM.SetDataMap("CD_ACCT", dt계정코드.Copy(), "CODE", "NAME");
            _flexM.SetDataMap("CD_ACCT", MA.GetCode("CZ_ME_C008"), "CODE", "NAME");
            _flexM.SetDataMap("TP_SALES", MA.GetCode("CZ_ME_C005"), "CODE", "NAME");
            _flexM.SetDataMap("AY_TRADE_TYPE", MA.GetCode("CZ_ME_C004"), "CODE", "NAME");
            _flexM.SetDataMap("ME_TRADE_TYPE", MA.GetCode("CZ_ME_C004"), "CODE", "NAME");

            //페이지 오픈 시 조회할 수 있도록 처리
            object[] Params = new object[5];
            Params[0] = LoginInfo.CompanyCode;
            Params[1] = "SELECT";
            Params[2] = dp년도.Text;
            Params[3] = rdo_idx;
            Params[4] = txt캠페인명.Text;
            DataSet ds = _biz.Search_M(Params);

            _flexM.Binding = ds.Tables[0];

            //페이지 로드 시 첫번 컷오프이므로 해당 컬럼 들 editing false 설정
            _flexM.Cols["NM_CPID"].AllowEditing       = false;
            _flexM.Cols["AY_YEAR_MONTH"].AllowEditing = false;
            _flexM.Cols["ME_YEAR_MONTH"].AllowEditing = false;
        }
Example #5
0
        public override void OnToolBarSearchButtonClicked(object sender, EventArgs e)
        {
            try
            {
                if (rdoDz2.Checked == true)
                {
                    rdo_index = "1";
                }
                else if (rdoDz3.Checked == true)
                {
                    rdo_index = "2";
                }
                else
                {
                    rdo_index = "0";
                }

                if (rdoYn2.Checked == true)
                {
                    rdo_yn = "Y";
                }
                else if (rdoYn3.Checked == true)
                {
                    rdo_yn = "N";
                }
                else
                {
                    rdo_yn = "";
                }

                object[] Params = new object[6];
                Params[0] = LoginInfo.CompanyCode;

                switch (tab_index)
                {
                case "0":

                    Params[1] = "MT1";
                    Params[2] = "";
                    Params[3] = txt사업자.Text;
                    Params[4] = rdo_index;
                    Params[5] = rdo_yn;

                    DataSet ds_mt1 = _biz.Search_T1(Params);

                    _flexM_T1.Binding = ds_mt1.Tables[0];

                    break;

                case "1":

                    Params[1] = "MT2";
                    Params[2] = txt사업자.Text;
                    Params[3] = "4";
                    Params[4] = txt명.Text;
                    Params[5] = rdo_yn;

                    DataSet ds_mt2 = _biz.Search_T2(Params);

                    _flexM_T2.Binding = ds_mt2.Tables[0];

                    _flexM_T2.SetDataMap("me_type", MA.GetCode("CZ_ME_C007", true), "CODE", "NAME");

                    SetToolBarButtonState(true, false, false, false, true);
                    break;

                case "2":

                    Params[1] = "MT2";
                    Params[2] = txt사업자.Text;
                    Params[3] = "2";
                    Params[4] = txt명.Text;
                    Params[5] = rdo_yn;

                    DataSet ds_mt3 = _biz.Search_T2(Params);

                    _flexM_T3.Binding = ds_mt3.Tables[0];

                    break;

                case "3":

                    Params[1] = "MT2";
                    Params[2] = txt사업자.Text;
                    Params[3] = "3";
                    Params[4] = txt명.Text;
                    Params[5] = rdo_yn;

                    DataSet ds_mt4 = _biz.Search_T2(Params);

                    _flexM_T4.Binding = ds_mt4.Tables[0];

                    break;

                case "4":

                    Params[1] = "MT2";
                    Params[2] = txt사업자.Text;
                    Params[3] = "1";
                    Params[4] = txt명.Text;
                    Params[5] = rdo_yn;

                    DataSet ds_mt5 = _biz.Search_T2(Params);

                    _flexM_T5.Binding = ds_mt5.Tables[0];

                    break;
                }
            }
            catch (Exception ex)
            {
                this.MsgEnd(ex);
            }
        }