| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- 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 Infragistics.Win.UltraWinGrid;
- using Core.Mes.Client.Comm.Server;
- using Core.Mes.Client.Comm.Control;
- using Core.Mes.Client.Comm.Tool;
- using Infragistics.Win.UltraWinEditors;
- using System.Text.RegularExpressions;
- using com.steering.mes.fprecall;
- namespace Core.StlMes.Client.MilCount
- {
- public partial class FrmModifyNY : FrmBase
- {
- public FrmModifyNY()
- {
- InitializeComponent();
- }
- public override void ToolBar_Click(object sender, string ToolbarKey)
- {
- switch (ToolbarKey)
- {
- case "doQuery":
- doQuery();
- break;
- case "doModify":
- Update();
- break;
- //case "doDelete":
- // this.doDeleteOrResume(true);
- // break;
- //case "doResume":
- // this.doDeleteOrResume(false);
- // break;
- //case "Close":
- // this.Close();
- //break;
- }
- }
- private void doQuery()
- {
- string titleName = "";
- if (ultraCheckEditor1.Checked)
- {
- titleName = txt_jzny.Text.Trim();
- DataTable dt = ServerHelper.GetData("com.steering.mes.fprecall.coreModifyNY.getLineList", new Object[] { titleName }, this.ob);
- GridHelper.CopyDataToDatatable(ref dt, ref this.dataTable1, true);
- }
- else
- {
- DataTable dt = ServerHelper.GetData("com.steering.mes.fprecall.coreModifyNY.getLineList_all", null, this.ob);
- GridHelper.CopyDataToDatatable(ref dt, ref this.dataTable1, true);
- }
- GridHelper.RefreshAndAutoSize(this.ultraGrid1);
- }
- private void Update()
- {
- ultraGrid1.UpdateData();
- ArrayList list = new ArrayList();
- ArrayList list1 = new ArrayList();
- foreach (Infragistics.Win.UltraWinGrid.UltraGridRow row in ultraGrid1.Rows)
- {
- if (Convert.ToBoolean(row.Cells["CHK"].Value))
- {
- String Jzny = txt_UpdateJzjy.Text;
- list.Add(Jzny);
- String ZGLode = row.Cells["ZGLode"].Value.ToString();
- list1.Add(ZGLode);
-
- }
- }
- ServerHelper.SetData("com.steering.mes.fprecall.coreModifyNY.setUpdateList", new Object[] { list, list1 }, this.ob);
- MessageUtil.ShowTips("提交成功!");
- doQuery();
- }
- private void ultraGrid1_ClickCell(object sender, ClickCellEventArgs e)
- {
- Infragistics.Win.UltraWinGrid.UltraGridRow row = ultraGrid1.ActiveRow;
- txt_UpdateJzjy.Text = row.Cells["JZNY"].Value.ToString();
- }
- }
- }
|