示例#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();
 }
示例#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();
 }
示例#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();
 }
示例#4
0
 private void DisabledControl()
 {
     if (ucNhapKho.idPhieuNhap != 0)
     {
         txtMa.Enabled         = false;
         cboNhaCungCap.Enabled = false;
     }
     else
     {
         txtMa.Enabled = false;
         txtMa.Text    = UtilitiesService.AutoGenarateCode("PN");
     }
 }
示例#5
0
 private void DisabledControl()
 {
     if (ucXuatKho.idPhieuXuat != 0)
     {
         txtMa.Enabled  = false;
         cboKho.Enabled = false;
     }
     else
     {
         txtMa.Enabled = false;
         txtMa.Text    = UtilitiesService.AutoGenarateCode("PX");
     }
 }
示例#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();
        }
示例#7
0
 private void btnThem_Click(object sender, EventArgs e)
 {
     txtMaNhomVatTu.Text  = UtilitiesService.AutoGenarateCode(Config.P_NVT);
     txtTenNhomVatTu.Text = "";
     currentNhomVatTu     = new NhomVatTu();
 }