| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- using Core.Mes.Client.Comm.Control;
- using Core.Mes.Client.Comm.Tool;
- using Core.StlMes.Client.PlnSaleOrd.BaseMethod;
- using Core.StlMes.Client.PlnSaleOrd.报表.entity;
- using CoreFS.CA06;
- 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;
- namespace Core.StlMes.Client.PlnSaleOrd.报表
- {
- public partial class FrmJGInformation : FrmBase
- {
- public FrmJGInformation()
- {
- this.IsLoadUserView = true;
- InitializeComponent();
- }
- private void FrmJGInformation_Load(object sender, EventArgs e)
- {
- BaseHelper.InitCellPosition(ultraGridJG, new string[] { "NumJg", "MinD", "MinH", "AimlengthBl", "PlanNum", "Matchnum", "JgwtBlreq",
- "Outdiameter", "Wallthick" ,"Aimlength","JgblReqWeight","JgblReqNum","OrderQty","Orderweight","Ordernum"});
- BaseHelper.setOtherColumnReadOnly(ultraGridJG, new string[] { "CHC" });
- }
- public override void ToolBar_Click(object sender, string ToolbarKey)
- {
- base.ToolBar_Click(sender, ToolbarKey);
- switch (ToolbarKey)
- {
- case "Query"://查询
- Query();
- break;
- case "Export": //导出
- GridHelper.ulGridToExcel(ultraGridJG, "接箍合同综合信息");
- break;
- case "Close": //关闭
- this.Close();
- break;
- default:
- break;
- }
- }
- private void Query()
- {
- string rollMonth="";
- if (chcRollMonth.Checked && txtRollMonth.Value != null)
- {
- rollMonth = DateTime.Parse(txtRollMonth.Value.ToString()).ToString("yyyy-MM");
- }
- string orderNo = "";
- if (chcOrderNo.Checked)
- {
- orderNo = txtOrderNo.Text.Trim();
- }
- string orderStatus = "";
- if (chcOrderStatus.Checked && txtOrderStatus.Value != null)
- {
- orderStatus = txtOrderStatus.Value.ToString();
- }
- List<JGInformationEntity> listSource = EntityHelper.GetData<JGInformationEntity>
- ("com.steering.pss.plnsaleord.report.FrmJGInformation.queryJgInformation", new object[] { rollMonth, orderNo, orderStatus }, this.ob);
- jGInformationEntityBindingSource.DataSource = listSource;
- }
- private void chc_CheckedChanged(object sender, EventArgs e)
- {
- if (chcRollMonth.Checked) { txtRollMonth.ReadOnly = false; } else { txtRollMonth.ReadOnly = true; }
- if (chcOrderNo.Checked) { txtOrderNo.ReadOnly = false; } else { txtOrderNo.ReadOnly = true; }
- if (chcOrderStatus.Checked) { txtOrderStatus.ReadOnly = false; } else { txtOrderStatus.ReadOnly = true; }
- }
- }
- }
|