Пример #1
0
 public string BoxShipToShipmentLabel(string FilePH, string Dn, string SerialNum)
 {
     BoxLabelShipmentXmlCreator xmlCreator = null;
     xmlCreator = new BoxLabelShipmentXmlCreator();
     string res = null;
     try
     {
         xmlCreator.LoadBoxLabelDatabaseData(Dn.ToString().Trim() + @"/" + SerialNum.ToString().Trim());
         xmlCreator.WriteXml(FilePH, true);
         res = Dn;
     }
     catch (Exception err)
     {
         res = err.Message.ToString();
     }
     return res;
 }
Пример #2
0
 public string BoxShipToShipmentLabel(string FilePH, string Dn, string SerialNum)
 {
     logger.Info("BoxShipToShipmentLabel begin; FilePH=" + FilePH + " , Dn=" + Dn + " , SerialNum=" + SerialNum);
     BoxLabelShipmentXmlCreator xmlCreator = null;
     xmlCreator = new BoxLabelShipmentXmlCreator();
     string res = null;
     try
     {
         ChkAndCreatePath(FilePH);
         xmlCreator.LoadBoxLabelDatabaseData(Dn.ToString().Trim() + @"/" + SerialNum.ToString().Trim());
         xmlCreator.WriteXml(FilePH, true);
         res = Dn;
     }
     catch (Exception err)
     {
         res = RecordError("BoxShipToShipmentLabel", ref err);
     }
     finally
     {
         logger.Info("BoxShipToShipmentLabel end");
     }
     return res;
 }