2024年3月

GIT使用,修改 .gitignore 文件,如何重新生效

git rm -r --cached .                       # 清除缓存 
git add .                                  # 追踪文件
git commit -m "更新.gitignore"             # 注释提交 
git push origin master                     # 推送远程

class IWS_RefreshUnrecievedInvoiceRunbase extends RunBaseBatch
{

protected void new()
{
    super();
}

public boolean canRunInNewSession()
{
    return true;
}

static IWS_RefreshUnrecievedInvoiceRunbase construct()
{
    return new IWS_RefreshUnrecievedInvoiceRunbase();
}

static ClassDescription description()
{
    return "Update project invoice ID for negative amounts " + curExt();
}

static void main(Args args)
{
    IWS_RefreshUnrecievedInvoiceRunbase    runbase;

    runbase = IWS_RefreshUnrecievedInvoiceRunbase::construct();

    if (runbase.prompt())
    {
        runbase.runOperation();
    }
}

public void run()
{
    
}

}

常用格式为:yyyy-MM-dd HH:mm:ss
以 2019-12-31 06:07:59:666 时间为例:

Letter含义Example
yyyyy------>2019
MMM------->12 大写的M
d一月中的天数dd--------->31
H小时(0-23)HH--------->18 24 小时制的是大写的H
h小时(1-12)hh---------->06 24 小时制的是大写的h
mmm-------->07 小写的m
sss-------->59
S毫秒SSS--------->666
YWeek YearYYYY---->2020
D一年中天数DD-------->365

原文链接:https://blog.csdn.net/qq_37358143/article/details/103868657

private Stream buildPdf(str Id)
{

    System.IO.MemoryStream stream;

    
    Contract contract = new Contract ();
    Controller controller = new Controller ();
    SRSPrintDestinationSettings settings;
    SRSReportRunService srsReportRunService = new SrsReportRunService();
    Microsoft.Dynamics.AX.Framework.Reporting.Shared.ReportingService.ParameterValue[] parameterValueArray;

    SRSReportExecutionInfo executionInfo = new SRSReportExecutionInfo();
    Map reportParametersMap;
    SRSProxy srsProxy;
    System.Byte[] reportBytes = new System.Byte[0]();

    

    contract.parmId("Id");

    
    controller.parmReportName(ssrsReportStr(Report, Report));
    //controller.parmDialogCaption('@IWS:IWS02036');
    //controller.parmShowDialog(false);
    //controller.parmLoadFromSysLastValue(false);
    controller.parmReportContract().parmRdpContract(contract);

    settings = controller.parmReportContract().parmPrintSettings();
    settings.printMediumType(SRSPrintMediumType::File);
    settings.fileFormat(SRSReportFileFormat::PDF);

    controller.parmReportContract().parmReportServerConfig(SRSConfiguration::getDefaultServerConfiguration());
    controller.parmReportContract().parmReportExecutionInfo(executionInfo);
    srsReportRunService.getReportDataContract(controller.parmreportcontract().parmReportName());
    srsReportRunService.preRunReport(controller.parmreportcontract());
    reportParametersMap = srsReportRunService.createParamMapFromContract(controller.parmReportContract());
    parameterValueArray = SrsReportRunUtil::getParameterValueArray(reportParametersMap);
    srsProxy = SRSProxy::constructWithConfiguration(controller.parmReportContract().parmReportServerConfig());

    reportBytes = srsproxy.renderReportToByteArray(
        controller.parmreportcontract().parmreportpath(),
        parameterValueArray,
        settings.fileFormat(),
        settings.deviceinfo());

    if (reportBytes)
    {
        stream = new System.IO.MemoryStream(reportBytes);
        stream.Position = 0;
    }
    return  stream;
}