123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Windows.Forms;
- using UAS_MES_NEW.DataOperate;
- using UAS_MES_NEW.Entity;
- using UAS_MES_NEW.PublicMethod;
- namespace UAS_MES_NEW.Employee
- {
- public partial class Employee_Data : Form
- {
- //筛选条件
- string condition;
- DataHelper dh;
- AutoSizeFormClass asc = new AutoSizeFormClass();
- public Employee_Data()
- {
- InitializeComponent();
- }
- private void 人员分组_Load(object sender, EventArgs e)
- {
- asc.controllInitializeSize(this);
- dh = SystemInf.dh;
- LoadData();
- em_name11.KeyDown += ScreenEvent;
- em_depart1.KeyDown += ScreenEvent;
- em_position1.KeyDown += ScreenEvent;
- em_code11.KeyDown += ScreenEvent;
- }
- private void Screen_Click(object sender, EventArgs e)
- {
- LoadData();
- }
- private void LoadData()
- {
- string Field = BaseUtil.GetGridViewSelectContent(Employee);
- condition = BaseUtil.GetScreenSqlCondition(em_name11, em_code11, em_depart1, em_position1);
- pagination1.BindDataToNavigator(Employee, "employee", Field, "em_id", "", condition.Replace("where", "").ToString());
- }
- private void 人员资料_SizeChanged(object sender, EventArgs e)
- {
- asc.controlAutoSize(this);
- }
- private void ScreenEvent(object senedr, KeyEventArgs e)
- {
- if (e.KeyCode == Keys.Enter)
- Screen.PerformClick();
- }
- }
- }
|