Ejemplo n.º 1
0
        private void Edit()
        {
            if (SqlDb.IsAllow(AppVariable.CURRENT_SUB_MENU, AppVariable.CURRENT_USER_LEVEL_ID.ToString(), "IsEdit") == true)
            {
                curIndex = grdView.GetDataSourceRowIndex(grdView.FocusedRowHandle);

                frmLabSubTestDetail detailForm = new frmLabSubTestDetail();

                detailForm.txtCode.Tag = dr.ItemArray[0].ToString();
                detailForm.cboLabTest.SelectedValue = dr.ItemArray[1].ToString();
                detailForm.txtCode.Text             = dr.ItemArray[2].ToString();
                detailForm.txtName.Text             = dr.ItemArray[3].ToString();
                detailForm.txtDescription.Text      = dr.ItemArray[4].ToString();

                detailForm.chkIsActive.EditValue = bool.Parse(dr.ItemArray[5].ToString());
                detailForm.cmdSave.Tag           = "Edit";

                detailForm.ShowDialog();

                Binding();
            }
            else
            {
                MessageBox.Show("Sorry, Administrator is not allow this action?", "MediPro :: Clinic System", MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }
        }
Ejemplo n.º 2
0
        private void Edit()
        {
            if (SqlDb.IsAllow(AppVariable.CURRENT_SUB_MENU, AppVariable.CURRENT_USER_LEVEL_ID.ToString(), "IsEdit") == true)
            {
                curIndex = grdView.GetDataSourceRowIndex(grdView.FocusedRowHandle);

                frmLabSubTestDetail detailForm = new frmLabSubTestDetail();
                
                detailForm.txtCode.Tag = dr.ItemArray[0].ToString();
                detailForm.cboLabTest.SelectedValue = dr.ItemArray[1].ToString();
                detailForm.txtCode.Text = dr.ItemArray[2].ToString();
                detailForm.txtName.Text = dr.ItemArray[3].ToString();
                detailForm.txtDescription.Text = dr.ItemArray[4].ToString();

                detailForm.chkIsActive.EditValue = bool.Parse(dr.ItemArray[5].ToString());
                detailForm.cmdSave.Tag = "Edit";

                detailForm.ShowDialog();

                Binding();
            }
            else
            {
                MessageBox.Show("Sorry, Administrator is not allow this action?", "MediPro :: Clinic System", MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }
        }
Ejemplo n.º 3
0
        private void cmdNew_Click(object sender, EventArgs e)
        {
            if (SqlDb.IsAllow(AppVariable.CURRENT_SUB_MENU, AppVariable.CURRENT_USER_LEVEL_ID.ToString(), "IsInsert") == true)
            {
                curIndex = grdView.RowCount;

                frmLabSubTestDetail detailForm = new frmLabSubTestDetail();

                detailForm.txtCode.Tag  = string.Empty;
                detailForm.txtCode.Text = string.Empty;
                detailForm.cmdSave.Tag  = "Add";
                detailForm.ShowDialog();

                Binding();
            }
            else
            {
                MessageBox.Show("Sorry, Administrator is not allow this action?", "MediPro :: Clinic System", MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }
        }
Ejemplo n.º 4
0
        private void cmdNew_Click(object sender, EventArgs e)
        {
            if (SqlDb.IsAllow(AppVariable.CURRENT_SUB_MENU, AppVariable.CURRENT_USER_LEVEL_ID.ToString(), "IsInsert") == true)
            {
                curIndex = grdView.RowCount;

                frmLabSubTestDetail detailForm = new frmLabSubTestDetail();

                detailForm.txtCode.Tag = string.Empty;
                detailForm.txtCode.Text = string.Empty;
                detailForm.cmdSave.Tag = "Add";
                detailForm.ShowDialog();

                Binding();
            }
            else
            {
                MessageBox.Show("Sorry, Administrator is not allow this action?", "MediPro :: Clinic System", MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }
        }