| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- 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 ProcessFileCtrl : UserControl
- {
- private Dal _d;
- private OpeBase ob;
- public ProcessFileCtrl(Control container, OpeBase ob, bool showProcess)
- {
- InitializeComponent();
- this.ob = ob;
- container.Controls.Add(this);
- this.Dock = DockStyle.Fill;
- this.BringToFront();
- _d = new Dal(ob);
- if (!showProcess)
- {
- ultraGrid1.DisplayLayout.Bands[0].Columns["processDesc"].Hidden = true;
- }
- }
- public void Query(string judgeApplyCode, string judgeApplySeq, string judgeStoveNo)
- {
- DataTable dt = _d.GetTableByXmlId("QcmGpJugdeApplyDAL.queryProcessFile", judgeApplyCode, judgeApplySeq, judgeStoveNo);
- GridHelper.CopyDataToDatatable(dt, dataTable1, true);
- }
- public void QueryByBatchNo(string judgeApplyCode, string judgeStoveNo, string batchNo)
- {
- DataTable dt = _d.GetTableByXmlId("QcmZgJugdeApplyDAL.getProcessFile", judgeApplyCode, judgeStoveNo, batchNo);
- GridHelper.CopyDataToDatatable(dt, dataTable1, true);
- }
- public void QueryByBatchNoZc(string judgeStoveNo, string batchNo)
- {
- DataTable dt = _d.GetTableByXmlId("QcmZgJugdeApplyDAL.getProcessFileZc", judgeStoveNo, batchNo);
- 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("processResultPath");
- FormFileDown formFile = new FormFileDown(this.ob, filePath);
- formFile.DeleteButton.Visible = false;
- formFile.Show();
- }
- }
- }
|