| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- using Core.Mes.Client.Comm.Control;
- using Core.StlMes.Client.Judge.Commons;
- using CoreFS.CA06;
- using System;
- using System.Data;
- using System.Windows.Forms;
- namespace Core.StlMes.Client.Judge.Controls
- {
- public partial class PhyFileCtrl : UserControl
- {
- private Dal _d;
- private OpeBase ob;
- public PhyFileCtrl(Control container, OpeBase ob)
- {
- InitializeComponent();
- this.ob = ob;
- container.Controls.Add(this);
- this.Dock = DockStyle.Fill;
- this.BringToFront();
- _d = new Dal(ob);
- }
- public void Query(string checkNo, string unitCode)
- {
- DataTable dt = _d.GetTableByXmlId("QcmBcPhyresultDAL.getFilePathByPhy", checkNo, unitCode);
- GridHelper.CopyDataToDatatable(dt, dataTable1, true);
- }
- public void ClearData()
- {
- dataTable1.Clear();
- }
- private void ultraTextEditor1_EditorButtonClick(object sender, Infragistics.Win.UltraWinEditors.EditorButtonEventArgs e)
- {
- string filePath = ultraGrid1.ActiveRow.GetValue("filePath");
- FormFileDown formFile = new FormFileDown(this.ob, filePath);
- formFile.DeleteButton.Visible = false;
- formFile.Show();
- }
- }
- }
|