num2str
(
moneyReal,
-1, // Minimum number of characters to output into the string. -1 means infinite number of characters
-1, // Required number of digits to the right of the decimal. -1 means infinite number of digitis
DecimalSeparator::Dot, // 1
ThousandSeparator::Comma // 2
);
印仔 发布的文章
财务维度 新建
private DimensionDefault CreateDefaultDimension(container conAttr, container conValue)
{
DimensionAttributeValueSetStorage valueSetStorage = new DimensionAttributeValueSetStorage();
int i;
DimensionAttribute dimensionAttribute;
DimensionAttributeValue dimensionAttributeValue;
str dimValue;
for (i = 1; i <= conLen(conAttr); i++)
{
dimensionAttribute = dimensionAttribute::findByName(conPeek(conAttr,i));
if (dimensionAttribute.RecId == 0)
{
continue;
}
dimValue = conPeek(conValue,i);
if (dimValue != "")
{
// The last parameter is "true". A dimensionAttributeValue record will be created if not found.
dimensionAttributeValue =
dimensionAttributeValue::findByDimensionAttributeAndValue(dimensionAttribute,dimValue,false,true);
// Add the dimensionAttibuteValue to the default dimension
valueSetStorage.addItem(dimensionAttributeValue);
}
}
return valueSetStorage.save();
}
————————————————
版权声明:本文为CSDN博主「mahailiang」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/mahailiang/article/details/82383086
tb.LedgerDimension = LedgerDynamicAccountHelper::getDynamicAccountFromAccountNumber( accountNum, tb.AccountType);
if(conLen( defaultDimCon))
{
tb.DefaultDimension = IWS_DefaultDimensionHelper::appendDimensions(0, defaultDimCon);
}
tb.LedgerDimension = LedgerDimensionFacade::serviceCreateLedgerDimension( tb.LedgerDimension, tb.DefaultDimension);
Service
X++ generate zip file.
System.IO.MemoryStream zipFileContents = new System.IO.MemoryStream();
// zip the file
using (System.IO.Compression.ZipArchive zipArchive = new System.IO.Compression.ZipArchive(zipFileContents, System.IO.Compression.ZipArchiveMode::Create, true))
{
foreach( item in list)
{
System.IO.Compression.ZipArchiveEntry fileEntry = zipArchive.CreateEntry( foundryWipCategory.Device +' '+ fileSuf );
System.IO.MemoryStream fileStream = item;
//原文中这里是使用streamReader.ReadToEnd() String中转,可能造成编码问题,除非是纯文本文件,慎用。
using(var s = fileEntry.Open() )
{
fileStream.CopyTo(s);
}
}
}
zipFileContents.Position = 0;
//file::SendFileToUser( this.genFile('8176AL1D'), FileSuf);
file::SendFileToUser(zipFileContents, zipSuf);
Remote Desktop Connect Manager(RdcMan)
## 全屏后头部会有ActionPane
删除我的文档下Default.rdp;
## 全屏后会留下本机任务栏
RdcMan不最大化的情况下FullScreen Connect;