public static EnumType.HandleResult AddPrintTemplate(SeatManage.ClassModel.AMS_PrintTemplateModel model) { IWCFService.ISeatManageService seatService = new WcfServiceForSeatManage.SeatManageDateService(); bool error = false; try { return(seatService.AddPrintTemplate(model)); } catch (Exception ex) { error = true; SeatManageComm.WriteLog.Write("添加打印模板失败:" + ex.Message); return(EnumType.HandleResult.Failed); } }