Example #1
0
 /// <summary>
 /// 버튼의 이벤트들이 발생된 후 각각의 컨트롤러의 텍스트들을 초기화 해주는 함수
 /// </summary>
 public void MakeEmpty()
 {
     CommonFuction.SetUseYNList(ref cbbUseYN);
     foreach (Control ctrl in groupBox1.Controls)
     {
         if (ctrl is UserControls.MaskTextBox)
         {
             UserControls.MaskTextBox tb = (UserControls.MaskTextBox)ctrl;
             if (tb.ucValue != string.Empty)
             {
                 tb.ucValue = string.Empty;
             }
         }
     }
 }
Example #2
0
        private void VenderTabPageControl_Load(object sender, EventArgs e)
        {
            this.ActiveControl = txtVenderID;
            CommonFuction.SetUseYNList(ref cbbUseYN);

            try
            {
                sql = "SelectVender";
                db.Open();
                Dictionary <string, object> param = new Dictionary <string, object>();
                dtgVenderList.DataSource = db.ExecuteProcedure(sql, param);
                DataGridViewProperties();
            }
            catch (Exception ex)
            {
                LogFactory.Log(ex);
                CustomMessageBox.Show(MessageBoxButtons.OK, "확인", "문제가 발생했습니다.\n 로그를 확인하세요.");
            }
        }
Example #3
0
        private void DurableProdTabPageControl_Load(object sender, EventArgs e)
        {
            this.ActiveControl = txtProdId;
            CommonFuction.SetUseYNList(ref cbbUseYn);
            txtVender.ucReadOnly = true;

            try
            {
                sql = "SelectDURABLEPRODUCT";
                db.Open();
                Dictionary <string, object> param = new Dictionary <string, object>();
                dtgDurableProd.DataSource = db.ExecuteProcedure(sql, param);
                DataGridViewProperties();
            }
            catch (Exception ee)
            {
                LogFactory.Log(ee);
                CustomMessageBox.Show(MessageBoxButtons.OK, "확인", "문제가 발생했습니다.\n 로그를 확인하세요.");
            }
        }
Example #4
0
 /// <summary>
 /// 버튼의 이벤트들이 발생된 후 각각의 컨트롤러의 텍스트들을 초기화 해주는 함수
 /// </summary>
 public void MakeEmpty()
 {
     CommonFuction.SetUseYNList(ref cbbUseYn);
     foreach (Control ctrl in groupBox1.Controls)
     {
         if (ctrl is UserControls.MaskTextBox)
         {
             UserControls.MaskTextBox tb = (UserControls.MaskTextBox)ctrl;
             if (string.IsNullOrWhiteSpace(tb.ucValue) == false)
             {
                 tb.ucValue = string.Empty;
             }
         }
         if (ctrl is MaskCodeHelper)
         {
             MaskCodeHelper ch = (MaskCodeHelper)ctrl;
             if (string.IsNullOrWhiteSpace(ch.ucValue) == false)
             {
                 ch.ucValue = string.Empty;
             }
         }
     }
 }
Example #5
0
        /// <summary>
        /// * 함 수 명 : PreComboBox
        /// * 개 요 : UseYN(사용여부) comboBox 초기화
        /// </summary>

        void PreComboBox()
        {
            CommonFuction.SetUseYNList(ref mcmbUseYN);
        }