예제 #1
0
        private void butReassign_Click(object sender, EventArgs e)
        {
            if (listClaimForms.SelectedIndex == -1)
            {
                MsgBox.Show(this, "Please select a claimform from the list at the left first.");
                return;
            }
            if (comboReassign.SelectedIndex == -1)
            {
                MsgBox.Show(this, "Please select a claimform from the list below.");
                return;
            }
            long result = ClaimForms.Reassign(ClaimForms.ListLong[listClaimForms.SelectedIndex].ClaimFormNum,
                                              ClaimForms.ListLong[comboReassign.SelectedIndex].ClaimFormNum);

            MessageBox.Show(result.ToString() + Lan.g(this, " plans changed."));
        }
예제 #2
0
        ///<summary>Reassigns all current insurance plans using the selected claimform to another claimform.</summary>
        private void butReassign_Click(object sender, EventArgs e)
        {
            if (gridCustom.GetSelectedIndex() == -1)
            {
                MsgBox.Show(this, "Please select a claimform from the list at the left first.");
                return;
            }
            if (comboReassign.SelectedIndex == -1)
            {
                MsgBox.Show(this, "Please select a claimform from the list below.");
                return;
            }
            ClaimForm claimFormCur = (ClaimForm)gridCustom.Rows[gridCustom.GetSelectedIndex()].Tag;
            ClaimForm claimFormNew = ((ODBoxItem <ClaimForm>)comboReassign.SelectedItem).Tag;
            long      result       = ClaimForms.Reassign(claimFormCur.ClaimFormNum, claimFormNew.ClaimFormNum);

            MessageBox.Show(result.ToString() + Lan.g(this, " plans changed."));
        }