Beispiel #1
0
 /// <summary>
 /// 打印-签收单
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void printBackOrder_Click(object sender, EventArgs e)
 {
     if (dgv_OrderDetail.Rows.Count > 0 && dgv_OrderDetail.CurrentRow != null)
     {
         string    pringxml  = string.Empty;
         DataRow[] arrayDR02 = CnasBaseData.SystemBaseData.Select("type_code='HCS-print-type' and key_code='OrderForBack'");
         if (arrayDR02.Length > 0)
         {
             pringxml = Convert.ToString(arrayDR02[0]["other_code"]).Trim();
         }
         if (!string.IsNullOrEmpty(pringxml))
         {
             DataGridViewRow row      = dgv_OrderDetail.CurrentRow;
             string          orderNum = Convert.ToString(row.Cells["set_code"].Value);
             string          batch    = Convert.ToString(row.Cells["batch"].Value);
             OrderHelper.BackOrderPrint(orderNum, batch, pringxml);
         }
         else
         {
             MessageBox.Show(PromptMessageXmlHelper.Instance.GetPromptMessage("notfindPrintTemplage", EnumPromptMessage.warning), "信息提示", MessageBoxButtons.OK, MessageBoxIcon.Error);
         }
     }
     else
     {
         MessageBox.Show(PromptMessageXmlHelper.Instance.GetPromptMessage("fillorderitem", EnumPromptMessage.warning), "信息提示", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }