using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using CoreFS.CA06; using Infragistics.Win.UltraWinEditors; using Core.StlMes.Client.ZGMil.Signature; using Core.StlMes.Client.ZGMil.Entity; using Core.Mes.Client.Comm.Control; using Infragistics.Win.UltraWinGrid; using Core.Mes.Client.Comm.Tool; using Core.Mes.Client.Comm.Server; using CoreFS.SA06; using System.Collections; using Infragistics.Win; namespace Core.StlMes.Client.ZGMil { public partial class FrmTubeRollFile : FrmBase { //private string departm = ""; UltraComboEditor ucePline = new UltraComboEditor();//产线名称 private string plineCode; private string strgx = ""; public FrmTubeRollFile(string plineCode1,OpeBase ob,string gx) { InitializeComponent(); plineCode = plineCode1; strgx = gx; this.ob = ob; } private void FrmTubeRollFile_Load(object sender, EventArgs e) { NativeMethodNew na = new NativeMethodNew(this.ob); //plineCode = na.GetPCodePline(this.ValidDataPurviewIds);//获取 用户 对应的产线 //departm = UserInfo.GetDepartment(); //plineCode = na.GetPCode(departm);//获取 用户 对应的产线 TubeRoll.InitComboEditorValue(ucePline, "com.steering.mes.signature.FrmTubeRollFileManage.queryPlineCode", "PLINE_CODE", this.ob, false, plineCode); TubeRoll.BindColumn(ucePline, "PLINE_CODE", this.Controls, this.ultraGrid1, 0); DoQuery(); } private void DoQuery() { DataTable dt = ServerHelper.GetData("com.steering.mes.signature.FrmTubeRollFileManage.queryMinStgnature1", new Object[] { plineCode, strgx }, this.ob); GridHelper.CopyDataToDatatable(dt, this.dataTable1, true); } private void ultraToolbarsManager1_ToolClick(object sender, Infragistics.Win.UltraWinToolbars.ToolClickEventArgs e) { switch (e.Tool.Key) { case "Query": DoQuery(); break; case "Close": this.Close(); break; case "Save": DoSave(); break; default: break; } } private string pline = ""; public string Pline { get { return pline; } set { pline = value; } } private string group = ""; public string Group { get { return group; } set { group = value; } } private string username = ""; public string Username { get { return username; } set { username = value; } } private string url = ""; public string Url { get { return url; } set { url = value; } } private string memo = ""; public string Memo { get { return memo; } set { memo = value; } } private string procNo = ""; public string ProcNo { get { return procNo; } set { procNo = value; } } private string userID = ""; public string UserID { get { return userID; } set { userID = value; } } private void DoSave() { ultraGrid1.UpdateData(); UltraGridRow ugr = ultraGrid1.ActiveRow; if (ugr == null) return; pline = ugr.Cells["PLINE_CODE"].Text.Trim(); group = ugr.Cells["COL_GROUP"].Text.Trim(); username = ugr.Cells["COL_USER"].Text.Trim(); url = ugr.Cells["SIGN_ROUTE"].Text.Trim(); memo = ugr.Cells["REMARK"].Text.Trim(); procNo = ugr.Cells["PROCESS_NO"].Text.Trim(); userID = ugr.Cells["USER_ID"].Text.Trim(); this.DialogResult = DialogResult.OK; this.Close(); } } }