Commit ba61427c by lizefeng

新增日志输出

parent 0ad48f0f
......@@ -17,11 +17,19 @@ namespace AutoTurnOver.Services
/// </summary>
public static void Generate()
{
// 创建一个采购计划
var mainID = purchase_advise.Add(new dc_auto_purchase_advise { create_time = DateTime.Now, no = GenerateOrderNo() });
if (mainID == null) throw new Exception("创建采购建议失败");
try
{
// 创建一个采购计划
var mainID = purchase_advise.Add(new dc_auto_purchase_advise { create_time = DateTime.Now, no = GenerateOrderNo() });
if (mainID == null) throw new Exception("创建采购建议失败");
purchase_advise.ImportDetailed(mainID.Value);
purchase_advise.ImportDetailed(mainID.Value);
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
}
/// <summary>
......
......@@ -21,8 +21,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "test", "test\test.csproj",
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AutoGeneratePurchaseAdvise", "AutoGeneratePurchaseAdvise\AutoGeneratePurchaseAdvise.csproj", "{350405A0-13DF-4F20-8B3F-0AB923BE9DFF}"
EndProject
Project("{E53339B2-1760-4266-BCC7-CA923CBCF16C}") = "docker-compose", "docker-compose.dcproj", "{23B3C567-1F02-4954-B621-26490D75F0FC}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
......@@ -61,10 +59,6 @@ Global
{350405A0-13DF-4F20-8B3F-0AB923BE9DFF}.Debug|Any CPU.Build.0 = Debug|Any CPU
{350405A0-13DF-4F20-8B3F-0AB923BE9DFF}.Release|Any CPU.ActiveCfg = Release|Any CPU
{350405A0-13DF-4F20-8B3F-0AB923BE9DFF}.Release|Any CPU.Build.0 = Release|Any CPU
{23B3C567-1F02-4954-B621-26490D75F0FC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{23B3C567-1F02-4954-B621-26490D75F0FC}.Debug|Any CPU.Build.0 = Debug|Any CPU
{23B3C567-1F02-4954-B621-26490D75F0FC}.Release|Any CPU.ActiveCfg = Release|Any CPU
{23B3C567-1F02-4954-B621-26490D75F0FC}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment