コード例 #1
0
        private void btnDestroy_Click(object sender, EventArgs e)
        {
            PT.Component.InputBoxForm ib = new PT.Component.InputBoxForm("Bạn có muốn hủy?", "default", "Chuyển Kho");
            if (ib.ShowDialog() == DialogResult.OK)
            {
                _GetPanel(-1);
                _infoAPAdjust.Note = ib.txtOut.Text.ToString();
                _infoAPAdjust.LUpd_DateTime = DateTime.Now;
                _infoAPAdjust.LUpd_Prog = _strPro;
                _infoAPAdjust.LUpd_User = _strUser;
                int kq = _SaveAPAdjust(-1);
                if (kq == 1)
                {
                    cmbStatus.SelectedValue = -1;
                    _BindGrid();
                    MessageBox.Show("Huy thanh cong", "Thong bao");
                }

            }
            _SetButtomStatus();
        }
コード例 #2
0
        private void btnCanAndCopy_Click(object sender, EventArgs e)
        {
            PT.Component.InputBoxForm ib = new PT.Component.InputBoxForm("Bạn có muốn hủy?", "default", "Chuyển Kho");
            if (ib.ShowDialog() == DialogResult.OK)
            {
                // _GetPanel(-1);
                _info.Note = ib.txtOut.Text.ToString();
                _info.LUpd_DateTime = DateTime.Now;
                _info.LUpd_Prog = _strPro;
                _info.LUpd_User = _strUser;
                int kq = _SaveAPDoc(-1);
                if (kq == 1)
                {
                    cmbStatus.SelectedValue = -1;
                    MessageBox.Show("Huy thanh cong", "Thong bao");

                    _info.DocNbr = "";
                    _info.Rlsed = 0;
                    _info.DocType = _DocType;
                    _info.Crtd_DateTime = DateTime.Now;
                    _info.Crtd_Prog = _strPro;
                    _info.Crtd_User = _strUser;
                    _info.LUpd_DateTime = DateTime.Now;
                    _info.LUpd_Prog = _strPro;
                    _info.LUpd_User = _strUser;
                    _BindPanel(_info);
                }

            }
            _SetButtomStatus();
        }
コード例 #3
0
        private void btnCanAndCopy_Click(object sender, EventArgs e)
        {
            string vendid = txtVendID.Text.ToString().Trim();
            PT.Component.InputBoxForm ib = new PT.Component.InputBoxForm("Bạn có muốn hủy?", "default", "Chuyển Kho");
            if (ib.ShowDialog() == DialogResult.OK)
            {
                _GetPanel(-1);
                _infoAPAdjust.Note = ib.txtOut.Text.ToString();
                _infoAPAdjust.LUpd_DateTime = DateTime.Now;
                _infoAPAdjust.LUpd_Prog = _strPro;
                _infoAPAdjust.LUpd_User = _strUser;
                int kq = _SaveAPAdjust(-1);
                if (kq == 1)
                {
                    _BindGrid();
                    _BindPanel(_infoAPAdjust);
                    txtAdjNbr.Text = "";
                    txtVendID.Enabled = true;
                    cmbStatus.SelectedValue = 0;
                    MessageBox.Show("Huy thanh cong", "Thong bao");
                }

            }

            _SetButtomStatus();
        }