Query_Employee.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Windows.Forms;
  9. using UAS_MES_NEW.DataOperate;
  10. using UAS_MES_NEW.Entity;
  11. using UAS_MES_NEW.PublicMethod;
  12. namespace UAS_MES_NEW.Query
  13. {
  14. public partial class Query_Employee : Form
  15. {
  16. AutoSizeFormClass asc = new AutoSizeFormClass();
  17. DataHelper dh;
  18. public Query_Employee()
  19. {
  20. InitializeComponent();
  21. }
  22. private void Query_Employee_Load(object sender, EventArgs e)
  23. {
  24. asc.controllInitializeSize(this);
  25. dh = SystemInf.dh;
  26. LogStringBuilder sql = new LogStringBuilder();
  27. sql.Clear();
  28. sql.Append("select WC_NAME,HOURTIME,投入,产出,不良,直通率 from MES_MAKEEMHOUR_VIEW where sp_ymd = trunc(sysdate) and sp_linecode = '"+User.UserLineCode+"' AND SP_STEPCODE = '"+User.CurrentStepCode+"' AND SP_INMAN = '"+User.UserCode+"' ");
  29. DataTable dt = (DataTable)dh.ExecuteSql(sql.GetString(), "select");
  30. BaseUtil.FillDgvWithDataTable(BOM, dt);
  31. }
  32. private void Query_Employee_SizeChanged(object sender, EventArgs e)
  33. {
  34. asc.controllInitializeSize(this);
  35. }
  36. }
  37. }