private void Shiiresaki_CodeKeyDownEvent(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         Shiiresaki.ChangeDate = bbl.GetDate();
         if (!string.IsNullOrEmpty(Shiiresaki.TxtCode.Text))
         {
             if (Shiiresaki.SelectData())
             {
                 //Shiiresaki.Value1 = Shiiresaki.TxtCode.Text;
                 //Shiiresaki.Value2 = Shiiresaki.LabelText;
                 F11();
             }
             else
             {
                 bbl.ShowMessage("E101");
                 Shiiresaki.SetFocus(1);
                 dgvPaymentClose.DataSource = null;
             }
         }
         else
         {
             F11();
         }
     }
 }
        private bool ErrorCheck(int Type)
        {
            if (!string.IsNullOrEmpty(Shiiresaki.TxtCode.Text))
            {
                if (!Shiiresaki.IsExists(2))
                {
                    sss_bl.ShowMessage("E101");
                    Shiiresaki.SetFocus(1);
                    return(false);
                }
            }

            switch (Type)
            {
            case 1:
                if (!RequireCheck(new Control[] { txtPayCloseDate }))     //Step1
                {
                    return(false);
                }

                if (!sss_bl.Select_PaymentClose(dpch_entity, 1))    //Step2
                {
                    sss_bl.ShowMessage("S013");
                    cboProcessType.Focus();
                    return(false);
                }

                if (sss_bl.Select_PaymentClose(dpch_entity, 2))    //Step3
                {
                    sss_bl.ShowMessage("S014");
                    cboProcessType.Focus();
                    return(false);
                }
                break;

            case 2:
                if (!RequireCheck(new Control[] { txtPayCloseDate }))     //Step1
                {
                    return(false);
                }

                if (!sss_bl.Select_PaymentClose(dpch_entity, 3))    //Step2
                {
                    sss_bl.ShowMessage("S013");
                    cboProcessType.Focus();
                    return(false);
                }
                if (sss_bl.Select_PaymentClose(dpch_entity, 4))    //Step3
                {
                    sss_bl.ShowMessage("S015");
                    cboProcessType.Focus();
                    return(false);
                }
                break;
            }
            return(true);
        }
Example #3
0
 private void CanCelData()
 {
     CB_Soko.SelectedIndex    = 1;
     CB_year.Text             = string.Empty;
     CB_OrderAttentionCD.Text = string.Empty;
     CB_ReserveCD.Text        = String.Empty;
     CB_PostageCD.Text        = String.Empty;
     CB_Season.Text           = string.Empty;
     CB_NoticesCD.Text        = string.Empty;
     CB_Tagu1.Text            = String.Empty;
     CB_Tagu2.Text            = String.Empty;
     CB_Tagu3.Text            = String.Empty;
     CB_Tagu4.Text            = String.Empty;
     CB_Tagu5.Text            = String.Empty;
     TB_item.Text             = string.Empty;
     TB_mekashohinCD.Text     = string.Empty;
     TB_Bikokeyword.Text      = string.Empty;
     TB_mekashohinCD.Text     = string.Empty;
     TB_Catalog.Text          = string.Empty;
     TB_item.Text             = string.Empty;
     TB_Shijishobengo.Text    = string.Empty;
     TB_ShinkitorokuF.Text    = String.Empty;
     TB_ShinkitorokuT.Text    = string.Empty;
     TB_Shohinmei.Text        = string.Empty;
     TB_ShoninbiF.Text        = string.Empty;
     TB_ShoninbiT.Text        = string.Empty;
     TB_RackNoF.Text          = string.Empty;
     TB_RackNoT.Text          = string.Empty;
     TB_SaiShuhenkobiF.Text   = string.Empty;
     TB_SaiShuhenkobiT.Text   = String.Empty;
     jan.Clear();
     sku.Clear();
     Shiiresaki.Clear();
     SearchBrand.Clear();
     Maker.Clear();
     Sports.Clear();
     ckM_RB_or.Checked        = true;
     ckM_RB_and.Checked       = false;
     ckM_CKB_Mishohin.Checked = false;
     ckM_CKB_suru.Checked     = false;
     CKB_searchsuru.Checked   = false;
     RB_item.Checked          = false;
     RB_Makashohincd.Checked  = false;
     CB_Soko.Focus();
     GV_Zaiko.DataSource = null;
     dtData.Clear();
 }
Example #4
0
 private void Shiiresaki_CodeKeyDownEvent(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         Shiiresaki.ChangeDate = bbl.GetDate();
         if (!string.IsNullOrEmpty(Shiiresaki.TxtCode.Text))
         {
             if (!Shiiresaki.SelectData())
             {
                 bbl.ShowMessage("E101");
                 Shiiresaki.SetFocus(1);
                 //Shiiresaki.Value1 = Shiiresaki.TxtCode.Text;
                 //Shiiresaki.Value2 = Shiiresaki.LabelText;
             }
             //else
             //{
             //    bbl.ShowMessage("E101");
             //    Shiiresaki.SetFocus(1);
             //}
         }
     }
 }
Example #5
0
 private bool ErrorCheck()
 {
     if (!String.IsNullOrEmpty(Shiiresaki.TxtCode.Text))
     {
         if (!Shiiresaki.IsExists(2))
         {
             bbl.ShowMessage("E101");
             Shiiresaki.SetFocus(1);
             return(false);
         }
     }
     if (!String.IsNullOrEmpty(Maker.TxtCode.Text))
     {
         if (!Maker.IsExists(2))
         {
             bbl.ShowMessage("E101");
             Maker.SetFocus(1);
             return(false);
         }
     }
     if (!String.IsNullOrEmpty(SearchBrand.TxtCode.Text))
     {
         if (!SearchBrand.IsExists(2))
         {
             bbl.ShowMessage("E101");
             SearchBrand.SetFocus(1);
             return(false);
         }
     }
     if (!String.IsNullOrEmpty(jan.TxtCode.Text))
     {
         if (!jan.IsExists(2))
         {
             bbl.ShowMessage("E101");
             jan.SetFocus(1);
             return(false);
         }
     }
     if (!String.IsNullOrEmpty(sku.TxtCode.Text))
     {
         if (!sku.IsExists(2))
         {
             bbl.ShowMessage("E101");
             sku.SetFocus(1);
             return(false);
         }
     }
     if (!String.IsNullOrEmpty(Sports.TxtCode.Text))
     {
         if (!Sports.IsExists(2))
         {
             bbl.ShowMessage("E101");
             Sports.SetFocus(1);
             return(false);
         }
     }
     if (!String.IsNullOrEmpty(TB_ShinkitorokuF.Text) && !String.IsNullOrEmpty(TB_ShinkitorokuT.Text))
     {
         if (Convert.ToDateTime(TB_ShinkitorokuF.Text) > Convert.ToDateTime(TB_ShinkitorokuT.Text))
         {
             bbl.ShowMessage("E104");
             TB_ShinkitorokuF.Focus();
             return(false);
         }
     }
     if (!String.IsNullOrEmpty(TB_RackNoF.Text) && !String.IsNullOrEmpty(TB_RackNoT.Text))
     {
         if (String.Compare(TB_RackNoF.Text, TB_RackNoT.Text) == 1)
         {
             bbl.ShowMessage("E106");
             TB_RackNoF.Focus();
             return(false);
         }
     }
     if (!String.IsNullOrEmpty(TB_SaiShuhenkobiF.Text) && !String.IsNullOrEmpty(TB_SaiShuhenkobiT.Text))
     {
         if (Convert.ToDateTime(TB_SaiShuhenkobiF.Text) > Convert.ToDateTime(TB_SaiShuhenkobiT.Text))
         {
             bbl.ShowMessage("E104");
             TB_SaiShuhenkobiF.Focus();
             return(false);
         }
     }
     if (!String.IsNullOrEmpty(TB_ShoninbiF.Text) && !String.IsNullOrEmpty(TB_ShoninbiT.Text))
     {
         if (Convert.ToDateTime(TB_ShoninbiF.Text) > Convert.ToDateTime(TB_ShoninbiT.Text))
         {
             bbl.ShowMessage("E104");
             TB_ShoninbiF.Focus();
             return(false);
         }
     }
     return(true);
 }