12,162
社区成员
发帖
与我相关
我的任务
分享
private void Button3_Click(object sender, EventArgs e)
{
PrintService.PrintClient client = new PrintService.PrintClient();
Dictionary<string, string> dc = new Dictionary<string, string>();
dc.Add("订单号", string.IsNullOrEmpty(txtOrderID.Text.Trim()) ? "无" : txtOrderID.Text.Trim());
dc.Add("收货人", string.IsNullOrEmpty(txtSMan.Text.Trim()) ? "无" : txtSMan.Text.Trim());
dc.Add("部门", string.IsNullOrEmpty(txtFlag.Text.Trim()) ? "无" : txtFlag.Text.Trim());
dc.Add("收货地址", string.IsNullOrEmpty(txtAddress.Text.Trim()) ? "无" : txtAddress.Text.Trim());
dc.Add("联系电话", string.IsNullOrEmpty(txtPhone.Text.Trim()) ? "无" : txtPhone.Text.Trim());
client.Print(dc);
}