| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- 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 Core.Mes.Client.Comm.Server;
- using Core.Mes.Client.Comm.Control;
- using Infragistics.Win.UltraWinGrid;
- using System.Net;
- using System.Collections;
- using CoreFS.SA06;
- namespace Core.StlMes.Client.BuyBillet
- {
- public partial class FrmBuyCf : FrmBase
- {
- public event Action OnOrderCfFinished;
- public string ORD_NO_PK;
- public FrmBuyCf(OpeBase ops)
- {
- this.ob = ops;
- InitializeComponent();
- }
- private void FrmBuyCf_Load(object sender, EventArgs e)
- {
- BindToGrid1();
- BindToGrid2();
- }
- private void ts_btn_save_Click(object sender, EventArgs e)
- {
- ultraGrid2.UpdateData();
- UltraGridRow supplierRow = this.ultraGrid1.ActiveRow;
- UltraGridRow requireRow = this.ultraGrid2.ActiveRow;
- string supplier = supplierRow.Cells["SUPPLIER"].Value.ToString();
- string weight = requireRow.Cells["WEIGHT_NUM"].Value.ToString();
-
- ServerHelper.SetData("com.steering.pss.buybillet.Buybillet.updateBUY_GP_ORDERCF", new object[] { ORD_NO_PK, supplier,weight }, this.ob);
- if (OnOrderCfFinished != null)
- {
- OnOrderCfFinished();
- }
- this.Close();
- }
- private void BindToGrid1()
- {
- DataTable dt = ServerHelper.GetData("com.steering.pss.buybillet.Buybillet.queryBUY_GP_ORDERCF", new object[] { ORD_NO_PK, "1" }, this.ob);
- this.ultraGrid1.DataSource = dt;
- }
- private void BindToGrid2()
- {
- DataTable dt = ServerHelper.GetData("com.steering.pss.buybillet.Buybillet.queryBUY_GP_ORDERCF", new object[] { ORD_NO_PK, "2" }, this.ob);
- this.ultraGrid2.DataSource = dt;
-
- }
- }
- }
|