Ejemplo n.º 1
0
        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();
            }
        }
Ejemplo n.º 2
0
        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();
            }
        }
Ejemplo n.º 3
0
        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();
            }
        }
Ejemplo n.º 4
0
        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();
            }
        }