Esempio n. 1
0
 public string PalletALabel(string FilePH, string Dn,string Pallet)
 {
     PalletAXmlCreator xmlCreator = null;
     xmlCreator = new PalletAXmlCreator();
     string res = null;
     try
     {
         xmlCreator.LoadPalletADatabaseData(Dn.ToString().Trim() + @"/" + Pallet.ToString().Trim());
         xmlCreator.WriteXml(FilePH, true);
         res = Dn;
     }
     catch (Exception err)
     {
         res = err.Message.ToString();
     }
     return res;
 }
Esempio n. 2
0
 public string PalletALabel(string FilePH, string Dn,string Pallet)
 {
     logger.Info("PalletALabel begin; FilePH=" + FilePH + " , Dn=" + Dn + " , Pallet=" + Pallet);
     PalletAXmlCreator xmlCreator = null;
     xmlCreator = new PalletAXmlCreator();
     string res = null;
     try
     {
         ChkAndCreatePath(FilePH);
         xmlCreator.LoadPalletADatabaseData(Dn.ToString().Trim() + @"/" + Pallet.ToString().Trim());
         xmlCreator.WriteXml(FilePH, true);
         res = Dn;
     }
     catch (Exception err)
     {
         res = RecordError("PalletALabel", ref err);
     }
     finally
     {
         logger.Info("PalletALabel end");
     }
     return res;
 }