You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
75 lines
2.1 KiB
75 lines
2.1 KiB
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;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 页面加载
|
|
/// </summary>
|
|
/// <param name="sender"></param>
|
|
/// <param name="e"></param>
|
|
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<DataTable>(QMAPP.ServicesAgent.FrmPlaceManage.TJFrmPlaceBLL_GetPascardDetailsByPid.ToString(), pasterkey);
|
|
dgvMat.DataSource = tbl;
|
|
}
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
MessageBox.Show(ex.Message);
|
|
}
|
|
#endregion
|
|
}
|
|
|
|
}
|
|
}
|
|
|