|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Dynamics.BusinessConnectorNet;
namespace CvrtC2Frnt
{
class AxHelper:BC
{
BC bc = new BC();
Axapta ax;
string tableName = "SalesTable";
AxaptaRecord axRecord;
public void SetAxRec(Boolean Farenhite, double Temp, string SalesId)
{
ax = bc.GetAxConnection();
if (ax != null)
{
using (axRecord = ax.CreateAxaptaRecord(tableName))
{
ax.TTSBegin();
axRecord.ExecuteStmt("select forupdate * from %1 where %1.SalesId ==" + "'" + SalesId + "'" );
axRecord.set_Field(50001, Temp);
if (Farenhite == true)
axRecord.set_Field(50002, 1);
else
axRecord.set_Field(50002, 0);
axRecord.Update();
ax.TTSCommit();
}
}
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.