frmRptLsDeails.cs 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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 CoreFS.CA06;
  10. using Core.Mes.Client.Comm.Server;
  11. using Core.Mes.Client.Comm.Control;
  12. using Core.Mes.Client.Comm.Tool;
  13. using Infragistics.Win.UltraWinGrid;
  14. using Infragistics.Win;
  15. using System.Net;
  16. using System.Collections;
  17. using CoreFS.SA06;
  18. namespace Core.StlMes.Client.BuyBillet
  19. {
  20. public partial class frmRptLsDeails : FrmBase
  21. {
  22. public frmRptLsDeails(OpeBase ops)
  23. {
  24. this.ob = ops;
  25. InitializeComponent();
  26. }
  27. public string P_DEPT { get; set; }
  28. public string P_LINE { get; set; }
  29. public string RPT_YM { get; set; }
  30. private void frmRptLsDeails_Load(object sender, EventArgs e)
  31. {
  32. Query(P_DEPT, P_LINE, RPT_YM);
  33. }
  34. private void Query(string dept, string pline, string rptym)
  35. {
  36. DataTable dtqry = ServerHelper.GetData("com.steering.pss.buybillet.Buybillet.get_Rpt_Ls_Details", new object[] { dept, pline, rptym }, this.ob);
  37. GridHelper.CopyDataToDatatable(ref dtqry, ref dt, true);
  38. for (int i = 0; i < 3; i++)
  39. {
  40. ug1.DisplayLayout.Bands[0].Columns[i].CellAppearance.BackColor = Color.Gray;
  41. ug1.DisplayLayout.Bands[0].Columns[i].MergedCellStyle = MergedCellStyle.Always;
  42. }
  43. }
  44. }
  45. }