Example #1
0
        /// <summary>
        /// 执行操作
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnOperate_Click(object sender, EventArgs e)
        {
            DataGridViewRow row        = dgvData.CurrentRow;
            string          slipNumber = CConvert.ToString(row.Cells["SLIP_NUMBER"].Value);

            if (!string.IsNullOrEmpty(slipNumber))
            {
                FrmBase frm = new FrmQuotation(slipNumber);
                frm.CTag      = CConstant.QUOTATION_OPERATE;
                frm.UserTable = _userInfo;
                if (DialogResult.OK == frm.ShowDialog())
                {
                }
                frm.Dispose();
            }
            else
            {
                MessageBox.Show("请先选择一张订单。", this.Text, MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }
Example #2
0
        private void btnModify_Click(object sender, EventArgs e)
        {
            DataGridViewRow row = dgvData.CurrentRow;
            //if (CConvert.ToInt32(row.Cells["ORDER_FLAG"].Value) <= 0)
            // {
            string slipNumber = CConvert.ToString(row.Cells["SLIP_NUMBER"].Value);

            if (!string.IsNullOrEmpty(slipNumber))
            {
                FrmBase frm = new FrmQuotation(slipNumber);
                frm.CTag      = CConstant.QUOTATION_MODIFY;
                frm.UserTable = _userInfo;
                if (DialogResult.OK == frm.ShowDialog())
                {
                    BindData(this.pgControl.GetCurrentPage());
                }
                frm.Dispose();
            }
            else
            {
                MessageBox.Show("请先选择一张订单。", this.Text, MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }