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();
         }
     }
 }
Exemple #2
0
 private void ZaikoShoukai_Load(object sender, EventArgs e)
 {
     InProgramID = "ZaikoShoukai";
     StartProgram();
     BindCombo();
     LB_ChangeDate.Text = bbl.GetDate();
     ckM_RB_or.Checked  = true;
     ModeVisible        = false;
     base.Btn_F10.Text  = "CSV(F10)";
     CB_Soko.Focus();
     AddCol();
 }
Exemple #3
0
        private bool ErrorCheck(int kbn = 0)
        {
            string ymd = bbl.GetDate();

            if (kbn <= 1)
            {
                //割引率
                //入力必須(Entry required)
                if (string.IsNullOrWhiteSpace(txtRitsu.Text))
                {
                    //E102
                    bbl.ShowMessage("E102");
                    txtRitsu.Focus();
                    return(false);
                }
                txtRitsu.Text = bbl.Z_SetStr(txtRitsu.Text);

                //100以下であること
                if (bbl.Z_Set(txtRitsu.Text) > 100)
                {
                    bbl.ShowMessage("E102");
                    txtRitsu.Focus();
                    return(false);
                }

                //単価=(100-割引率)/ 100	1円未満は四捨五入
                lblTanka.Text = bbl.Z_SetStr(GetResultWithHasuKbn((int)HASU_KBN.SISYAGONYU, bbl.Z_Set(lblTeika.Text) * (100 - bbl.Z_Set(txtRitsu.Text)) / 100));
            }

            return(true);
        }
Exemple #4
0
        public FrmSelect()
        {
            InitializeComponent();

            SetRequireField();
            //初期値:Today
            txtSalesDate.Text = bbl.GetDate();
        }
Exemple #5
0
        private void scSupplier_CodeKeyDownEvent(object sender, KeyEventArgs e)

        {
            if (e.KeyCode == Keys.Enter)
            {
                scSupplier.ChangeDate = bbl.GetDate();
                if (!string.IsNullOrEmpty(scSupplier.TxtCode.Text))
                {
                    if (!scSupplier.SelectData())
                    {
                        //scSupplier.Value1 = scSupplier.TxtCode.Text;
                        //scSupplier.Value2 = scSupplier.LabelText;
                        bbl.ShowMessage("E101");
                        scSupplier.SetFocus(1);
                    }
                }
            }
        }
Exemple #6
0
 /// <summary>
 /// 支払先検索にEenterする場合、選択出来ないかとかをチェックする処理///
 /// </summary>
 private void scPaymentDestinaion_CodeKeyDownEvent(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         scPaymentDestinaion.ChangeDate = bbl.GetDate();
         if (!string.IsNullOrEmpty(scPaymentDestinaion.TxtCode.Text))
         {
             if (scPaymentDestinaion.SelectData())
             {
                 scPaymentDestinaion.Value1 = scPaymentDestinaion.TxtCode.Text;
                 scPaymentDestinaion.Value2 = scPaymentDestinaion.LabelText;
             }
             else
             {
                 bbl.ShowMessage("E101");
                 scPaymentDestinaion.SetFocus(1);
             }
         }
     }
 }
 private void SC_Payment_CodeKeyDownEvent(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         SC_Payment.ChangeDate = bbl.GetDate();
         if (!string.IsNullOrEmpty(SC_Payment.TxtCode.Text))
         {
             if (SC_Payment.SelectData())
             {
                 SC_Payment.Value1 = SC_Payment.TxtCode.Text;
                 SC_Payment.Value2 = SC_Payment.LabelText;
             }
             else
             {
                 bbl.ShowMessage("E101");
                 SC_Payment.SetFocus(1);
             }
         }
     }
 }
 /// <summary>
 /// 仕入先の履歴を表示されること
 /// </summary>
 private void sc_SupplierName_CodeKeyDownEvent(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         scMakerCD.ChangeDate = bbl.GetDate();
         if (!string.IsNullOrEmpty(scMakerCD.TxtCode.Text))
         {
             if (scMakerCD.SelectData())
             {
                 scMakerCD.Value1 = scMakerCD.TxtCode.Text;
                 scMakerCD.Value2 = scMakerCD.LabelText;
             }
             else
             {
                 bbl.ShowMessage("E101");
                 scMakerCD.SetFocus(1);
             }
         }
     }
 }
        private void Search_PlanArrival_Load(object sender, EventArgs e)
        {
            string ymd = bbl.GetDate();

            CB_Soko.Bind(ymd, storecd);
            CB_Soko.SelectedValue = soukocd;
            TB_Shohinmei.Text     = shohinmei;
            TB_ColorName.Text     = color;
            TB_SizeName.Text      = size;
            TB_Skucd.Text         = skucd;
            TB_Brand.Text         = brand;
            TB_item.Text          = item;
            TB_Jancd.Text         = jancd;
            TB_makerCD.Text       = makercd;
            BtnF12Text            = "表示(F11)";
            F11Visible            = false;
            F9Visible             = false;
        }
Exemple #10
0
 private void sc_Customer_CodeKeyDownEvent(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         targetDate             = !string.IsNullOrWhiteSpace(txtTargetdate.Text) ? skh_bl.GetDate(txtTargetdate.Text) : bbl.GetDate();
         sc_Customer.ChangeDate = targetDate;
         if (!string.IsNullOrEmpty(sc_Customer.TxtCode.Text))
         {
             DataTable dt = new DataTable();
             dt = skh_bl.SimpleSelect1("67", targetDate, sc_Customer.Code);
             if (dt.Rows.Count < 1)
             {
                 skh_bl.ShowMessage("E101");
                 sc_Customer.LabelText = string.Empty;
                 sc_Customer.SetFocus(1);
             }
             else
             {
                 if (rdo_BillAddress.Checked == true && dt.Rows[0]["CollectFLG"].ToString().Equals("0"))
                 {
                     skh_bl.ShowMessage("E242");
                     sc_Customer.LabelText = string.Empty;
                     sc_Customer.SetFocus(1);
                 }
                 else if (rdo_Sale.Checked == true && dt.Rows[0]["BillingFLG"].ToString().Equals("0"))
                 {
                     skh_bl.ShowMessage("E243");
                     sc_Customer.LabelText = string.Empty;
                     sc_Customer.SetFocus(1);
                 }
                 else
                 {
                     //sc_Customer.Value1 = sc_Customer.TxtCode.Text;
                     //sc_Customer.Value2 = sc_Customer.LabelText;
                     sc_Customer.Code      = dt.Rows[0]["CustomerCD"].ToString();
                     sc_Customer.LabelText = dt.Rows[0]["CustomerName"].ToString();
                 }
             }
         }
     }
 }