コード例 #1
0
        public bool CheckCTHD()
        {
            Pharmacy.BLL.TBus tbus = new Pharmacy.BLL.TBus();
            if (!tbus.IsNumber(cmbVat.Text)) return false;
            if (txtDG.Text == "") return false;

            if (txtSL.Text == "") return false;

            return true;
        }
コード例 #2
0
 private void cmbVAT_SelectedIndexChanged_1(object sender, EventArgs e)
 {
     if (!tbus.IsNumber(cmbVAT.Text))
     {
         MessageBox.Show("Nhập số");
     }
     else
     {
         try
         {
             TinhTien();
             tienhh = double.Parse(txtTienHH.Text);
         }
         catch (Exception ex) {
             MessageBox.Show("Kiểm tra lại thông tin");
             TLog.WriteErr("frmNhapkho_cmbVAT_SelectedIndexChanged_1", ex.Message + "||" + ex.StackTrace);
         }
     }
 }
コード例 #3
0
        public bool CheckCTHD()
        {
            Pharmacy.BLL.TBus tbus = new Pharmacy.BLL.TBus();
            if (!tbus.IsNumber(cmbVat.Text))
            {
                return(false);
            }
            if (txtDG.Text == "")
            {
                return(false);
            }

            if (txtSL.Text == "")
            {
                return(false);
            }

            return(true);
        }