예제 #1
0
 /// <summary>
 /// 触发提交流程
 /// </summary>
 public override bool Raise()
 {
     if (!PreviewSubmitting())
     {
         //组装失败
         Console.WriteLine("SubmitContract.PreviewSubmitting失败!");
         return(false);
     }
     //执行通讯动作
     if (!DoTransit())
     {
         return(false);
     }
     //判定结果
     if (!SubmitComplete())
     {
         return(false);
     }
     //触发打印流程
     if (PrintContract != null)
     {
         PrintContract.Raise();
     }
     //交易结束,调用收尾处理
     Finally();
     return(true);
 }
예제 #2
0
 public void LoadContact(PrintContract contract)
 {
     Contract = contract;
 }