示例#1
0
 void tool_right_QueryClicked(object sender, EventArgs e)
 {
     if (empGrid.ActiveRow != null)
     {
         string EmpolyCode = empGrid.ActiveRow.Cells["Emp_Code"].Value.ToString();
         Bse_Employee model = employeeInstance.GetModel(" AND Emp_Code='" + EmpolyCode + "'");
         Employee employee = new Employee(employeeInstance, instance, model);
         employee.OperationType = OperationTypeEnum.Look;
         //employee.DataChange += new Employee.DataChangeHandler(employee_DataChange);
         employee.ShowDialog();
         //var node = tv_left.SelectedNode;
         //if (node != null)
         //{
         //    RefreshGrid(node.Name);
         //}
         //else
         //{
         //    RefreshGrid();
         //}
     }
 }
示例#2
0
 /// <summary>
 /// 人员添加
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void tool_right_AddClicked(object sender, EventArgs e)
 {
     Employee employee = new Employee(employeeInstance, instance, null);
     employee.OperationType = OperationTypeEnum.Add;
     employee.DataChange += new Employee.DataChangeHandler(employee_DataChange);
     employee.ShowDialog();
     RefreshGrid();
 }