| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- 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 Core.Mes.Client.Comm.Control;
- using Core.Mes.Client.Comm.Server;
- using Core.Mes.Client.Comm.Tool;
- using Core.StlMes.Client.PlnSaleOrd.BaseMethod;
- using Core.StlMes.Client.PlnSaleOrd.InventoryAdjustment.entity;
- using Core.StlMes.Client.PlnSaleOrd.工序排产;
- using Infragistics.Win.UltraWinGrid;
- namespace Core.StlMes.Client.PlnSaleOrd.InventoryAdjustment
- {
- public partial class TubeRolling : InventoryAdjustment
- {
- public TubeRolling()
- {
- InitializeComponent();
- }
- private string[] plineCode = null;//获取产线代码
- private void TubeRolling_Load(object sender, EventArgs e)
- {
- plineCode = PlanHelper.InitDropPlinePower("D", ucePline, this.ValidDataPurviewIds, this.ob);
- EntityHelper.ShowGridCaption<PlnOrderZgSOEntity>(ugOrderInfo.DisplayLayout.Bands[0]);
- EntityHelper.ShowGridCaption<PlnZyZgMEntityAc>(ugStovePlan.DisplayLayout.Bands[0]);
- BaseHelper.setOtherColumnReadOnly(ugOrderInfo, new[] {"" });
- BaseHelper.setOtherColumnReadOnly(ugStovePlan, new[] { "" });
- }
- protected override void Query()
- {
- string comPlineCode = "";
- if (chcPline.Checked)
- {
- comPlineCode = ucePline.Value == null ? "" : ucePline.Value.ToString();
- }
- WaitingForm2 wf3 = new WaitingForm2("正在查询数据,请稍候....");
- try
- {
- /* this.Cursor = Cursors.WaitCursor;
- //执行状态
- string[] statusArr = contorlPlanStatus1.statusArr;
- //合同号
- string orderNo = "";
- if (chcOrderNo.Checked) { orderNo = txtOrderNo.Text.Trim(); }
- string proPlanId = "";
- if (chcProPlanId.Checked) { proPlanId = txtProPlanId.Text.Trim(); }
- string planTimeB1 = "";
- string planTimeB2 = "";
- if (chcPlanTimeB.Checked && txtPlanTimeB2.Value != null && txtPlanTimeB1.Value != null)
- {
- planTimeB1 = DateTime.Parse(txtPlanTimeB1.Value.ToString()).ToString("yyyy-MM-dd HH:mm:ss");
- planTimeB2 = DateTime.Parse(txtPlanTimeB2.Value.ToString()).ToString("yyyy-MM-dd HH:mm:ss");
- }
- string planTimeE1 = "";
- string planTimeE2 = "";
- if (chcPlanTimeE.Checked && txtPlanTimeE2.Value != null && txtPlanTimeE1.Value != null)
- {
- planTimeE1 = DateTime.Parse(txtPlanTimeE1.Value.ToString()).ToString("yyyy-MM-dd HH:mm:ss");
- planTimeE2 = DateTime.Parse(txtPlanTimeE2.Value.ToString()).ToString("yyyy-MM-dd HH:mm:ss");
- }
- if (plineCode == null)
- {
- MessageUtil.ShowTips("该用户没有轧管产线查看权限!");
- return;
- }
- List<PlnOrderZgSOEntity> listSource = EntityHelper.GetData<PlnOrderZgSOEntity>
- ("com.steering.pss.plnsaleord.processOrder.base.ProducHelper.queryPlanOrderD", new object[] { plineCode, proPlanId, orderNo, statusArr, planTimeB1, planTimeB2, planTimeE1, planTimeE2, comPlineCode }, this.ob);
- plnOrderZgSOEntityBindingSource.DataSource = listSource;*/
-
- }
- finally
- {
- wf3.Close();
- this.Cursor = Cursors.Default;
- }
- }
- }
- }
|