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 Model; using DCS.Place; namespace QMAPP.WinForm.Forms.TianJin { public partial class TJFrmCarCardDetail : Form { public TJFrmCarCardDetail() { InitializeComponent(); } private string pasterkey = ""; public TJFrmCarCardDetail(string pastecardkey) { pasterkey = pastecardkey; InitializeComponent(); } EPasteCard pastecard; string ptroducttype = ""; string printtype = ""; public bool isprint = false; public TJFrmCarCardDetail(EPasteCard ppaste, string pstrprodtype, string pprinttype) { printtype = pprinttype; pastecard = ppaste; ptroducttype = pstrprodtype; InitializeComponent(); } public void getdate() { dgvMat.DataMember = null; dgvMat.DataSource = pastecard.DetailsCardlist; } /// /// 页面加载 /// /// /// private void FrmCarCardPrintShow_Load(object sender, EventArgs e) { #region try { //btnPrint.Enabled = true; if (printtype == "手动") { ITEMNO.Visible = false; getdate(); } else { QMAPP.ServicesAgent.ServiceAgent agent = ClientContext.GetServiceAgent(); DataTable tbl = agent.InvokeServiceFunction(QMAPP.ServicesAgent.FrmPlaceManage.TJFrmPlaceBLL_GetPascardDetailsByPid.ToString(), pasterkey); dgvMat.DataSource = tbl; } } catch (Exception ex) { MessageBox.Show(ex.Message); } #endregion } } }