| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- using Core.Mes.Client.Comm.Control;
- using Core.StlMes.Client.Judge.Commons;
- using Core.StlMes.Client.Judge.Forms;
- using CoreFS.CA06;
- using System;
- using System.Data;
- using System.Drawing;
- using System.Windows.Forms;
- namespace Core.StlMes.Client.Judge.Controls
- {
- public partial class PassInfoCtrl : UserControl
- {
- private Dal _d;
- public PassInfoCtrl(Control container, OpeBase ob)
- {
- InitializeComponent();
- _d = new Dal(ob);
- container.Controls.Add(this);
- this.Dock = DockStyle.Fill;
- }
- private string _flag = "";
- private string _judgeStoveNo = "";
- private string _batchNo = "";
- private string _processCode = "";
- public void Query(string judgeStoveNo, string batchNo, string processCode, bool clearData)
- {
- _flag = "bc";
- _judgeStoveNo = judgeStoveNo;
- _batchNo = batchNo;
- _processCode = processCode;
- DataTable dt = _d.GetTableByXmlId("QcmZgJugdeApplyDAL.getPassInfo", judgeStoveNo, batchNo, processCode);
- GridHelper.CopyDataToDatatable(dt, dataTable1, clearData);
- foreach (DataRow row in dataTable1.Rows)
- {
- if (row["batchNo"].ToString() != "") continue;
- row["judgeStoveNo"] = judgeStoveNo;
- row["batchNo"] = batchNo;
- }
- GridHelper.RefreshAndAutoSize(ultraGrid1);
- }
- public void QueryLg(string judgeStoveNo, string batchNo, bool clearData)
- {
- _flag = "lg";
- _judgeStoveNo = judgeStoveNo;
- DataTable dt = _d.GetTableByXmlId("QcmGpJugdeApplyDAL.getPassInfo", judgeStoveNo);
- GridHelper.CopyDataToDatatable(dt, dataTable1, clearData);
- foreach (DataRow row in dataTable1.Rows)
- {
- if (row["judgeStoveNo"].ToString() != "") continue;
- row["judgeStoveNo"] = judgeStoveNo;
- row["batchNo"] = batchNo;
- }
- GridHelper.RefreshAndAutoSize(ultraGrid1);
- }
- public void ClearData()
- {
- dataTable1.Clear();
- }
- private void ultraTextEditor1_EditorButtonClick(object sender, Infragistics.Win.UltraWinEditors.EditorButtonEventArgs e)
- {
- if (_flag == "lg")
- {
- string strurl = "http://172.54.10.42:8080/webroot/decision/view/report?viewlet=RepPdRejectDisposalList.cpt" + "&JUDGE_STOVE_NO=" + _judgeStoveNo;
- FrmOrderRepExcel fBug = new FrmOrderRepExcel(_d.Ob, strurl);
- fBug.AutoSize = true;
- fBug.MaximumSize = new Size(Screen.PrimaryScreen.WorkingArea.Width, Screen.PrimaryScreen.WorkingArea.Height);
- fBug.WindowState = FormWindowState.Maximized;
- fBug.Text = "不合格品评审处置单";
- fBug.Show();
- }
- else if (_flag == "bc")
- {
- string passType = "0";
- if (ultraGrid1.ActiveCell.Column.Key == "urgentAuditResult")
- {
- passType = "1";
- }
- string judgeApplyCode = ultraGrid1.GetActiveRowValue("jugdeApplyCode");
- string strurl = "http://172.54.10.42:8080/webroot/decision/view/report?viewlet=RepZGRejectDisposalList.cpt" + "&JUDGE_STOVE_NO=" + _judgeStoveNo
- + "&BATCH_NO=" + _batchNo + "&JUGDE_APPLY_CODE=" + judgeApplyCode + "&PROCESS_CODE=" + _processCode + "&TYPE=" + passType;
- FrmOrderRepExcel fBug = new FrmOrderRepExcel(_d.Ob, strurl);
- fBug.AutoSize = true;
- fBug.MaximumSize = new Size(Screen.PrimaryScreen.WorkingArea.Width, Screen.PrimaryScreen.WorkingArea.Height);
- fBug.WindowState = FormWindowState.Maximized;
- fBug.Text = "不合格品评审处置单";
- fBug.Show();
- }
- }
- }
- }
|