private void AddNew() { string sql = "NHOM_HANG_NHAP N'" + UserInformation.PQ + "',N'" + TxtName.Text.Trim() + "'"; int _ok = DatLoa.AddNew(sql); if (_ok > 0) { loadData(); _pMode = ""; ViewMode(); DesFor.ColorChange(ref DesFor.BtnChange); DesFor.AlignCenterToScreen(); } }
private void AddNew() { string sql = "KHACH_HANG_NHAP '" + UserInformation.PQ + "',N'" + TxtName.Text.Trim() + "',N'" + txtDiaChi.Text.Trim() + "','" + TxtSDT.Text.Trim() + "','" + txtEmail.Text.Trim() + "','" + cbbLoai.Text.Trim() + "'," + txtTThai.Text.Trim(); int _ok = DatLoa.AddNew(sql); if (_ok > 0) { loadData(); _pMode = ""; ViewMode(); DesFor.ColorChange(ref DesFor.BtnChange); DesFor.AlignCenterToScreen(); } }
private void AddNew() { string sql = "MAT_HANG_NHAP '" + UserInformation.PQ + "','" + UserInformation.MaDV + "',N'" + TxtID.Text.Trim() + "',N'" + TxtName.Text.Trim() + "','" + TxtNhomHang.Text + "','" + TxtNhaCC.Text + "','" + TxtGiaNhap.Text.Trim() + "','" + TxtGiaBan.Text.Trim() + "'"; int _ok = DatLoa.AddNew(sql); if (_ok > 0) { loadData(); _pMode = ""; ViewMode(); DesFor.ColorChange(ref DesFor.BtnChange); DesFor.AlignCenterToScreen(); } }
private void AddNew() { Char vchkUsingCheck = chkUsingCheck.Checked ? 'C' : 'K'; Char vchkChangePWDLogon = chkChangePWDLogon.Checked ? 'Y' : 'N'; string sql = "USER_NHAP '" + UserInformation.PQ + "','" + TxtUserId.Text.Trim() + "',N'" + TxtUserName.Text.Trim() + "','" + dExpiredDate.Text.Trim() + "','" + txtBranchID.Text.Trim() + "','" + vchkUsingCheck + "','" + vchkChangePWDLogon + "'"; int _ok = DatLoa.AddNew(sql); if (_ok > 0) { loadData(); _pMode = ""; ViewMode(); DesFor.ColorChange(ref DesFor.BtnChange); DesFor.AlignCenterToScreen(); } }