Ejemplo n.º 1
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            int id = TextUtils.ToInt(grvData.GetFocusedRowCellValue(colID));

            if (id == 0)
            {
                return;
            }
            SolutionModel model = (SolutionModel)SolutionBO.Instance.FindByPK(id);

            _rownIndex = grvData.FocusedRowHandle;
            frmSolution frm = new frmSolution();

            frm.Solution        = model;
            frm.LoadDataChange += main_LoadDataChange;
            frm.Show();
        }
Ejemplo n.º 2
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            string cusCode = TextUtils.ToString(cboKH.EditValue);
            long   ycID    = TextUtils.ToInt64(grvYC.GetFocusedRowCellValue(colYCID));

            if (cusCode == "")
            {
                MessageBox.Show("Bạn phải chọn một khách hàng!", TextUtils.Caption, MessageBoxButtons.OK, MessageBoxIcon.Stop);
                return;
            }
            if (ycID == 0)
            {
                MessageBox.Show("Bạn phải chọn một yêu cầu!", TextUtils.Caption, MessageBoxButtons.OK, MessageBoxIcon.Stop);
                return;
            }
            frmSolution frm = new frmSolution();

            frm.CustomerCode    = cusCode;
            frm.RequireID       = ycID;
            frm.LoadDataChange += main_LoadDataChange;
            frm.Show();
        }
Ejemplo n.º 3
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            frmSolution frm = new frmSolution();

            TextUtils.OpenForm(frm);
        }