| | |
| | | TableCell QuantityObj = report.FindObject("Quantity") as TableCell; |
| | | if (QuantityObj != null) |
| | | { |
| | | QuantityObj.Text = inbound.Quantity.ToString(); |
| | | QuantityObj.Text = inbound.Quantity.ToString("0"); |
| | | } |
| | | TableCell ProductDrawingNumberObj = report.FindObject("ProductDrawingNumber") as TableCell; |
| | | if (ProductDrawingNumberObj != null) |
| | |
| | | { |
| | | WeightObj.Text = inbound.Weight.ToString(); |
| | | } |
| | | TableCell DemandClassification = report.FindObject("DemandClassification") as TableCell; |
| | | if (DemandClassification != null) |
| | | { |
| | | DemandClassification.Text = inbound.DemandClassification.ToString(); |
| | | } |
| | | report.Print(); |
| | | report.Dispose(); |
| | | } |
| | | return new { code = 200, status = false }; |
| | | return new { Code = 200, Status = true , Message = "æå°æå" }; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | return ex.Message; |
| | | return new { Code = 400, Status = false, Message = "æå°å¤±è´¥ï¼è¯·æ¥çæ¯å¦è¿æ¥æå°æº" }; |
| | | } |
| | | } |
| | | |
| | |
| | | report.Print(); |
| | | report.Dispose(); |
| | | } |
| | | return new { code = 200, status = false }; |
| | | return new { Code = 400, Status = false, Message = "æå°æå" }; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | return ex.Message; |
| | | return new { Code = 400, Status = false, Message = "æå°å¤±è´¥ï¼è¯·æ¥çæ¯å¦è¿æ¥æå°æº" }; |
| | | } |
| | | } |
| | | |
| | |
| | | public class InboundOrder |
| | | { |
| | | public string OrderNo { get; set; } |
| | | public string DemandClassification { get; set; } |
| | | public string UpperOrderNo { get; set; } |
| | | public string WarehouseName { get; set; } |
| | | public string MaterialNo { get; set; } |