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.StlMes.Client.SaleOrder; using Core.StlMes.Client.SaleComm; using System.Collections; namespace Core.StlMes.Client.SaleOrder { public partial class dlgBuyerInfo : FrmBase { public CoreFS.CA06.OpeBase oPbd = null; public string customer = ""; public string FilePath = ""; public dlgBuyerInfo() { InitializeComponent(); } private void dlgBuyerInfo_Load(object sender, EventArgs e) { this.ob = oPbd; DataTable dt = Globals.GetData("com.steering.pss.sale.order.CoreOrderReviewLaw.customerdbQuery", new Object[] { customer }, this.ob); //HO_CUSTM.Text = dt.Rows[0][0].ToString(); ctrlFileDown1.FilePath = FilePath; if (dt.Rows.Count > 0) { CHM_CUST.Value = dt.Rows[0][0].ToString(); CHM_PRPTY.Value = dt.Rows[0][1].ToString(); CHM_LVL.Value = dt.Rows[0][2].ToString(); CHO_MEMO.Text = dt.Rows[0][3].ToString(); CHO_PSN.Text = dt.Rows[0][4].ToString(); CHO_AGENT.Text = dt.Rows[0][5].ToString(); CHO_ID.Text = dt.Rows[0][6].ToString(); CHO_REGION.Text = dt.Rows[0][7].ToString(); CHO_REGI.Text = dt.Rows[0][8].ToString(); CHO_ADDRESS.Text = dt.Rows[0][9].ToString(); CHO_BANK.Text = dt.Rows[0][10].ToString(); CHO_ACCOUNT.Text = dt.Rows[0][11].ToString(); CHO_ORG.Text = dt.Rows[0][12].ToString(); CHO_CODE.Text = dt.Rows[0][13].ToString(); CHO_PHONE.Text = dt.Rows[0][14].ToString(); CHO_FAX.Text = dt.Rows[0][15].ToString(); CHO_CUSTM.Text = dt.Rows[0][16].ToString(); CHO_MANAY.Text = dt.Rows[0][17].ToString(); } try { // this.button1.BackgroundImage = Image.FromFile("E:/1、工作目录/1、项目/1、天钢项目/3、天管SVN/Client/TGMES/output/image/aa.jpg"); //System.Data.DataSet dst = new DataSet(); //System.Data.DataTable tab1 = new DataTable(); //this.customer_imger.Rows[0].Cells[0].Value = Image.FromFile("E:/1、工作目录/1、项目/1、天钢项目/3、天管SVN/Client/TGMES/output/image/aa.jpg"); //tab1.Columns.Add("col1", typeof(dst)); //tab1.Columns.Add("col2", typeof(string)); //tab1.Columns.Add("col3", typeof(string)); //System.Data.DataRow[] rows = tab1.GetChanges(); // rows[0].RowState = DataRowState. } catch (System.Exception ex) { } } private void buload_Click(object sender, EventArgs e) { //ctrlFileDown1.FilePath = loadtx.Text; } } }