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 System.Collections; using Core.Mes.Client.Comm.Tool; using Infragistics.Win.UltraWinGrid; using Core.Mes.Client.Comm.Control; using Infragistics.Win; namespace Core.StlMes.Client.Lims.Data.PipeAndOutdec { public partial class FrmOutdecPhyResultQuote : FrmBase { private string arrIdStr;//数据权限 public FrmOutdecPhyResultQuote() { InitializeComponent(); } protected override void OnLoad(EventArgs e) { base.OnLoad(e); } private void FrmMatQueryResult_Load(object sender, EventArgs e) { arrIdStr = PublicPipeAndOutdec.ValidDataString(UserInfo.GetUserName() == "admin" ? PublicPipeAndOutdec.ValidData() : this.ValidDataPurviewIds); //InitColumns(); } private void InitColumns() { } /// /// 重写基类方法 /// /// /// public override void ToolBar_Click(object sender, string ToolbarKey) { //新增、修改修约值、审核、删除、退出 switch (ToolbarKey) { case "Query": RepLimsOutdecPhyResultQuote(); break; case "Close": if (MessageUtil.ShowYesNoAndQuestion("是否确认关闭页面?") == DialogResult.Yes) { this.Close(); } break; } } private void RepLimsOutdecPhyResultQuote() { try { if (arrIdStr == null || arrIdStr == "") { arrIdStr = PublicPipeAndOutdec.ValidDataString(UserInfo.GetUserName() == "admin" ? PublicPipeAndOutdec.ValidData() : this.ValidDataPurviewIds); } ArrayList arrayList = outdecQueryBase1.GetQueryInfo(); string strurl = ""; //if (ob.MainUrl.StartsWith("http://127.0.0.1")) //{ // strurl = "http://localhost:8075/webroot/decision/view/report?viewlet=RepLimsOutdecPhyResultQuote.cpt&op=view&bypagesize=false" + "&START_DATE=" + arrayList[0].ToString() + "&END_DATE=" + arrayList[1].ToString() + "&SAMPLE_NAME=" + arrayList[2].ToString() + "&PRODUCT_STD=" + arrayList[5].ToString() + "&CHECK_NO=" + arrayList[8].ToString() + "&DEPT_ID=" + arrIdStr; //} //else //{ strurl = "http://172.54.10.42:8080/webroot/decision/view/report?viewlet=RepLimsOutdecPhyResultQuote.cpt&op=view&bypagesize=false" + "&START_DATE=" + arrayList[0].ToString() + "&END_DATE=" + arrayList[1].ToString() + "&STEEL_GRADE_NO=" + arrayList[2].ToString() + "&SAMPLE_NAME=" + arrayList[5].ToString() + "&CHECK_NO=" + arrayList[8].ToString() + "&DEPT_ID=" + arrIdStr; //} webBrowser1.Url = new Uri(strurl); this.webBrowser1.ScriptErrorsSuppressed = true;//屏蔽脚本错误 } finally { this.Cursor = Cursors.Default; } } } }