| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- using System;
- using System.Collections.Generic;
- using System.Windows.Forms;
- using Core.Mes.Client.Comm.Control;
- using Core.Mes.Client.Comm.Tool;
- using Core.StlMes.Client.PlnSaleOrd.PopupWindow;
- using CoreFS.CA06;
- using Infragistics.Win.UltraWinGrid;
- using Core.StlMes.Client.PlnSaleOrd.Entity;
- namespace Core.StlMes.Client.PlnSaleOrd
- {
- public partial class FrmYieldInOutputQuery : FrmBase
- {
- public FrmYieldInOutputQuery()
- {
- InitializeComponent();
- this.IsLoadUserView = true;
- }
- public override void ToolBar_Click(object sender, string ToolbarKey)
- {
- switch (ToolbarKey)
- {
- case "Query":
- Query();
- break;
- case "Export":
- GridHelper.ulGridToExcel(ugData, "产量投入产出价格信息", true);
- break;
- case "Close":
- Close();
- break;
- }
- }
- protected override void OnLoad(EventArgs e)
- {
- base.OnLoad(e);
- EntityHelper.ShowGridCaption<QcmZgJugdeApplyEntity>(ugData.DisplayLayout.Bands[0]);
- GridHelper.SetAllColumnsActive(ugData);
- }
- private void Query()
- {
- var Message = "";
- var wf = new WaitingForm2("正在查询,请稍候....");
- try
- {
- Cursor = Cursors.WaitCursor;
- var dic = new Dictionary<string, object>();
- if (chkTim.Checked)
- {
- dic.Add("time", DateTime.Parse(txtMonth.Value.ToString()).ToString("yyyyMM"));
- }
- if (chkCarNo.Checked)
- dic.Add("judgeStoveNo", txtNo.Text);
- //dic.Add("validflag", new List<string>() { "1" });
- QueryBS.DataSource = EntityHelper.GetData<QcmZgJugdeApplyEntity>(
- "com.steering.pss.plnsaleord.report.FrmYieldInOutputQuery.doQuery",
- new object[] { dic },
- ob);
- GridHelper.RefreshAndAutoSizeExceptColumns(ugData, "");
- }
- catch (Exception ex)
- {
- if (ex.Message.ToString2() != "")
- Message = ex.Message;
- }
- finally
- {
- wf.Close();
- Cursor = Cursors.Default;
- }
- if (!string.IsNullOrWhiteSpace(Message))
- MessageBox.Show(Message);
-
- }
- }
- }
|