| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- 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 FrmBuyChooseSupplier : FrmBase
- {
- private CoreFS.CA06.OpeBase ob = new OpeBase();
- public string ID { get; set; }
- public FrmBuyChooseSupplier(OpeBase ops)
- {
- this.ob = ops;
- InitializeComponent();
- }
- private void FrmBuyChooseSupplier_Load(object sender, EventArgs e)
- {
-
-
- ultraGrid1_Bind();
- ultraGrid3_Bind();
- }
- private void ultraGrid1_Bind()
- {
- DataTable dt = ServerHelper.GetData("com.steering.pss.buybillet.Buybillet.queryBUY_BASE_CUSTOMER", new object[] { }, this.ob);
- this.ultraGrid1.DataSource = dt;
- }
- private void ultraGrid3_Bind()
- {
- DataTable dt = ServerHelper.GetData("com.steering.pss.buybillet.Buybillet.queryBUY_GP_REQ_SUPPLIER", new object[] {ID}, this.ob);
- this.ultraGrid3.DataSource = dt;
- }
- private void tsb_save_Click(object sender, EventArgs e)
- {
- UltraGridRow supplierRow = this.ultraGrid1.ActiveRow;
- UltraGridRow requireRow = this.ultraGrid3.ActiveRow;
- string supplier = supplierRow.Cells["CUSTOMER_NM"].Value.ToString();
- string id =requireRow.Cells["GPREQ_ID"].Value.ToString();
- int suceed = ServerHelper.SetData("com.steering.pss.buybillet.Buybillet.InsertBUY_GP_ORDER", new object[] {supplier, ID }, this.ob);
- if (suceed > 0)
- {
- MessageBox.Show("保存成功!");
- this.Close();
- }
- }
- }
- }
|