DEBRA szállítói számla feladás VOL2
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using System.Xml;
|
||||
using DevExpress.Data.Filtering;
|
||||
using DevExpress.ExpressApp;
|
||||
using DevExpress.ExpressApp.Actions;
|
||||
@@ -54,10 +56,12 @@ namespace Nuvolar.Module.Win.CSharp.Controllers
|
||||
if (_NAVProgramPath != "")
|
||||
{
|
||||
_FileName60 = string.Format("{0}{1}.xml", Path.GetTempPath(), _VATReport.ShortName);
|
||||
//Me.Create1465XML(_ocur, _FileName65, _VATReport)
|
||||
//string _ShellCommand = String.Format("{0} ""cmd:open.xml {1}""", _NAVProgramPath, _FileName60);
|
||||
Create60XML(_ocur, _FileName60, _VATReport);
|
||||
string _ShellCommand = String.Format("{0} \"cmd:open.xml {1}\" ", _NAVProgramPath, _FileName60);
|
||||
ProcessStartInfo _ProcessStartInfo = new ProcessStartInfo();
|
||||
_ProcessStartInfo.FileName = _ShellCommand;
|
||||
|
||||
//Shell(_ShellCommand, AppWinStyle.NormalFocus)
|
||||
Process.Start(_ProcessStartInfo);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -71,7 +75,7 @@ namespace Nuvolar.Module.Win.CSharp.Controllers
|
||||
{
|
||||
_FileName60 = _SaveFileDialog.FileName;
|
||||
|
||||
//Me.Create65XML(_ocur, _FileName65, _VATReport)
|
||||
Create60XML(_ocur, _FileName60, _VATReport);
|
||||
|
||||
|
||||
//MsgBox(String.Format("Az XML file ""{0}"" névvel a következő helyen került elmentésre:" + vbNewLine + "{1}", System.IO.Path.GetFileName(_SaveFileDialog.FileName), IO.Path.GetFullPath(_SaveFileDialog.FileName)), _
|
||||
@@ -79,5 +83,27 @@ namespace Nuvolar.Module.Win.CSharp.Controllers
|
||||
}
|
||||
}
|
||||
}
|
||||
private void Create60XML(XPObjectSpace _ocur, string _FileName60, VATReport _VATReport)
|
||||
{
|
||||
XmlTextWriter _XmlTextWriter = new XmlTextWriter(_FileName60, System.Text.Encoding.UTF8);
|
||||
_XmlTextWriter.WriteEndElement();
|
||||
/* --Itt kezdődik ... -------------------------------------------------------------------------------------*/
|
||||
|
||||
|
||||
|
||||
/* -- Itt végződik ... ------------------------------------------------------------------------------------*/
|
||||
_XmlTextWriter.Flush();
|
||||
_XmlTextWriter.Close();
|
||||
|
||||
}
|
||||
private void UploadField(XmlTextWriter _XmlTextWriter, string _FieldID, string _ValueString)
|
||||
{
|
||||
_XmlTextWriter.WriteStartElement("mezo");
|
||||
_XmlTextWriter.WriteAttributeString("eazon", _FieldID);
|
||||
_XmlTextWriter.WriteString(_ValueString);
|
||||
_XmlTextWriter.WriteEndElement();
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user