Beispiel #1
0
 private void sbtnRecpGrpNew_Click(object sender, System.EventArgs e)
 {
     ACMS.ACMSStaff.ReceipientGroup.frmReceipientGroup form =
         new ACMS.ACMSStaff.ReceipientGroup.frmReceipientGroup(Convert.ToInt32(luedtMemoEmployeeID.EditValue), -1, "New");
     if (DialogResult.OK == form.ShowDialog())
         ListReceipientGroup();
     form.Dispose();
 }
Beispiel #2
0
        private void sbtnRecpGrpEdit_Click(object sender, System.EventArgs e)
        {
            if (!ValidateRowSelectedReceipientGroup())
                return;

            DataRow row = gvRecpGrp.GetDataRow(gvRecpGrp.FocusedRowHandle);

            ACMS.ACMSStaff.ReceipientGroup.frmReceipientGroup form =
                new ACMS.ACMSStaff.ReceipientGroup.frmReceipientGroup(Convert.ToInt32(luedtMemoEmployeeID.EditValue),
                Convert.ToInt32(row["nMemoGroupID"]), "Edit");
            form.MemoGroupCode = row["strMemoGroupCode"].ToString();
            form.Description = row["strDescription"].ToString();
            if (DialogResult.OK == form.ShowDialog())
                ListReceipientGroup();
            form.Dispose();
        }