Exemple #1
0
        private void ultraGrid1_DoubleClickRow(object sender, DoubleClickRowEventArgs e)
        {
            SysEmployee     employee = e.Row.ListObject as SysEmployee;
            DlgEmployeeEdit dlg      = new DlgEmployeeEdit(employee, EditType.Update, this.Action);

            if (dlg.ShowDialog(this) == DialogResult.OK)
            {
                QueryEmployees(activeOrganizationId);
            }
        }
Exemple #2
0
 /// <summary>
 /// 新增员工信息
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void toolStripMenuItem1_Click(object sender, EventArgs e)
 {
     if (!String.IsNullOrEmpty(activeOrganizationId))
     {
         DlgEmployeeEdit dlg = new DlgEmployeeEdit(null, EditType.Add, this.Action);
         dlg.OrganizationId = activeOrganizationId;
         if (dlg.ShowDialog(this) == DialogResult.OK)
         {
             QueryEmployees(activeOrganizationId);
         }
     }
 }
Exemple #3
0
 /// <summary>
 /// 修改员工信息
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void toolStripMenuItem2_Click(object sender, EventArgs e)
 {
     if (ultraGrid1.ActiveRow != null)
     {
         SysEmployee     employee = ultraGrid1.ActiveRow.ListObject as SysEmployee;
         DlgEmployeeEdit dlg      = new DlgEmployeeEdit(employee, EditType.Update, this.Action);
         if (dlg.ShowDialog(this) == DialogResult.OK)
         {
             QueryEmployees(activeOrganizationId);
         }
     }
 }