Example #1
0
 private void btnThem_Click(object sender, EventArgs e)
 {
     txtMaVatTu.Text    = UtilitiesService.AutoGenarateCode(Config.P_VT);
     txtTenVatTu.Text   = "";
     txtDonViTinh.Text  = "";
     txtDonGiaBan.Text  = "";
     txtDonGiaNhap.Text = "";
     currentVatTu       = new VatTu();
 }
Example #2
0
 private void btnThem_Click(object sender, EventArgs e)
 {
     txtMaKho.Text  = UtilitiesService.AutoGenarateCode(Config.P_KHO);
     txtTenKho.Text = "";
     txtDiaChi.Text = "";
     txtGhiChu.Text = "";
     txtSDT.Text    = "";
     cboQuanLy.Text = "";
     txtIdKho.Text  = "";
     currentKho     = new Kho();
 }
Example #3
0
 private void btnThem_Click(object sender, EventArgs e)
 {
     txtMaNhaCungCap.Text  = UtilitiesService.AutoGenarateCode(Config.P_NHACC);
     txtTenNhaCungCap.Text = "";
     txtDiaChi.Text        = "";
     txtEmail.Text         = "";
     txtSDT.Text           = "";
     txtNguoiDaiDien.Text  = "";
     txtIdNhaCungCap.Text  = "";
     currentNhaCungCap     = new NhaCungCap();
 }
Example #4
0
 private void DisabledControl()
 {
     if (ucNhapKho.idPhieuNhap != 0)
     {
         txtMa.Enabled         = false;
         cboNhaCungCap.Enabled = false;
     }
     else
     {
         txtMa.Enabled = false;
         txtMa.Text    = UtilitiesService.AutoGenarateCode("PN");
     }
 }
Example #5
0
 private void DisabledControl()
 {
     if (ucXuatKho.idPhieuXuat != 0)
     {
         txtMa.Enabled  = false;
         cboKho.Enabled = false;
     }
     else
     {
         txtMa.Enabled = false;
         txtMa.Text    = UtilitiesService.AutoGenarateCode("PX");
     }
 }
Example #6
0
        private void btnThem_Click(object sender, EventArgs e)
        {
            txtManhanVien.Text   = UtilitiesService.AutoGenarateCode(Config.P_NV);
            txtTennhanVien.Text  = "";
            txtDiaChi.Text       = "";
            txtEmail.Text        = "";
            txtSDT.Text          = "";
            txtCMND.Text         = "";
            txtIdNhanVien.Text   = "";
            dateTimeInput1.Value = DateTime.Now;
            dateTimeInput2.Value = DateTime.Now;
            rdNam.Checked        = true;

            currentnhanVien = new NhanVien();
        }
Example #7
0
 private void btnThem_Click(object sender, EventArgs e)
 {
     txtMaNhomVatTu.Text  = UtilitiesService.AutoGenarateCode(Config.P_NVT);
     txtTenNhomVatTu.Text = "";
     currentNhomVatTu     = new NhomVatTu();
 }