/// <summary> /// 加载数据 /// </summary> /// <param name="MaterialGuid"></param> private void FillData(string ClientGuid) { ClientManage Clientmanage = new ClientManage(); DataTable dtl = Clientmanage.GetClientData_CN(ClientGuid); if (dtl.Rows.Count > 0) { txtGuid.Text = dtl.Rows[0]["Guid"].ToString(); txtName.Text = dtl.Rows[0]["Name"].ToString(); txtSimpName.Text = dtl.Rows[0]["SimpName"].ToString(); txtLinkMan.Text = dtl.Rows[0]["LinkMan"].ToString(); txtTelephone.Text = dtl.Rows[0]["Telephone"].ToString(); txtFax.Text = dtl.Rows[0]["Fax"].ToString(); txtAddress.Text = dtl.Rows[0]["Address"].ToString(); txtZip.Text = dtl.Rows[0]["Zip"].ToString(); txtRemark.Text = dtl.Rows[0]["Remark"].ToString(); cboSellType.Text = dtl.Rows[0]["SellType"].ToString(); txtProductName.Text = dtl.Rows[0]["ProductName"].ToString(); if (dtl.Rows[0]["IsEnable"].ToString() == "1") { chkIsEnable.Checked = true; } else { chkIsEnable.Checked = false; } } this.ShowDialog(); }
/// <summary> /// 加载数据 /// </summary> /// <param name="MaterialGuid"></param> private void FillData(string ClientGuid) { ClientManage Clientmanage = new ClientManage(); DataTable dtl = Clientmanage.GetClientData_CN(ClientGuid); if (dtl.Rows.Count > 0) { txtGuid.Text = dtl.Rows[0]["Guid"].ToString(); txtName.Text = dtl.Rows[0]["Name"].ToString(); txtSimpName.Text = dtl.Rows[0]["SimpName"].ToString(); txtLinkMan.Text = dtl.Rows[0]["LinkMan"].ToString(); txtTelephone.Text = dtl.Rows[0]["Telephone"].ToString(); txtFax.Text = dtl.Rows[0]["Fax"].ToString(); txtAddress.Text = dtl.Rows[0]["Address"].ToString(); txtZip.Text = dtl.Rows[0]["Zip"].ToString(); txtRemark.Text = dtl.Rows[0]["Remark"].ToString(); } this.ShowDialog(); }